Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185385 - games-kids/childsplay-0.85.1 creates root level directory
Summary: games-kids/childsplay-0.85.1 creates root level directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 187197 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-15 08:12 UTC by christian
Modified: 2007-07-31 03:47 UTC (History)
1 user (show)

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


Attachments
full output from emerge of childsplay (games-kids:childsplay-0.85.1:20070714-043645.log,38.30 KB, text/plain)
2007-07-31 00:34 UTC, christian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description christian 2007-07-15 08:12:35 UTC
emerging childsplay creates a root level directory.  this is a no-no, right?  it should be created in /opt or such.

ecompressdir: bzip2 -9 usr/share/man
./
./var/
./var/games/
./var/games/childsplay.score
./childsplay/
./childsplay/pyassetmlcreator.py
./childsplay/splash.py
./childsplay/lib/
./childsplay/lib/numbers.py
./childsplay/lib/billiard.py
./childsplay/lib/puzzle.py
./childsplay/lib/fallingletters.py
./childsplay/lib/memory.py
./childsplay/lib/multiTables.py
./childsplay/lib/findsound2.py
./childsplay/lib/soundNpic.py
./childsplay/lib/letterFlashcard.pyc
./childsplay/lib/pong.py
./childsplay/lib/soundmemory.py
./childsplay/lib/packid.py
./childsplay/lib/letters.py
./childsplay/lib/findsound.py
./childsplay/lib/letterFlashcard.py
./childsplay/CPMenu.py
./childsplay/CPConstants.py
./childsplay/childsplay.py
./childsplay/BASEPATH.py
./childsplay/pyassetml.py
./childsplay/version.py
./childsplay/pyassetmlSDL.py
./childsplay/out.py
./childsplay/Timer.py
./childsplay/letters-trans.py
./childsplay/add-score.py
./childsplay/install.py
./childsplay/SpriteUtils.py
./childsplay/utils.py
./usr/
./usr/games/
./usr/games/bin/
./usr/games/bin/childsplay
.........

Reproducible: Always

Steps to Reproduce:
1. emerge childsplay
2.
3.
Comment 1 Tristan Heaven (RETIRED) gentoo-dev 2007-07-30 23:52:20 UTC
*** Bug 187197 has been marked as a duplicate of this bug. ***
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2007-07-31 00:20:25 UTC
reopen with the output from "emerge --info"
Comment 3 christian 2007-07-31 00:24:12 UTC
Portage 2.1.2.9 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-ck1-20070714-64 x86_64)
=================================================================
System uname: 2.6.20-ck1-20070714-64 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 29 Jul 2007 00:00:10 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -finline-functions -fprefetch-loop-arrays -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/X11 /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/X11/xkb /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -finline-functions -fprefetch-loop-arrays -ftree-vectorize"
DISTDIR="/local/distfiles"
FEATURES="buildpkg distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US"
LINGUAS="en"
MAKEOPTS="--jobs=2 --quiet"
PKGDIR="/local/packages64"
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="/local/gentoo/tmp"
PORTDIR="/local/gentoo/portage"
PORTDIR_OVERLAY="/local/gentoo/overlays/se /local/gentoo/overlays/xeffects /local/gentoo/overlays/xeffects-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X Xaw3d a52 aac aalib acl acpi aiglx alsa amd64 amr amuled apache2 apm arj arts asf audiofile avahi avi berkdb bidi bindist binfilter bitmap-fonts bl browserplugin bzip2 cairo cdda cddb cdio cdparanoia cdr cli cpudetection cracklib crypt css cups curl custom-cflags dbus device-mapper dga dio directfb divx divx4linux dlloader dmi dmx dri dts dv dvb dvd dvdr dvdread dxr3 eds emboss emerald encode erandom esd evo exif expat fam fame fat fbcon ffmpeg fftw firefox flac font-server foomaticdb fortran freetype ftp fuse gdbm ggi gif gimpprint glibc-omitfp glitz glut gmedia gmp gnome gnutls gpm grammar gstreamer gtk gtk2 gtkhtml gtkspell hal hfs httpd i8x0 iconv icq idn ieee1394 imagemagick imlib ipv6 irc isdnlog ithreads jack jack-tmpfs java jbig jfs joystick jpeg jpeg2000 justify kde kdeenablefinal kdexdeltas kerberos kqemu ladcca lame lcd lcms ldap lha libcaca libclamav libg++ libgda libvisual libwww linuxthreads-tls live lzo mad math matroska mbox mgetty midi mikmod mime mjpeg mmap mmx mng modplug motif mozbranding mozilla mp3 mp4 mpeg mplayer mudflap musepack mysql mythtv nas ncurses nls nntp nocd nptl nptlonly nsplugin ntfs nvidia objc ofx ogg oggvorbis openal opengl openmp oss ots pam pcre pdf pdflib perl perlsuid php pic pie png portaudio posix pppd profile pulseaudio python qt qt3 qt3support qt4 quicktime rar readline realmedia recode reflection reiser4 reiserfs rtc samba sdl session shared shorten slang smp sndfile socks5 sox speex spell spl sqlite sse sse2 ssl stream subtitles svg tcl tcpd test tga theora thesaurus threads threadsafe tiff tk toolbar tools transmitter truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l vcd vdr vlm vorbis wmf wmp wxwindows x264 xanim xcomposite xfs xine xinerama xinetd xml xml2 xorg xprint xv xvid xvmc yahoo zip zlib" ALSA_CARDS="ens1370 intel8x0 mpu401" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="hauppauge" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2007-07-31 00:29:02 UTC
you probably have some other games.eclass or something in your overlays.  games_get_libdir() should be returning the right directory.

Attach the full output from the build as text/plain please.
Comment 5 christian 2007-07-31 00:30:55 UTC
   i've had childsplay for months.  the problem with childspay appeared during an emerge -e sytstem and world about three weeks ago.

   i have this same problem with epsxe-1.6.0-r3.  epsxe was recently merged for the first time a few days ago.  

>>> Completed installing epsxe-1.6.0-r3 into /mnt/atomic/local/gentoo/tmp/portage/games-emulation/epsxe-1.6.0-r3/image/

./
./psemu/
./psemu/cheats/
./psemu/cheats/breath_of_fire_4_usa.cht
./psemu/cheats/tarzan_pal.cht
./psemu/cheats/chrono_cross_ntsc.cht
./opt/
./opt/epsxe/
./opt/epsxe/epsxe
./opt/epsxe/keycodes.lst
Comment 6 christian 2007-07-31 00:34:53 UTC
Created attachment 126504 [details]
full output from emerge of childsplay
Comment 7 christian 2007-07-31 00:48:12 UTC
childsplay-0.85.1.ebuild
...
	# The following variables are based on Childsplay's INSTALL.sh
	_LOCALEDIR=/usr/share/locale
	_ASSETMLDIR=/usr/share/assetml
	_SCOREDIR=${GAMES_STATEDIR}
	_SCOREFILE=${_SCOREDIR}/childsplay.score
	_CPDIR=${GAMES_LIBDIR}/childsplay
	_SHAREDIR=${GAMES_DATADIR}/childsplay

and in INSTALL.sh

EXECDIR=$PREFIX/bin
LOCALEDIR=$PREFIX/share/locale
ASSETMLDIR=/usr/share/assetml
SCOREDIR=/var/games
SCOREFILE=$SCOREDIR/childsplay.score
DOCDIR=$PREFIX/share/doc/childsplay
MANDIR=$PREFIX/man/man6
CPDIR=$PREFIX/lib/games/childsplay
SHAREDIR=$PREFIX/share/childsplay
BINDIR=$PREFIX/games
LIBDIR=$CPDIR/lib
MODULESDIR=$LIBDIR
SHARELIBDATADIR=$SHAREDIR/lib
SHAREDATADIR=$SHAREDIR/Data
RCDIR=$SHARELIBDATADIR/ConfigData

HOME_DIR_NAME=.childsplay
CHILDSPLAYRC=childsplayrc

OLDCPDIR=$PREFIX/games/childsplay

so....

GAMES_LIBDIR and GAMES_DATADIR are never set.  which would leave CPDIR and SHAREDIR putting childsplay in / ... right?
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2007-07-31 01:21:56 UTC
You have an old ebuild.  Resync.  Should look like this:

    _LOCALEDIR=/usr/share/locale
    _ASSETMLDIR=/usr/share/assetml
    _SCOREDIR=${GAMES_STATEDIR}
    _SCOREFILE=${_SCOREDIR}/childsplay.score
    _CPDIR=$(games_get_libdir)/childsplay
    _SHAREDIR=${GAMES_DATADIR}/childsplay
    _LIBDIR=${_CPDIR}/lib
    _MODULESDIR=${_LIBDIR}
    _SHARELIBDATADIR=${_SHAREDIR}/lib
    _SHAREDATADIR=${_SHAREDIR}/Data
    _RCDIR=${_SHARELIBDATADIR}/ConfigData
    _HOME_DIR_NAME=.childsplay
    _CHILDSPLAYRC=childsplayrc
Comment 9 christian 2007-07-31 02:17:37 UTC
   the problem is corrected if i disable my overlays.  i have checked my overlay directories and none of them contain any eclasses.  it is common advise to create an overlay.  i only use mine to keep certain ebuilds that drop out of portage but i don't really like the updated programs (for instance gliv ... the new one in portage has different keyboard controls than the one i use).
   i tried softlinking the eclass directory from the main portage tree into my overlay, but that didn't work.
   i'm worried now... what other problems might using overlays cause or have already cause?
   please advise... thanks.
Comment 10 christian 2007-07-31 03:24:19 UTC
   ok, the childsplay ebuild in my overlay was an exact copy from the main portage tree.  but, at some point the ebuild in portage was updated and changed but the version number stayed the same.  during the world emerge whatever changes were made to the ebuild showed up since the whole system was rebuilt.  i check my overlays to see if any have been upgraded so i can remove or add them as i want, but how is a user supposed to know an ebuild has changed when the version number stays the same.  there's gotta be some way of versioning the ebuilds.  i'd say add the date to the ebuild.  so childsplay-0.85.1 becomes childsplay-0.85.1-20070127.
   anyhow, i replaced my overlay 0.85.1 with the current portage 0.85.1, updated the digest, and it installed properly.
Comment 11 christian 2007-07-31 03:47:38 UTC
   BTW... thanks for your all help mr. bones.  if i'd have checked my email sooner, i'd have realized you figured out the problem 2 hours before me! ha!

  i fixed the problem with my Epsxe overlay by tweaking the ebuild for amd64 from this bug by replacing the install section with the part from the ebuild in portage...  i noticed you name in the ebuild. 
http://bugs.gentoo.org/show_bug.cgi?id=104751