Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108949 - prelinked files will not be removed after unmerging prelink
Summary: prelinked files will not be removed after unmerging prelink
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-11 17:12 UTC by Miika Linnapuomi
Modified: 2007-02-01 16:49 UTC (History)
1 user (show)

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 Miika Linnapuomi 2005-10-11 17:12:29 UTC
Say, you prelink, and then decide you don't want to anymore, so you emerge -C
prelink. After this portage will no longer find the prelink binary, so it will
not be able to use it to check unlinked md5 sums of the files, thus leaving them
behind.

Reproducible: Always
Steps to Reproduce:
1. emerge prelink && env-update
2. prelink -amR
3. emerge -C prelink

Actual Results:  
/usr/bin/execstack was not removed (wrong md5 sum)

Expected Results:  
/usr/bin/execstack should have been removed as it is part of the package
selected for unmerging and has only been prelinked

To me a simple solution sounds like making the unmerge of prelink (emerge -C
prelink) un-prelink (prelink -aumR) all the files on the system so their md5
sums will be correct again.
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2005-10-11 17:23:58 UTC
I cannot add this to the ebuild that easily as I need to differentiate when
prelink is being unmerged as it is being upgraded or removed compleatly.

Any ideas?

( I have known of this issue for a while but I have happily ignored it )
Comment 2 Brian Harring (RETIRED) gentoo-dev 2005-10-11 18:01:22 UTC
portage uses md5 + mtime to determine what should be removed.
until it does refcounts, this is a unsolvable issue due to prelink's meddling
outside of portage's knowledge...
Comment 3 Miika Linnapuomi 2005-10-17 09:15:19 UTC
Could you atleast add a warning to the prelink doc on gentoo.org and to the end
of the emerge process of prelink? 
I would be very grateful.
Comment 4 Zac Medico gentoo-dev 2005-10-17 18:20:17 UTC
Currently, portage_checksum.prelink_capable defaults to True as long as the
prelink binary exists (reminiscent of autouse or something).  Perhaps it would
be better if the user had to explicitly enable it with FEATURES="prelink".  This
should help prevent users from "shooting themselves in the foot".
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-02-01 16:49:41 UTC
Closing again, see Comment #2. Nothing to be done here at the moment.