Subject: pkg/7005: pkgsrc/cross constructs incorrect path for binutils
To: None <gnats-bugs@gnats.netbsd.org>
From: None <woferry@iname.com>
List: netbsd-bugs
Date: 02/14/1999 23:26:08
>Number:         7005
>Category:       pkg
>Synopsis:       pkgsrc/cross constructs incorrect path for binutils
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 14 23:35:00 1999
>Last-Modified:
>Originator:     William O Ferry
>Organization:
	
>Release:        <NetBSD-current source date> SUPed 02/14/1999, 16:45 PST
>Environment:
	
System: NetBSD warp.wofme.com 1.3H NetBSD 1.3H (kernel) #1: Sun Oct 18 15:32:03 PDT 1998 root@Ludicrous.Gemini.NU:/.u1/work/kernel i386


>Description:
	
cross.mk seems to be using an incorrect modifier to set the subdirectory on the
GNU FTP site.  It causes the FTP URL to lack the trailing slash, so FTP
attempts to get the file binutilsbinutils-2.9.1.tar.gz
>How-To-Repeat:
	(cd pkgsrc/cross/powerpc-netbsd && make)
	Notice that make tries several times to find binutils before it finally
succeeds.  This is why

# make -V MASTER_SITES
ftp://ftp.gnu.org/pub/gnu//binutils ftp://wuarchive.wustl.edu/systems/gnu//binutils ftp://egcs.cygnus.com/pub/egcs/releases/egcs-1.1.1/ ${MASTER_SITE_LOCAL} ${MASTER_SITE_BACKUP}
	
>Fix:
	
I'm not sure what the original line was supposed to do, but my change
seems to fix the problem.

--- /usr/src/pkgsrc/cross/COMMON/cross.mk.orig  Thu Feb  4 04:45:41 1999
+++ /usr/src/pkgsrc/cross/COMMON/cross.mk       Sun Feb 14 22:02:43 1999
@@ -28,7 +28,7 @@
 BINUTILS_WRKSRC=       ${WRKDIR}/${BINUTILS_DISTNAME}
 
 CROSS_DISTFILES+=      ${BINUTILS_DISTNAME}.tar.gz
-MASTER_SITES+=         ${MASTER_SITE_GNU:=binutils}
+MASTER_SITES+=         ${MASTER_SITE_GNU:S/%SUBDIR%/binutils/}
 CONFIGURE_ARGS+=       --with-gnu-as --with-gnu-ld
 DEPENDS+=              cross-binutils-2.9.1.0:../../cross/binutils
 PLIST_PRE+=            ${COMMON_DIR}/PLIST-binutils
>Audit-Trail:
>Unformatted:
pkgsrc/cross constructs incorrect path for binutils