First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 44712
Alias:
Product:
Component:
Status: RESOLVED
Resolution: DUPLICATE of bug 48377
Assigned To: George Shapovalov <george@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Mr. Bones. <mr_bones_@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
readonly list of ebuilds that assign to portage's read-only variables text/plain Mr. Bones. 2004-03-14 16:47 0000 9.15 KB Details
readonly updated list text/plain Mr. Bones. 2004-03-14 19:41 0000 6.26 KB Details
readonly updated list text/plain Mr. Bones. 2004-03-15 22:54 0000 4.35 KB Details
readonly again with the updated list. text/plain Mr. Bones. 2004-03-16 23:53 0000 3.34 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 44712 depends on: 44503 44504 44505 44506 44507 Show dependency tree
Show dependency graph
Bug 44712 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

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







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


Description:   Opened: 2004-03-14 16:46 0000
Here's a list of ebuilds that assign to portage's read-only variables.

------- Comment #1 From Mr. Bones. 2004-03-14 16:47:25 0000 -------
Created an attachment (id=27383) [edit]
list of ebuilds that assign to portage's read-only variables

------- Comment #2 From Seemant Kulleen (RETIRED) 2004-03-14 17:14:50 0000 -------
first set of CC's -- teams can you fix up your respective ebuilds and then
remove yourselves from cc list

------- Comment #3 From Mamoru KOMACHI (RETIRED) 2004-03-14 17:29:04 0000 -------
Fixed - app-emacs/elib and app-emacs/proofgeneral.

------- Comment #4 From Spider (RETIRED) 2004-03-14 17:34:48 0000 -------
gnome-base/gconf fixed

------- Comment #5 From Spider (RETIRED) 2004-03-14 17:35:14 0000 -------
adding myself to CC due to QA

------- Comment #6 From Seemant Kulleen (RETIRED) 2004-03-14 17:37:20 0000 -------
udftools fixed

------- Comment #7 From Seemant Kulleen (RETIRED) 2004-03-14 17:54:37 0000 -------
adding mobile for pcmcia-cs

------- Comment #8 From Seemant Kulleen (RETIRED) 2004-03-14 17:56:02 0000 -------
added lu_Zero for bochs and lolo for dinero

------- Comment #9 From Seemant Kulleen (RETIRED) 2004-03-14 17:57:59 0000 -------
matsuu, please don't use dosed in src_compile for nbench

------- Comment #10 From Seemant Kulleen (RETIRED) 2004-03-14 18:00:49 0000 -------
gtk-systrace fixed

------- Comment #11 From Seemant Kulleen (RETIRED) 2004-03-14 18:01:41 0000 -------
added zul for net-irc stuff

------- Comment #12 From Seemant Kulleen (RETIRED) 2004-03-14 18:06:13 0000 -------
bochs is fixed

------- Comment #13 From Brad Cowan (RETIRED) 2004-03-14 18:13:50 0000 -------
ratpoison fixed

------- Comment #14 From Seemant Kulleen (RETIRED) 2004-03-14 18:21:15 0000 -------
wow the three avr- things were DISGUSTING.  Absolute rubbish.  Whoever did
those, needs to go back and learn how to create ebuilds.  Whoever checked them
in could use a lesson in ebuilding as well. /me goes to take a shower now.

avr-binutils, avr-gcc and avr-libc are fixed, HOWEVER, I am NOT convinced ONE
BIT that they are even necessary to have in portage at all.

------- Comment #15 From George Shapovalov 2004-03-14 18:32:19 0000 -------
Ok, sometimes this is the easiest on the only "reasonable" way to go, given
certain precautions are taken, as some packages have interesting ideas on how
to use variables before they define them (for example :)).

dev-lang/gpc:
its a construct of the form:
    SAVEP="${P}"
    unset P

    econf ...
    ...

    P="${SAVEP}"

All thew wrapping is done inside single function, so P is preserved as far as
portage is concerned.

Same story for sys-cluster/mpich...
And these seem to be the only two that I could relate to myself.
Removing myself from CC as seemant requested, but if I missed something please
readd..

George

------- Comment #16 From Jeremy Huddleston 2004-03-14 18:50:34 0000 -------
media-{sound,libs} packages cleaned up

------- Comment #17 From Peter Johanson (RETIRED) 2004-03-14 19:00:42 0000 -------
pcmcia-cs-{tools,drivers} fixed.

------- Comment #18 From Seemant Kulleen (RETIRED) 2004-03-14 19:01:33 0000 -------
george, I think MY_P is a better way to go, than to redefine P

all ebuild docs explicitly state that P and other such portage variables are not to be redefined.  can you fix please?

------- Comment #19 From solar 2004-03-14 19:07:38 0000 -------
Removing the hardened herd.. hardened-gcc is maintained by pappy@gentoo 
( adding to CC: )
Add hardened back if I missed something on that list and it belongs to us.

------- Comment #20 From Mr. Bones. 2004-03-14 19:41:37 0000 -------
Created an attachment (id=27387) [edit]
updated list

------- Comment #21 From MATSUU Takuto 2004-03-14 20:01:17 0000 -------
nbench fixed.

------- Comment #22 From Seemant Kulleen (RETIRED) 2004-03-14 20:11:17 0000 -------
just fixed ical

------- Comment #23 From Seemant Kulleen (RETIRED) 2004-03-14 20:13:17 0000 -------
for the baselayout one, we'll need Nick's input, because the assignment was
done to make baselayout packageable as a tbz2

------- Comment #24 From Seemant Kulleen (RETIRED) 2004-03-14 20:14:39 0000 -------
Adding pvdabeel so that he can fix dev-libs/dv* and also add metadata.xml files

------- Comment #25 From Seemant Kulleen (RETIRED) 2004-03-14 20:15:37 0000 -------
adding emacs herd back, for dev-util/cscope

------- Comment #26 From Seemant Kulleen (RETIRED) 2004-03-14 20:18:07 0000 -------
avenj and zul for some of the net-irc stuff

------- Comment #27 From Jon Portnoy (RETIRED) 2004-03-14 20:32:09 0000 -------
Fixed ninja.

------- Comment #28 From Mr. Bones. 2004-03-15 01:59:22 0000 -------
I fixed net-print/poster

------- Comment #29 From Mr. Bones. 2004-03-15 02:05:57 0000 -------
added jhhudso@gentoo.org for net-misc/aria

------- Comment #30 From Chuck Short (RETIRED) 2004-03-15 04:03:43 0000 -------
oer-mysql is fixed.

------- Comment #31 From Mr. Bones. 2004-03-15 14:24:10 0000 -------
fixed dev-util/xmingw*

------- Comment #32 From Mamoru KOMACHI (RETIRED) 2004-03-15 22:39:48 0000 -------
dev-util/cscope is fixed.

------- Comment #33 From Mr. Bones. 2004-03-15 22:54:49 0000 -------
Created an attachment (id=27436) [edit]
updated list

------- Comment #34 From Mr. Bones. 2004-03-15 22:56:38 0000 -------
rphillips@gentoo.org for bashburn

------- Comment #35 From Seemant Kulleen (RETIRED) 2004-03-15 23:09:32 0000 -------
fixed jmeter and realplayer

------- Comment #36 From Spider (RETIRED) 2004-03-15 23:37:37 0000 -------
I think realplayer should just be removed from the tree as things stand

------- Comment #37 From Mr. Bones. 2004-03-15 23:43:46 0000 -------
sed -i \
     -e 's/\$(P)//' `find . -type f | xargs grep -l '\$(P)'` \
         || die "sed failed"

should fix mpich

------- Comment #38 From Mr. Bones. 2004-03-16 00:02:19 0000 -------
fixed dev-db/dbbalancer

------- Comment #39 From Aron Griffis (RETIRED) 2004-03-16 12:00:41 0000 -------
Regarding comment 37, please use something more safe, such as

grep -frlZ '$(P)' | xargs -0 sed -i -e 's/\$(P)//'

This avoids issues such as spaces/quotes in filenames and argv limitations.

------- Comment #40 From Aron Griffis (RETIRED) 2004-03-16 12:03:52 0000 -------
Rather grep -FrlZ '$(P)' . | xargs -0 sed -i -e 's/\$(P)//'

------- Comment #41 From Chris Aniszczyk (RETIRED) 2004-03-16 21:33:26 0000 -------
dev-java/* taken care of

------- Comment #42 From Mr. Bones. 2004-03-16 23:53:16 0000 -------
Created an attachment (id=27508) [edit]
again with the updated list.

------- Comment #43 From Seemant Kulleen (RETIRED) 2004-03-16 23:56:11 0000 -------
qiv fixed

------- Comment #44 From Seemant Kulleen (RETIRED) 2004-03-17 00:08:21 0000 -------
aria fix0red

------- Comment #45 From Seemant Kulleen (RETIRED) 2004-03-17 00:13:02 0000 -------
bashburn fixed

------- Comment #46 From Seemant Kulleen (RETIRED) 2004-03-17 00:57:13 0000 -------
subversion fixed

------- Comment #47 From Seemant Kulleen (RETIRED) 2004-03-17 01:06:36 0000 -------
dev-libs/dv* taken care of

------- Comment #48 From Seemant Kulleen (RETIRED) 2004-03-17 01:16:52 0000 -------
fixed baselayout, please don't kill me Az

------- Comment #49 From Mr. Bones. 2004-03-17 01:30:55 0000 -------
Fixed mpich.  thanks to spyderous for the moral support and agriffis for the
grep | sed fix.

------- Comment #50 From Seemant Kulleen (RETIRED) 2004-03-17 01:37:08 0000 -------
fixed hardened-gcc

------- Comment #51 From Mr. Bones. 2004-03-17 01:49:20 0000 -------
narrowing the cc list now that most are fixed.

------- Comment #52 From Mr. Bones. 2004-03-17 01:50:33 0000 -------
added george for gpc

------- Comment #53 From Mr. Bones. 2004-03-17 01:59:20 0000 -------
Here are the remaining ebuilds:

dev-java/blackdown-jre/blackdown-jre-1.4.2_rc1.ebuild: Readonly variable assignment to A on line 24
dev-java/blackdown-jre/blackdown-jre-1.4.2_rc1.ebuild: Readonly variable assignment to A on line 27
dev-java/blackdown-jre/blackdown-jre-1.4.2_rc1.ebuild: Readonly variable assignment to A on line 30
dev-java/blackdown-jre/blackdown-jre-1.4.2_rc1.ebuild: Readonly variable assignment to A on line 33
dev-lang/gpc/gpc-2.1.ebuild: Readonly variable assignment to P on line 26
dev-lang/gpc/gpc-20030209.ebuild: Readonly variable assignment to P on line 99

------- Comment #54 From George Shapovalov 2004-03-17 02:59:49 0000 -------
>george, I think MY_P is a better way to go, than to redefine P
Seemant: its not that I need to use the modified $P somewhere, its that the *existance* of P at that very point breaks package build scripts (they use it internally).
If you've read my comment, you see that I am just cleanly wrapping $P around few configure/make calls (saving and unsetting P before and restoring P later), all *within the same function*, so that portage *does not even see that I do it*. And yea, I did it this way on purpose, exactly to avoid breakage we are worried about in this bug (otherwise I would have to do heavy patching on Makefiles, etc.)...

Mr. Bones:
see my comment #15. I took care of that when I was modifying these ebuilds in the first place (so it never was an issue). That's the same situation for both dev-lang/gpc and sys-cluster/mpich.

George

------- Comment #55 From Mr. Bones. 2004-03-17 04:56:43 0000 -------
I read your comment from before, but I disagree that wrapping the build process
in the unset P code is the way to go.  I fixed sys-cluster/mpich and I
belive gpc should be patched as well to not use P or to use it correctly
in the build process.

------- Comment #56 From George Shapovalov 2004-03-17 14:12:19 0000 -------
Well, I agree that, given the way portage deals with env vars this would be the
better way to go. (although I keep my position, that it would be better if
portage would have done pre-expansion of its own env vars before passing
ebuilds to bash. That seems a more "correct" way to go, than polluting local
environmant. (Vars defined in the ebuild are Ok either way) But this is the way
it is now, so we have to deal with it.)

Although in the case of gpc the "fix" will not be right away since
1. strictly speaking the ebuild is not broken
2. it is a low priority one and I have a more urgent issues on my hands right
now (and the fix does not seem to be trivial).
But its on my TODO list, so I'll get to it eventually..

George

------- Comment #57 From Mr. Bones. 2004-03-17 22:37:20 0000 -------
dev-java/blackdown-jre has been fixed by zx.

------- Comment #58 From Mr. Bones. 2004-03-17 22:51:50 0000 -------
dev-lang/gpc is the only package in portage that does this now so I'm changing
the summary and and passing it off to george to get it off the wrangler list.

------- Comment #59 From George Shapovalov 2004-06-11 18:19:25 0000 -------
Marking this as a dup. Will be tracking this package via #48377

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

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