<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>51644</bug_id>
          
          <creation_ts>2004-05-21 06:20 0000</creation_ts>
          <short_desc>UT2004 ebuild doesn&apos;t install on AMD64 correctly</short_desc>
          <delta_ts>2004-06-26 13:56:44 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>AMD64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>augustus@gentoo.org</reporter>
          <assigned_to>wolf31o2@gentoo.org</assigned_to>
          <cc>jestyr@bigpond.net.au</cc>
    
    <cc>mkashouty@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>augustus@gentoo.org</who>
            <bug_when>2004-05-21 06:20:47 0000</bug_when>
            <thetext>Made it past the DVD check correctly but now still doesn&apos;t install correctly on AMD64.  Here&apos;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&apos;: No such file or directory
install: cannot stat `/var/tmp/portage/ut2004-3204/work/System/openal.so&apos;: No such file or directory
install: cannot stat `/var/tmp/portage/ut2004-3204/work/System/ucc-bin&apos;: No such file or directory</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2004-05-21 06:39:25 0000</bug_when>
            <thetext>Does it error after that?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>augustus@gentoo.org</who>
            <bug_when>2004-05-21 06:42:16 0000</bug_when>
            <thetext>Sorry about that. Yeah:
!!! ERROR: games-fps/ut2004-3204 failed.
!!! Function src_install, Line 132, Exitcode 1
!!! copying libs/ucc</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2004-05-21 06:57:01 0000</bug_when>
            <thetext>OK.  Apparently in my removal of the old &quot;unofficial&quot; 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&apos;s still a problem, please reopen this bug.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>augustus@gentoo.org</who>
            <bug_when>2004-05-21 07:24:03 0000</bug_when>
            <thetext>Here&apos;s a new one.  Sorry.

&gt;&gt;&gt; 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
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2004-05-21 07:59:01 0000</bug_when>
            <thetext>Just checking, but you didn&apos;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?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>augustus@gentoo.org</who>
            <bug_when>2004-05-21 08:30:46 0000</bug_when>
            <thetext>18GB still available.  Here&apos;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=.::
+ &apos;[&apos; -z /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations &apos;]&apos;
+ &apos;[&apos; -f /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations &apos;]&apos;
+ &apos;[&apos; -d /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations &apos;]&apos;
++ find /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations -name &apos;*.uz*&apos; -printf &apos;%f &apos;
+ ./ucc-bin decompress /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations/2K4_NvidiaIntro.ukx.uz2 --nohomedir
+ diefunc games_ut_unpack 152 1 &apos;uncompressing file 2K4_NvidiaIntro.ukx.uz2&apos;
+ local funcname=games_ut_unpack lineno=152 exitcode=1
+ shift 3
+ echo

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

+ exit 1
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2004-05-21 08:49:09 0000</bug_when>
            <thetext>Do you have a /var/tmp/portage/ut2004-3204/image///opt/ut2004/Animations/2K4_NvidiaIntro.ukx.uz2 file?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>augustus@gentoo.org</who>
            <bug_when>2004-05-21 08:53:06 0000</bug_when>
            <thetext>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
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tamran.lengyel@gmail.com</who>
            <bug_when>2004-05-23 17:49:55 0000</bug_when>
            <thetext>Here&apos;s what I get every single time:

gen2 ut2004 # emerge ut2004
Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) games-fps/ut2004-3204 to /
&gt;&gt;&gt; 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
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking linux-installer.sh to /var/tmp/portage/ut2004-3204/work
amd64
&gt;&gt;&gt; Unpacking ut2004-lnxpatch3204.tar.bz2 to /var/tmp/portage/ut2004-3204/work
&gt;&gt;&gt; Source unpacked.
nostrip

&gt;&gt;&gt; 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
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tamran.lengyel@gmail.com</who>
            <bug_when>2004-05-23 18:17:14 0000</bug_when>
            <thetext>Here&apos;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 &quot;uncompressing files&quot;

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&apos;s something wrong with the operation &quot;do games_ut_unpack&quot;.  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&apos;t look writable to me.  Also, where does &quot;do games_ut_unpack&quot; come from?  Is that something from nvidia or built into portage somehow?  Just wondering.

Tamran



</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mkashouty@gmail.com</who>
            <bug_when>2004-05-24 09:37:25 0000</bug_when>
            <thetext>i am getting the same error too ,
 
* Found CD #1 root at /home/rommel/cd1
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking linux-installer.sh to /var/tmp/portage/ut2004-3204/work
amd64
&gt;&gt;&gt; Unpacking ut2004-lnxpatch3204.tar.bz2 to /var/tmp/portage/ut2004-3204/work
&gt;&gt;&gt; Source unpacked.
nostrip
 
&gt;&gt;&gt; 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=&quot;amd64 ~amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-march=k8 -O2 -pipe -fweb -ftracer&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
COMPILER=&quot;gcc3&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-march=k8 -O2 -pipe -fweb -ftracer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache sandbox&quot;
GENTOO_MIRRORS=&quot;http://gentoo.chem.wisc.edu/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2004-05-24 09:53:18 0000</bug_when>
            <thetext>What happens if you insert a:

chmod -R u+w ${j} || die &quot;chmod in uncompress&quot;

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

Also, please post the command line you&apos;re actually running to emerge the game, I just want to make sure I&apos;m not getting an error somewhere else.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>a.kiausch@hamburg.de</who>
            <bug_when>2004-05-25 05:29:42 0000</bug_when>
            <thetext>change line 142 to:  chmod -R u+w ${Ddir}/${j} || die &quot;chmod in uncompress&quot;

works better</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>a.kiausch@hamburg.de</who>
            <bug_when>2004-05-25 05:40:58 0000</bug_when>
            <thetext>After all this worked:
USE_DVD=1 FEATURES=&quot;-buildpkg&quot; emerge /usr/portage/games-fps/ut2004/ut2004-3204.ebuild</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2004-05-25 06:16:21 0000</bug_when>
            <thetext>I made the change in CVS already.

Please use version 1.6 of the ebuild which is now in CVS.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mkashouty@gmail.com</who>
            <bug_when>2004-06-01 07:35:39 0000</bug_when>
            <thetext>hey using the latest ebuild , 1.7 , 

JaiBaba root # emerge ut2004
Calculating dependencies ...done!
&gt;&gt;&gt; emerge (1 of 1) games-fps/ut2004-3204 to /
&gt;&gt;&gt; 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
&gt;&gt;&gt; Unpacking source...
&gt;&gt;&gt; Unpacking linux-installer.sh to /var/tmp/portage/ut2004-3204/work
amd64
&gt;&gt;&gt; Unpacking ut2004-lnxpatch3204.tar.bz2 to /var/tmp/portage/ut2004-3204/work
&gt;&gt;&gt; Source unpacked.
nostrip

&gt;&gt;&gt; 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

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2004-06-01 08:17:07 0000</bug_when>
            <thetext>reopening... alex had said that it works, but it appears that it still doesn&apos;t?

It looks like the ucc-bin is broken on amd64... which sucks... I&apos;ve been working with some of the i.o guys to get it fixed possibly...</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>a.kiausch@hamburg.de</who>
            <bug_when>2004-06-05 14:03:17 0000</bug_when>
            <thetext>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</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2004-06-05 14:14:00 0000</bug_when>
            <thetext>That explains a lot... :P

I&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ryan@epicgames.com</who>
            <bug_when>2004-06-25 23:19:27 0000</bug_when>
            <thetext>Guys, please don&apos;t spawn ucc-bin to uncompress EVERY file.

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

Here&apos;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.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2004-06-26 06:40:45 0000</bug_when>
            <thetext>Thanks a ton, Ryan!

I&apos;ll get this added into portage and hopefully get this going this weekend.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wolf31o2@gentoo.org</who>
            <bug_when>2004-06-26 08:55:32 0000</bug_when>
            <thetext>This should be fixed now.  I&apos;ve added uz2unpack to portage, changed the eclass to use it, and also have updated both the ut2003 and ut2004 ebuilds.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mkashouty@gmail.com</who>
            <bug_when>2004-06-26 13:56:44 0000</bug_when>
            <thetext>works great on my amd64 boxen... thank you and ryan</thetext>
          </long_desc>
      
    </bug>

</bugzilla>