Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25072 - sparc-sources-2.4.2* fails on unpack
Summary: sparc-sources-2.4.2* fails on unpack
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
Depends on:
Reported: 2003-07-22 11:45 UTC by Austin Frank
Modified: 2006-02-04 06:05 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Austin Frank 2003-07-22 11:45:54 UTC
Steps to Reproduce:
USE="-doc" emerge

Actual Results:
sparc-sources-2.4.20-r8 and sparc-sources-2.4.21 fail during unpack with the
following error:

>>> Unpacking source...
>>> Unpacking linux-2.4.21.tar.bz2 to /var/tmp/portage/sparc-sources-2.4.21/work
>>> Unpacking patches-2.4.21-sparc.tar.bz2 to
mv: cannot move `linux-2.4.21' to a subdirectory of itself,

!!! ERROR: sys-kernel/sparc-sources-2.4.21 failed.
!!! Function src_unpack, Line 35, Exitcode 1
!!! (no error message)

Expected Results:
kernel unpacks into proper directory in /usr/src/

In sparc-sources-2.4.21-r1.ebuild, I changed $KV to $OKV.  When I explicitly
emerge this ebuild, the kernel unpacked to /usr/src/linux-2.4.21-sparc-r1/
without errors.  The change to the ebuild was suggested by Latexer.
Comment 1 Pat Erley 2003-07-22 12:52:21 UTC
on line 9


should (?) be something like

KV="${PV}-sparc-r1" or the likes.

the problem is on line 39

mv linux-${OKV} linux-${KV} || die

is transalting to mv linux-2.4.21 linux-2.4.21/

which ends up trying to make something it's own child.

Comment 2 Christian Birchinger (RETIRED) gentoo-dev 2003-07-23 02:57:11 UTC
Does it work now? I changed the ebuild so it should work with the changed eclasses 
Comment 3 Austin Frank 2003-08-02 10:36:04 UTC
unpacks and builds correctly on my machine now.  cheers!
Comment 4 Joshua Kinard gentoo-dev 2003-08-03 02:25:56 UTC
Looks like the bug is fixed.  Closing.
Comment 5 Jason Wever (RETIRED) gentoo-dev 2003-08-17 07:42:01 UTC