Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild for Unreal Gold
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Mohij
n00b
n00b


Joined: 03 May 2005
Posts: 42
Location: Mosbach, Germany

PostPosted: Sat Mar 04, 2006 5:01 pm    Post subject: ebuild for Unreal Gold Reply with quote

Hi,
I wrote an ebuild for Unreal Gold, it is heavily based on the unreal-226.ebuild.
Code:

# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-fps/unreal/unreal-226.ebuild,v 1.12 2005/10/21 17:43:48 wolf31o2 Exp $

inherit eutils games

DESCRIPTION="Futuristic FPS (a hack that runs on top of Unreal Tournament)"
HOMEPAGE="http://www.unreal.com/ http://www.icculus.org/~ravage/unreal/unrealgold/"
SRC_URI="http://www.icculus.org/~ravage/unreal/unrealgold/unrealgold-install-436.run
        ftp://ftp.lokigames.com/pub/patches/ut/ut-install-436.run
        ftp://ftp.lokigames.com/pub/beta/ut/ut-install-436-GOTY.run
        ftp://ftp.lokigames.com/pub/patches/ut/IpDrv-436-Linux-08-20-02.zip"

LICENSE="as-is"
SLOT="0"
KEYWORDS="-* x86"
IUSE="nls S3TC"

DEPEND="dev-util/xdelta
        sys-libs/lib-compat
        app-arch/unzip"
RDEPEND="X? ( virtual/x11 )
        opengl? ( virtual/opengl )"

S="${WORKDIR}"

pkg_setup() {
        if use S3TC ; then
            export CDROM_NAME_1="Unreal Tournament GOTY CD1"
                export CDROM_NAME_2="Unreal Tournament GOTY CD2"
                export CDROM_NAME_3="Unreal Gold CD"
                cdrom_get_cds System400 UTLocalized MANUALS/Gold\ Manual\ addedum.doc ;
        else
                export CDROM_SET_NAMES=("Unreal Tournament" "Unreal Tournament GOTY CD1")
                export CDROM_NAME_2="Unreal Gold CD"
                cdrom_get_cds System:System400 MANUALS/Gold\ Manual\ addedum.doc ;
        fi
        games_pkg_setup
}

src_unpack() {
        unpack_makeself unrealgold-install-436.run
        mkdir ut
        cd ut
        if use S3TC ; then
                unpack_makeself ut-install-436-GOTY.run ;
        else
                case ${CDROM_SET} in
                        0) unpack_makeself ut-install-436.run ;;
                        1) unpack_makeself ut-install-436-GOTY.run ;;
                esac ;
        fi
        unpack IpDrv-436-Linux-08-20-02.zip
}

src_install() {
        local dir=${GAMES_PREFIX_OPT}/unreal-gold
        dodir "${dir}"

        # the UT part

        cd ut
        tar -zxf data.tar.gz
        tar -zxf OpenGL.ini.tar.gz
        cd ..

        # System files
        insinto "${dir}"/System
        doins "${CDROM_ROOT}"/System/*.{int,u}
        doins ut/IpDrv.so
        for x in ut/setup.data/data/System/*.0; do
                xdelta patch ${x} "${CDROM_ROOT}"/System/$(basename ${x} .0) ut/System/$(basename ${x} .0) ;
        done
        doins ut/System/*.{int,u,so,0,2}

        # copying Sounds
        insinto "${dir}"/Sounds
        doins "${CDROM_ROOT}"/Sounds/*.uax
        if use nls ; then
                doins "${CDROM_ROOT}"/Sounds/*.{est,frt,itt}_uax
        fi

        if use S3TC ; then
                # copying Textures
                insinto "${dir}"/Textures
                doins "${CDROM_ROOT}"/Textures/{AlfaFX.utx,BluffFX.utx,ChizraEFX.utx,Crypt.utx,DMeffects.utx,Detail.utx,Female1Skins.utx,Female2Skins.utx,FireEng.utx,GreatFire.utx,GreatFire2.utx,ISVFX.utx,LavaFX.utx,Liquids.utx,Male1Skins.utx,Male2Skins.utx,Male3Skins.utx,MenuGr.utx,Palettes.utx,Render.utx,SkTrooperSkins.utx,Skaarj.utx,SkyBox.utx,SkyCity.utx,SpaceFX.utx,Terranius.utx,UWindowFonts.utx,XFX.utx}
                cdrom_load_next_cd
                doins "${CDROM_ROOT}"/Textures/{Ancient.utx,DecayedS.utx,GenEarth.utx,GenFX.utx,GenFluid.utx,GenIn.utx,GenTerra.utx,GenWarp.utx,HubEffects.utx,JWSky.utx,Mine.utx,NaliCast.utx,NaliFX.utx,PlayrShp.utx,Queen.utx,ShaneDay.utx,ShaneSky.utx,Skaarj.utx,SkyBox.utx,SkyCity.utx,Starship.utx,TCrystal.utx,TrenchesFX.utx,castle1.utx} || die "copy S3TC Textures" ;

        # the non S3TC part
        else
                # copying Textures
                insinto "${dir}"/Textures
                doins "${CDROM_ROOT}"/Textures/{AlfaFX.utx,Ancient.utx,BluffFX.utx,castle1.utx,ChizraEFX.utx,Crypt.utx,DMeffects.utx,DecayedS.utx,Detail.utx,Female1Skins.utx,Female2Skins.utx,FireEng.utx,GenEarth.utx,GenFX.utx,GenFluid.utx,GenIn.utx,GenTerra.utx,GenWarp.utx,GreatFire.utx,GreatFire2.utx,HubEffects.utx,ISVFX.utx,JWSky.utx,LavaFX.utx,Liquids.utx,Male1Skins.utx,Male2Skins.utx,Male3Skins.utx,MenuGr.utx,Mine.utx,NaliCast.utx,NaliFX.utx,Palettes.utx,PlayrShp.utx,Queen.utx,Render.utx,ShaneDay.utx,ShaneSky.utx,SkTrooperSkins.utx,Skaarj.utx,SkyBox.utx,SkyCity.utx,SpaceFX.utx,Starship.utx,TCrystal.utx,Terranius.utx,UWindowFonts.utx,XFX.utx} ;
        fi

        # the Unreal part

        cdrom_load_next_cd

        tar -zxf data.tar.gz

        # Unreal System stuff
        insinto "${dir}"/System
        doins System/* || die "copy System data"

        exeinto "${dir}"/System
        doexe System/{ucc,unreal}-bin

        if use nls ; then
                cp "${CDROM_ROOT}"/System/*.{est,frt,itt,det} "${Ddir}"/System/ || die "copy language data" ;
        fi

        xdelta patch setup.data/data/System/UPak.u.0 "${CDROM_ROOT}"/SYSTEM/UPak.u UPak.u
        doins UPak.u
        doins "${CDROM_ROOT}"/SYSTEM/UDSDemo.u

        # copying Maps
        insinto "${dir}"/Maps
        doins "${CDROM_ROOT}"/MAPS/*
        insinto "${dir}"/Maps/UPak
        doins "${CDROM_ROOT}"/MAPS/UPak/*

        # copying Help
        insinto "${dir}"/Help
        doins Help/*

        # copying Music
        insinto "${dir}"/Music
        doins "${CDROM_ROOT}"/MUSIC/*

        # repairing things
        for f in "${D}/${dir}"/{Maps,Maps/UPak}/Dm*.unr ; do
        mv ${f} ${f/Dm/DM-}
        done
        dosym Maps "${dir}"/maps

        # copying Sounds
        insinto "${dir}"/Sounds/
        doins "${CDROM_ROOT}"/Sounds/*.uax || die "copy Sounds CD1"
        insinto "${dir}"/Sounds/int
        doins "${CDROM_ROOT}"/Sounds/int/* || die "copy Sounds CD1"
        if use nls ; then
                insinto "${dir}"/Sounds/det
                doins "${CDROM_ROOT}"/Sounds/det/* || die "copy Sounds CD1"
                insinto "${dir}"/Sounds/est
                doins "${CDROM_ROOT}"/Sounds/est/* || die "copy Sounds CD1"
                insinto "${dir}"/Sounds/frt
                doins "${CDROM_ROOT}"/Sounds/frt/* || die "copy Sounds CD1"
                insinto "${dir}"/Sounds/itt
        fi

        # copying Textures from Unreal
        insinto "${dir}"/Textures
        doins "${CDROM_ROOT}"/Textures/{Credits,UGoldCredits,UPakFonts,Langs}.utx
        if ! use S3TC ; then
        doins "${CDROM_ROOT}"/Textures/Castle1.utx ;
        fi

        # the main executables
        exeinto "${dir}"
        doexe bin/Linux/x86/glibc-2.1/ucc
        doexe bin/Linux/x86/glibc-2.1/unrealgold

        # and the rest

        # installing documentation/icon
        mv icon.xpm unrealgold.xpm
        insinto "${dir}"
        doins unrealgold.xpm README
        dodoc README || die "Could not dodoc README.linux"
        doicon unrealgold.xpm || die "Could not copy pixmap"

        games_make_wrapper unrealgold ./unrealgold "${dir}" "${dir}"

        prepgamesdirs

        if use S3TC ; then
        einfo ""
        einfo "To use the S3TC Textures you have to set"
        einfo "UseS3TC=1"
        einfo "in homedir/.loki/unrealgold/Unreal.ini"
        einfo "in the sub-category"
        einfo "[OpenGLDrv.OpenGLRenderDevice]"
        einfo "" ;
        fi
}

I am not sure if this combination at the begining will work:
Code:

export CDROM_SET_NAMES=("Unreal Tournament" "Unreal Tournament GOTY CD1")
                export CDROM_NAME_2="Unreal Gold CD"
                cdrom_get_cds System:System400 MANUALS/Gold\ Manual\ addedum.doc ;

And because I do not own the non GOTY UT CD I don't know what file to use for cdrom_get_cds.
Help appreciated.
Regards,
Mohij
_________________
Even a fool is thought wise if he keeps silent, and discerning if he holds his tongue.
Proverbs 17,28


Last edited by Mohij on Wed Mar 22, 2006 7:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Sat Mar 04, 2006 5:08 pm    Post subject: Reply with quote

Moved from Portage & Programming to Unsupported Software.
_________________
KDE
Back to top
View user's profile Send private message
Mohij
n00b
n00b


Joined: 03 May 2005
Posts: 42
Location: Mosbach, Germany

PostPosted: Wed Mar 22, 2006 7:42 pm    Post subject: Reply with quote

Noone?
_________________
Even a fool is thought wise if he keeps silent, and discerning if he holds his tongue.
Proverbs 17,28
Back to top
View user's profile Send private message
Mohij
n00b
n00b


Joined: 03 May 2005
Posts: 42
Location: Mosbach, Germany

PostPosted: Tue May 30, 2006 12:10 am    Post subject: Reply with quote

Come on, there must be someone who can help me.
By the way, I filed a bug with this ebuild.
Greetings,
moHiJ
_________________
Even a fool is thought wise if he keeps silent, and discerning if he holds his tongue.
Proverbs 17,28
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 850
Location: PL

PostPosted: Tue May 30, 2006 1:11 pm    Post subject: Reply with quote

Quote:
And because I do not own the non GOTY UT CD I don't know what file to use for cdrom_get_cds.
i have the GOTY edition and standard portage unreal ebuild works just fine.
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
Mohij
n00b
n00b


Joined: 03 May 2005
Posts: 42
Location: Mosbach, Germany

PostPosted: Tue May 30, 2006 3:13 pm    Post subject: Reply with quote

yoshi314 wrote:
i have the GOTY edition and standard portage unreal ebuild works just fine.
Hm, this ebuild is for Unreal Gold, and there the ebuild already in portage does definitely not work. Aditionally this ebuild makes it possible to install the s3tc Textures from Unreal Tournament GotY...
moHiJ
_________________
Even a fool is thought wise if he keeps silent, and discerning if he holds his tongue.
Proverbs 17,28
Back to top
View user's profile Send private message
whitelynx
n00b
n00b


Joined: 20 May 2005
Posts: 15
Location: Fredonia, NY

PostPosted: Mon Aug 21, 2006 10:19 pm    Post subject: Reply with quote

I have UT GOTY and Unreal Gold, and I'm going to give this ebuild a shot...

I'll let you know how it goes.
Back to top
View user's profile Send private message
whitelynx
n00b
n00b


Joined: 20 May 2005
Posts: 15
Location: Fredonia, NY

PostPosted: Tue Aug 22, 2006 1:40 am    Post subject: Reply with quote

I tried it out, and it doesn't seem to find my CD if run as "emerge unreal-gold". After specifying CD_ROOT, I get the following error:

Code:

# export CD_ROOT=/mnt/dvdrom
# emerge unreal-gold
Calculating dependencies... done!

>>> Emerging (1 of 1) games-fps/unreal-gold-226 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking unrealgold-install-436.run ;-)
>>> checking ut-install-436.run ;-)
>>> checking ut-install-436-GOTY.run ;-)
>>> checking IpDrv-436-Linux-08-20-02.zip ;-)
 * Found CD #1 root at /mnt/dvdrom
>>> Unpacking source...
>>> Unpacking unrealgold-install-436.run to /var/tmp/portage/unreal-gold-226/work
>>> Unpacking data.tar.gz to /var/tmp/portage/unreal-gold-226/work

!!! ERROR: games-fps/unreal-gold-226 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_unpack
  ebuild.sh, line 711:   Called src_unpack
  unreal-gold-226.ebuild, line 50:   Called unpack 'data.tar.gz'
  ebuild.sh, line 370:   Called die

!!! data.tar.gz does not exist
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'


Any ideas why it's looking for "data.tar.gz"?

After commenting out the references to data.tar.gz in the ebuild (lines 50 and 58) and removing the leading "./" from IpDrv-436-Linux-08-20-02.zip on line 57, it started to work, but seemed to be unable to find some Unreal Tournament files. Should UT be the first CD in the drive? (the ebuild says to put in the Unreal Gold CD)

This is using the latest ebuild from the gentoo bug, btw; not the one from the top of this thread.

If I put the UT GOTY CD in the drive instead of the Unreal one, it gets further, but still fails:

Code:

# emerge unreal-gold
Calculating dependencies... done!

>>> Emerging (1 of 1) games-fps/unreal-gold-226 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking unrealgold-install-436.run ;-)
>>> checking ut-install-436.run ;-)
>>> checking ut-install-436-GOTY.run ;-)
>>> checking IpDrv-436-Linux-08-20-02.zip ;-)
 * Found CD #1 root at /mnt/dvdrom
>>> Unpacking source...
>>> Unpacking unrealgold-install-436.run to /var/tmp/portage/unreal-gold-226/work
>>> Unpacking ut-install-436-GOTY.run to /var/tmp/portage/unreal-gold-226/work/ut
>>> Unpacking IpDrv-436-Linux-08-20-02.zip to /var/tmp/portage/unreal-gold-226/work/ut
>>> Unpacking ./OpenGL.ini.tar.gz to /var/tmp/portage/unreal-gold-226/work/ut
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/unreal-gold-226/work ...
>>> Source compiled.
>>> Test phase [not enabled]: games-fps/unreal-gold-226

>>> Install unreal-gold-226 into /var/tmp/portage/unreal-gold-226/image/ category games-fps
install: cannot stat `ut/System/*.int': No such file or directory
install: cannot stat `ut/System/*.so': No such file or directory
install: cannot stat `ut/System/*.0': No such file or directory
install: cannot stat `ut/System/*.2': No such file or directory
 * Found CD #1 root at /mnt/dvdrom
install: cannot stat `System/*': No such file or directory

!!! ERROR: games-fps/unreal-gold-226 failed.
Call stack:
  ebuild.sh, line 1545:   Called dyn_install
  ebuild.sh, line 1019:   Called src_install
  unreal-gold-226.ebuild, line 95:   Called die

!!! copy System data
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! This ebuild is from an overlay: '/usr/local/portage'



Figured out what was going wrong... instead of commenting out the data.tar.gz lines in the ebuild, I should have simply added a "./" to the filename on line 50.

However, it seems to have some problem switching between the CDs... I ran it without specifying CD_ROOT, and it thought that the UT GOTY CD1 was the Unreal Gold CD... failed to copy some files. I'll keep hacking.

I just figured out how to edit posts... now I feel stupid. Sorry for all the double-posts.

To clarify, the problem is that it finds the first CD fine. (the UT GOTY CD) When it tries to find the Unreal Gold CD, it doesn't seem to do any checking... it just starts trying to copy stuff from the CD, which is still the UT GOTY CD since there's no time to switch CDs... Is there any way to make it pause so that you can switch CDs?

I managed to switch CDs by stopping the emerge process (with Ctrl+Z) after it finished the first Install target, and then fg'ing it once I had switched CDs and mounted the Unreal Gold CD. It's not very easy to catch at the right time, though. :P

After doing that, I finally got it to work... now I just need to resurface my Unreal Gold CD so I can get the 2 files that failed to copy.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Aug 22, 2006 6:32 am    Post subject: Reply with quote

You can't specify CD_ROOT when there's more than 1 CD involved :wink:

Specify CD_ROOT_1 and CD_ROOT_2 instead, and it will pause to allow you to mount the next CD.
Back to top
View user's profile Send private message
whitelynx
n00b
n00b


Joined: 20 May 2005
Posts: 15
Location: Fredonia, NY

PostPosted: Sun Mar 25, 2007 9:18 am    Post subject: Reply with quote

I pulled the "unreal-gold-226.ebuild non s3tc version" ebuild from the bug at https://bugs.gentoo.org/show_bug.cgi?id=130051, which I'm pretty sure is the same as this one.

I just installed this on another computer, and figured out what editing I should have done to get it working:
* Add "./" to the beginning of "data.tar.gz" on line 50
* Remove "./" from the beginning of "unpack ./IpDrv-436-Linux-08-20-02.zip" on line 57

The problem with specifying CD_ROOT_1 and CD_ROOT_2 is that it seems that the ebuild thinks that there's two CD 1's... when you emerge it, it says it finds CD 1, installs all its stuff, and then asks for CD 1 again. (even though the first time it needs the UT CD, and the second time it needs the Unreal Gold CD) To finally get it working, I had to copy the contents of both UT GOTY CDs and the Unreal Gold CD into a common temp directory and just point CD_ROOT there. Is there any way to get it to recognize that these CDs are in fact two separate ones so that it will pause and wait for you to unmount/eject the first one before going on to the second?

After getting it installed, I get the following error:

Code:
Failed to load 'marine': Can't find file for package 'marine'
Signal: SIGSEGV [segmentation fault]
Aborting.
Exiting.
Name subsystem shut down
Allocation checking disabled
Segmentation fault


I've had this working fine on other computers, and if I remember correctly, I even installed off the same CDs. I'm a bit baffled as to why it decides not to work on this machine.

PS - Sorry for posting on such an old thread, but I think this is the only one dealing with the Unreal Gold ebuild, so I think it's the right place. I promise I'll keep up with it better this time. :P


Last edited by whitelynx on Sun Mar 25, 2007 9:41 am; edited 1 time in total
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Mar 25, 2007 9:35 am    Post subject: Reply with quote

The bug is this one - get the quoting right, it does not have a comma at the end :wink:

Quote:
Remove "./" from the beginning of "unpack ./IpDrv-436-Linux-08-20-02.zip" on line 57

Quite right, that ebuild was obviously posted without being tested - please post your working ebuild on the bug.

Quote:
Is there any way to get it to recognize that these CDs are in fact two separate ones

Sounds familiar - look at check_dvd() in /usr/portage/eclass/games-ut2k4mod.eclass (or better, bugzilla), for custom CD/DVD checking.


Last edited by PaulBredbury on Sun Mar 25, 2007 9:40 am; edited 1 time in total
Back to top
View user's profile Send private message
whitelynx
n00b
n00b


Joined: 20 May 2005
Posts: 15
Location: Fredonia, NY

PostPosted: Sun Mar 25, 2007 9:40 am    Post subject: Reply with quote

Sorry about the misquote. I'll take a look at the ut2k4 eclass in the morning, when it's not so late. -.-

I figure I'll wait on posting my working ebuild until it's completely working. :wink: Any ideas on the segfault I'm getting? (sorry, I edited the post to tack that one on, so it may not have been there before you replied)
Back to top
View user's profile Send private message
whitelynx
n00b
n00b


Joined: 20 May 2005
Posts: 15
Location: Fredonia, NY

PostPosted: Sun Apr 01, 2007 8:53 am    Post subject: Reply with quote

Sorry it's taken me so long to get back to this... After taking a look at the ut2004-data and quake4-data ebuilds (both of which install fine on my machine :D) I think I've figured out how the ebuild needs to be modified... the problem seems to be that we should really be using the 'cdrom_load_next_cd' command on line 91 where it checks for the Unreal Gold CD... Since there's two choices for the first CD (ut vs. ut goty) and only one choice for the second (unreal gold), I could either write something similar to check_dvd from the games-ut2k4mod eclass, or I could simply add a USE flag to the ebuild to switch between the two, which would be much simpler from an implementation point of view... For now, I'm going to go with the USE flag for simplicity's sake. Do you think I should add the automatic CD check before I submit the ebuild?

One more thing I've run into... It seems that virtual/x11 shouldn't be used as a dependency... when attempting to emerge unreal-gold, it gives the following error:

Code:
!!! All ebuilds that could satisfy "virtual/x11" have been masked.
!!! One of the following masked packages is required to complete your request:
- virtual/x11-7.0-r2 (masked by: package.mask)
# Stefan Schweizer <genstef@gentoo.org> (25 Mar 2007)
# Please use modular Xorg now


For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by "games-fps/unreal-gold-226" [ebuild])


Should I simply remove it from the ebuild, or is there something it should be replaced with?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Apr 01, 2007 10:32 am    Post subject: Reply with quote

Look at how the unreal-tournament ebuild automatically installs from the CD(s). You can probably copy-n-paste a lot of that code into your ebuild.

virtual/x11 is ancient history now - replaced by the individual modular xorg libs required.
Back to top
View user's profile Send private message
whitelynx
n00b
n00b


Joined: 20 May 2005
Posts: 15
Location: Fredonia, NY

PostPosted: Sun Apr 01, 2007 11:18 am    Post subject: Reply with quote

Actually, before I read your reply, I found out the original author was half-right on how he was using cdrom_get_cds... when you specify two files separtated by a colon instead of whitespace, it checks for either of those files and then sets the CDROM_SET variable to 0 if the first one was matched, 1 if the second was, and so on... I made use of that to make the ebuild work for both UT and UT GOTY CDs.

Something similar to that ebuild should probably be done for Unreal to allow both standard Unreal and Unreal Gold to be installed from the same ebuild. Once I get this ebuild working I'll take a look at doing that.

This ebuild seems to have already had the modular xorg libs listed, but it was or'ed with virtual/x11, so I just removed the or and the dependency on virtual/x11.

I've finished the ebuild and tested it with UT GOTY, and the only errors I see are a whole bunch of warnings about pre-stripped files and such:

Code:
 * QA Notice: Pre-stripped files found:
 * /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/ALAudio.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Audio.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Core.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Editor.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Engine.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Fire.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/GlideDrv.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/IpDrv.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/NullDrv.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/NullRender.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/OpenGLDrv.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Render.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/SDLDrv.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/SDLGLDrv.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/SDLSoftDrv.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/UWeb.so
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/libSDL-1.1.so.0
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/libmikmod.so.2
/var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/libopenal-0.0.so
strip: i686-pc-linux-gnu-strip --strip-unneeded
   opt/unreal-gold/System/ucc-bin
   opt/unreal-gold/System/unreal-bin
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/ALAudio.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Audio.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.:/usr/local/lib' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Core.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Editor.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Engine.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Fire.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/GlideDrv.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/IpDrv.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/NullDrv.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/NullRender.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/OpenGLDrv.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/Render.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/SDLDrv.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/SDLGLDrv.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/SDLSoftDrv.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/UWeb.so
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/ucc-bin
scanelf: rpath_security_checks(): Security problem with relative DT_RPATH '.:/usr/local/lib' in /var/tmp/portage/games-fps/unreal-gold-226/image/opt/unreal-gold/System/unreal-bin

 * QA Notice: The following files contain runtime text relocations
 *  Text relocations force the dynamic linker to perform extra
 *  work at startup, waste system resources, and may pose a security
 *  risk.  On some architectures, the code may not even function
 *  properly, if at all.
 *  For more information, see http://hardened.gentoo.org/pic-fix-guide.xml
 *  Please include this file in your report:
 *  /var/tmp/portage/games-fps/unreal-gold-226/temp/scanelf-textrel.log
 * TEXTREL opt/unreal-gold/System/Core.so
TEXTREL opt/unreal-gold/System/Editor.so
TEXTREL opt/unreal-gold/System/Engine.so
TEXTREL opt/unreal-gold/System/NullDrv.so
TEXTREL opt/unreal-gold/System/NullRender.so
TEXTREL opt/unreal-gold/System/Render.so
TEXTREL opt/unreal-gold/System/SDLSoftDrv.so
TEXTREL opt/unreal-gold/System/libSDL-1.1.so.0


Other than that, the ebuild seems to work rather well now... the installed game even runs without a hitch. :D If the above warnings aren't that important, I can post this ebuild on the bug.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Apr 01, 2007 11:36 am    Post subject: Reply with quote

Some checking has to be done before calling Portage's CD routine, because the ebuild needs to first know the number of CDs involved - which is 2 for the GOTY edition.

Those QA violations cannot be fixed, because it's a binary-only package. Looks like some of them can be shut up by adding in the ebuild:
Code:
QA_TEXTRELS="*"

Similar to /usr/portage/dev-libs/klibc/klibc-1.4.13.ebuild
Back to top
View user's profile Send private message
whitelynx
n00b
n00b


Joined: 20 May 2005
Posts: 15
Location: Fredonia, NY

PostPosted: Sun Apr 01, 2007 11:41 am    Post subject: Reply with quote

Ok, I added QA_TEXTRELS="*" to quiet the QA warnings... as far as needing two CDs, the Unreal Gold ebuild doesn't actually need the second GOTY CD at all... it just needs the base engine files, which are all on the first CD. I'm pretty sure this is the case with the standard Unreal ebuild as well.

I'll attach my latest version of the ebuild to the bug.
Back to top
View user's profile Send private message
Mohij
n00b
n00b


Joined: 03 May 2005
Posts: 42
Location: Mosbach, Germany

PostPosted: Sun Apr 01, 2007 5:44 pm    Post subject: Reply with quote

Wow, wow, wow!!!
Sorry for not looking in here for so long. I didn't think someone would actually revive this post. I noticed it because of the bugzilla entry.

So to get some things straight, the ebuilds I posted, can not work, because CDROM_SET_NAMES is a non existant flag. IIRC I copied it from quake2-data.ebuild after some chatting with agame-dev, but this flag is broken. So using it is pointless. Some things are just not implemented yet. For more information see: https://bugs.gentoo.org/show_bug.cgi?id=139196.

So as your ebuild also uses this flag I guess it is just as broken as mine.

The next step in getting a nice solution for this situation would probably be implementing some working CD-Sets (see the link above).

Sorry again for all the mess, again.

Greetings,
moHiJ
_________________
Even a fool is thought wise if he keeps silent, and discerning if he holds his tongue.
Proverbs 17,28
Back to top
View user's profile Send private message
whitelynx
n00b
n00b


Joined: 20 May 2005
Posts: 15
Location: Fredonia, NY

PostPosted: Mon Apr 02, 2007 7:26 am    Post subject: Reply with quote

Actually, all that the CDROM_SET_NAMES variable is supposed to do is set the names of the CDs... I did notice that it wasn't working as expected. I'll change it to use the individual CD name variables instead. The ebuild does actually work without fixing that, though.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Apr 02, 2007 7:37 am    Post subject: Reply with quote

My advice is to create an ebuild which works now, despite inelegant code. There is to telling which day, month, or century the Gentoo devs will fix/enhance their own code.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum