View previous topic :: View next topic |
Author |
Message |
hexa Apprentice
Joined: 10 Aug 2005 Posts: 163
|
Posted: Thu Jul 03, 2008 7:56 pm Post subject: do i need to recompile linked apps after openssl upgrade? |
|
|
I want to upgrade this.
dev-libs/openssl-0.9.8g-r2 [0.9.8f]
I wonder if i will have to recompile all applications dynamically linked to openssl? I think the lib file name stays the same and it won't be required.
Code: |
veliki lib # ls -la libss*
-rw-r--r-- 1 root root 55570 Jan 9 14:34 libss.a
-rwxr-xr-x 1 root root 325 Jan 9 14:34 libss.so
-rw-r--r-- 1 root root 623528 Oct 18 2007 libssl.a
lrwxrwxrwx 1 root root 15 Oct 18 2007 libssl.so -> libssl.so.0.9.8
-r-xr-xr-x 1 root root 327856 Oct 18 2007 libssl.so.0.9.8
|
Thanks for info. |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Thu Jul 03, 2008 9:01 pm Post subject: |
|
|
Well, it's hard to tell.
IIRC, on some releases, even though lib number didn't change,
some apps still had to be rebuilt, i.e. ssh. On others, though,
no rebuild seemed necessary, as everything seemed to work.
Simply try and see if anything breaks. |
|
Back to top |
|
|
hexa Apprentice
Joined: 10 Aug 2005 Posts: 163
|
Posted: Thu Jul 03, 2008 9:09 pm Post subject: |
|
|
So ssh needs to be rebuilt, apache doesn't? |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Thu Jul 03, 2008 10:39 pm Post subject: |
|
|
Run revdep-rebuild. If there are any problems after an emerge, revdep-rebuild will fix it.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21644
|
Posted: Fri Jul 04, 2008 2:31 am Post subject: |
|
|
pappy_mcfae wrote: | Run revdep-rebuild. If there are any problems after an emerge, revdep-rebuild will fix it. |
This is not necessarily true. revdep-rebuild can identify situations where a required library has vanished, but it cannot necessarily detect situations where the ABI of an installed library was changed. For example, some libraries encourage client applications to directly manipulate the contents of data structures defined by the library. If the library author changes the layout of that data structure, that constitutes an ABI change, and all applications which manipulate the structure need to be recompiled.
Best practices state that the library author should arrange for a load-time break when an application using the old ABI tries to load a library using the new ABI. This allows the user to quickly recognize that a problem exists. Often, this break is implemented by changing the library name, which revdep-rebuild detects. Without a load-time break, the application may slowly corrupt its internal state due to disagreement with the library about how the structure is laid out. Unfortunately, not all projects follow best practices in this regard.
All that said, I do not know whether the proposed openssl upgrade constitutes an ABI change. I only responded because I wanted to point out that revdep-rebuild does not necessarily find all compatibility problems caused by an upgrade. The failure scenario I described above cannot be detected by inspection of the library metadata, so it is not possible for revdep-rebuild to detect this scenario. |
|
Back to top |
|
|
baeksu l33t
Joined: 26 Sep 2004 Posts: 609 Location: Seoul, Korea
|
Posted: Fri Jul 04, 2008 2:45 am Post subject: |
|
|
You can run 'equery d openssl' (available from gentoolkit) to see which apps depend on openssl.
This, together with revdep-rebuild, is the only way to know what packages might break, AFAIK. As to whether they will break, I guess you'll have to try them to see. _________________ Gnome:
1. A legendary being.
2. A never ending quest to make unix friendly to people who don't want unix and excruciating for those that do. |
|
Back to top |
|
|
|