Bug 258 - handle Linux shared libs with teeny versions
Summary: handle Linux shared libs with teeny versions
Alias: None
Product: xorg
Classification: Unclassified
Component: Build/Monolithic (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: high normal
Assignee: Kaleb KEITHLEY
QA Contact:
Depends on:
Reported: 2004-03-02 04:14 UTC by Kaleb KEITHLEY
Modified: 2011-10-15 15:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Description Kaleb KEITHLEY 2004-03-02 04:14:58 UTC
the SharedLibraryTarget rule in lnxLib.rules, or more specifically the sed
command  in the rule, only handles libraries with Major and Minor versions.

It's desireable to support libraries with Teeny versions too, for, e.g.,
importing the Latest-and-Greatest Xrender library.

Linux is somewhat unique in that for a library such as libXrender.so.1.2 (or
libXrender.so.1.2.3), two symlinks are created: libXrender.so and
libXrender.so.1; whereas Solaris and *BSD only one symlink is created, i.e.
Comment 1 Kaleb KEITHLEY 2004-03-02 05:14:06 UTC
Oops, look like I was wrong about the *BSD lib symlinks. Sigh. As a general
rule, for system libs the BSDs store the fully version as the library soname,
but it seems that XFree86 has extended the Linux scheme to X libs on *BSD. Sigh

Furthermore, Linux (and BSD) shared libs store only the major version, i.e.
libXrender.so.1 as the library soname. Solaris, and other SVR4en store the full
versioned name as the library soname.

Even though ELF allows shared libs with names like
libXrender.so.roger.wilco.overandout, the sed command I'm checking in will
enforce numeric strings after the ".so.", e.g. libXrender.so.1.23.456. If
someone thinks they need non-numeric versions they can tweak the sed commands.
Comment 2 Kaleb KEITHLEY 2004-03-02 05:21:30 UTC      +3 -1      xc/Attic/CHANGELOG-CURRENT       +8 -8      xc/config/cf/lnxLib.rules       +7 -7      xc/config/cf/bsdLib.rules       +4 -4      xc/config/cf/bsdiLib.rules

N.B. I've applied the change to bsdiLib.rules, but I don't have a BSDI system to
check this on. :-(
Comment 3 Kaleb KEITHLEY 2004-03-02 08:01:29 UTC       +7 -7      xc/config/cf/darwinLib.rules
Comment 4 Kaleb KEITHLEY 2004-03-02 10:52:58 UTC       +5 -5      xc/config/cf/gnuLib.rules

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.