LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-29-2017, 09:45 PM   #1
slowpoke_
LQ Newbie
 
Registered: Oct 2017
Posts: 1

Rep: Reputation: Disabled
Best practices for packaging apps with dependencies?


I am creating an application for the Linux desktop, but my app depends on the wkhtmltox library. The version of this library that is included in the repositories of most distributions is out of date, and has problems which make it unusable.

Currently, users have to manually install the library from the wkhtmltox website for my app to work properly. I am thinking that the only way to get around this problem would be to include the binary for the library with my app, and manually install it to the correct location. Would this be the "correct" thing to do, or is there a more generally accepted way of solving this problem?
 
Old 10-30-2017, 05:27 AM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Include the library statically in your program at compile-time, that way you control which version gets used.
 
Old 10-30-2017, 08:48 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Hello and welcome to LQ.


Not really a great solution in any case. A typical install program would look for correct dependencies then usually ask to install. It's a bit uncommon to package the full set of dependencies but there are a few out there.
Since your now full package won't ever look outside for any updated helper files then it could present an issue at a later time. May be possible to compile the entire program without that being needed. ?

I think tuxguitar is one that offers two choices of packages. You simply may wish to offer both choices and let the user decide.

Last edited by jefro; 10-31-2017 at 05:09 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Packaging Apps for Linux the Easier Way LXer Syndicated Linux News 0 08-17-2016 08:41 AM
LXer: Solus Linux to Provide Direct Binary Dependencies, More Packaging Improvements LXer Syndicated Linux News 0 04-13-2016 02:42 AM
LXer: GNOME SDK Is Out, Apps Could Soon Run on Distros Without Packaging LXer Syndicated Linux News 0 04-01-2015 11:19 PM
packaging Python apps BlackFedora Programming 0 05-04-2009 12:15 AM
LXer: Consistent Packaging for Linux Apps LXer Syndicated Linux News 0 12-05-2006 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration