[Nix-dev] Re: [Nix-commits] SVN commit: nix - 22406 - simons - nix/trunk

Nicolas Pierron nicolas.b.pierron at gmail.com
Sat Jun 26 18:37:57 CEST 2010


On Sat, Jun 26, 2010 at 18:26, Nicolas Pierron
<nicolas.b.pierron at gmail.com> wrote:
> Hi Peter,
>
> On Thu, Jun 24, 2010 at 19:51, Peter Simons <simons at cryp.to> wrote:
>> Log:
>> configure.ac: Incredibly enough, tr(1) on Solaris doesn't understand A-Z syntax for ranges.
>>
>> Changes:
>>
>> Modified: nix/trunk/configure.ac
>> ===================================================================
>> --- nix/trunk/configure.ac      2010-06-24 17:51:19 UTC (rev 22405)
>> +++ nix/trunk/configure.ac      2010-06-24 17:51:24 UTC (rev 22406)
>> @@ -10,8 +10,8 @@
>>
>>  # Construct a Nix system name (like "i686-linux").
>>  AC_MSG_CHECKING([for the canonical Nix system name])
>> -cpu_name=$(uname -p | tr 'A-Z ' 'a-z_')
>> -machine_name=$(uname -m | tr 'A-Z ' 'a-z_')
>> +cpu_name=$(uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ ' 'abcdefghijklmnopqrstuvwxyz_')
>> +machine_name=$(uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ ' 'abcdefghijklmnopqrstuvwxyz_')
>>
>>  case $machine_name in
>>     i*86)
>> @@ -30,7 +30,7 @@
>>         ;;
>>  esac
>>
>> -sys_name=$(uname -s | tr 'A-Z ' 'a-z_')
>> +sys_name=$(uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ ' 'abcdefghijklmnopqrstuvwxyz_')
>>
>
> I tried to prot Nix on QNX, and I also had problem with tr which does
> not support the ending '_', could you check if the following is
> working on Solaris:
>
> tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ ' 'abcdefghijklmnopqrstuvwxyz' | tr -cd
> 'abcdefghijklmnopqrstuvwxyz'
>

Damn, in one week I did not remark the space at the end ...

-- 
Nicolas Pierron
http://www.linkedin.com/in/nicolasbpierron - http://nbp.name/



More information about the nix-dev mailing list