1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Steal the 'hmake' variable building from mkpinstall. This wasn't

properly fixing the username in the *OWN variables passed to make(1).
This commit is contained in:
Neil Blakey-Milner 2001-04-02 10:35:29 +00:00
parent c5302c5f25
commit 029193aa5d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=40741

View File

@ -53,10 +53,12 @@ $tmpdir = "$tmpbase/$user.$portname";
$wdpdir = "$tmpdir/wdp";
$predir = "$tmpdir/prefix";
$hmake = "env WRKDIRPREFIX=$wdpdir " .
"{SHARE,MAN,LIB,BIN}{OWN,GRP}=$user " .
"PREFIX=$predir NO_PKG_REGISTER=1 make";
$hmake = "env WRKDIRPREFIX=$wdpdir PREFIX=$predir NO_PKG_REGISTER=1 ";
foreach (qw"SHARE MAN LIB BIN") {
$hmake .= $_ . "OWN=$user ";
$hmake .= $_ . "GRP=$user ";
}
$hmake .= "PREFIX=$predir NO_PKG_REGISTER=1 make";
open(BUILD, "$hmake |");
while(<BUILD>) {