Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247022 - games-strategy/asc-2.1.0.0 fails to merge
Summary: games-strategy/asc-2.1.0.0 fails to merge
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: http://www.asc-hq.org/
Whiteboard:
Keywords:
: 247477 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-11-16 05:19 UTC by Norman Jonas
Modified: 2008-11-18 19:50 UTC (History)
1 user (show)

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


Attachments
Proposed / working ebuild (asc-2.1.0.0.ebuild,1.69 KB, text/plain)
2008-11-17 02:32 UTC, Norman Jonas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Norman Jonas 2008-11-16 05:19:44 UTC
emergeing games-strategy/asc-2.1.0.0 fails with this error message :

 * 
 * ERROR: games-strategy/asc-2.1.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2653:  Called die
 * The specific snippet of code:
 *                   cp "${DISTDIR}/${f}" "${S}/data/music" || die "cp music failed"
 *  The die message:
 *   cp music failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-strategy/asc-2.1.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-strategy/asc-2.1.0.0/temp/environment'.
 * 


Reproducible: Always
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2008-11-17 01:38:09 UTC
Builds fine for me.  If you still have issues, reopen with the information requested in the error message you posted and your emerge --info
Comment 2 Norman Jonas 2008-11-17 02:26:24 UTC
As far as i can see

cp "${DISTDIR}/${f}" "${S}/data/music" || die "cp music failed"

in

src_unpack() {
	local f

	for f in ${A}
	do
		case ${f} in
		*ogg)
			cp "${DISTDIR}/${f}" "${S}/data/music" || die "cp music failed"
			;;
		*) unpack ${f}
		esac
	done
}

fails because ${S}/data/music does not exists at that time because the source itself has not yet been unpacked. I dont know what ${A} refers to - probably the source files - but the order seems to be different from what the ebuld demands to work. Probably the source should be unpacked first and not in that loop as long as portage-2.2 does not guarante the wanted order.

build.log :

>>> Unpacking source...
cp: regul��re Datei ���/var/tmp/portage/games-strategy/asc-2.1.0.0/work/asc-2.1.0.0/data/music��� kann nicht angelegt werden: Datei oder Verzeichnis nicht gefunden
 * 
 * ERROR: games-strategy/asc-2.1.0.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 2653:  Called die
 * The specific snippet of code:
 *                   cp "${DISTDIR}/${f}" "${S}/data/music" || die "cp music failed"
 *  The die message:
 *   cp music failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/games-strategy/asc-2.1.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-strategy/asc-2.1.0.0/temp/environment'.
 * 

emerge --info :

Portage 2.2_rc14 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.26-gentoo x86_64)
=================================================================
System uname: Linux-2.6.26-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-glibc2.2.5
Timestamp of tree: Sun, 16 Nov 2008 21:02:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=athlon64 -march=athlon64 -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mtune=athlon64 -march=athlon64 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks keepwork parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirror.muntinternet.net/pub/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.jamit.de/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/gnome /usr/local/portage/eigene"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa amd64 bash-completion bluetooth bzip2 cairo cdr cli cracklib crypt cups custom-cflags dbus devhelp dri dvd dvdr dvdread eds exif fam ffmpeg fontconfig fuse gif glib glibc-omitfp glitz gnome gnome-keyring gnutls gpm graphviz gstreamer gtk hal iconv inotify isdnlog jpeg lcms libnotify mad midi mikmod mmx mmxext mng mp3 mpeg mudflap multilib nautilus ncurses nls nocxx nptl nptlonly ogg openal opengl openmp pam pango pcre png policykit pppd readline reflection sdl session smp spell spl sse sse2 ssl startup-notification svg sysfs theora threads tiff truetype unicode usb utempter vorbis wmf x264 xcb xcomposite xine xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 3 Norman Jonas 2008-11-17 02:32:31 UTC
Created attachment 172040 [details]
Proposed / working ebuild

This ebuild works fine for me ( currently emerging )
Comment 4 Norman Jonas 2008-11-17 02:33:46 UTC
I only moved the unpack infront of the loop :

src_unpack() {
	local f

	unpack ${P}.tar.bz2

	for f in ${A}
	do
		case ${f} in
		*ogg)
			cp "${DISTDIR}/${f}" "${S}/data/music" || die "cp music failed"
			;;
		esac
	done
}
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2008-11-17 19:31:04 UTC
fixed.  seems like a change in behavior between portage versions.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2008-11-18 19:50:29 UTC
*** Bug 247477 has been marked as a duplicate of this bug. ***