Summary: | Introduction of app-portage/epm-1.33 'declare ...' prefaced assignments in environment.bz2 prevents epm from identifying (key,value) pairs | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Carl Boe <cbcb> |
Component: | Third-Party Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoo.org, gentoo |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
epm patches for newer portage system
smaller patch to fix environment.bz2 handling smaller patch to fix environment.bz2 handling |
Description
Carl Boe
2010-03-21 05:25:21 UTC
Created attachment 225777 [details, diff]
epm patches for newer portage system
Rework so epm doesn't fail on envariables declared with '(declare( -x)? )?' which balks with 'unintialized value'
I was just going to file a bug on this with an included patch... Give it a try and let me know if this fixes it for you... One more thing, it appears that 'HOSTNAME' is not preserved in the build environment which is what epm keys off of to ascertain 'Build Host:' Here are my notes regarding that: #TT:Sun 21 Mar 2010 08:21:40 PM EDT Cannot fix the "Build Host" entry, as epm will look in: /var/db/**/environment.bz2 for the HOSTNAME envariable The HOSTNAME envariable is no longer available, and this changed between: 2.6.13 => 2.7.16 HOSTNAME is filtered out by: ebuild.sh::filter_readonly_variables() regardless if 'allow-extra-variables' is defined or not, as HOSTNAME is in bash_misc_vars (In reply to comment #2) Thanks. That patch worked better than my attempted hacks. I don't miss HOSTNAME. I have not tested extensively, but the patch produces expected output for the cases I use the most: epm -qa |grep foo # search among installed packages epm -Gqi foo # what group, URL, maintainer, install date for foo epm -ql foo # show all installed files for package foo Odd to have such perl code bridging rpm and emerge, two python arenas. Created attachment 226685 [details, diff]
smaller patch to fix environment.bz2 handling
I have created a smaller patch (just a 3 line change) to fix the issue.
I've attached it even when I'm a bit late.
Created attachment 226687 [details, diff]
smaller patch to fix environment.bz2 handling
patch fixed (extra HOMEPAGE/URL removed)
I can confirm that with it epm -qi finally does something useful again. It would be great if this patch would finally make it into Gentoo. The attached patches will fix this issue... bump issue so it gets another look over... Thanks for the patches. Fixed in epm-1.33-r1 |