guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'substitute*' fails with "string contains #\nul character"


From: Ludovic Courtès
Subject: Re: 'substitute*' fails with "string contains #\nul character"
Date: Tue, 16 Jul 2013 21:07:57 +0200
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Nikita Karetnikov <address@hidden> skribis:

> 'substitute*' fails to patch a binary and returns the following error

[...]

> ice-9/boot-9.scm:106:20: string contains #\nul character:

Yes, that is expected.  ‘substitute*’ is for textual files.

‘fold-port-matches’ from (guix build utils) can be used for binary files
(see ‘remove-store-references’ for an example use.)

HTH,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]