Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57233 - sys-apps/portage-2.0.51_pre13: `ebuild foo.ebuild unpack` does not unpack
Summary: sys-apps/portage-2.0.51_pre13: `ebuild foo.ebuild unpack` does not unpack
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: All All
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-15 15:03 UTC by Tuan Van (RETIRED)
Modified: 2005-02-28 00:46 UTC (History)
1 user (show)

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 Tuan Van (RETIRED) gentoo-dev 2004-07-15 15:03:36 UTC
`ebuild foo.ebuild unpack` does not unpack anything if /var/tmp/portage/${P} exist.

# pwd
/var/tmp/portage

# ls -lah
total 0
drwxr-xr-x   2 portage portage  48 Jul 15 15:11 .
drwxrwxrwt  10 root    root    312 Jul 15 14:15 ..

# ebuild /usr/portage/net-analyzer/traceroute/traceroute-1.4_p12-r2.ebuild setup
# ls -lah
total 0
drwxr-xr-x   4 portage portage 112 Jul 15 15:14 .
drwxrwxrwt  10 root    root    312 Jul 15 14:15 ..
drwxrws---   2 portage portage  48 Jul 15 15:14 homedir
drwxr-xr-x   3 portage portage  72 Jul 15 15:14 traceroute-1.4_p12-r2

# ebuild /usr/portage/net-analyzer/traceroute/traceroute-1.4_p12-r2.ebuild unpack
>>> md5 src_uri ;-) traceroute-1.4a12.tar.gz
>>> Unpacking source...
/usr/lib/portage/bin/ebuild.sh: line 25: cd: /var/tmp/portage/traceroute-1.4_p12-r2/work/traceroute-1.4a12: No such file or directory
 * Applying traceroute-1.4-target-resolv.patch...

 * Failed Patch: traceroute-1.4-target-resolv.patch!
 *
 * Include in your bugreport the contents of:
 *
 *   /var/tmp/portage/traceroute-1.4_p12-r2/temp/traceroute-1.4-target-resolv.patch-331.out


!!! ERROR: net-analyzer/traceroute-1.4_p12-r2 failed.
!!! Function epatch, Line 322, Exitcode 0
!!! Failed Patch: traceroute-1.4-target-resolv.patch!
!!! If you need support, post the topmost build error, NOT this status message.

# rm -rf traceroute-1.4_p12-r2/
# ebuild /usr/portage/net-analyzer/traceroute/traceroute-1.4_p12-r2.ebuild unpack
>>> md5 src_uri ;-) traceroute-1.4a12.tar.gz
>>> Unpacking source...
>>> Unpacking traceroute-1.4a12.tar.gz to /var/tmp/portage/traceroute-1.4_p12-r2/work
 * Applying traceroute-1.4-target-resolv.patch...                                    [ ok ]
>>> Source unpacked.
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2004-07-15 15:41:04 UTC
Why? I don't know, but here's the cause for those that do. :)

bash-2.05b# ebuild /usr/portage/net-analyzer/traceroute/traceroute-1.4_p12-r2.ebuild setup
bash-2.05b# head -n 1 traceroute-1.4_p12-r2/temp/environment
A=
bash-2.05b# grep unpack /usr/portage/net-analyzer/traceroute/traceroute-1.4_p12-r2.ebuild
src_unpack() {
        unpack ${A}
Comment 2 Rob Cakebread (RETIRED) gentoo-dev 2004-07-15 21:15:48 UTC
I'm having the same problem with an ebuild that I did a ebuild <path to ebuild> unpack. It also had a patch in src_unpack using epatch. Portage 2.0.51_pre13

head -n 1 /var/tmp/portage/gtkhtml-1.1.10-r1/temp/environment
A=

rm -rf /var/tmp/portage didn't help.

A user in the forums with portage-2.0.50-r9 is having the same problem.
Comment 3 Rob Cakebread (RETIRED) gentoo-dev 2004-07-15 22:07:34 UTC
If I delete ${A} in DISTFILES I can emerge the ebuild at least.
Comment 4 Brian Harring (RETIRED) gentoo-dev 2005-02-28 00:46:56 UTC
This is a .51_pre13 specific bug... works fine w/ >2.0.51-r0