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

Bug 90608

Summary: fix_libtool_files.sh: avoid creating orphans files
Product: Gentoo Linux Reporter: TGL <tom.gl>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED DUPLICATE    
Severity: normal CC: dev-portage
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fixlafiles.awk--fix_CONTENTS.patch
fix_contents

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 ***