r450663 (basic flavors) breaks WRKDIRPREFIX='' for complex ports

Lev Serebryakov lev at FreeBSD.org
Thu Nov 16 11:48:59 UTC 2017


On 15.11.2017 23:10, Bryan Drewery wrote:

> Use it as a make argument not an environment variable.
> % make extract WRKDIRPREFIX=''
 What is difference between

% make WRKDIRPREFIX='' extract

and

% make extract WRKDIRPREFIX=''

? It is not clear from man make :) I'm using first form typically, not
variable-before-make (which is environment).

> Works:
> 
>> ~/svn/ports/devel/subversion # WRKDIRPREFIX=/usr/local/ports make extract WRKDIRPREFIX=''
nope

% make extract WRKDIRPREFIX=''
make[1]: don't know how to make
/usr/home/lev/FreeBSD/ports/devel/subversion/work/.extract_done.subversion._usr_local.
Stop

make[1]: stopped in /usr/home/lev/FreeBSD/ports/devel/subversion
*** Error code 2

Stop.
make: stopped in /usr/home/lev/FreeBSD/ports/devel/subversion
%

> 
> I don't see anything in r450663 that would change this behavior.
> WKRDIRPREFIX was not exported in bsd.port.mk so I don't see how it ever
> worked for you as an environment variable.
> However you could continue using an environment variable if your
> make.conf instead had a ?=
>     WRKDIRPREFIX?= /usr/local/...
> 
 And this works! But still it is mystery, what changed that prevent old
variant to work. And error message is VERY surprising! It constructs
file name properly, but don't know how to make it!

-- 
// Lev Serebryakov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20171116/8b3f380a/attachment.sig>


More information about the freebsd-ports mailing list