LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Prepare to shared libs version bump in -current (https://www.linuxquestions.org/questions/slackware-14/prepare-to-shared-libs-version-bump-in-current-4175654223/)

Tonus 05-19-2019 09:05 PM

Prepare to shared libs version bump in -current
 
I did not update last few weeks to avoid breakage due to boost upgrade.

After I did flawless, I checked this wy what might break (ncmpcpp and mpd was first noticed) :

Code:

sh shared-libs /usr/bin boost
with

Code:

$cat shared-libs
#! /bin/bash

binaries=$(ls $1)

for binary in ${binaries}
do
          if [ $(ldd $(which $binary 2>/dev/null) 2>/dev/null | grep $2 | grep 'not found' | wc -l) -gt 0 ]
        then echo $binary
        fi
done


I ran that on a couple of directories, with boost and icu4u.

Before going further, do you have any suggestions (it's quite long, I might hard code a few paths) ?

Regards

bassmadrigal 05-19-2019 11:33 PM

Easiest thing is to just use Eric's boost-compat and icu4c-compat and this will allow your 3rd-party packages to continue to function until they're updated.

chrisVV 05-20-2019 05:30 AM

As important as it may be to know what is going to break, you also need to know what you need to recompile, which will be a much smaller set because of inherited dependencies. You need to use 'objdump -p' rather than ldd to find that.

Tonus 05-20-2019 08:16 AM

Quote:

Originally Posted by bassmadrigal (Post 5997044)
Easiest thing is to just use Eric's boost-compat and icu4c-compat and this will allow your 3rd-party packages to continue to function until they're updated.

Thank you bassmadrigal, I am already aware of that but I am trying to find my way not to rely on it :)


Quote:

Originally Posted by chrisVV (Post 5997106)
As important as it may be to know what is going to break, you also need to know what you need to recompile, which will be a much smaller set because of inherited dependencies. You need to use 'objdump -p' rather than ldd to find that.

Thank you, I will dig into that ! Unfortunatly I've already updated the found packages... :D

orbea 05-20-2019 09:22 AM

You can try this script after updating Slackware current, its the same idea as the script in your OP, but more complete.

https://notabug.org/orbea/SlackBuild...ipts/brokenpkg

Its kind of slow and there are some false positives (i.e. firefox), but it should point out many files with missing dependencies where you can then track down which packages they belong to and then recompile accordingly. Also note this won't help for any programs written in perl, python or ruby.

thim 05-21-2019 03:16 AM

Boost upgrade broke for me libreoffice, qbittorrent and maybe (not sure for the latter.Installing boost-compat (see #2) solved those problems.

Tonus 12-22-2019 07:27 AM

So I am now using this : chk3deps

Thanks to orbea for the script provided !

This is solved for now


All times are GMT -5. The time now is 06:48 PM.