Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83093 - ut2004-data ebuild b0rks
Summary: ut2004-data ebuild b0rks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-23 10:56 UTC by merwan kashouty
Modified: 2005-02-24 19:56 UTC (History)
1 user (show)

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


Attachments
patch to change else/fi nesting (ut2004-data.patch,1.03 KB, patch)
2005-02-23 16:16 UTC, Calvin Walton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description merwan kashouty 2005-02-23 10:56:59 UTC
i am not patient today but this is just a poor ebuild... what and where is it expecting to find this stuff... i have mounted and exported the CD_ROOT for all the 6 cds... then i had to cp the linux-install.sh from cd1 to disfiles to get it past this error .....

# emerge -uD world
Calculating world dependencies ...done!
>>> emerge (1 of 3) games-fps/ut2004-data-3186 to /
>>> Unpacking source...

!!! ERROR: games-fps/ut2004-data-3186 failed.
!!! Function find_unpackable_file, Line 1055, Exitcode 0
!!! Could not find requested archive /linux-installer.sh
!!! If you need support, post the topmost build error, NOT this status message.

>>> Unpacking  to /var/tmp/portage/ut2004-data-3186/work


where it just hangs for eternity... then after cp'ing the sh to distfiles i get this....


 # emerge -uD world
Calculating world dependencies ...done!
>>> emerge (1 of 4) games-fps/ut2004-data-3186 to /
>>> Unpacking source...
>>> Unpacking linux-installer.sh to /var/tmp/portage/ut2004-data-3186/work
>>> Source unpacked.
>>> Test phase [not enabled]: games-fps/ut2004-data-3186

>>> Install ut2004-data-3186 into /var/tmp/portage/ut2004-data-3186/image/ category games-fps
 * Copying files from Disk 1...
cp: cannot stat `/Animations': No such file or directory
cp: cannot stat `/ForceFeedback': No such file or directory
cp: cannot stat `/Help': No such file or directory
cp: cannot stat `/KarmaData': No such file or directory
cp: cannot stat `/Maps': No such file or directory
cp: cannot stat `/Sounds': No such file or directory
cp: cannot stat `/Web': No such file or directory

!!! ERROR: games-fps/ut2004-data-3186 failed.
!!! Function src_install, Line 66, Exitcode 1
!!! copying files
!!! If you need support, post the topmost build error, NOT this status message.








Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Thomas Heinrichsdobler 2005-02-23 11:28:47 UTC
You need to 
export SETUP_CDROM=/mnt/cdrom
(or whatever your cd is mounted on) before you emerge ut2004. There needs to be a check integrated in the ebuild to handle this. afaik it's in the old ut2004 ebuild, maybe somebody should take a look there and put it in this ebuild, too.
Comment 2 merwan kashouty 2005-02-23 12:05:31 UTC
well i cant see why that would make any difference when i used export CD_ROOT_1=/home/rommel/ut2004/cd1 for example where cd1 was where the cd1.iso was mounted to. i had already used export to define each of the cd iso locations.
Comment 3 Calvin Walton 2005-02-23 16:05:51 UTC
It looks like the ebuild isn't doing the cdrom detection for regular cds, only for dvds? It appears to be a misplaced else branch?
Comment 4 Calvin Walton 2005-02-23 16:16:34 UTC
Created attachment 51998 [details, diff]
patch to change else/fi nesting

I've made a patch that appears to work for me, by changing the nesting of an
else branch.
Comment 5 merwan kashouty 2005-02-23 17:19:55 UTC
well your patch works but now i am getting an error i guess on uncompressing a file... there isnt too much to go on from emerge.



# emerge -uD world
Calculating world dependencies ...done!
>>> emerge (1 of 3) games-fps/ut2004-data-3186 to /
 * Found CD #1 root at /home/rommel/ut2004/cd1
>>> Unpacking source...
>>> Unpacking linux-installer.sh to /var/tmp/portage/ut2004-data-3186/work
>>> Source unpacked.
>>> Test phase [not enabled]: games-fps/ut2004-data-3186

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

!!! ERROR: games-fps/ut2004-data-3186 failed.
!!! Function games_ut_unpack, Line 179, Exitcode 4
!!! uncompressing file X_CliffTest.utx.uz2
!!! If you need support, post the topmost build error, NOT this status message.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-02-23 17:59:55 UTC
Actually, it needed to stay where it was *and* added where your patch put it.

emerge --sync and try again, as I've updated the ebuild...
Comment 7 merwan kashouty 2005-02-23 19:20:59 UTC
>>> emerge (1 of 3) games-fps/ut2004-data-3186 to /
 * 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.

 * For example:
 * export CD_ROOT_1=/mnt/cdrom

find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

 * Found CD #1 root at /home/rommel/ut2004/cd1
>>> Unpacking source...
>>> Unpacking linux-installer.sh to /var/tmp/portage/ut2004-data-3186/work
>>> Source unpacked.
>>> Test phase [not enabled]: games-fps/ut2004-data-3186

>>> Install ut2004-data-3186 into /var/tmp/portage/ut2004-data-3186/image/ category games-fps
 * Copying files from Disk 1...
find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

 * Found CD #2 root at /home/rommel/ut2004/cd2
 * Copying files from Disk 2...
find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

 * Found CD #3 root at /home/rommel/ut2004/cd3
 * Copying files from Disk 3...
find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

 * Found CD #4 root at /home/rommel/ut2004/cd4
 * Copying files from Disk 4...
find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

 * Found CD #5 root at /home/rommel/ut2004/cd5
 * Copying files from Disk 5...
find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

 * Found CD #6 root at /home/rommel/ut2004/cd6
 * Copying files from Disk 6...
ut2004-bin                       | 100% |    11 MiB |  1676 KiB/s | ETA 00:00.02 * Uncompressing files... this *will* take a while...

!!! ERROR: games-fps/ut2004-data-3186 failed.
!!! Function games_ut_unpack, Line 179, Exitcode 4
!!! uncompressing file X_CliffTest.utx.uz2
!!! If you need support, post the topmost build error, NOT this status message.

Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2005-02-24 05:53:31 UTC
So I changed absolutely nothing with the eclass and now you're having find problems?

Post your "emerge --info" and specifically your findutils version, as I get no such problems in testing on several machines.  Attach a copy of the emerge with --debug to this bug.
Comment 9 merwan kashouty 2005-02-24 19:56:38 UTC
chris i am not sure what happened but the find errors occured on two installs... actually one was a rsync of another.. but now the find errors no longer occur... it was either a reboot or rsync that fixed it? i have no idea. the failure to decompress that archive was a disk error... i had moved /opt /home and /var to another drive and it was apparently not handling it too well. sorry for all the crap and thanks for the help.