First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 214619
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Robin Johnson <robbat2@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
gmon.out.patch PORTAGE_BINPKG_TAR_OPTS implementation and $PWD tweaks patch Zac Medico 2008-03-29 06:04 0000 5.13 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 214619 depends on: Show dependency tree
Bug 214619 blocks: 216231
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-03-24 23:27 0000
Doing some work on my system having most of my system compiled with -pg,
Portage got to spewing collisions between all the gmon.out files that got
generated. Using INSTALL_MASK is insufficient, because the install mask
handling generates more gmon.out files ;-).

Could we please have a variable to pass custom options to the tar invocation in
dyn_package? This lets me pass --exclude as well as -X and anything else useful
(maybe options to preserve xattrs).

------- Comment #1 From Zac Medico 2008-03-28 05:31:21 0000 -------
Maybe PKG_INSTALL_MASK (which is already supported) will solve your problem
with the gmon.out files. Anyway, I'll do a patch to implement
PORTAGE_BINPKG_TAR_OPTS.

------- Comment #2 From Robin Johnson 2008-03-28 18:29:10 0000 -------
INSTALL_MASK/PKG_INSTALL_MASK aren't sufficent because it needs full pathes to
the files - AND the find invocation in install_mask() leaves gmon.out file of
it's own, because it runs from ${D}.

Changing it to run from ${T}, and changing the dyn_package tar to run from ${D}
as well might also be an improvement.

------- Comment #3 From Zac Medico 2008-03-29 05:45:59 0000 -------
Okay, preinst_mask() and dyn_package() (which process INSTALL_MASK and
PKG_INSTALL_MASK) are both called from ${T} now. Also, preinst_mask() is called
after all other functions so that INSTALL_MASK can be used to remove all
gmon.out files.

(In reply to comment #2)
> INSTALL_MASK/PKG_INSTALL_MASK aren't sufficent because it needs full pathes to
> the files

Here's how install mask works:

set -o noglob
for no_inst in ${install_mask}; do
        set +o noglob
        rm -Rf "${root}"/${no_inst} >&/dev/null
        find "${root}" -path "${no_inst}" -exec rm -fR {} \; >/dev/null
done

It seems like you should be able to use INSTALL_MASK="gmon.out */gmon.out" to
match all gmon.out files anywhere in ${D} (the first would work via rm and the
second would work via find -path).

------- Comment #4 From Zac Medico 2008-03-29 06:04:03 0000 -------
Created an attachment (id=147606) [details]
PORTAGE_BINPKG_TAR_OPTS implementation and $PWD tweaks

------- Comment #5 From Zac Medico 2008-04-04 22:24:23 0000 -------
This is fixed in 2.1.5_rc1.

First Last Prev Next    No search results available      Search page      Enter new bug