Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199709 - games-fps/ut2004-data-3186-r3: Deletes packages.md5 and manifests causing ut2004 to fail to start
Summary: games-fps/ut2004-data-3186-r3: Deletes packages.md5 and manifests causing ut2...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-19 23:19 UTC by cypher.ciscosystems
Modified: 2007-11-29 18:06 UTC (History)
0 users

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


Attachments
Edited ut2004-data-3186-r3 ebuild, maybe make this one an ut2004-data-3186-r4? (ut2004-data-3186-r4.ebuild,7.43 KB, text/plain)
2007-11-19 23:26 UTC, cypher.ciscosystems
Details
Patch against ut2004-data-3186-r3 (fix-ut2004-ebuild.patch,558 bytes, patch)
2007-11-20 01:15 UTC, cypher.ciscosystems
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description cypher.ciscosystems 2007-11-19 23:19:54 UTC
the ut2004-data-3186-r3 ebuild seems to get a little over-enthusiastic in deleting 'unneccessary' files. It seems to end up deleting Packages.md5 and the manifests ut2004 keeps. This causes ut2004 to fail to start :(

Havent seen people posting about this much other than in the server community but my system isnt anything special so this HAS to affect more than just me =)

Reproducible: Always

Steps to Reproduce:
1. Insert UT2004 installation media.
2. Emerge ut2004 and allow to complete.
3. Attempt to run ut2004. 

Actual Results:  
The following error is printed to the terminal:

Failed loading package: Can't find file 'Packages.md5'




History:

Exiting due to error




Expected Results:  
Unreal Tournament 2004 startup video and main menu displayed.

The issue can be resolved completely (without installing ut2004 outside of portage and fudging with packages.provided, or avoiding portage completely) by editing ut2004-data-3186-r3.ebuild (I made an -r4) and removing the offending lines. 

 rm -f "${Ddir}"/System/{Manifest.int,Packages.md5} 
 rm -f "${Ddir}"/System/{{License,Manifest}.smt,{ucc,StdOut}.log}

This second line im not so sure of however it was done due to the fact reinjecting Packages.md5 didnt seem to be enough. The Manifest files also seem important. Shall attach my edited ut2004-data ebuild since its just too few lines for a patch :P

Digesting and emerging using this ebuild fixes the error and the game launches without incident =). 


While not in my thinking, /that/ relevant (in this particular situation only), my emerge --info is below

-Setup-

Portage 2.1.3.19 (default-linux/x86, gcc-4.1.2, glibc-2.6.1-r0, 2.6.20-hardened-r2 i686)
=================================================================
System uname: 2.6.20-hardened-r2 i686 AMD Athlon(tm) XP 2500+
Timestamp of tree: Sat, 17 Nov 2007 05:30:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-mtune=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LINGUAS="en_GB"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amrnb amrwb apache2 avi berkdb bitmap-fonts blender-game cairo cddb cdparanoia cdr chroot cjk cli console cracklib crypt css dbus djvu dlloader dri dts dvd dvdr dvdread dvi effects encode exif extrafilters ffmpeg fftw flac font-server fortran galago gif glitz gnutls gphoto2 gstreamer gtk+ gtk2 hal iconv ieee1394 imap imlib inkjar ipod ipv6 isdnlog jabber javascript jpeg kerberos lcms libcaca libnotify live mad matroska midi mikmod mmx mmxext modplug mono moznocompose moznoirc moznomail mp2 mp3 mpeg msn msnextras mudflap ncurses nls nptl nptlonly nvidia offensive ogg openal opengl openmp openssl oscar oss pam pam_chroot pam_timestamp pcre pdf perl pic plugin png pppd prelink python quicktime rdesktop readline reflection remote samba sasl sdl session silc sndfile socks5 spell spl sqlite sse ssl svg tcpd theora threads tiff tk truetype truetype-fonts type1-fonts unicode usb vorbis wifi win32codecs wma x264 x86 xfs xinerama xorg xscreensaver xv xvid yahoo zlib" ALSA_CARDS="cmipci ymfpci emu10k1x" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nv nvidia vga vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 cypher.ciscosystems 2007-11-19 23:26:23 UTC
Created attachment 136447 [details]
Edited ut2004-data-3186-r3 ebuild, maybe make this one an ut2004-data-3186-r4?

The rm -r line containing ucc and friends may not need to be removed. I noticed it targeted another manifest so I killed that line too. Anyone else able to test before and after my ebuild?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-11-19 23:48:54 UTC
Please attach a unifies diff, not a huge ebuild. Thanks.
Comment 3 cypher.ciscosystems 2007-11-20 01:15:01 UTC
Created attachment 136463 [details, diff]
Patch against ut2004-data-3186-r3
Comment 4 Paul Bredbury 2007-11-27 01:47:33 UTC
Take a look at
http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/games-fps/ut2004-bonuspack-mega/ut2004-bonuspack-mega-1-r2.ebuild?rev=1.2
Notice "Packages.md5"

And
http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/games-fps/ut2004/ut2004-3369-r4.ebuild
Notice:
RDEPEND... >=games-fps/ut2004-bonuspack-mega-1-r1
# These files are owned by ut2004-bonuspack-mega
rm "${S}"/System/{Manifest.in{i,t},Packages.md5}

If UT2004 failed to start, the forums would be full of it, and people would be screaming from the rooftops.

This bug is INVALID.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-29 17:59:02 UTC
Agreed.  It works perfectly here, and I even went and removed my ~/.ut2004 and wiped out /opt/ut2004 so there wasn't anything left on the system before testing.
Comment 6 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-29 18:06:13 UTC
Err...
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2007-11-29 18:06:29 UTC
Sorry for the bug spam...