Bug 258 - handle Linux shared libs with teeny versions
Summary: handle Linux shared libs with teeny versions
Status: RESOLVED FIXED
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:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
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:


Attachments

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.
libXrender.so.
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
again.

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
  1.1.2.13      +3 -1      xc/Attic/CHANGELOG-CURRENT
  1.1.4.4       +8 -8      xc/config/cf/lnxLib.rules
  1.1.4.4       +7 -7      xc/config/cf/bsdLib.rules
  1.1.4.2       +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
  1.1.4.2       +7 -7      xc/config/cf/darwinLib.rules
Comment 4 Kaleb KEITHLEY 2004-03-02 10:52:58 UTC
  1.1.4.3       +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.