Date: Mon, 3 Nov 2003 13:34:36 +1100 (EST) From: Edwin Groothuis <edwin@mavetju.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/58853: bsd.port.mk - MASTER_SITE_SUBDIR grouping disentangling is broken Message-ID: <20031103023436.D46386A7101@k7.mavetju> Resent-Message-ID: <200311030240.hA32eC6E029827@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 58853 >Category: ports >Synopsis: bsd.port.mk - MASTER_SITE_SUBDIR grouping disentangling is broken >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 02 18:40:12 PST 2003 >Closed-Date: >Last-Modified: >Originator: Edwin Groothuis >Release: FreeBSD 4.8-RELEASE i386 >Organization: - >Environment: System: FreeBSD k7.mavetju 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Sun Aug 17 16:04:25 EST 2003 edwin@k7.mavetju:/usr/src/sys/compile/k7 i386 >Description: See the makefile of net/pppoa: MASTER_SITES= http://download.ethomson.com/download/ \ ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= speedtouch DISTFILES= ${SPEEDTOUCH}.tar.bz2 ${ALCATELDRIVER} The output of "make all-fetchlist" is (amongst others) http://us.dl.sourceforge.net/speedtouch/speedtouch-1.2-beta2.tar.bz2 To disentangle the two distfiles and the two master_sites, use this: MASTER_SITES= http://download.ethomson.com/download/:mngt \ ${MASTER_SITE_SOURCEFORGE:S/$/:src/} MASTER_SITE_SUBDIR= speedtouch:src DISTFILES= ${SPEEDTOUCH}.tar.bz2:src ${ALCATELDRIVER}:mngt The output of "make all-fetchlist" is (amongst others) http://us.dl.sourceforge.net/speedtouch-1.2-beta2.tar.bz2 Note the lack of /speedtouch/ in the URL. According to bsd.port.mk, version 1.468, around line 1917: .for _S in ${MASTER_SITE_SUBDIR} _S_TEMP= ${_S:S/^${_S:C@/:[^/:]+$@/@}//:S/^://} . if !empty(_S_TEMP) The value of _S_TEMP is properly filled after the call. But the call to empty() treats it as an empty variable. >How-To-Repeat: See example in description. >Fix: Try a different kind of voodoo? (that's a joke) >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031103023436.D46386A7101>