Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 102297

Summary: preplib command uses non-portable ldconfig
Product: Gentoo/Alt Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: OtherAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: major CC: alt, ferringb, ulm
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: FreeBSD   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 459934, 906128    

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2005-08-12 16:40:02 UTC
This is a problem common to all non-GNU operating systems, as ldconfig is used 
with -n -N params that makes sense only on GNU/Linux (or maybe GNU/Hurd too?). 
 
I don't really know what ldconfig is supposed to do in that case, but we 
should find a solution other than use it to unbreak G/FBSD.
Comment 1 SpanKY gentoo-dev 2005-08-12 16:59:57 UTC
i'm pretty sure that ldconfig should just be punted from preplib
Comment 2 Lina Pezzella (RETIRED) gentoo-dev 2005-08-12 17:12:11 UTC
That was my understanding as well. I've been doing that with other packages, so let me know if that isn't 
true.
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-10-10 06:24:45 UTC
Portage devs, ping :) 
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-14 04:31:36 UTC
Sigh, ping. 
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-12-14 04:44:22 UTC
Don't know what preplib's purpose is, nor is it clear to me from reading it so 
I have no idea on ways to fix this bug, but... (big breath) pong! 
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-14 04:59:35 UTC
Mike, you that know what that is, can you take a look? :P  
Comment 7 SpanKY gentoo-dev 2005-12-14 06:13:22 UTC
i'll look into just punting preplib and preplib.so

they serve no real purpose as no package should really be installing libraries
such that the ABI symlinks *need* to be updated inside of $D
Comment 8 SpanKY gentoo-dev 2005-12-16 18:21:17 UTC
preplib.so is gone, nothing in the tree uses it
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-04-13 14:05:28 UTC
Hm I'm wondering if we can get a "generic" preplib replacement for other systems where it just make sure that there's a link to the soname of the library, by using scanelf -Sq .
Comment 10 SpanKY gentoo-dev 2006-04-19 18:09:31 UTC
that wouldnt really work for Darwin ... really i'd just like to see the thing die
Comment 11 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 04:43:17 UTC
Remaining packages using preplib:
media-video/ffmpeg/ffmpeg-0.4.9_p20050226-r3.ebuild:145:	preplib /usr
media-video/ffmpeg/ffmpeg-0.4.9_p20051216.ebuild:176:	preplib /usr
net-misc/nx-x11/nx-x11-1.4.0-r3.ebuild:100:	preplib /usr/NX
net-misc/nx-x11/nx-x11-1.4.0-r4.ebuild:103:	preplib /usr/NX
net-misc/nxcomp/nxcomp-1.3.2-r1.ebuild:33:	preplib /usr/NX
net-misc/nxcomp/nxcomp-1.5.0-r1.ebuild:45:	preplib /usr/NX/lib
sys-libs/lib-compat-loki/lib-compat-loki-0.1.ebuild:39:	preplib /usr
sys-libs/lib-compat-loki/lib-compat-loki-0.2.ebuild:42:		preplib /usr
sys-libs/lib-compat/lib-compat-1.4.1.ebuild:41:	preplib /usr
sys-libs/lib-compat/lib-compat-1.4.ebuild:41:	preplib /usr
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2007-01-11 14:53:56 UTC
lib-compat-loki done
Comment 13 Bernard Cafarelli gentoo-dev 2007-03-23 15:18:40 UTC
net-misc/nx-x11/nx-x11-1.4.* removed (they were not modular X-aware)
net-misc/nxcomp should be going away soon (superseeded by net-misc/nx)
Comment 14 Bernard Cafarelli gentoo-dev 2007-04-26 09:23:20 UTC
net-misc/nxcomp removed from tree, all done for NX
Comment 15 Marius Mauch (RETIRED) gentoo-dev 2008-03-02 16:21:35 UTC
Remaining packages:
media-video/ffmpeg/ffmpeg-0.4.9_p20050226-r3.ebuild:145:	preplib /usr
sys-libs/lib-compat/lib-compat-1.4.1.ebuild:41:	preplib /usr
sys-libs/lib-compat/lib-compat-1.4.ebuild:41:	preplib /usr
Comment 16 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-05 23:13:02 UTC
(In reply to comment #15)
> Remaining packages:
> media-video/ffmpeg/ffmpeg-0.4.9_p20050226-r3.ebuild:145:        preplib /usr
> sys-libs/lib-compat/lib-compat-1.4.1.ebuild:41: preplib /usr
> sys-libs/lib-compat/lib-compat-1.4.ebuild:41:   preplib /usr
> 

Remaining packages:
> sys-libs/lib-compat/lib-compat-1.4.1.ebuild:41: preplib /usr
> sys-libs/lib-compat/lib-compat-1.4.ebuild:41:   preplib /usr

Should be sufficient to just remove preplib by now, right? Time to close this ancient bug! (removing media-video because ffmpeg doesn't use preplib)
Comment 17 Zac Medico gentoo-dev 2008-12-05 23:42:19 UTC
sys-libs/lib-compat is the only one left now:

sys-libs/lib-compat/lib-compat-1.4.1.ebuild:41: preplib /usr
sys-libs/lib-compat/lib-compat-1.4.ebuild:41:   preplib /usr
Comment 18 SpanKY gentoo-dev 2008-12-06 01:20:30 UTC
ive added lib-compat-1.4.2 with files renamed/dropped
Comment 19 Fabian Groffen gentoo-dev 2009-10-25 08:58:12 UTC
that means we're done here, then?
Comment 20 SpanKY gentoo-dev 2009-10-25 09:03:28 UTC
i dont think things are "done" until preplib is dropped from portage/PMS
Comment 21 Sebastian Luther (few) 2010-09-09 07:10:39 UTC
It looks to me like:
   PMS doesn't mention preplib.
   paludis doesn't have it.
   pkgcore has preplib and preplib.so.
   portage has only preplib (with a deprecation warning since almost 5 years)

Any objections against removing it?
Comment 23 Ulrich Müller gentoo-dev 2010-09-14 07:22:35 UTC
preplib is still used in the tree, namely by stable sys-libs/lib-compat.
Readding base-system to CC.
Comment 24 Zac Medico gentoo-dev 2010-09-14 22:36:41 UTC
We shouldn't remove it as long as the stable libcompat ebuilds still use it. It's back in now:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=163a42fb35ad95b7d44136a1fc749e0bf6d47267
Comment 25 Zac Medico gentoo-dev 2013-02-15 23:42:19 UTC
(In reply to comment #23)
> preplib is still used in the tree, namely by stable sys-libs/lib-compat.
> Readding base-system to CC.

There are no references left in the tree now, so I've removed it for the next release:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=d0d62ba0ea6375d53db8843eb938f74613583455
Comment 26 Zac Medico gentoo-dev 2013-03-02 04:28:07 UTC
This is fixed in 2.1.11.53 and 2.2.0_alpha164.