Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51644 - UT2004 ebuild doesn't install on AMD64 correctly
Summary: UT2004 ebuild doesn't install on AMD64 correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Chris Gianelloni (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-21 06:20 UTC by Kris Kersey (RETIRED)
Modified: 2004-06-26 13:56 UTC (History)
2 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 Kris Kersey (RETIRED) gentoo-dev 2004-05-21 06:20:47 UTC
Made it past the DVD check correctly but now still doesn't install correctly on AMD64.  Here's the error:

 * Found CD #6 root at /mnt/cdrom0
 * Copying files from Disk 6...
install: cannot stat `/var/tmp/portage/ut2004-3204/work/System/libSDL-1.2.so.0': No such file or directory
install: cannot stat `/var/tmp/portage/ut2004-3204/work/System/openal.so': No such file or directory
install: cannot stat `/var/tmp/portage/ut2004-3204/work/System/ucc-bin': No such file or directory
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2004-05-21 06:39:25 UTC
Does it error after that?
Comment 2 Kris Kersey (RETIRED) gentoo-dev 2004-05-21 06:42:16 UTC
Sorry about that. Yeah:
!!! ERROR: games-fps/ut2004-3204 failed.
!!! Function src_install, Line 132, Exitcode 1
!!! copying libs/ucc
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2004-05-21 06:57:01 UTC
OK.  Apparently in my removal of the old "unofficial" patches from the ut2004 ebuild, I also removed 2 essential lines.  These have been added back (ebuild v1.3) and should fix the problems on both AMD64 and x86.  If there's still a problem, please reopen this bug.
Comment 4 Kris Kersey (RETIRED) gentoo-dev 2004-05-21 07:24:03 UTC
Here's a new one.  Sorry.

>>> Install ut2004-3204 into /var/tmp/portage/ut2004-3204/image/ category games-fps
 * Copying files from Disk 1...
 * Found CD #2 root at /mnt/cdrom0
 * Copying files from Disk 2...
 * Found CD #3 root at /mnt/cdrom0
 * Copying files from Disk 3...
 * Found CD #4 root at /mnt/cdrom0
 * Copying files from Disk 4...
 * Found CD #5 root at /mnt/cdrom0
 * Copying files from Disk 5...
 * Found CD #6 root at /mnt/cdrom0
 * Copying files from Disk 6...
 * Uncompressing files... this *will* take a while...

!!! ERROR: games-fps/ut2004-3204 failed.
!!! Function games_ut_unpack, Line 152, Exitcode 1
!!! uncompressing file 2K4_NvidiaIntro.ukx.uz2
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2004-05-21 07:59:01 UTC
Just checking, but you didn't run out of disk space, right?  This thing takes like 7-8GB to build.

Also, can you run it again with --debug and post the results here?
Comment 6 Kris Kersey (RETIRED) gentoo-dev 2004-05-21 08:30:46 UTC
18GB still available.  Here's the tail end of that output:

 * Uncompressing files... this *will* take a while...
+ return 0
+ games_ut_unpack /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations
+ local ut_unpack=/var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations
+ export UT_DATA_PATH=/var/tmp/portage/ut2004-3204/image///opt/ut2004/System
+ UT_DATA_PATH=/var/tmp/portage/ut2004-3204/image///opt/ut2004/System
+ cd /var/tmp/portage/ut2004-3204/image///opt/ut2004/System
+ LD_LIBRARY_PATH=.::
+ '[' -z /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations ']'
+ '[' -f /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations ']'
+ '[' -d /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations ']'
++ find /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations -name '*.uz*' -printf '%f '
+ ./ucc-bin decompress /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations/2K4_NvidiaIntro.ukx.uz2 --nohomedir
+ diefunc games_ut_unpack 152 1 'uncompressing file 2K4_NvidiaIntro.ukx.uz2'
+ local funcname=games_ut_unpack lineno=152 exitcode=1
+ shift 3
+ echo

+ echo '!!! ERROR: games-fps/ut2004-3204 failed.'
!!! ERROR: games-fps/ut2004-3204 failed.
+ echo '!!! Function games_ut_unpack, Line 152, Exitcode 1'
!!! Function games_ut_unpack, Line 152, Exitcode 1
+ echo '!!! uncompressing file 2K4_NvidiaIntro.ukx.uz2'
!!! uncompressing file 2K4_NvidiaIntro.ukx.uz2
+ echo

+ exit 1
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2004-05-21 08:49:09 UTC
Do you have a /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations/2K4_NvidiaIntro.ukx.uz2 file?
Comment 8 Kris Kersey (RETIRED) gentoo-dev 2004-05-21 08:53:06 UTC
augustus@glacier Incoming $ ls -l /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations/2K4_NvidiaIntro.ukx.uz2 
-r-xr-xr-x  1 root root 1775910 May 21 11:22 /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations/2K4_NvidiaIntro.ukx.uz2
Comment 9 Tamran Lengyel 2004-05-23 17:49:55 UTC
Here's what I get every single time:

gen2 ut2004 # emerge ut2004
Calculating dependencies ...done!
>>> emerge (1 of 1) games-fps/ut2004-3204 to /
>>> md5 src_uri ;-) ut2004-lnxpatch3204.tar.bz2
 * Do you accept the terms of this license (ut2003)? [yes/no] yes
 * The installed game takes about 6.8GB of space!
 * Found CD #1 root at /root/ut2004/cd1
>>> Unpacking source...
>>> Unpacking linux-installer.sh to /var/tmp/portage/ut2004-3204/work
amd64
>>> Unpacking ut2004-lnxpatch3204.tar.bz2 to /var/tmp/portage/ut2004-3204/work
>>> Source unpacked.
nostrip

>>> Install ut2004-3204 into /var/tmp/portage/ut2004-3204/image/ category games-fps
 * Copying files from Disk 1...
 * Found CD #2 root at /root/ut2004/cd2
 * Copying files from Disk 2...
 * Found CD #3 root at /root/ut2004/cd3
 * Copying files from Disk 3...
 * Found CD #4 root at /root/ut2004/cd4
 * Copying files from Disk 4...
 * Found CD #5 root at /root/ut2004/cd5
 * Copying files from Disk 5...
 * Found CD #6 root at /root/ut2004/cd6
 * Copying files from Disk 6...
 * Uncompressing files... this *will* take a while...

!!! ERROR: games-fps/ut2004-3204 failed.
!!! Function games_ut_unpack, Line 152, Exitcode 127
!!! uncompressing file intro_nikoli.ukx.uz2
Comment 10 Tamran Lengyel 2004-05-23 18:17:14 UTC
Here's something interesting also.  See lines 141 and 142 of the ebuild:

	for j in {Animations,Maps,Sounds,StaticMeshes,Textures} ; do
		games_ut_unpack ${Ddir}/${j} || die "uncompressing files"

If you remove Animations from that list, it fails on the first file in Maps.  Go on from there and it keeps failing ... which leads me to believe there's something wrong with the operation "do games_ut_unpack".  All the files in the directories listed above have the following mode (same with the directories themselves):
          -r-xr-xr-x
Does this have anything to do with it?  These directories don't look writable to me.  Also, where does "do games_ut_unpack" come from?  Is that something from nvidia or built into portage somehow?  Just wondering.

Tamran



Comment 11 merwan kashouty 2004-05-24 09:37:25 UTC
i am getting the same error too ,
 
* Found CD #1 root at /home/rommel/cd1
>>> Unpacking source...
>>> Unpacking linux-installer.sh to /var/tmp/portage/ut2004-3204/work
amd64
>>> Unpacking ut2004-lnxpatch3204.tar.bz2 to /var/tmp/portage/ut2004-3204/work
>>> Source unpacked.
nostrip
 
>>> Install ut2004-3204 into /var/tmp/portage/ut2004-3204/image/ category games-fps
 * Copying files from Disk 1...
 * Found CD #2 root at /home/rommel/cd2
 * Copying files from Disk 2...
 * Found CD #3 root at /home/rommel/cd3
 * Copying files from Disk 3...
 * Found CD #4 root at /home/rommel/cd4
 * Copying files from Disk 4...
 * Found CD #5 root at /home/rommel/cd5
 * Copying files from Disk 5...
 * Found CD #6 root at /home/rommel/cd6
 * Copying files from Disk 6...
 * Uncompressing files... this *will* take a while...
 
!!! ERROR: games-fps/ut2004-3204 failed.
!!! Function games_ut_unpack, Line 152, Exitcode 127
!!! uncompressing file intro_nikoli.ukx.uz2

____________________________________________________________________________________________________
Portage 2.0.50-r6 (default-amd64-2004.0, gcc-3.4.0, glibc-2.3.3_pre20040420-r1, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 x86_64 5
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -O2 -pipe -fweb -ftracer"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe -fweb -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apm arts avi berkdb cdrw crypt dvd dvr encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde libg++ libwww mikmod motif mozilla mpeg ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl tcpd truetype xml2 xmms xv zlib"

Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2004-05-24 09:53:18 UTC
What happens if you insert a:

chmod -R u+w ${j} || die "chmod in uncompress"

in the for loop between lines 141 and 142?  Does it make a difference?

Also, please post the command line you're actually running to emerge the game, I just want to make sure I'm not getting an error somewhere else.
Comment 13 aleX Kiausch 2004-05-25 05:29:42 UTC
change line 142 to:  chmod -R u+w ${Ddir}/${j} || die "chmod in uncompress"

works better
Comment 14 aleX Kiausch 2004-05-25 05:40:58 UTC
After all this worked:
USE_DVD=1 FEATURES="-buildpkg" emerge /usr/portage/games-fps/ut2004/ut2004-3204.ebuild
Comment 15 Chris Gianelloni (RETIRED) gentoo-dev 2004-05-25 06:16:21 UTC
I made the change in CVS already.

Please use version 1.6 of the ebuild which is now in CVS.
Comment 16 merwan kashouty 2004-06-01 07:35:39 UTC
hey using the latest ebuild , 1.7 , 

JaiBaba root # emerge ut2004
Calculating dependencies ...done!
>>> emerge (1 of 1) games-fps/ut2004-3204 to /
>>> md5 src_uri ;-) ut2004-lnxpatch3204.tar.bz2
 * Do you accept the terms of this license (ut2003)? [yes/no] yes
 * The installed game takes about 6.8GB of space!
 * This package will need access to 6 cds.

 * If you do not have the CDs, but have the data files
 * mounted somewhere on your filesystem, just export
 * the following variables so they point to the right place:
 *  CD_ROOT_1 CD_ROOT_2 CD_ROOT_3 CD_ROOT_4 CD_ROOT_5 CD_ROOT_6
 * Or, if you have all the files in the same place, or
 * you only have one cdrom, you can export CD_ROOT
 * and that place will be used as the same data source
 * for all the CDs.

 * Found CD #1 root at /home/rommel/UT24K_iso/cd1
>>> Unpacking source...
>>> Unpacking linux-installer.sh to /var/tmp/portage/ut2004-3204/work
amd64
>>> Unpacking ut2004-lnxpatch3204.tar.bz2 to /var/tmp/portage/ut2004-3204/work
>>> Source unpacked.
nostrip

>>> Install ut2004-3204 into /var/tmp/portage/ut2004-3204/image/ category games- fps
 * Copying files from Disk 1...
 * Found CD #2 root at /home/rommel/UT24K_iso/cd2
 * Copying files from Disk 2...
 * Found CD #3 root at /home/rommel/UT24K_iso/cd3
 * Copying files from Disk 3...
 * Found CD #4 root at /home/rommel/UT24K_iso/cd4
 * Copying files from Disk 4...
 * Found CD #5 root at /home/rommel/UT24K_iso/cd5
 * Copying files from Disk 5...
 * Found CD #6 root at /home/rommel/UT24K_iso/cd6
 * Copying files from Disk 6...
 * Uncompressing files... this *will* take a while...

!!! ERROR: games-fps/ut2004-3204 failed.
!!! Function games_ut_unpack, Line 152, Exitcode 1
!!! uncompressing file intro_nikoli.ukx.uz2

Comment 17 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-01 08:17:07 UTC
reopening... alex had said that it works, but it appears that it still doesn't?

It looks like the ucc-bin is broken on amd64... which sucks... I've been working with some of the i.o guys to get it fixed possibly...
Comment 18 aleX Kiausch 2004-06-05 14:03:17 UTC
aleX made a mistake ... sorry guys ... he installed on athlon64 but on his 32-bit Gentoo ... so it installed on 32 but I also get:
* Copying files from Disk 6...
 * Uncompressing files... this *will* take a while...
 
!!! ERROR: games-fps/ut2004-3204 failed.
!!! Function games_ut_unpack, Line 152, Exitcode 1
!!! uncompressing file 2K4_NvidiaIntro.ukx.uz2

on my 64 Gentoo Linux
Comment 19 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-05 14:14:00 UTC
That explains a lot... :P

I'll see what I can come up with... I am actually going to be re-installing my system as AMD64 in the next few days... so I should have this resolved soon enough.
Comment 20 Ryan C. Gordon 2004-06-25 23:19:27 UTC
Guys, please don't spawn ucc-bin to uncompress EVERY file.

uz2 is a dirt-simple format. It's basically zlib with a few bytes in between eachc block.

Here's some C code to uncompress a uz2:
http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?42:mss:1013:200406:kikgppboefcimdbadcdo

Please use that however you see fit, but you can use it to workaround this bug, and probably make the install significantly faster, too.

--ryan.
Comment 21 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-26 06:40:45 UTC
Thanks a ton, Ryan!

I'll get this added into portage and hopefully get this going this weekend.
Comment 22 Chris Gianelloni (RETIRED) gentoo-dev 2004-06-26 08:55:32 UTC
This should be fixed now.  I've added uz2unpack to portage, changed the eclass to use it, and also have updated both the ut2003 and ut2004 ebuilds.
Comment 23 merwan kashouty 2004-06-26 13:56:44 UTC
works great on my amd64 boxen... thank you and ryan