Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120754 - ati-drivers-extra fails to unpack
Summary: ati-drivers-extra fails to unpack
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
: 120814 120862 120864 120974 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-28 11:41 UTC by Michael Zeising
Modified: 2006-11-10 12:36 UTC (History)
9 users (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 Michael Zeising 2006-01-28 11:41:27 UTC
emerge fails with the following messages:

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.15-gentoo-r1
>>> Unpacking source...
 * Unpacking Ati drivers ...                                              [ !! ]
!!! ERROR: x11-apps/ati-drivers-extra-8.21.7 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_unpack
  ebuild.sh, line 694:   Called src_unpack

!!! unpack failed
!!! If you need support, post the topmost build error, and the call stack if relevant.


emerge --info:

Portage 2.1_pre4 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Turion(tm) 64 Mobile Technology MT-30
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -m3dnow -msse -msse2 -msse3 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -mmmx -m3dnow -msse -msse2 -msse3 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acpi alsa apm arts asf avi berkdb bitmap-fonts browserplugin cdr crypt dri dts dvd dvdr eds emboss encode ffmpeg flac foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 java jpeg kqemu libg++ libwww mad mikmod mmx mmxext motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis openal opengl oss pam pdflib perl png python qt quicktime readline real rtc sdl spell sse sse2 ssl svg tcpd threads truetype truetype-fonts type1-fonts unicode usb userlocales vorbis win32codecs xine xml2 xv xvid zlib elibc_glibc kernel_linux linguas_de userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Dimitar Kosev 2006-01-28 13:39:32 UTC
Seems same problem here...

*     2.6.15-gentoo-r1
>>> Unpacking source...
 * Unpacking Ati drivers ...                                                                                          [ !! ]

!!! ERROR: x11-apps/ati-drivers-extra-8.21.7 failed.
!!! Function src_unpack, Line 31, Exitcode 1
!!! unpack failed

Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -pipe -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -pipe -O2"
DISTDIR="/mnt/data/distfiles/"
FEATURES="autoconfig buldpkg ccache deep distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.itdnet.net/gentoo/"
PKGDIR="/mnt/packages/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d a52 aac alsa apache2 apm arts audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr crypt css cups curl dba dga dri dvd dvdr dvdread eds emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran freetds gd gdbm gif gkrellm glut gmp gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib java jpeg junit kde lcms libg++ libwww lirc lm_sensors logitech-mouse mad mhash mikmod mmap mmx mmxext mng motif mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin ogg oggvorbis opengl oss pam pcre pdflib perl php png python qt quicktime readline real rrdtool ruby samba sdl sndfile snmp spell sse ssl svg tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb v4l v4l2 vorbis win32codecs x86 xine xml xml2 xv xvid zeroconf zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 2 Joël 2006-01-28 15:13:12 UTC
Hi folks,

Please try this patch on the ebuild:

--- ati-drivers-extra-8.21.7.ebuild.orig     2006-01-28 16:06:13.000000000 +0100
+++ ati-drivers-extra-8.21.7.ebuild     2006-01-29 00:11:13.000000000 +0100
@@ -27,7 +27,7 @@
        cd ${WORKDIR}

        ebegin "Unpacking Ati drivers"
-       sh ${DISTDIR}/${A} --extract ${WORKDIR} &> /dev/null
+       sh ${DISTDIR}/`echo ${A} | sed 's/\(.*\) .*/\1/'` --extract ${WORKDIR} &> /dev/null
        eend $? || die "unpack failed"

        mkdir -p ${WORKDIR}/extra
Comment 3 Joël 2006-01-28 15:17:01 UTC
By the way, I *think* the included files/fglrx_pp_proto.h is not needed anymore in this version.
Comment 4 Joël 2006-01-28 15:27:32 UTC
Strange..  with the modified ebuild in /usr/local/portage I get:

cp: cannot stat `/var/tmp/portage/ati-drivers-extra-8.21.7/distdir/fglrx_pp_proto.h': No such file or directory

same with fireglcontrol.desktop.

Do you see this too ? (this may be due to my portage 2.1_pre4)
Comment 5 Oliver Schoett 2006-01-29 03:00:49 UTC
Here is an analysis of the problem from http://forums.gentoo.org/viewtopic-p-3067748.html#3067748

In fact, the pb is that the var ${A} contains the list of the files downloaded and the ebuild doesn't take care of this.
so it tryied to execute ${DISTDIR}/${A} which is equal to '/usr/portage/distfiles/ati-driver-installer-8.21.7-i386.run ati-drivers-extra-8.19.10-improvements.patch.bz2' and not only '/usr/portage/distfiles/ati-driver-installer-8.21.7-i386.run' as it should be.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-01-29 06:34:54 UTC
*** Bug 120814 has been marked as a duplicate of this bug. ***
Comment 7 Rod 2006-01-29 13:35:14 UTC
(In reply to comment #4)

> 
> Do you see this too ? (this may be due to my portage 2.1_pre4)
> 

With sys-apps/portage-2.0.54 I also get that output.

* Applying ati-drivers-extra-8.19.10-improvements.patch.bz2 ...                                                     [ ok ]
cp: cannot stat `/usr/portage/distfiles/fglrx_pp_proto.h': No such file or directory
>>> Source unpacked.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-01-29 13:42:45 UTC
*** Bug 120862 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-01-29 13:45:12 UTC
Ditto for 8.20.8
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-01-29 14:09:01 UTC
*** Bug 120864 has been marked as a duplicate of this bug. ***
Comment 11 Luca Barbato gentoo-dev 2006-01-30 01:00:24 UTC
ops, sorry
Comment 12 Dimitar Kosev 2006-01-30 12:24:51 UTC
x11-apps/ati-drivers-extra-8.21.7 is now good for me, but 11-apps/ati-drivers-extra-8.20.8 still don't work. I can not use 8.21.7 cause it disables for some reason my usb
Comment 13 Jakub Moc (RETIRED) gentoo-dev 2006-01-30 13:21:30 UTC
*** Bug 120974 has been marked as a duplicate of this bug. ***
Comment 14 Péter Werner 2006-01-31 01:11:12 UTC
(In reply to comment #7)
> (In reply to comment #4)
> cp: cannot stat `/usr/portage/distfiles/fglrx_pp_proto.h': No such file or
> directory
> >>> Source unpacked.

1. The error is that ebuild uses ${DISTDIR} instead of ${FILES} (same with fireglcontrol.desktop)
2. After fixing cp still can't overwrite fglrx_pp_proto.h because it is read only.
3. fglrx_pp_proto.h is not needed, it is identical to the one it tries to overwrite
4. The ebuild does not recognise 3. as an error, so it can succeed.

The bottom line is that this ebuild is completely messed up.
Comment 15 Alex 2006-02-26 04:03:53 UTC
I have the same problem for ati-drivers-8.22.5. 

>>> checksums files   ;-) files/digest-ati-drivers-8.22.5
>>> checksums files   ;-) files/digest-ati-drivers-8.18.6
>>> checksums files   ;-) files/digest-ati-drivers-8.21.7
>>> checksums files   ;-) files/digest-ati-drivers-8.18.8
>>> checksums files   ;-) files/digest-ati-drivers-8.20.8
>>> checksums src_uri ;-) ati-driver-installer-8.22.5-i386.run
>>> checksums src_uri ;-) ati-driver-installer-8.22.5-x86_64.run
Determining the location of the kernel source code
 Found kernel source directory:
     /usr/src/linux
 Found sources for kernel version:
   2.6.16-rc3-nitro1
Checking for MTRR support enabled ...

Checking for AGP support enabled ...

Checking for DRM support disabled ...

X11 implementation is x11.
>>> Unpacking source...
Unpacking Ati drivers ...


!!! ERROR: x11-drivers/ati-drivers-8.22.5 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_unpack
  ebuild.sh, line 694:   Called src_unpack
Comment 16 Alex 2006-02-26 05:01:43 UTC
I forgot to mention that I'm running Gentoo ~amd64. I made some investigations and it seems that ${A}="ati-driver-installer-8.22.5-i386.run ati-driver-installer-8.22.5-x86_64.run". AFAIK Portage doesn't handle this well, but I may be wrong ... ${A} should be only "ati-driver-installer-8.22.5-x86_64.run" but this is not possible because the 64bit driver requires that the 32bit one be installed. This means that the ebuild needs some modifications to handle this situation properly.
Comment 17 Davor Cubranic 2006-04-22 19:31:22 UTC
(In reply to comment #16)
> I made some investigations and it seems that 
> ${A}="ati-driver-installer-8.22.5-i386.run
> ati-driver-installer-8.22.5-x86_64.run". AFAIK Portage doesn't handle this
> well, but I may be wrong ... ${A} should be only
> "ati-driver-installer-8.22.5-x86_64.run" but this is not possible because the
> 64bit driver requires that the 32bit one be installed. This means that the
> ebuild needs some modifications to handle this situation properly.

If both of them need to be installed (are you positive on this?), it may be possible to do a for loop over ${A}. How does one manually modify the ebuild? I'd be willing to give this a try, I'd really like to get proper 64-bit driver on my box too.
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 12:36:17 UTC
No reports for over 6 months, closing FIXED.