Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59816 - unreal tournament 2004 ebuild multiple syntax errors
Summary: unreal tournament 2004 ebuild multiple syntax errors
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-08 18:09 UTC by Matt Megremis
Modified: 2004-08-09 06:39 UTC (History)
0 users

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 Matt Megremis 2004-08-08 18:09:42 UTC
Using the ut2004 ebuild, and by setting CD_ROOT (export CD_ROOT='/ut2004tmp' )correctaly, will automatically look for:(in this case, the directory that hold all the "cds" is /ut2004tmp)

 * Copying files from Disk 1...
cp: cannot stat `/ut2004tmp//Animations': No such file or directory
cp: cannot stat `/ut2004tmp//ForceFeedback': No such file or directory
cp: cannot stat `/ut2004tmp//Help': No such file or directory
cp: cannot stat `/ut2004tmp//KarmaData': No such file or directory
cp: cannot stat `/ut2004tmp//Maps': No such file or directory
cp: cannot stat `/ut2004tmp//Sounds': No such file or directory
cp: cannot stat `/ut2004tmp//Web': No such file or directory

Now, there are two things wrong here. First off, there is an extra "/" in the install path, which is a problem. Seccond, notice the Cases of the folders. When you copy the folders, the cases are lowercase, not uppercased. They are even lowercased on the cd.

Now, if you go into the ebuild, you can edit those copy lines and cases, and you come put with something to the extent of this: (only showing few lines, youll get the idea)

original:
# Disk 1
einfo "Copying files from Disk 1..."
cp -r ${CDROM_ROOT}/${DISK1}/{Animations,ForceFeedback,Help,KarmaData,Maps,Sounds,Web} ${Ddir} || die "copying files"

fiexed:
# Disk 1
einfo "Copying files from Disk 1..."
cp -r ${CDROM_ROOT}/${DISK1}{animations,forcefeedback,help,karmadata,maps,sounds,web} ${Ddir} || die "copying files"

which, in thise case, removes the extra "/" and changes the case of the folders.  Now this work or cds 1-6. Now once this is fixed, later in the install you come across a chmod problem due to a incorrect file syntax, there are 3 "/"'s. 


FIX:
Once all files are copied to the computer, rename each folder to have each needed folder with the approait case. DO NOT EDIT THE EBUILD. But, considering people dont want to do this, you might need to put a patch out.






Reproducible: Always
Steps to Reproduce:
1. mount cdroms 1-6, and copy them to /ut2004tmp
2. unmount cdroms
3. cd /ut2004
4. export CD_ROOT='/ut2004tmp'
5. emerge ut2004

Actual Results:  
explained in the Detail section. Multiple errors, including bad file paths, and
bad folder names.

Expected Results:  
Install UT2004 to your computer.

AMD XP 2.7 Ghz
1Gb PC3200 Ram
120 GB Hd
IDE Drivers Installed
All Drivers Installed
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2004-08-09 06:39:33 UTC
There is nothing wrong with the extra / characters, as bash simply ignores them.  As for the directories being in the wrong case, go look at bug #53845 for more information.  It seems like a kernel problem on your end, as the official CD uses mixed-case naming for the files on the CD.