Subject pretty much says it all except for one thing. I ordered the Special Edition, so if someone could be so kind as to post the output of a "ls -aR" on each of the 6 CDs, I would be grateful and it will speed up the process of getting an ebuild made.
Created attachment 27563 [details] DVD listing This is the listing of the mounted DVD, the CDs must be pretty much same... Hope to see the ebuild soon... :-) Thanks... Radek
Thanks, but I have no need for the DVD listing at all, since everything is on one disc. The reason I need the CD listing is so I know which files are on which CD and don't miss anything. ;]
Created attachment 27603 [details] ut2004-3186.ebuild Here it is a partial ebuild that should at least save you some time with the tedious part of the ebuild. I am not sure if the special edition is going to have a separate ebuild or not, but this ebuild only works with the DVD version. One thing to note, is I think that there should be a way to write an ebuild that would work for both versions fairly easily. The DVD is divided up into folders for each CD so it seems like it shouldn't be too difficult. Chris, if it looks like you are too busy at the moment then I can try to finish up the ebuild more cleanly.
The ebuild needs to be able to satisfy 3 different install methods. 1. From the 6 CDs 2. From the 1 DVD 3. From a path on a local filesystem Take a look at the ut2003 ebuild to see what I mean on this. I'll be honest, I'm not going to rush into getting an ebuild into the tree that isn't perfect. All of the people that have no patience are already installing it from the installer on the disk. Also, the ebuild needs to install the 64-bit version if the person's arch is amd64. Like I said, it'll be a little while on this one. Also, your attachment is unreadable. I don't know if something happened during the upload or what.
Created attachment 27611 [details] ut2004-3186.ebuild Oops, lets try it this way. My ebuild already takes care of 2 and 3 (DVD/localsystem). I think that 6 CDs will take very simple modification so I will look into that. I also attempted to build in support for amd64 but I am not sure if I did it right or not.
Created attachment 27612 [details] files.tar.bz2 Here are the two files used to create executables.
Any chance you can repost the files stuff as text files, since it makes it much easier to read them online versus having to download them. I would do it myself, but I'm posting from a device without bzip2.
Created attachment 27634 [details] files/ut2004 These two files are the same format as ut2003.
Created attachment 27635 [details] files/ucc
Created attachment 28871 [details] ut2004-3186.ebuild Here's my preliminary ebuild. It is based on Adam's ebuild, which is of course based on the ut2003 ebuild. I only tested it using a copy of the DVD to a local disk. It *should* work on: 1. A single mounted DVD in an optical drive 2. The 6 CDs in an optical drive 3. The 6 CDs in upto 6 optical drives 4. The DVD copied verbatim to a local disk 5. The 6 CDs copied verbatim to a local disk I need people to test 1, 2, 3, and 5 and to report back here before I add this to portage. Also, I need someone (*cough* augustus *cough*) to test this on amd64. I'm no so worried about the different install methods on amd64 as much as it working correctly. Also, anyone that has installed the game using the installer, is the Extras directory even copied into your distribution at all? I haven't taken the time to install the game using the built-in installer, so I would love to know if I could skip this folder, since it seems to be mostly .exe and supporting files.
No Extras dir here. Here's what I have Animations KarmaData README.linux Textures ut2004 Benchmark Manual Sounds UT2004_EULA.txt ut2004.xpm ForceFeedback Maps StaticMeshes Web Help Music System uninstall
Created attachment 28882 [details] ut2004-3186.ebuild Here is my updated ebuild with no Extras folder and also removing the extra games_next_cd from the CD6 section. There's no need to test using this ebuild as nothing else has changed.
Created attachment 28997 [details] ut2004-3186.ebuild This new version fixes the libSDL and openal not being copied bug from all of the previous ebuilds. Testing needed so I can get this into portage ASAP.
Created attachment 28999 [details] ut2004-3186.ebuild Fixed my last fix where I broke the ebuild... yeah yeah... I know... I suck
Created attachment 29130 [details] ut2004-3186.ebuild Here is a new version that adds the .manifest folder and the /root/.loki/installed folders, so mods will work.
Created attachment 29131 [details] files/ut2004.xml This is the .xml file which is used to allow games to locate the installed game. I would be appreciative if someone could test this with a mod and see if it works properly.
Created attachment 29806 [details] Log file produced by ut2004
This ebuild works fine for the install. However, when I try and run the program I get the following: tamran (~)# ut2004 WARNING: ALC_EXT_capture is subject to change! Xlib: extension "XiG-SUNDRY-NONSTANDARD" missing on display ":0.0". appMsgf(): Your CD key appears to be invalid. You will need to reinstall the game and enter your CD key to fix this problem. Signal: SIGTRAP [trap] Aborting. Crash information will be saved to your logfile. In peeking throught the ~/.ut2004/System/UT2004.log file I find the following: Log: Couldn't open cdkey file. I used the CD's to install the game and nowhere during the install process did it prompt me for this coce. If I use the installer the program works fine. I've attached the full log file as well.
It never should have prompted you. At the end of the install, the ebuild gives an einfo that tells you to run ebuild ${PORTAGE_TMPDIR}/${CATEGORY}/${PN}/${P}.ebuild config to install your cdkey. Try doing so then report back.
Ahhh, that did it. My apologies. :) The game seems to run fine now. Haven't tested the other xml file though.
You did put the .xml file in the files directory for the ebuild, correct? All that the .xml file is for is so that mods can find the game to install to. Personally, I think mods should be added to portage, rather than installed separately, simply because then the versions can be tracked easier.
This ebuild works for perfectly for me on the regular cd set. I can't run the game for more than 10 minutes without it crashing but that's a whole different problem :)
Is that x86 or amd64?
hi, this ebuild doesn't work for me. I mount the DVD on /mnt/dvdr and then try to "emerge ut2004", but the ebuild doesn't find the first cd: markus root # emerge ut2004 Calculating dependencies ...done! >>> emerge (1 of 1) games-fps/ut2004-3186 to / >>> md5 src_uri ;-) ut2004-jesus-h-christ.tar.bz2 * Do you accept the terms of this license (ut2003)? [yes/no] yes * The installed game takes about 6.8GB of space! dirname: too few arguments Try `dirname --help' for more information. basename: too few arguments Try `basename --help' for more information. * 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. * Please insert cd #1 for ut2004 now ! * Press return to scan for the cd again * or hit CTRL+C to abort the emerge. * Please insert cd #1 for ut2004 now ! * Press return to scan for the cd again * or hit CTRL+C to abort the emerge. * Please insert cd #1 for ut2004 now ! * Press return to scan for the cd again * or hit CTRL+C to abort the emerge. markus root # but the DVD is definetly mounted. then I try to install with folowing command: "CD_ROOT_1=/mnt/dvdr/CD1 CD_ROOT_2=/mnt/dvdr/CD2 CD_ROOT_3=/mnt/dvdr/CD3 CD_ROOT_4=/mnt/dvdr/CD4 CD_ROOT_5=/mnt/dvdr/CD5 CD_ROOT_6=/mnt/dvdr/CD6 emerge ut2004", but all i get is this error: markus root # CD_ROOT_1=/mnt/dvdr/CD1 CD_ROOT_2=/mnt/dvdr/CD2 CD_ROOT_3=/mnt/dvdr/CD3 CD_ROOT_4=/mnt/dvdr/CD4 CD_ROOT_5=/mnt/dvdr/CD5 CD_ROOT_6=/mnt/dvdr/CD6 emerge ut2004 Calculating dependencies ...done! >>> emerge (1 of 1) games-fps/ut2004-3186 to / >>> md5 src_uri ;-) ut2004-jesus-h-christ.tar.bz2 * Do you accept the terms of this license (ut2003)? [yes/no] yes * The installed game takes about 6.8GB of space! dirname: too few arguments Try `dirname --help' for more information. basename: too few arguments Try `basename --help' for more information. * Found CD #1 root at /mnt/dvdr/CD1 >>> Unpacking source... !!! ERROR: games-fps/ut2004-3186 failed. !!! Function find_unpackable_file, Line 791, Exitcode 0 !!! Could not find requested archive /mnt/dvdr/CD1/linux-installer.sh basename: too few arguments Try `basename --help' for more information. >>> Unpacking to /var/tmp/portage/ut2004-3186/work Caught signal 2 /usr/portage/games-fps/ut2004/ut2004-3186.ebuild: src_unpack aborted; exiting. markus root # (I about because of the error.) Hope someone can fix this. Markus
well.. it worked by using "CD_ROOT=/mnt/dvdr emerge ut2004". But shouldn't the ebuild find this path itself? Markus
Yes, the ebuild should find the path itself. Could you post the output of "mount" and "ls -al /mnt/dvdr/CD1" with the DVD mounted? It looks like the auto-detection routine is definitely not finding your DVD drive.
here is the root directory of the dvd: -r-xr-xr-x 1 root root 53 Mar 4 02:47 AutoRun.inf dr-xr-xr-x 1 root root 2048 Mar 4 14:15 CD1 dr-xr-xr-x 1 root root 2048 Mar 4 14:11 CD2 dr-xr-xr-x 1 root root 2048 Mar 4 14:09 CD3 dr-xr-xr-x 1 root root 2048 Mar 4 14:08 CD4 dr-xr-xr-x 1 root root 2048 Mar 4 14:05 CD5 dr-xr-xr-x 1 root root 2048 Mar 4 14:04 CD6 -r-xr-xr-x 1 root root 24576 Mar 4 02:57 Setup.exe -r-xr-xr-x 1 root root 29627635 Mar 4 10:42 linux-installer.sh and here CD1 directory: dr-xr-xr-x 1 root root 4096 Mar 4 14:15 Animations dr-xr-xr-x 1 root root 2048 Mar 4 14:15 Benchmark dr-xr-xr-x 1 root root 2048 Mar 4 14:15 ForceFeedback dr-xr-xr-x 1 root root 2048 Mar 4 14:15 Help dr-xr-xr-x 1 root root 2048 Mar 4 14:15 KarmaData dr-xr-xr-x 1 root root 2048 Mar 4 14:15 Manual dr-xr-xr-x 1 root root 10240 Mar 4 14:15 Maps dr-xr-xr-x 1 root root 2048 Mar 4 14:13 Sounds dr-xr-xr-x 1 root root 63488 Mar 4 14:13 System dr-xr-xr-x 1 root root 2048 Mar 4 14:13 Textures dr-xr-xr-x 1 root root 2048 Mar 4 14:13 Web Might the problem be that I use /mnt/dvdr instead of /mnt/cdrom? Markus
I'm installing the latest ebuild right now without any problems (except for the "dirname: too few arguments" warnings at the top). Anyway, the only real problem I can see is that "cd #6" should probably be changed to "play disc" to avoid confusion.
Markus, can you make a symlink and see if it works, if so, then we need to change the CD detection routines.
made a symlink: didn't found the cd. I even changed the mount point from /mnt/dvdr ro /mnt/cdrom: didn't found the cd, too. No idea why this is messed up.... Maybe UK DVD version? Anybody else got luck installing a UK DVD version? (the DVD was soled by tuxgames.com) Markus
My CD came from Tuxgames, so I'm pretty sure it works... ;] What really gets me is how it won't work even with the mount point being /mnt/cdrom as I am sure that should work. What is the contents of your /etc/fstab for your CD/DVD?
here it is: /dev/cdroms/cdrom1 /mnt/dvdr iso9660 noauto,ro,users 0 0 (BTW: UT2003 works perfekt) Markus
same problem on another computer. Markus
What about if you mkdir /mnt/cdrom && mount --bind /mnt/dvdr /mnt/cdrom then try to install?
no luck... as I said: It even doesn't work when using /mnt/cdrom in fstab. Markus
What I don't get is you say ut2003 works perfectly and they use the same routines. The only difference is that ut2004 has some extra logic to test if it is the CD or the DVD. It is just strange since I used the DVD to build the ebuild, and basically added CD support secondary.
how can I compare the DVD listing which was added by Radek Podgorny (http://bugs.gentoo.org/attachment.cgi?id=27563&action=view) and the DVD listing I could create from my DVD? Markus
Download the attachment, then do a "ls -aR" on your DVD, then diff them.
nothing important, isn't it? output: markus@markus temp $ diff -bc dvd-listing-mine ut2004.dvd.ls.txt *** dvd-listing-mine Tue May 18 18:50:44 2004 --- ut2004.dvd.ls.txt Tue May 18 18:51:36 2004 *************** *** 500,510 **** CTF-TwinTombs.itt CTF-TwinTombs.kot CacheRecords.ucl Core.dll - Core.est - Core.frt Core.int - Core.itt Core.u D3DDrv.det D3DDrv.dll --- 500,508 ---- CTF-TwinTombs.itt CTF-TwinTombs.kot CacheRecords.ucl + Core.det Core.dll Core.int Core.u D3DDrv.det D3DDrv.dll markus@markus temp $ Any other ideas?
None of those should make an effect on the CD/DVD detection. I'll have to look into the detection a bit more and see if I can come up with some other way of finding everything. I think once the new patch is released officially, then I will put this in portage (after a little work). If we still end up having trouble, then at least we can file a bug against an actual ebuild in the tree.
ok... :-)
I just tried this: USE_DVD=1 emerge ut2004 and CD_ROOT=/mnt/dvdr emerge ut2004 and both variants work. This seems to be the command which searches for the cdrom path: mount | egrep -e '(iso|cdrom)' | awk '{print $3}' here is my output, when I do it at a terminal with mounted DVD: markus root # mount | egrep -e '(iso|cdrom)' | awk '{print $3}' /mnt/dvdr markus root # This seems also to work. What the f**k is going on here?? Markus
Created attachment 31756 [details] ut2004-3186.ebuild Please try out this new ebuild and see if it solves the problem. I think I had made an error in my logic before.
doesn't work either... same behaviour: 'emerge ut2004' doesnt'find the dvd, but 'USE_DVD=1 emerge ut2004' and 'CD_ROOT=/mnt/dvdr emerge ut2004' work like a charm... Markus
Created attachment 31777 [details] ut2004-3204.ebuild How about this new ebuild, which also has the just released ut2004 patch in it?
Actually, added to portage. If you have a problem with the version in portage, file a bug.
I had to use "USE_DVD=1 emerge ut2004" to install via DVD. I got these errors during install: * Do you accept the terms of this license (ut2003)? [yes/no] yes * The installed game takes about 6.8GB of space! dirname: too few arguments Try `dirname --help' for more information. basename: too few arguments Try `basename --help' for more information. find: paths must precede expression Usage: find [path...] [expression] * This package will need access to 6 cds. Hope this helps. It also crashes at the end of the install with: * 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 !!! ERROR: games-fps/ut2004-3204 failed. !!! Function src_install, Line 136, Exitcode 1 !!! copying libs/ucc If you wanted a new bug I can file it. For now I think this will work since officially this ebuild doesn't work yet. Thanks for the effort though.
same problem here: markus root # USE_DVD=1 emerge -u 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! dirname: too few arguments Try `dirname --help' for more information. basename: too few arguments Try `basename --help' for more information. find: paths must precede expression Usage: find [path...] [expression] * 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 /mnt/dvdr >>> Unpacking source... >>> Unpacking linux-installer.sh to /var/tmp/portage/ut2004-3204/work >>> 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 /mnt/dvdr * Copying files from Disk 2... * Found CD #3 root at /mnt/dvdr * Copying files from Disk 3... * Found CD #4 root at /mnt/dvdr * Copying files from Disk 4... * Found CD #5 root at /mnt/dvdr * Copying files from Disk 5... * Found CD #6 root at /mnt/dvdr * 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 !!! ERROR: games-fps/ut2004-3204 failed. !!! Function src_install, Line 136, Exitcode 1 !!! copying libs/ucc markus root # I have to use "USE_DVD=1 emerge ut2004"... So nothing has changed... Markus
augustus: you are referring to on amd64, correct? markus: since they're both the same, it is obviously my CD/DVD detection at the beginning of the ebuild. I'm looking into it more thoroughly now. I took the detection from the eclass, but am starting to think that I missed something.
Try the new ebuild in portage (v1.2) and if that doesn't fix it, please file another bug on it.
same problem. filed a new bug: http://bugs.gentoo.org/show_bug.cgi?id=51641 Markus
There's a new patch, 3236, available now: http://www.worthplaying.com/article.php?sid=18338
File a new bug, please. This one was for adding the ebuild to portage only. The reason for filing a separate bug is for tracking purposes. After all, who would know to look in this bug for information on a patch?