Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 162097 - Unreal "Return to Na Pali" Expansion data ebuild
Summary: Unreal "Return to Na Pali" Expansion data ebuild
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2007-01-14 20:45 UTC by Brandon Captain
Modified: 2019-12-09 04:12 UTC (History)
4 users (show)

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


Attachments
diff of Vanilla (no UT) Unreal and Unreal Gold on Windows (diff,78.82 KB, text/plain)
2007-10-14 19:31 UTC, Brandon Captain
Details
directory tree of Unreal cd (unreal.dir,10.04 KB, text/plain)
2007-10-21 21:06 UTC, Brandon Captain
Details
directory tree of Unreal Gold cd (unreal-gold.dir,21.94 KB, text/plain)
2007-10-21 21:06 UTC, Brandon Captain
Details
unreal-returntonapali-451.ebuild (unreal-returntonapali-451.ebuild,15.76 KB, text/plain)
2007-11-24 13:57 UTC, James Le Cuirot
Details
unreal-returntonapali-451.ebuild (unreal-returntonapali-451.ebuild,16.24 KB, text/plain)
2008-05-08 12:51 UTC, James Le Cuirot
Details
unreal-returntonapali-451.ebuild (unreal-returntonapali-451.ebuild,16.32 KB, text/plain)
2008-05-08 12:55 UTC, James Le Cuirot
Details
unreal-returntonapali-451.ebuild (unreal-returntonapali-451.ebuild,16.68 KB, text/plain)
2008-09-06 17:11 UTC, James Le Cuirot
Details
unreal-returntonapali-451.ebuild - update (unreal-returntonapali-451.ebuild,16.84 KB, application/octet-stream)
2011-05-29 06:16 UTC, Jared B.
Details
unreal-returntonapali-451.ebuild (unreal-returntonapali-451.ebuild,16.85 KB, text/plain)
2012-09-15 04:26 UTC, Jared B.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Captain 2007-01-14 20:45:57 UTC
there should be an ebuild for the "Return to Na pali" expansion for Unreal 1, or the unreal ebuild itself should copy the Na Pali data from the Unreal Gold CD if it is the source CD.

Reproducible: Always

Steps to Reproduce:




there are many editions for Unreal 1.

Unreal contains just unreal
Unreal Gold contains Unreal and Return to Na Pali
Unreal Anthology Includes Unreal, Unreal Tournament, and may contain Return to Na Pali and some other content.
Return to Na Pali Contains Return to Na Pali, and may contain some other content.
Comment 1 James Le Cuirot gentoo-dev 2007-10-14 12:46:56 UTC
I'm thinking of doing this but I have the Midway Anthology DVD, which has Unreal Gold, rather the the separate expansion. I'm wondering if the files can be separated, that way we might only need 2 ebuilds. Could someone work out which files are added modified when you install the expansion pack?
Comment 2 Brandon Captain 2007-10-14 18:25:01 UTC
This is the best I can do. the unreal-gold package is bug 130051).

diff /opt/unreal /opt/unreal-gold
Common subdirectories: /opt/unreal/Help and /opt/unreal-gold/Help
Common subdirectories: /opt/unreal/Maps and /opt/unreal-gold/Maps
Common subdirectories: /opt/unreal/Music and /opt/unreal-gold/Music
Only in /opt/unreal-gold: README
Only in /opt/unreal: README.Acid
Only in /opt/unreal: README.Chunky
Common subdirectories: /opt/unreal/Sounds and /opt/unreal-gold/Sounds
Common subdirectories: /opt/unreal/System and /opt/unreal-gold/System
Common subdirectories: /opt/unreal/Textures and /opt/unreal-gold/Textures
Only in /opt/unreal: icon.bmp
Only in /opt/unreal: icon.xpm
Common subdirectories: /opt/unreal/maps and /opt/unreal-gold/maps
Only in /opt/unreal-gold: ucc
Only in /opt/unreal: unreal
Only in /opt/unreal-gold: unrealgold
Only in /opt/unreal-gold: unrealgold.xpm
~                                                      
Comment 3 Brandon Captain 2007-10-14 18:28:56 UTC
forget that. I remember now that I installed the unreal package with the unreal-gold CD. strangely, thats the only way I could get the game to work. installing unreal with the regular unreal cd made the game segfault when it ran. I know the binaries are downloaded from loki, so its something to do with the files.

I'm going to go install unreal and gold in windows and then diff them, without all the unreal-tournament nonsense. I'll post here when I'm done.
Comment 4 Brandon Captain 2007-10-14 19:31:16 UTC
Created attachment 133466 [details]
diff of Vanilla (no UT) Unreal and Unreal Gold on Windows

This might help with creating the na pali ebuild.
Comment 5 James Le Cuirot gentoo-dev 2007-10-14 19:33:43 UTC
Thanks for your swift work, that should help a lot.
Comment 6 Brandon Captain 2007-10-14 21:31:43 UTC
note also that the unreal gold package as previously stated also installs the expansion data, so it may also be helpful.

we won't really know for sure how effective installing from a real na pali cd will be until someone with the cd tests it.
Comment 7 James Le Cuirot gentoo-dev 2007-10-21 14:42:55 UTC
I managed to get Unreal Anthology to install without the bonus pack files and moved the handling of all the bonus packs into a separate ebuild so I'm starting to think it should be possible to do the same thing here. Your last diff was helpful but what would help even more is a listing of the CDs themselves. I can't find any elsewhere. The Unreal Gold CD should be much the same as the layout on the Unreal Anthology DVD but I want to be sure. It's the Unreal CD I really need to see though, and Return To Na Pali if anybody has it.
Comment 8 Brandon Captain 2007-10-21 21:06:32 UTC
Created attachment 134080 [details]
directory tree of Unreal cd
Comment 9 Brandon Captain 2007-10-21 21:06:51 UTC
Created attachment 134081 [details]
directory tree of Unreal Gold cd
Comment 10 James Le Cuirot gentoo-dev 2007-10-21 21:30:58 UTC
Thanks man, that helps a lot. I'll keep going on this.
Comment 11 James Le Cuirot gentoo-dev 2007-11-24 13:57:31 UTC
Created attachment 136888 [details]
unreal-returntonapali-451.ebuild

Done it at last! This works with Unreal Gold, Unreal Anthology and the standalone game. In all cases, only UT is required. Unreal is never required. All the alternative languages are supported. The ebuild is very similar to the Unreal 1 ebuild I just uploaded to bug #130051 so see that for more details.

Please mark this bug as depending on bug #134156. I doubt it would work with the old UT ebuild.
Comment 12 James Le Cuirot gentoo-dev 2007-11-24 14:04:42 UTC
Oh and http://www.aura-online.co.uk/~chewi/u1-on-ut-451.tar.bz2 is required. It's mentioned in the other bug but just to be clear. Please DO NOT use that as the SRC_URI though.
Comment 13 Brandon Captain 2007-11-24 17:25:21 UTC
(In reply to comment #12)
> Oh and http://www.aura-online.co.uk/~chewi/u1-on-ut-451.tar.bz2 is required.
> It's mentioned in the other bug but just to be clear. Please DO NOT use that as
> the SRC_URI though.
> 

some of the files in that package just patch UT up to 451. that would likely collide with games-fps/unreal-tournament-goty-451
Comment 14 James Le Cuirot gentoo-dev 2007-11-24 17:43:54 UTC
No the version numbers on the patches indicate which version is required for the input file, not which version is produced by the output file. The GOTY ebuild will also be removed because the new UT ebuild caters for all versions, with the new bonus pack ebuild providing all 4 of the bonus packs. I've been busy. :D
Comment 15 James Le Cuirot gentoo-dev 2008-05-08 12:51:42 UTC
Created attachment 152471 [details]
unreal-returntonapali-451.ebuild

A fix for the differing versions of UMenu.u available in 436 and Anthology. The u1-on-ut-451.tar.bz2 file has changed so please download it again.
Comment 16 James Le Cuirot gentoo-dev 2008-05-08 12:55:31 UTC
Created attachment 152473 [details]
unreal-returntonapali-451.ebuild

Crap! I didn't properly handly the "unsupported" case.
Comment 17 James Le Cuirot gentoo-dev 2008-09-06 17:11:41 UTC
Created attachment 164743 [details]
unreal-returntonapali-451.ebuild

Updated to work with "Best of Infogrames" version of UT. u1-ot-ut tarball now kept at my space on dev.gentooexperimental.org.
Comment 18 karafeka 2008-09-14 17:41:57 UTC
It works great with infogrames ut.  

Thanks for your work.





Comment 19 Róbert Čerňanský 2010-09-26 13:34:54 UTC
(This comment includes a "patch" for the issue it describes.  It's kind of hidden in the middle so do not miss it.) ;-)

Oddly, I can not install UT Return To Na Pali from Anthology DVD with this ebuild (attached to this bug as attachment id 164743).  Part of the error output is:

>>> Install unreal-returntonapali-451 into /var/tmp/portage/games-fps/unreal-returntonapali-451/image/ category games-fps
ACCESS DENIED  fchmodat:     /var/tmp/portage/games-fps/unreal-returntonapali-451/work/System/ALAudio.so
chmod: changing permissions of `System/ALAudio.so': Permission denied
[...]
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-2147.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: fchmodat
S: deny
P: System/ALAudio.so
A: /var/tmp/portage/games-fps/unreal-returntonapali-451/work/System/ALAudio.so
R: /opt/unreal-tournament/System/ALAudio.so
C: chmod 750 System/napali-bin System/ALAudio.so System/Audio.so System/Core.so System/Editor.so System/Engine.so System/Fire.so System/GlideDrv.so System/IpDrv.so System/libopenal-0.0.so System/NullDrv.so System/NullNetDriver.so System/NullRender.so System/OpenGLDrv.so System/Render.so System/SDLDrv.so System/SDLGLDrv.so System/SDLSoftDrv.so System/UWeb.so System/libmikmod.so.2 
[...]

Error output continues similarly for several other .so files.


The problem is that /var/tmp/portage/games-fps/unreal-returntonapali-451/work/System/ALAudio.so is symlink to /opt/unreal-tournament/System/ALAudio.so and sandbox does not allows changes there.

I've changed line 338 in the ebuild like this:

-chmod 750 System/napali-bin System/*.so System/*.so.* || die
+find System -type f -a \( -name napali-bin -o -name '*.so' -o -name '*.so.*' \) -exec chmod 750 {} \; || die

and now it installs fine.

I'm running stable amd64 and have installed also unreal-tournament-451, unreal-451 from bugs #134156 and #130051 (they emerged fine without any modifications):

# emerge -pv unreal-tournament unreal unreal-returntonapali 

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] games-fps/unreal-tournament-451  USE="openal (-3dfx) -S3TC -dedicated -doc" LINGUAS="-es -fr -it" 0 kB [?=>1]
[ebuild   R   ] games-fps/unreal-451  USE="-doc" LINGUAS="-de -es -fr -it" 0 kB [?=>1]
[ebuild   R   ] games-fps/unreal-returntonapali-451  USE="-doc" LINGUAS="-de -es -fr -it" 0 kB [?=>1]
Comment 20 Jared B. 2011-05-29 06:15:52 UTC
I'm attaching an updated ebuild that fixes a few problems:

1. Security/sandbox issue as described in bug 130051 comment 48
2. Inability to use a CD_ROOT with parentheses in the path
3. Icon extension warning in desktop file

Thanks for all the work on this.
Comment 21 Jared B. 2011-05-29 06:16:43 UTC
Created attachment 274993 [details]
unreal-returntonapali-451.ebuild - update
Comment 22 Jared B. 2012-09-15 04:26:29 UTC
Created attachment 323852 [details]
unreal-returntonapali-451.ebuild

minor update: cdrom eclass now explicitly included, as required
Comment 23 Arfrever Frehtes Taifersar Arahesis 2019-12-09 04:12:13 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b093e47371dceaf8e3daaa099a8c20cba1a6d0c

commit 8b093e47371dceaf8e3daaa099a8c20cba1a6d0c
Author:     Aaron Bauman <bman@gentoo.org>
AuthorDate: 2019-12-08 21:08:20 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2019-12-08 21:08:20 +0000

    games-fps/*: drop last-rited pkgs
    
    Bug: https://bugs.gentoo.org/44351
    
    Signed-off-by: Aaron Bauman <bman@gentoo.org>


https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25ccd8cf8f654fefc66ef924b5558873e1e44dcf

commit 25ccd8cf8f654fefc66ef924b5558873e1e44dcf
Author:     Aaron Bauman <bman@gentoo.org>
AuthorDate: 2019-12-08 21:28:28 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2019-12-08 21:28:28 +0000

    games-fps/unreal-tournament: drop vulnerable
    
    Closes: https://bugs.gentoo.org/386383
    
    Signed-off-by: Aaron Bauman <bman@gentoo.org>