Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29845 - gdb-5.3.90 fails to apply gdb-5_3-objc patch
Summary: gdb-5.3.90 fails to apply gdb-5_3-objc patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-28 17:25 UTC by Brandy Westcott (RETIRED)
Modified: 2003-10-27 11:39 UTC (History)
1 user (show)

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 Brandy Westcott (RETIRED) gentoo-dev 2003-09-28 17:25:02 UTC
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
	.....
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-13 13:31:50 UTC
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.
Comment 2 Jason Wever (RETIRED) gentoo-dev 2003-10-18 14:36:31 UTC
Azarah, 

Unfixed the objc line from the previous "fix" from bug #29390.

It now compiles for me with and without objc useflag.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-27 11:39:51 UTC
Fixed by Jason.