Summary: | [BUGFIX] New fixlafile.awk rewrited in python | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Simone Gotti (RETIRED) <motaboy> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED WONTFIX | ||
Severity: | major | CC: | askwar, brebs, caleb, carlo, darkstalker, evan.teran, flash3001, gentoo-bugs, greg_g, gshimansky, jwagoner, m.debruijne, m, mr_bones_, rhill, rockoo, s.roa, sven.koehler, tom.gl, wiebe, wmilkowski |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 73435 | ||
Attachments: |
/usr/lib/portage/bin/fixlafiles.py
portage_contents.py-20041114-01.patch fix_libtool_files.sh.patch fixlafiles.py portage_contents.py-20041125-01.patch (alternative fix) fix_contents (alternative fix) fixlafiles.awk--fix_CONTENTS.patch fix_libtool_files.sh.patch |
Description
Simone Gotti (RETIRED)
2004-11-15 02:42:04 UTC
Created attachment 43982 [details]
/usr/lib/portage/bin/fixlafiles.py
Created attachment 43983 [details, diff]
portage_contents.py-20041114-01.patch
Created attachment 43984 [details, diff]
fix_libtool_files.sh.patch
Created attachment 44757 [details]
fixlafiles.py
Better script, remove all the bashism, updated the CONTENTS only if the md5 and
mtime registered in the CONTENTS are the same of the file.
Created attachment 44758 [details, diff]
portage_contents.py-20041125-01.patch
Now the contentsManager class can also act as a dict.
Uses the same CONTENTS parsing used in portage.py.
*** Bug 64112 has been marked as a duplicate of this bug. *** *** Bug 75850 has been marked as a duplicate of this bug. *** *** Bug 75940 has been marked as a duplicate of this bug. *** *** Bug 78598 has been marked as a duplicate of this bug. *** *** Bug 79051 has been marked as a duplicate of this bug. *** *** Bug 84440 has been marked as a duplicate of this bug. *** *** Bug 87141 has been marked as a duplicate of this bug. *** *** Bug 90292 has been marked as a duplicate of this bug. *** *** Bug 90608 has been marked as a duplicate of this bug. *** Oops, sorry for having added to an already long list of duplicates... Anyway, since i've wrote my own solution now, i will re-attach it here. Don't get me wrong, i don't claim it's better than Simone's one... at the contrary, i can only welcome the idea of some awk to python rewriting :) But it has the benefit to be non-intrusive, so maybe it could be used as a temporary fix or something like that. Created attachment 57386 [details]
(alternative fix) fix_contents
This is an helper script to update the CONTENTS files.
Created attachment 57387 [details, diff]
(alternative fix) fixlafiles.awk--fix_CONTENTS.patch
And this is a small patch for the awk code to call it.
$ grep /lib/rcscripts/awk/fixlafiles.awk /var/db/pkg/*/*/CONTENTS /var/db/pkg/sys-devel/gcc-3.4.3.20050110-r2/CONTENTS:obj /lib/rcscripts/awk/fixlafiles.awk c8fd3851ccee57651e43cac458dba7c1 1113754816 Why is this assigned directly to portage? Toolchain, can these scripts be verified please? Created attachment 58311 [details, diff]
fix_libtool_files.sh.patch
original patch bit-rotted.
*** Bug 93306 has been marked as a duplicate of this bug. *** *** Bug 104443 has been marked as a duplicate of this bug. *** This is really a problem for users dealing with stale files, resulting e.g. in grep /usr/lib/libfoo.la: No such file or directory /bin/sed: can't read /usr/lib/libfoo.la: No such file or directory libtool: link: `/usr/lib/libfoo.la` is not a valid libtool archive. errors. This bug is now open for over a year, what holds us back to fix this? if this isn't getting looked at, could we at least get the current fix_libtool_files.sh to not touch mtimes or update the portage db with new mtimes & checksums? (bug #78597, bug #90292, and bug #87141) (In reply to comment #23) > mtimes & checksums? (bug #78597, bug #90292, and bug #87141) er, bug #78598 that is. What we do here is going to depend on what we decide with regards to bug #90744 we're getting rid of this stuff *** Bug 124980 has been marked as a duplicate of this bug. *** |