[Nix-dev] Merging stdenv-updates soon?

James Cook james.cook at utoronto.ca
Tue Aug 27 17:14:27 CEST 2013


On 27 August 2013 08:08, Vladimír Čunát <vcunat at gmail.com> wrote:
> On 08/27/2013 05:02 PM, James Cook wrote:
>>
>> On 27 August 2013 05:55, Vladimír Čunát <vcunat at gmail.com> wrote:
>>>
>>> Ah, thanks. So it's the postPatch phase, but I don't see what's the
>>> problem,
>>> nor why it should be different than on Linux platforms.
>>
>>
>> I have seen this before on FreeBSD.  The issue was that BSD sed
>> expects a suffix after -i, but Linux sed is happy with -i on its own.
>> Probably Darwin's stdenv uses the Darwin's sed.
>
>
> I believe the failing command is
> sed "/^$pat/d" -i MANIFEST
>
> What do you mean by suffix?

In BSD sed, use  -i .bak MANIFEST, and then the original
file will be saved as MANIFEST.bak.  With GNU sed the backup file is
optional.

The two obvious solutions are:
- Make sure everything uses GNU sed on Darwin and FreeBSD.
- Make sure every use of sed -i has a backup file suffix after the -i.


More information about the nix-dev mailing list