Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make(1) bug or pkgsrc bug?



On Tue, Dec 30, 2008 at 04:36:00PM +0100, Thomas Klausner wrote:
> make: Unclosed substitution for  (/ missing)

One of these seems to come from fetch.mk.

I tried
        make -dv show-var VARNAME=PKGNAME
in /usr/pkgsrc/textproc/py-elementtree and got:
Global:DYNAMIC_SITES_CMD = ${SETENV} PATH=${PATH:Q} ${SH} 
${DYNAMIC_SITES_SCRIPT}
Global:.PARSEDIR = ../../mk/fetch
Global:.PARSEFILE = fetch.mk
Applying :U to ""
Result of :U is "elementtree-1.2.6-20050316.tar.gz"
Applying :T to "elementtree-1.2.6-20050316.tar.gz"
Result of :T is "elementtree-1.2.6-20050316.tar.gz"
Applying :S to "elementtree-1.2.6-20050316.tar.gz"
make: Unclosed substitution for  (/ missing)
Global:SITES. = /--/}?= ${MASTER_SITES}
Global:.PARSEDIR = ../../mk/fetch
Global:.PARSEFILE = fetch.mk

This probably corresponds to:
.if !empty(_DISTFILES)
.  for fetchfile in ${_DISTFILES}
SITES.${fetchfile:T:S/=/--/}?= ${MASTER_SITES}
.  endfor
.endif

where fetchfile is elementtree-1.2.6-20050316.tar.gz.

Attached a Makefile that reproduces this problem.

Cheers,
 Thomas
MASTER_SITES=http://host/
_DISTFILES=elementtree-1.2.6-20050316.tar.gz
.if !empty(_DISTFILES)
.  for fetchfile in ${_DISTFILES}
SITES.${fetchfile:T:S/=/--/}?= ${MASTER_SITES}
.  endfor
.endif

all:
        echo ${SITES.elementtree-1.2.6-20050316.tar.gz}


Home | Main Index | Thread Index | Old Index