Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 72468 - ut2004 (cdrom_get_cds) doesn't recognize DVD unless originally mounted
Summary: ut2004 (cdrom_get_cds) doesn't recognize DVD unless originally mounted
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-25 07:05 UTC by Tom Kirchner
Modified: 2006-04-22 08:10 UTC (History)
2 users (show)

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


Attachments
Just a FULL dir list of the DVD (ut2004dir.txt,177.50 KB, text/plain)
2005-01-05 11:37 UTC, Peter Canada
Details
Contains Video files and such. (ut2004bonusdir.txt,77.03 KB, text/plain)
2005-01-05 11:46 UTC, Peter Canada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Kirchner 2004-11-25 07:05:16 UTC
When emerging ut2004 (3339) the ebuild uses a couple tricks to find out whether we're using a UT DVD or CD set.  The problem (for DVD users) is that unless the DVD is inserted and mounted when starting the emerge, cdrom_get_cds receives bad info from the ebuild - DISKN is empty, so it searches for the files where they would be on the CD set.  The install then loops telling you to insert CD1, which can't work even if you insert and mount the DVD.

Unfortunately I'm not sure how this could be resolved without changing eutils.eclass, as cdrom_get_cds is just doing its job with the passed information in a while loop.  One possibility (since the emerge is interactive anyway) is if no CD/DVD is detected at the beginning of pkg_setup and CD_ROOT is unset to prompt the user to insert/mount the disc before continuing.  This would short-circuit cdrom_get_cds and work for DVDs, though it is a bit cheap.

emerge info at http://www.halffull.org/gentoo/emerge.info
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2004-11-25 08:38:33 UTC
I'll look into it, but don't expect it to be a high priority... *grin*
Comment 2 Peter Canada 2005-01-04 05:42:45 UTC
DOH...well the installer gets done CD3 and then can't find CD4......... dunno how to fix that..
Comment 3 Peter Canada 2005-01-04 05:43:46 UTC
btw this is on the DVD edition I can't seem to get it installed...perhaps an upgrade to critical....or maybe shoudl be a diff buig report
Comment 4 Peter Canada 2005-01-04 06:00:05 UTC
More info:
------------
>>> Source unpacked.
>>> Test phase [not enabled]: games-fps/ut2004-3339

>>> Install ut2004-3339 into /usr/var/tmp//portage/ut2004-3339/image/ category games-fps

* 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.

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

* Copying files from Disk 1...
* Found CD #2 root at /mnt/cdrom
* Copying files from Disk 2...
* Found CD #3 root at /mnt/cdrom
* Copying files from Disk 3...

* Please insert cd #4 for ut2004 now !
* Press return to scan for the cd again
* or hit CTRL+C to abort the emerge.
Comment 5 Peter Canada 2005-01-04 06:04:33 UTC
# ls /mnt/cdrom
0x0409.ini   CD3  CD7        UT2004 Editor's Choice Edition Mod Installer.msi  linux-installer.sh
AutoRun.inf  CD4  Data1.cab  ecesetup.exe
CD1          CD5  Setup.exe  instmsia.exe
CD2          CD6  Setup.ini  instmsiw.exe
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-04 06:23:30 UTC
Currently, the ebuild does not work with the ECE DVD.  Epic was nice enough to rearrange all of the files on the different CD directories for the ECE DVD.

Could you post the output of "ls -lR /mnt/cdrom" with the DVD mounted as an attachment?

Anyway, my suggestion to you (until I manage to fix it all) is to use the installer on the CD, as it will be a while before I get a working ebuild that detects the actual DVD version being used, which will be a bit hard only because I cannot test it very well (I only have the non-ECE DVD).

Are you willing to help me test the ebuild when I get it in what I think is a working state?
Comment 7 Peter Canada 2005-01-05 11:37:32 UTC
Created attachment 47724 [details]
Just a FULL dir list of the DVD

Here it is as per your request, and I'm willing to test.
Comment 8 Peter Canada 2005-01-05 11:42:39 UTC
I do have a ebuild that works relatively...at least. I removed the attempt at adding CD7, and left the original as is with the exception of correcting a syntax error on the CD6 entry and moving speeches to CD5. I now have a successful install of ut2004 that works, but I assume it's missing files from the Extras dir on CD7. Plus there is a 2nd DVD which is a Bonus disk which contains hours of Unreal scripting, mutators, weapon design, maya fundamentals, static meshes, character development, and vehicle design tutorials.
Comment 9 Peter Canada 2005-01-05 11:46:11 UTC
Created attachment 47725 [details]
Contains Video files and such.

This probably is irrellevant put I'll create an attachment anyway just inc ase
you want it to.
Comment 10 Peter Canada 2005-01-05 11:47:08 UTC
Peter "Salutes Epic for there blessings of rearranging files" :P
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2005-02-22 17:03:16 UTC
There's a new ut2004-3355.ebuild in portage... it doesn't fix the original problem with the CD/DVD not being mounted, but it is now all broken up, so you only need to break out your DVD once...

Let me know how well it works.
Comment 12 Gordon Pettey 2005-05-21 16:59:39 UTC
There's still a problem with the ECE CD-ROM edition. The ebuild contains 
instructions for what to copy depending on whether you have the ECE DVD or the 
plain CD-ROM set. I have an ECE CD-ROM set, and CD4 at least is different. (I 
haven't checked the other CDs yet). The ebuild expects a Music dir on CD4, 
which doesn't exist on the ECE edition. I think it would be rather simple to 
add a question in that asks if your CD set is ECE or not, and copy files 
accordingly.
Comment 13 Chris Gianelloni (RETIRED) gentoo-dev 2005-05-23 06:32:36 UTC
The stuff in stable now does something like this and has for a while.

Besides, that has nothing to do with the topic of *this* bug, and would instead
need to be filed as a bug of its own.
Comment 14 Paul Bredbury 2006-04-20 00:20:31 UTC
(In reply to comment #0)
> When emerging ut2004 (3339) the ebuild uses a couple tricks to find out whether we're using a UT DVD or CD set.

The tricks have been extended in recent versions of ut2004-data. So this bug should be marked "fixed" :)
Comment 15 Chris Gianelloni (RETIRED) gentoo-dev 2006-04-22 08:10:12 UTC
Taking Paul's word for it... ;]