remove ld.so.conf from glibc?
At present, the main glibc package (libc6 in most DISTROs) is shipping an /etc/ld.so.conf file which mentions /usr/local/lib
and /usr/X11R6/lib. I think it has basically been this way for all time, and I suspect the original file was probably imported from Chris's openzaurus installation way back when.
As far as I can tell, this file is not serving any useful purpose on any contemporary DISTRO. On the contrary, aside from contributing to filesystem clutter, its only real effect will be to slow down shared library loading. So, I would propose to delete it from the libc6 package. Any DISTRO which does need this file can, of course, ship it in a separate package of their own.
Comments?
p.
Quoted 6 lines · Phil Blundell
At present, the main glibc package (libc6 in most DISTROs) is shipping an
/etc/ld.so.conffile which mentions/usr/local/lib
and/usr/X11R6/lib. I think it has basically been this way for all time, and I suspect the original file was probably imported from Chris's openzaurus installation way back when.
Quoted 6 lines
As far as I can tell, this file is not serving any useful purpose on any contemporary DISTRO. On the contrary, aside from contributing to filesystem clutter, its only real effect will be to slow down shared library loading. So, I would propose to delete it from the libc6 package. Any DISTRO which does need this file can, of course, ship it in a separate package of their own.
I would say we fix it. Logically this file could belong to libc as it is. but we edit it and make it load
sub conf files which are owned by different packages and it there is none then it loads nothing. This is how it is on ubuntu and fedora.
$ cat /etc/ld.so.conf include ld.so.conf.d/*.conf
any package can have there own .conf file which can be installed in
/etc/ld.so.conf.d/
/etc/ld.so.conf and /etc/ld.so.conf.d/ are packaged as part of libc
Thx
-Khem
Quoted 5 lines · Khem Raj
I would say we fix it. Logically this file could belong to libc as it is. but we edit it and make it load
sub conf files which are owned by different packages and it there is none then it loads nothing. This is how it is on ubuntu and fedora.
Quoted 8 lines
$ cat /etc/ld.so.conf include ld.so.conf.d/*.confany package can have there own .conf file which can be installed in
/etc/ld.so.conf.d/
/etc/ld.so.confand/etc/ld.so.conf.d/are packaged as part of libc
That sounds like it would be overkill for most embedded DISTROs. Making a separate package to ship those bits seems like it would be a fine idea, but I am not convinced we want them as standard fitment in libc6 itself. Do you know of any existing package/DISTRO combinations in oe that would actually benefit from this feature?
p.
Quoted 5 lines · On Friday 17 October 2008 21:58:00 Phil Blundell wrote:
That sounds like it would be overkill for most embedded DISTROs. Making a separate package to ship those bits seems like it would be a fine idea, but I am not convinced we want them as standard fitment in libc6 itself. Do you know of any existing package/DISTRO combinations in oe that would actually benefit from this feature?
I have done this for Openmoko. We install Qtopia into /opt/Qtopia and I didn't want to play with fixed RPATHs inside the binary.
This means I can add Qtopia path's if Qtopia is installed and don't punish people not having it.
z.
Quoted 6 lines · Phil Blundell
At present, the main glibc package (libc6 in most DISTROs) is shipping an
/etc/ld.so.conffile which mentions/usr/local/lib
and/usr/X11R6/lib. I think it has basically been this way for all time, and I suspect the original file was probably imported from Chris's openzaurus installation way back when.
Quoted 8 lines
As far as I can tell, this file is not serving any useful purpose on any contemporary DISTRO. On the contrary, aside from contributing to filesystem clutter, its only real effect will be to slow down shared library loading. So, I would propose to delete it from the libc6 package. Any DISTRO which does need this file can, of course, ship it in a separate package of their own.
Comments?
I agree with this. Poky already removed cruft from this file and has a modified version so splitting it into a separate package would be good which distros can deal with as needed.
Cheers,
Richard
Quoted 3 lines · Richard Purdie
I agree with this. Poky already removed cruft from this file and has a modified version so splitting it into a separate package would be good which distros can deal with as needed.
Righto; I've removed /etc/ld.so.conf from the glibc package now. Any DISTROs which want to ship their own version in a separate package should feel free to do so.
(There didn't seem to be any value in creating a package for the previous contents of ld.so.conf since, as I mentioned in my previous, the old file was apparently devoid of any value. But it would be easy enough to do that if it does turn out to have been useful after all.)
p.