Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74902 - Updated ebuild for UT2004 , which is more user-friendly to install
Summary: Updated ebuild for UT2004 , which is more user-friendly to install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-18 19:10 UTC by Chetan Chauhan
Modified: 2005-02-22 16:39 UTC (History)
0 users

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


Attachments
Updated UT 2004 ebuild (ut2004-3339-r1.ebuild,9.83 KB, text/plain)
2004-12-18 19:12 UTC, Chetan Chauhan
Details
Modifed to reflect all of SPEECH now being on CD5 and a CD7 existing! (ut2004-3339-r2.ebuild,10.06 KB, patch)
2005-01-04 06:54 UTC, Peter Canada
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chetan Chauhan 2004-12-18 19:10:03 UTC
The current ut2004 install process can be quite traumatic , esp. for people who have a seperate /var . Firstly it requires 6GB free in /var which very few people have , and also 6 GB free on / , so thats 12GB free overall.

Another problem faced is if there is a data error while copying or the user inadvertently inserted the wrong CD during the 6CD install process. Due to this after 15 minutes of installing the install will suddenly terminate without giving the user a chance to change the cd or retry.

The new ebuild uses some "tricks" to get over the /var problem . Firstly we make /opt/ut2004.install-temp as the temp folder and call mount --bind /opt/ut2004.install-temp/work ${S} , and create a mapping for image folder too.

--bind is a very well supported option for mount and it "fools" portage into using the /opt/ partition so that the 12 GB hdd usage problem is gone.

Secondly , the file copying is modified with a new function which allows users the chance to retry an operation in case of an error or wrong cd inserted.

This is just an ebuild i edited up quickly so that i could try out this awesome game ASAP. If you see and problems / bugs please feel free to edit them or comment.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Chetan Chauhan 2004-12-18 19:12:19 UTC
Created attachment 46317 [details]
Updated UT 2004 ebuild
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2004-12-22 09:01:00 UTC
I'll look into it, but there is no way that we're going to use the bind mount trick, as it first off defies the sandbox, which isn't something we would want.  Now, I am definitely interested in adapting the resuming functions into the ebuild, as it would prove beneficial if it can be done properly.

I'll look into this when I get a chance and am back from vacation.
Comment 3 Chetan Chauhan 2004-12-22 17:58:13 UTC
The ebuild i submitted actually requires you to disable sandbox , and "dies" telling the user to disable sandbox mode.

The mount --bind is the reason i made the ebuild non sandbox friendly .. It could also be possible for me to make the ebuild a bit more "intelligent" , and if it detects sandbox mode to not use the mount bind trick .

Awaiting your suggestions after the hols.
Comment 4 Peter Canada 2005-01-04 06:54:27 UTC
Created attachment 47585 [details, diff]
Modifed to reflect all of SPEECH now being on CD5 and a CD7 existing!

This is a update to the trick with no sandbox, and corrects the path for the  
${DISK4}Music/KR-UT2004-Menu.ogg \ entry to   ${DISK5}Music/KR-UT2004-Menu.ogg
\

Also adds: CD7 here:

       if [ ${USE_DVD} ]
	then
		DISK1="CD1/"
		DISK2="CD2/"
		DISK3="CD3/"
		DISK4="CD4/"
		DISK5="CD5/"
		DISK6="CD6/"
		DISK7="CD7/"
	fi

and adds the follwoing section as well:

	UT_CURRENT_DISC="Disc 7"
	#Disk 7
	einfo "Copying files from Disk 7..."
	UT_CP_COMMAND="cp -r ${CDROM_ROOT}/${DISK7}Extras ${Ddir}"
	 copy_error
 
This is just a rought draft...corrections and comments and opinions are
welcomed....
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2005-01-04 07:22:01 UTC
So you just broke non-ECE DVD installs?
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-02-09 04:21:00 UTC
Check out bug #63703 and see if the ebuilds there resolve your problem.

If so, let me know either here or there, but do not close this bug, as I still need it open for tracking purposes.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2005-02-22 16:39:02 UTC
No response... but 3355 is based off the new ebuilds and is in portage...