NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/50557: build.sh does not run on Nixos
The following reply was made to PR bin/50557; it has been noted by GNATS.
From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: bin/50557: build.sh does not run on Nixos
Date: Mon, 30 May 2016 10:05:28 +0200
IIRC, on Haiku it's /bin/env.
Thomas
On Mon, May 30, 2016 at 03:55:01AM +0000, coypu%SDF.ORG@localhost wrote:
> The following reply was made to PR bin/50557; it has been noted by GNATS.
>
> From: coypu%SDF.ORG@localhost
> To: gnats-bugs%netbsd.org@localhost
> Cc:
> Subject: Re: bin/50557: build.sh does not run on Nixos
> Date: Mon, 30 May 2016 03:54:36 +0000
>
> How about this?
>
> I assume even NixOS wouldn't want to move /usr/bin/env.
> env pwd also works, but people seem to commonly use /usr/bin/env for some
> reason.
>
> I am not sure what use_find_path() is.
>
> diff --git a/build.sh b/build.sh
> index bd7d2ba..fe23980 100755
> --- a/build.sh
> +++ b/build.sh
> @@ -506,7 +506,7 @@ initdefaults()
> # XXX Except that doesn't work on Solaris. Or many Linuces.
> #
> unset PWD
> - TOP=$(/bin/pwd -P 2>/dev/null || /bin/pwd 2>/dev/null)
> + TOP=$(/usr/bin/env pwd -P 2>/dev/null || /usr/bin/env pwd 2>/dev/null)
>
> # The user can set HOST_SH in the environment, or we try to
> # guess an appropriate value. Then we set several other
>
>
Home |
Main Index |
Thread Index |
Old Index