[Nix-dev] [Nix-commits] SVN commit: nix - r30466 - nix/trunk

Eelco Dolstra e.dolstra at tudelft.nl
Sun Nov 20 20:25:13 CET 2011


On 11/19/2011 11:36 PM, Ludovic Courtès wrote:

> Out of curiosity, where did you get “amd64”?  GNU config.guess always
> returns “x86_64”:
> <http://git.savannah.gnu.org/cgit/config.git/tree/config.sub#n466>.

Apparently not on FreeBSD:

[nix at beastie ~/nix-1.0pre30457]$ ./config/config.guess
amd64-unknown-freebsd8.2

>> @@ -25,6 +27,9 @@
>>        linux-gnu*)
>>   	# For backward compatibility, strip the `-gnu' part.
>>   	system="$machine_name-linux";;
>> +     freebsd*)
>> +	# Strip the version number (e.g. freebsd8.2).
>> +	system="$machine_name-freebsd";;
>>        *)
>>           # Strip the version number from names such as `gnu0.3',
>>           # `darwin10.2.0', etc.
>
> The FreeBSD case is handled right below, isn’t it?

Thanks, I didn't see that.  The default case didn't work because 
FreeBSD's sed doesn't support the "+" operator.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/


More information about the nix-dev mailing list