bug-guix
[Top][All Lists]
Advanced

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

Re: [PATCH] gnu: Add GNU Prolog. (was: GNU Prolog: configure: error: can


From: Andreas Enge
Subject: Re: [PATCH] gnu: Add GNU Prolog. (was: GNU Prolog: configure: error: cannot run /bin/sh ./config.sub)
Date: Thu, 31 Jan 2013 10:22:42 +0100
User-agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; )

Am Donnerstag, 31. Januar 2013 schrieb Nikita Karetnikov:

> This patch works, but I'd like to simplify it a bit. Is it possible?

 

There is no need to repeat the phases that do not change in your patch. If you have a look at icu4c.scm, there is an example using "alist-replace" for the configure phase that changes; moreover, it just patches a file first and then calls the normal configure of %standard-phases:

 

(alist-replace

'configure

(lambda* (#:key #:allow-other-keys #:rest args)

(let ((configure (assoc-ref %standard-phases 'configure)))

(substitute* "configure"

(("`/bin/sh")

(string-append "`" (which "bash"))))

(apply configure args)))

%standard-phases))

 

Andreas

 


reply via email to

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