Subject: pkg/30381: fvwm2 fails to build if gtar is not installed
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Alexander Becher <abecher@kawo2.rwth-aachen.de>
List: pkgsrc-bugs
Date: 05/30/2005 22:22:00
>Number:         30381
>Category:       pkg
>Synopsis:       fvwm2 fails to build if gtar is not installed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 30 22:22:00 +0000 2005
>Originator:     Alexander Becher
>Release:        NetBSD 2.0_STABLE
>Organization:
>Environment:
	
	
System: NetBSD abc 2.0_STABLE NetBSD 2.0_STABLE (MYKERNEL-2-0.1) #0: Tue Apr 26 20:27:40 CEST 2005 alex@abc:/usr/obj/sys/arch/i386/compile/MYKERNEL-2-0.1 i386
Architecture: i386
Machine: i386
>Description:
alex@abc:/usr/pkgsrc/wm/fvwm2$  make patch
===> Checking for vulnerabilities in fvwm2-2.4.19nb1
=> Checksum SHA1 OK for fvwm-2.4.19.tar.gz.
=> Checksum RMD160 OK for fvwm-2.4.19.tar.gz.
=> Checksum SHA1 OK for fvwm_icons.tgz.
=> Checksum RMD160 OK for fvwm_icons.tgz.
===> Extracting for fvwm2-2.4.19nb1
===> Required installed package xpmroot-2.*: xpmroot-2.4.19 found
===> Required installed package readline>=5.0: readline-5.0 found
===> Required installed package xpkgwedge>=1.5: xpkgwedge-1.12 found
===> Required installed package x11-links>=0.24: x11-links-0.24 found
/bin/mkdir -p /usr/pkgobj/wm/fvwm2/work/icons
-xzf /home/distfiles/fvwm_icons.tgz -C /usr/pkgobj/wm/fvwm2/work/icons
make: exec(-xzf) failed (No such file or directory)
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wm/fvwm2
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/wm/fvwm2

>How-To-Repeat:
	see above
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/wm/fvwm2/Makefile,v
retrieving revision 1.43
diff -u -r1.43 Makefile
--- Makefile	16 May 2005 01:15:34 -0000	1.43
+++ Makefile	30 May 2005 22:15:19 -0000
@@ -22,7 +22,6 @@
 USE_X11BASE=		YES
 GNU_CONFIGURE=		YES
 USE_GNU_READLINE=	YES
-PKGSRC_USE_TOOLS+=	gtar
 
 PLIST_SUBST+=		FVWM_VER=${FVWM_VER}
 
@@ -38,7 +37,7 @@
 
 post-extract:
 	${MKDIR} ${WRKDIR}/icons
-	${GTAR} -xzf ${DISTDIR}/fvwm_icons.tgz -C ${WRKDIR}/icons
+	(cd ${WRKDIR}/icons && ${TAR} -xzf ${DISTDIR}/fvwm_icons.tgz)
 
 post-install:
 	@${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/fvwm2/pixmaps


>Unformatted: