Bug 60733

Summary: lib*-private.so 'real' shared libraries?
Product: colord Reporter: Dominique Leuenberger <dominique-freedesktop.org>
Component: libcolordAssignee: Richard Hughes <richard>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: A possible patch, moving the sensors' libs to $(libdir)/colord-sensors, without module versions.

Description Dominique Leuenberger 2013-02-12 15:10:57 UTC
Currenly, colord 0.1.29 installs a bunch of 'shared libraries' including soname into the system library directory.


[   33s]    /usr/lib64/libdtp94-private.so
[   33s]    /usr/lib64/libdtp94-private.so.0
[   33s]    /usr/lib64/libdtp94-private.so.0.0.0
[   33s]    /usr/lib64/libhuey-private.so
[   33s]    /usr/lib64/libhuey-private.so.0
[   33s]    /usr/lib64/libhuey-private.so.0.0.0
[   33s]    /usr/lib64/libmunki-private.so
[   33s]    /usr/lib64/libmunki-private.so.0
[   33s]    /usr/lib64/libmunki-private.so.0.0.

=> from what I understand, those are not 'really' shared libraries, but rather modules that are loaded by a specific (ABI?) version of the library.

For a clean file structure (and packaging possibilities), it is advisable to move those 'out' of the pure lib space, to some directory, like for example
  /usr/lib64/libcolord1 (if it's ABI depending)
or
  /usr/lib64/colord-0.1.29 (if it's really version depending)
Comment 1 Dominique Leuenberger 2013-02-27 17:14:59 UTC
Created attachment 75643 [details] [review]
A possible patch, moving the sensors' libs to $(libdir)/colord-sensors, without module versions.
Comment 2 Richard Hughes 2013-03-05 11:01:17 UTC
commit 3a95e46c54f66342553aa1015a4d32647f56ef60
Author: Dominique Leuenberger <dominique-freedesktop.org@leuenberger.net>
Date:   Tue Mar 5 11:00:36 2013 +0000

    build: Move the private sensor libraries out of the pure lib space
    
    From what I understand, those are not 'really' shared libraries, but rather
    modules that are loaded by a specific version of the library.
    
    Move the sensors' libs to libdir/colord-sensors, without module versions.
    
    Signed-off-by: Richard Hughes <richard@hughsie.com>

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.