Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170245 - portgage fails to emerge ANY ebuild [patch]
Summary: portgage fails to emerge ANY ebuild [patch]
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-10 10:38 UTC by David Douard
Modified: 2007-04-18 03:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Douard 2007-03-10 10:38:14 UTC
Suddenly, portage as stopped (don't remember exactly when this happened and in whic context). It download an unpack nicely, apply patches, then just stop quietly after ">>> Source unpacked" line (command result (echo $?) is 1, but I ad no message).
After running an "emerge  -d portage" I finally found which line was provoquing the shell script error: there are 2 'export PWORKDIR="$WORKDIR"' lines in /usr/lib/portage/bin/ebuild.sh
I've replaced them with 'export PWORKDIR="${WORKDIR}"' and bingo! I can use my gentoo again.


Reproducible: Always

Steps to Reproduce:
1.emerge portage
2.
3.

Actual Results:  
stops after ">>> Source unpacked"


here is the patch:
--------------- cut here -----------------------------------------
--- ebuild.sh   2007-03-10 11:19:31.000000000 +0100
+++ ebuild.sh~  2007-03-10 11:18:42.000000000 +0100
@@ -966,7 +966,7 @@
        export S D
        #some packages use an alternative to $S to build in, cause
        #our libtool to create problematic .la files
-       export PWORKDIR="${WORKDIR}"
+       export PWORKDIR="$WORKDIR"
        vecho ">>> Compiling source in ${srcdir} ..."
        qa_call src_compile
        vecho ">>> Source compiled."
@@ -1056,7 +1056,7 @@
        export S D
        #some packages uses an alternative to $S to build in, cause
        #our libtool to create problematic .la files
-       export PWORKDIR="${WORKDIR}"
+       export PWORKDIR="$WORKDIR"
        qa_call src_install
        touch "${PORTAGE_BUILDDIR}/.installed"
        vecho ">>> Completed installing ${PF} into ${D}"
----------------------------------------------------
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2007-03-10 17:01:40 UTC
That makes no sense. That change shouldn't have any effect on anything. Both ways are proper syntax.
Comment 2 David Douard 2007-03-11 21:18:01 UTC
(In reply to comment #1)
> That makes no sense. That change shouldn't have any effect on anything. Both
> ways are proper syntax.
> 

I'm sorry about this response... It may make no sense, however, my system used to be useless before I did this simple correction, and now it works fine. Take it the way you want, that's a fact on my system (amd64 BTW).

I don't know if this actually comes from a bug from bash, or another strange side effect caveat, but things happened the way I told (in a very poor english with many typos and missing words, I must admit. Sorry about that).

This kind of reaction does not encourage me to try to help...

Yours,
Davis
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-03-11 21:36:41 UTC
And if you revert that change it breaks again?
It's just *very* hard to believe that this change has any effect.
Comment 4 Zac Medico gentoo-dev 2007-04-18 03:44:46 UTC
Something wrong with bash?