Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102487 - gnome-extra/evolution-data-server-{1.2.3|1.4.0} and earlier versions does not correctly link at run-time
Summary: gnome-extra/evolution-data-server-{1.2.3|1.4.0} and earlier versions does not...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
Keywords: Inclusion
Depends on: 100597
  Show dependency tree
Reported: 2005-08-14 06:54 UTC by Gergan Penkov
Modified: 2006-04-27 08:58 UTC (History)
0 users

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

evolution-data-server-rpath.patch (evolution-data-server-rpath.patch,5.34 KB, patch)
2005-08-14 06:58 UTC, Gergan Penkov
Details | Diff
evolution-data-server-1.2.3-r1.ebuild (evolution-data-server-1.2.3-r1.ebuild,2.58 KB, text/plain)
2005-08-14 07:00 UTC, Gergan Penkov
evolution-data-server-rpath.patch (evolution-data-server-rpath.patch,3.90 KB, patch)
2005-08-15 19:00 UTC, Gergan Penkov
Details | Diff
evolution-data-server-1.2.3-r1.ebuild (evolution-data-server-1.2.3-r1.ebuild,2.14 KB, text/plain)
2005-08-15 19:04 UTC, Gergan Penkov
evolution-data-server-1.3.8.ebuild (evolution-data-server-1.3.8.ebuild,3.16 KB, text/plain)
2005-08-31 05:25 UTC, Gergan Penkov
evolution-data-server-rpath-1.patch (evolution-data-server-rpath-1.patch,3.84 KB, patch)
2005-08-31 05:28 UTC, Gergan Penkov
Details | Diff
evolution-data-server-1.4.0.ebuild (evolution-data-server-1.4.0.ebuild,3.20 KB, text/plain)
2005-09-15 17:53 UTC, Gergan Penkov
evolution-data-server-rpath-1.patch (evolution-data-server-rpath-1.patch,5.85 KB, patch)
2005-09-15 17:55 UTC, Gergan Penkov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gergan Penkov 2005-08-14 06:54:54 UTC
Ok, here is the problem. 
If evolution-data-server and/or evolutiona are linked at compile-time against
standard nspr/nss or against mozilla's, they will link at run-time against
firefox or mozilla (if installed and dependening on which path comes first in 
Simple ldd on the so-libraries, could show you this.
In this sense it is sinnloss to link against the standard nss/nspr (as 90% of
the gentoo-users are using mozilla and/or firefox) and it is also dangerous,
because it could lead to crashes and lockups.
All this said, I will attach ebuild and patch (for evolution-data-server and in
another bug for evolution), which builds only against mozilla or firefox and
sets the correct rpath-dynamic-tags to ensure correct run-time linking. 
Building against firefox needs the ebuilds from bug #100597, which install the
needed includes and archive-objects (for possible static linking) for firefox.
Comment 1 Gergan Penkov 2005-08-14 06:58:09 UTC
Created attachment 65922 [details, diff]

The patch to set the correct rpath-tag of the so-libraries, in order to ensure
consistent run-time-linking.
Comment 2 Gergan Penkov 2005-08-14 07:00:48 UTC
Created attachment 65925 [details]

The ebuild, which applies the patch and changes the dependancies only to
firefox/mozilla as mentioned.
Comment 3 Gergan Penkov 2005-08-15 19:00:55 UTC
Created attachment 66040 [details, diff]

It is a reduced patch, which is needed, because the make-files in the doc
directory do not use flags found from the configure script, causing the build
to fail if there are no nss/nspr libraries in the paths.
This bug in the make-files is probably the culprit for the automagically
nss/nspr dependancy in gnome-panel #102661.
Comment 4 Gergan Penkov 2005-08-15 19:04:03 UTC
Created attachment 66041 [details]

Using the configure script to find the needed libraries and includes with the
help of the pkg-config files, only patching it for firefox accordingly to the
Comment 5 Gergan Penkov 2005-08-16 16:23:06 UTC
changing to depend only for tracking, as the ebuilds of mozilla and firefox are
already in the portage.
Comment 6 Gergan Penkov 2005-08-31 05:25:55 UTC
Created attachment 67340 [details]

Updated build, although the one in portage could now use the firefox-flag it
does this not in the correct way, supplying only the libdir and libs
properties, which will not set the rpath-tag, so the solution - as earlier to
simply change the occurences of mozilla-{nss|nspr} in the configure script to
firefox-{nss|nspr} to allow the configure script use the correct flags.
Comment 7 Gergan Penkov 2005-08-31 05:28:49 UTC
Created attachment 67341 [details, diff]

This patch is needed if there are no directories in, which contain
any nss|nspr-libs. Somehow the libtool pulls these libraries for the
Comment 8 Gergan Penkov 2005-09-15 17:53:10 UTC
Created attachment 68547 [details]

The privious ebuild for 1.3.8 was not correct, I should have looked to this
Comment 9 Gergan Penkov 2005-09-15 17:55:52 UTC
Created attachment 68548 [details, diff]

The last patch was not full, is there any way to remove the libtool la-files
Comment 10 Gergan Penkov 2006-04-27 08:58:25 UTC
the same as with evolution
"I have forgotten about this - with nss/nspr corrected in portage and the ebuilds using only them this is not a problem anymore.
so closing.
the only thing probably left is make evolution and e-d-s use the pkg-config files from nss/nspr."