Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84157 - descent3 fails to install if ${GAMES_PREFIX_OPT} != /opt/descent3
Summary: descent3 fails to install if ${GAMES_PREFIX_OPT} != /opt/descent3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-04 22:35 UTC by Eddward
Modified: 2005-03-09 05:25 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 Eddward 2005-03-04 22:35:20 UTC
When installing descent the ebuild would bomb in src_install on line 72, running

    bin/Linux/x86/loki_patch patch.dat ${Ddir} >& /dev/null || die "patching"

I have ${GAMES_PREFIX_OPT} set to a location under my /pub directory.  The cause of the failue is that is fails to find the descent3 executable when patching.  This is because exeinto & insinto where both called with /opt/descent explicitly instead of ${dir}.  Change these to calls, fixes the install for me.  I'd give you a patch, but I'm not familiar with the patch tools, and I want to sleep now.

Just go with this or something similar.

src_install() {
    dodir ${dir}
    einfo "Copying files... this may take a while..."
    exeinto ${dir}

    doexe ${CDROM_ROOT}/bin/x86/glibc-2.1/{descent3,nettest}
    insinto ${dir}

    .
    .
    .

Reproducible: Always
Steps to Reproduce:
1.  Set GAMES_PREFIX_OPT=/pub/games/opt in make.conf
2.  emerge descent3 and follow CD changing instructions (I assume you have the CD)
3.  Profit!

Actual Results:  
hursh@informant hursh $ sudo emerge -Du games-action/descent3
Calculating dependencies ...done!
>>> emerge (1 of 1) games-action/descent3-1.4.0b to /
>>> md5 src_uri ;-) descent3-1.4.0a-x86.run
>>> md5 src_uri ;-) descent3-1.4.0b-x86.run
 * The installed game takes about 1.2GB of space!
 * This package will need access to 2 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
 * 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.

 * For example:
 * export CD_ROOT_1=/mnt/cdrom

 * Found CD #1 root at /mnt/cdrom
 * The installed game takes about 510MB of space!
>>> Unpacking source...
>>> Unpacking descent3-1.4.0a-x86.run to
/pub/gentoo_overflow/tmp/portage/descent3-1.4.0b/work/descent3-1.4.0b/a
>>> Unpacking descent3-1.4.0b-x86.run to
/pub/gentoo_overflow/tmp/portage/descent3-1.4.0b/work/descent3-1.4.0b/b
>>> Source unpacked.
>>> Test phase [not enabled]: games-action/descent3-1.4.0b

>>> Install descent3-1.4.0b into
/pub/gentoo_overflow/tmp/portage/descent3-1.4.0b/image/ category games-action
 * Copying files... this may take a while...
descent3                         | 100% |  3150 KiB |   747 KiB/s | ETA 00:00.00

 * Please insert cd #2 for descent3 now !
 * Press return to scan for the cd again
 * or hit CTRL+C to abort the emerge.

 * Found CD #2 root at /mnt/cdrom

!!! ERROR: games-action/descent3-1.4.0b failed.
!!! Function src_install, Line 72, Exitcode 3
!!! patching
!!! If you need support, post the topmost build error, NOT this status message. 

Expected Results:  
informant root # CD_ROOT=~hursh/tmp/descent3/cdrom/ emerge -Du
games-action/descent3 
Calculating dependencies ...done!
>>> emerge (1 of 1) games-action/descent3-1.4.0b to /
>>> md5 src_uri ;-) descent3-1.4.0a-x86.run
>>> md5 src_uri ;-) descent3-1.4.0b-x86.run
 * The installed game takes about 1.2GB of space!
 * Found CD #1 root at /home/hursh/tmp/descent3/cdrom/
 * The installed game takes about 510MB of space!
>>> Unpacking source...
>>> Unpacking descent3-1.4.0a-x86.run to
/pub/gentoo_overflow/tmp/portage/descent3-1.4.0b/work/descent3-1.4.0b/a
>>> Unpacking descent3-1.4.0b-x86.run to
/pub/gentoo_overflow/tmp/portage/descent3-1.4.0b/work/descent3-1.4.0b/b
>>> Source unpacked.
>>> Test phase [not enabled]: games-action/descent3-1.4.0b

>>> Install descent3-1.4.0b into
/pub/gentoo_overflow/tmp/portage/descent3-1.4.0b/image/ category games-action
 * Copying files... this may take a while...
 * Using same root as before for CD #2
Computing MD5 sums for new uninstaller, this may take a while...
man:%
>>> Completed installing descent3-1.4.0b into
/pub/gentoo_overflow/tmp/portage/descent3-1.4.0b/image/

>>> Merging games-action/descent3-1.4.0b to /
--- /pub/
--- /pub/games/
--- /pub/games/opt/
>>> /pub/games/opt/descent3/
>>> /pub/games/opt/descent3/descent3
>>> /pub/games/opt/descent3/nettest
>>> /pub/games/opt/descent3/FAQ.txt
>>> /pub/games/opt/descent3/README
>>> /pub/games/opt/descent3/README.mercenary
>>> /pub/games/opt/descent3/d3.hog
>>> /pub/games/opt/descent3/icon.bmp
>>> /pub/games/opt/descent3/icon.xpm
>>> /pub/games/opt/descent3/Dedicated.cfg
>>> /pub/games/opt/descent3/custom/
>>> /pub/games/opt/descent3/custom/cache/
>>> /pub/games/opt/descent3/custom/graphics/
>>> /pub/games/opt/descent3/custom/sounds/
>>> /pub/games/opt/descent3/custom/settings/
>>> /pub/games/opt/descent3/demo/
>>> /pub/games/opt/descent3/demo/empty
>>> /pub/games/opt/descent3/demo/Secret2.dem
>>> /pub/games/opt/descent3/extra.hog
>>> /pub/games/opt/descent3/extra13.hog
>>> /pub/games/opt/descent3/imd.bmp
>>> /pub/games/opt/descent3/missions/
>>> /pub/games/opt/descent3/missions/bedlam.mn3
>>> /pub/games/opt/descent3/missions/dementia.mn3
>>> /pub/games/opt/descent3/missions/frenzy.mn3
>>> /pub/games/opt/descent3/missions/fury.mn3
>>> /pub/games/opt/descent3/missions/training.mn3
>>> /pub/games/opt/descent3/missions/d3.mn3
>>> /pub/games/opt/descent3/missions/d3_2.mn3
>>> /pub/games/opt/descent3/missions/d3voice1.hog
>>> /pub/games/opt/descent3/missions/d3voice2.hog
>>> /pub/games/opt/descent3/movies/
>>> /pub/games/opt/descent3/movies/end.mve
>>> /pub/games/opt/descent3/movies/intro.mve
>>> /pub/games/opt/descent3/movies/level1.mve
>>> /pub/games/opt/descent3/movies/level5.mve
>>> /pub/games/opt/descent3/online/
>>> /pub/games/opt/descent3/online/Direct TCP~IP.d3c
>>> /pub/games/opt/descent3/online/Parallax Online.d3c
>>> /pub/games/opt/descent3/ppics.hog
>>> /pub/games/opt/descent3/d3-linux.hog
>>> /pub/games/opt/descent3/netgames/
>>> /pub/games/opt/descent3/netgames/Anarchy.d3m
>>> /pub/games/opt/descent3/netgames/co-op.d3m
>>> /pub/games/opt/descent3/netgames/ctf.d3m
>>> /pub/games/opt/descent3/netgames/entropy.d3m
>>> /pub/games/opt/descent3/netgames/hoard.d3m
>>> /pub/games/opt/descent3/netgames/hyperanarchy.d3m
>>> /pub/games/opt/descent3/netgames/monsterball.d3m
>>> /pub/games/opt/descent3/netgames/robo-anarchy.d3m
>>> /pub/games/opt/descent3/netgames/tanarchy.d3m
>>> /pub/games/opt/descent3/PPics.Hog -> ppics.hog
>>> /pub/games/opt/descent3/descent3.dynamic
>>> /pub/games/opt/descent3/README-1.4.0b
--- /pub/games/bin/
>>> /pub/games/bin/descent3
--- /usr/
--- /usr/share/
--- /usr/share/pixmaps/
>>> /usr/share/pixmaps/descent3.xpm
--- /usr/share/applications/
>>> /usr/share/applications/descent3.desktop
 * To play the game run:
 *  descent3
 * Remember, in order to play games, you have to
 * be in the 'games' group.

 * See the usermod(8) manpage for more information.

>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...
>>> games-action/descent3-1.4.0b merged.

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * Regenerating GNU info directory index...
 * Processed 228 info files.


I got nothing, but I'm tired.  Let me know if I can help.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-03-05 05:29:54 UTC
Fixed... I didn't bump the version since you're probably the only person this has affected... ;]

Wait and hour and emerge sync, then try again.
Comment 2 Eddward 2005-03-05 20:13:07 UTC
I'm syncing now.  I'll unmerge and remerge and let you know how it goes.  You wouldn't happen to also maintain games-fps/soldieroffortune would you?
Comment 3 Eddward 2005-03-05 20:57:06 UTC
It installed fine.  Thanks.  

Soldlier of fortune has the same problem.  Should I open another bug report?  Actually, taking a quick look at my shelf to see what I still plan to reinstall, heavy gear & fakk2 have the same problem.  Should I try fixing them up for my setup first and submit all/any changes needed then?
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2005-03-06 06:45:29 UTC
Yes, please... and even though they're the same problem... please file separate bugs...

Also, let me know if you've got any other games, even ones not in portage, as I have quite a few that I haven't added and we could work together to get some rebuilds created for them.
Comment 5 Eddward 2005-03-08 20:29:18 UTC
So to put more traffic on a resolved bug.  I would be willing to help with adding ebuild for the other games I have.  I sent an email to your address in the comment  likn and I didn't hear back.  If it didn't get through and you are still interested, let me know and I'll resend my list of games.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2005-03-09 05:25:31 UTC
I got it.  I'm just busy.

I'll get back to you after the release.