Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 90608 - fix_libtool_files.sh: avoid creating orphans files
Summary: fix_libtool_files.sh: avoid creating orphans files
Status: RESOLVED DUPLICATE of bug 71265
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-27 05:31 UTC by TGL
Modified: 2005-07-17 13:06 UTC (History)
1 user (show)

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


Attachments
fixlafiles.awk--fix_CONTENTS.patch (fixlafiles.awk--fix_CONTENTS.patch,867 bytes, patch)
2005-04-27 05:33 UTC, TGL
Details | Diff
fix_contents (fix_contents,6.65 KB, text/plain)
2005-04-27 05:34 UTC, TGL
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2005-04-27 05:31:31 UTC
When fix_libtool_files.sh change some .la files, they become orphans from portage point of view. This is quite bad since they will never get cleaned from the system but if they are, by chance, later overwritten by a package update.

The following patch for fixlafiles.awk fixes that behavior. It relies on an helper script that searches which are the packages owning the modified files, and update their mtime/md5 values in their /var/db/pkg "CONTENTS" records.

CCing dev-portage@ because they are probably better placed to comment on the basic idea and the python side of the implementation.
Comment 1 TGL 2005-04-27 05:33:51 UTC
Created attachment 57381 [details, diff]
fixlafiles.awk--fix_CONTENTS.patch

This is the patch for fixlafiles.awk. It has been made against the version from
gcc-3.4.3.20050110-r2.
Comment 2 TGL 2005-04-27 05:34:51 UTC
Created attachment 57382 [details]
fix_contents

And this is the python helper script.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-04-27 06:22:34 UTC

*** This bug has been marked as a duplicate of 71265 ***