Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383691 - portage preserve-libs broken on Darwin (or Prefix?)
Summary: portage preserve-libs broken on Darwin (or Prefix?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 20:00 UTC by Fabian Groffen
Modified: 2011-09-20 19:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Groffen gentoo-dev 2011-09-19 20:00:43 UTC
>>> Installing (1 of 1) sys-devel/dummy-2
 * checking 3 files for package collisions
>>> Merging sys-devel/dummy-2 to /
--- /Library/Gentoo/usr/
--- /Library/Gentoo/usr/lib/
>>> /Library/Gentoo/usr/lib/libdummy.1.0.dylib
>>> /Library/Gentoo/usr/lib/libdummy.1.dylib
>>> /Library/Gentoo/usr/lib/libdummy.dylib
>>> needed    obj /Library/Gentoo/usr/lib/libdummy.0.dylib
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
--- replaced obj /Library/Gentoo/usr/lib/libdummy.dylib
--- replaced obj /Library/Gentoo/usr/lib/libdummy.0.dylib
<<<          obj /Library/Gentoo/usr/lib/libdummy.0.1.dylib
--- replaced dir /Library/Gentoo/usr/lib
--- replaced dir /Library/Gentoo/usr
>>> Original instance of package unmerged safely.
>>> sys-devel/dummy-2 merged.
<<< !needed  obj /Library/Gentoo/usr/lib/libdummy.0.dylib
>>> Auto-cleaning packages...

For some reason, Portage thinks there is no consumer for libdummy.0, while it preserves it for this reason initially
Comment 1 Michael Haubenwallner (RETIRED) gentoo-dev 2011-09-20 07:26:51 UTC
This sounds interesting:
I've fixed preserve-libs for AIX recently (you might have found the patch already for inclusion), where I've seen similar behaviour (for quite some time already):

For the archive library containing the shared object, that shared object was not seen as consumer, so the archive was removed (including the shared object).

While the problem was in the XCOFF-impl only, I've wondered why this did work before.
Comment 2 Fabian Groffen gentoo-dev 2011-09-20 09:19:34 UTC
things changed there, and it is very well possible your patch (I haven't looked at it yet) can immediately be applied to MachO and PeCoff implementations
Comment 3 Fabian Groffen gentoo-dev 2011-09-20 19:05:17 UTC
turned out to be a merge error here.  scanmacho output was interpreted as ELF output, leading to an invalid arch being set (first 3 chars were missing, so _64 iso x86_64), the rest is just a chain of "not found"

Fixed in 2.2.01.19295
Comment 4 Fabian Groffen gentoo-dev 2011-09-20 19:10:32 UTC
committed