emerging gdb-5.3.90 with the objc USE flag set results in the following error during src_unpack(): >>> Unpacking gdb-5_3-objc-patch.tgz to /var/tmp/portage/gdb-5.3.90/work tar (child): /usr/portage/distfiles/gdb-5_3-objc-patch.tgz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child returned status 2 tar: Error exit delayed from previous errors !!! ERROR: sys-devel/gdb-5.3.90 failed. !!! Function unpack, Line 281, Exitcode 2 !!! failure unpacking gdb-5_3-objc-patch.tgz This looks to be caused by a the ebuild only downloading the gdb-5_3-objc patch if SNAPSHOT is *not* set: if [ -n "${SNAPSHOT}" ] then SRC_URI="mirror://gentoo/${P}-${SNAPSHOT}.tar.bz2 mirror://gentoo/${P}-${SNAPSHOT}-patches-${PATCH_VER}.tar.bz2" else SRC_URI="http://mirrors.rcn.net/pub/sourceware/gdb/releases/${P}.tar.bz2 objc? ( ftp://ftp.gnustep.org/pub/gnustep/patches/gdb-5_3-objc-patch.tgz )" fi then the ebuild applies the patch only if SNAPSHOT *is* set: if [ -n "`use objc`" -a -n "${SNAPSHOT}" ] then cd ${WORKDIR} unpack gdb-5_3-objc-patch.tgz cd ${S} patch -p1 < ${WORKDIR}/gdb-5_3-objc-patch/gdb-5.3-objc-patch.diff || die .....
Its this patch: http://bugs.gentoo.org/attachment.cgi?id=18196&action=view Only the hppa/sparc patches should have been applied - you can actually remove the checks for $SNAPSHOT for the hppa/sparc patches. Change the test back to: if [ -n "`use objc`" -a -z "${SNAPSHOT}" ] for objc however. Thanks.
Azarah, Unfixed the objc line from the previous "fix" from bug #29390. It now compiles for me with and without objc useflag.
Fixed by Jason.