Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355375 - >=app-crypt/heimdal-1.4: Incompatible change in ABI of libgssapi.so
Summary: >=app-crypt/heimdal-1.4: Incompatible change in ABI of libgssapi.so
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Kerberos Maintainers
URL:
Whiteboard:
Keywords:
: 355695 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-17 23:54 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2011-03-02 10:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-02-17 23:54:34 UTC
libgssapi.so in >=app-crypt/heimdal-1.4 has changed version from HEIMDAL_GSS_1.0 to HEIMDAL_GSS_2.0 without changing filename and soname (from libgssapi.so.2 to e.g. libgssapi.so.3).

Example problem:
$ svn up
Updating '.' ...
/usr/lib/libgssapi.so.2: version `HEIMDAL_GSS_1.0' not found (required by /usr/lib/libsvn_ra_serf-1.so.0)
svn: Unrecognized URL scheme for '${URL}'

All packages installing binaries linked against libgssapi.so.2 need to be rebuilt. If filename of libgssapi.so was changed, then preserve-libs functionality of Portage 2.2.* would preserve old library and suggest reinstallation of packages, which need to be reinstalled.

Possible solutions:
1. Convince upstream to change filename/soname of libgssapi.so.
--- lib/gssapi/Makefile.am
+++ lib/gssapi/Makefile.am
@@ -201,1 +201,1 @@
-libgssapi_la_LDFLAGS = -version-info 2:0:0
+libgssapi_la_LDFLAGS = -version-info 3:0:0

2. Add a warning in pkg_postinst().
Comment 1 Eray Aslan gentoo-dev 2011-02-18 06:34:51 UTC
libroken also has the same problem.  Contacted upstream for both of them.  Let's see how they respond.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-02-18 14:29:33 UTC
My interpretation of changes in lib/roken/version-script.map is that libroken.so doesn't have this problem. Only lib/gssapi/version-script.map changes version:
-HEIMDAL_GSS_1.0 {
+HEIMDAL_GSS_2.0 {
Comment 3 Eray Aslan gentoo-dev 2011-02-18 15:35:09 UTC
libroken has the same problem in the sense that there are symbol changes in the library without any corresponding version change.  Example:

version 1.3.3:
# scanelf -s rk_cloexec_dir /usr/lib/libroken.so.18
 TYPE   SYM FILE 
ET_DYN  -  /usr/lib/libroken.so.18 

version 1.4.x:
# scanelf -s rk_cloexec_dir lib/roken/.libs/libroken.so.18
 TYPE   SYM FILE 
ET_DYN rk_cloexec_dir lib/roken/.libs/libroken.so.18 

resulting in:

/var/tmp/portage/app-crypt/heimdal-1.4.1_pre20110216/work/heimdal/kdc/.libs/kdc:
relocation error:
/var/tmp/portage/app-crypt/heimdal-1.4.1_pre20110216/work/heimdal/lib/krb5/.libs/libkrb5.so.26:
symbol rk_cloexec_dir, version HEIMDAL_ROKEN_1.0 not defined in file
libroken.so.18 with link time reference
Comment 4 Eray Aslan gentoo-dev 2011-02-20 10:23:29 UTC
+*heimdal-1.4.1_pre20110216-r1 (20 Feb 2011)
+
+  20 Feb 2011; Eray Aslan <eras@gentoo.org>
+  +heimdal-1.4.1_pre20110216-r1.ebuild:
+  Added revdep-rebuild warning for libgssapi.so bug #355375
+
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-02-20 14:27:26 UTC
(In reply to comment #1)
> libroken also has the same problem.  Contacted upstream for both of them. 

What was the response of upstream?
Comment 6 Eray Aslan gentoo-dev 2011-02-20 14:30:26 UTC
No response yet.
Comment 7 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-02-20 15:07:16 UTC
*** Bug 355695 has been marked as a duplicate of this bug. ***
Comment 8 Rafał Mużyło 2011-02-20 15:33:48 UTC
Heimdal upstream is notoriously bad at this stuff
- they forget to do so version bumps, release headers that c++ compilers reject, etc.

Their every release should be approached with caution.
Comment 9 Eray Aslan gentoo-dev 2011-03-02 10:48:34 UTC
libgssapi version bumped upstream.  In the tree with heimdal-1.4.1_pre20110301.  FYI.