LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-02-2017, 09:31 PM   #1
ArthurFontolan
LQ Newbie
 
Registered: Dec 2009
Posts: 10

Rep: Reputation: 0
Package Maintenance: Question about dependencys


Hi,

Well, just one simple question:

If I upgrade a library, like libbluray, is it necessary recompiling all the programs which depend of it?

I have the MPV installed on my system, which depends of FFMPEG which was compiled with libbluray support. The libbluray was updated so should I recompile FFMPEG and MPV or is not necessary?

Thank You
 
Old 04-02-2017, 09:45 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,211
Blog Entries: 25

Rep: Reputation: 4332Reputation: 4332Reputation: 4332Reputation: 4332Reputation: 4332Reputation: 4332Reputation: 4332Reputation: 4332Reputation: 4332Reputation: 4332Reputation: 4332
Based on my own experience with Slackware, I can respond with a resounding "It depends."

The best thing to do is to test the applications one at a time (I'd start with ffmpeg) and see whether they experience any issues.
 
Old 04-03-2017, 07:19 AM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,113

Rep: Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799
frankbell speaks the truth. It usually is dependent on whether the developers bump the ABI version or not. If the ABI version stays the same, then the upgraded library shouldn't affect your current programs (shouldn't... but things still happen). Sometimes, even if the ABI is bumped, then it may still work with previous versions, depending on how much the developer has changed and whether the library's file(s) the program links to have changed. Sometimes you can fix things with a symlink (although, this is not recommended, because then you have random symlinks on your filesystem that are not tracked by Slackware's package manager.

This is one (of the many) reasons I like using slackrepo to manage my SBo library of packages. If a dependency is updated, it will recompile its parent applications to try and minimize issues that could occur by updating. There might be other tools that handle this as well, although, I haven't looked into them.
 
Old 04-03-2017, 07:49 AM   #4
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,531

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
Quote:
Originally Posted by bassmadrigal View Post
This is one (of the many) reasons I like using slackrepo to manage my SBo library of packages. If a dependency is updated, it will recompile its parent applications to try and minimize issues that could occur by updating. There might be other tools that handle this as well, although, I haven't looked into them.
Shameless plug incoming, but sboui does it too. Not automatically, though.

Actually, there's something that does it for the base system too. It's called Patrick Volkerding.
 
1 members found this post helpful.
Old 04-03-2017, 11:48 PM   #5
bormant
Member
 
Registered: Jan 2008
Posts: 335

Rep: Reputation: 194Reputation: 194
Always yes if the program uses the static library (in this case some library code is copied into the program executable file at compile time).
 
Old 04-04-2017, 12:33 AM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 9,029

Rep: Reputation: 3898Reputation: 3898Reputation: 3898Reputation: 3898Reputation: 3898Reputation: 3898Reputation: 3898Reputation: 3898Reputation: 3898Reputation: 3898Reputation: 3898
Usually not.

But FFMPEG is an exception where you usually do need to recompile the programs that depend on it.
 
Old 04-04-2017, 05:33 AM   #7
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
If pkgA requires pkgB requires pkgC, and pkgC is updated, and all of them are installed through SBo packages, then
  • C, C++ => pkgB probably needs rebuild, pkgA probably does not need rebuild (see footnotes)
  • python, perl, java => Usually no rebuild
  • haskell, ruby => both pkgA and pkgB need rebuild

Footnote 1. pkgB needs a rebuild if the "soname" of a shared library in pkgC has changed. It's a lot of work to find out whether this has happened, or if pkgC is statically linked, or only a build-time dep, or only invoked through the command line, so it's safer to just do the rebuild.

Footnote 2. SBo rules for REQUIRES in the .info files say that the list of deps can be simplified, and if both pkgA and pkgB require pkgC, then pkgC should not be in the REQUIRES of pkgA. Unfortunately this makes it impossible to know whether pkgA needs a rebuild when pkgC is updated.

If you don't want to work through all those decisions every time there's an update, the safe choice is always to rebuild both pkgA and pkgB.
 
3 members found this post helpful.
Old 04-04-2017, 07:53 AM   #8
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,531

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
Quote:
Originally Posted by 55020 View Post
If you don't want to work through all those decisions every time there's an update, the safe choice is always to rebuild both pkgA and pkgB.
Probably good advice. Another option (what most people probably do) would be to just deal with any issues as you encounter them, but if that ends up being a long time down the road, you may be confused about why pkgA or pkgB "suddenly" stopped working.

Last edited by montagdude; 04-04-2017 at 08:02 AM.
 
Old 04-04-2017, 08:29 AM   #9
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,113

Rep: Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799Reputation: 3799
Quote:
Originally Posted by montagdude View Post
Probably good advice. Another option (what most people probably do) would be to just deal with any issues as you encounter them, but if that ends up being a long time down the road, you may be confused about why pkgA or pkgB "suddenly" stopped working.
That's why on my old 14.1 install, that I primarily used sbopkg to install software, I'd never upgrade any packages from SBo (well, almost never... if I figured it was a safe update, I might do it). I was too worried about what that upgrade might knock out. That has mostly been solved by using slackrepo (created by 55020), so I'm free to run the latest versions and update whenever there's new versions put out.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Repair dependencys with apt-get sami_igor Linux - Software 2 12-05-2011 10:02 AM
Creating an RPM for a package for ease of maintenance... Alexvader Fedora 7 11-26-2009 03:04 PM
ndiswrapper maintenance question jdestruel Linux - Wireless Networking 2 04-30-2007 11:24 AM
Yum, what causes the looking for dependencys? fieldyweb Linux - Newbie 5 07-30-2005 06:41 AM
how to find dependencys 123racoons Linux - Software 3 06-20-2004 05:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:46 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration