110fe
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
With the OpenSSL security and after updating, one needs to update ports that are depending on libcrypto(3).
Quote:
pkg_info -aI with ldd -v then a grep libcrypto but it looks like pkg_info does not output only package names so you may have to use awk to clean the output. Not a very elegant solution, I'm sure there should be better options.
Last edited by DutchDaemon; May 9th, 2012 at 23:05. |
|
#2
|
|||
|
|||
|
Note the wording "which are statically linked to libcrypto(3)". Any port (any binary in fact) that links libcrypto using dynamic linking does not need recompiling unless there's a version bump in the dynamic link library and I don't that the case with this update.
Edit: There have been updates to both the base system libcrypto and the port security/openssl, which one you're using? Last edited by kpa; May 9th, 2012 at 16:31. |
| The Following User Says Thank You to kpa For This Useful Post: | ||
mecano (May 9th, 2012) | ||
|
#3
|
|||
|
|||
|
Thanks to point this out kpa.
I was talking of FreeBSD-SA-12:01.openssl.asc. The question is still interresting, how to find installed ports that are depending on a library given it name? |
|
#4
|
|||
|
|||
|
This is adapted from ldd(1) manual page, it will print out names of ELF binaries in /usr/local/s?bin and and dynamic link libraries the binaries depend on.
# find /usr/local/bin /usr/local/sbin -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' | xargs ldd -f '%A %p\n'You can then use # pkg_info -W file to figure out to which port a certain file belongs to.So it becomes something like this: # find /usr/local/bin /usr/local/sbin /usr/local/libexec -type f | xargs -n1 file -F ' ' | grep ELF | cut -f1 -d' ' | xargs ldd -f '%A\t%p\n' | grep '/lib/libcrypt.so.5$' | cut -f 1 | xargs -n1 pkg_info -WThat's starting to smell like a useful script
Last edited by kpa; May 9th, 2012 at 18:10. Reason: Finetuning the search path for find(1) |
|
#5
|
|||
|
|||
|
I have no example part in my ldd(1) manual. Time to jump to FreeBSD 8 I guess. And it works great! Thanks kpa.
What about statically linked libraries in ports as you pointed out? How to find ports that are statically linked to a particular lib? Last edited by DutchDaemon; May 9th, 2012 at 23:06. |
|
#6
|
|||
|
|||
|
That's a tough one, there may not be any real version information that is carried over from the static link library to the linked binary. I would first try to find out if there are any version strings in the static link library with strings(1) that could be used for comparison and then try to find the same strings in the binaries.
|
|
#7
|
|||
|
|||
|
Note that the above "script" may not be useful for finding out broken dynamic link library dependencies in ports/packages, for that there's a very handy tool pkg_libchk(1) in sysutils/bsdadminscripts.
|
|
#8
|
|||
|
|||
|
Thanks kpa for your time and valuable informations will look further these paths.
|
|
#9
|
|||
|
|||
|
pkg_libchk(1) shaved my butt when I read UPDATING but it didn't indicate that openssl.so was changing revision numbers.
(yes, I'm leaving the typo) |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] SSH Library Error: Cannot Find "libkrb.so.10" | BinaryMage | Installation and Maintenance of FreeBSD Ports or Packages | 4 | January 22nd, 2012 22:22 |
| [Solved] How to find where Firefox was installed? | daringturtle | Installation and Maintenance of FreeBSD Ports or Packages | 4 | June 17th, 2011 12:03 |
| cannot find the library `../zlib/libzlt.la' (or unhandled argument) | sneak | Installation and Maintenance of FreeBSD Ports or Packages | 3 | March 15th, 2011 14:52 |
| [Solved] Personally Installed Ports | Steve_Laurie | Installation and Maintenance of FreeBSD Ports or Packages | 9 | January 16th, 2011 23:32 |
| [Solved] How to find out which version of KDE and Gnome installed. | Lasse | Installation and Maintenance of FreeBSD Ports or Packages | 1 | October 26th, 2010 16:04 |