From: HiPhish <hiphish@posteo.de>
To: guix-devel@gnu.org
Subject: Re: Removing configure flags?
Date: Wed, 12 Sep 2018 19:54:26 +0200 [thread overview]
Message-ID: <1898629.R8dP4hcJhv@aleksandar-ixtreme-m5740> (raw)
In-Reply-To: <87d0ti7i0i.fsf@gnu.org>
I figured it out thanks to the people on IRC:
(arguments
`(;; Roundup has no check target (It does have a `test` target, but some
;; of its tests fail intentionally, bringing the entire build process
;; down)
#:tests? #f
;; Explicitly set the shell because otherwise this value will be empty
#:make-flags
'("SHELL=bash")
#:phases
(modify-phases %standard-phases
(add-before 'configure 'fix-configure
;; getconf will return a static path, which will not contain the
;; value adjusted by Guix
(λ _ (substitute* "configure" (("getconf PATH") "echo $PATH"))))
(replace 'configure
;; Roundup is using a hand-written configure script which will
choke
;; on the default configure flags. Therefore we invoke it with our
;; own flags.
(lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
(apply invoke
`("./configure"
,(string-append "--prefix=" out)
"--sysconfdir=/etc"
,@configure-flags))))))))
Ludovic Courtès wrote:
> Indeed. Could it be that ‘configure’ overrides PATH, setting it to,
> say, /bin:/usr/bin? (You mentioned ‘getconf PATH’ yesterday on IRC,
> perhaps that’s related?)
>
> HTH,
> Ludo’.
prev parent reply other threads:[~2018-09-12 17:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-10 9:27 Removing configure flags? HiPhish
2018-09-10 9:57 ` Danny Milosavljevic
2018-09-11 0:04 ` Alex Vong
2018-09-11 10:59 ` HiPhish
2018-09-12 17:17 ` Ludovic Courtès
2018-09-12 17:54 ` HiPhish [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1898629.R8dP4hcJhv@aleksandar-ixtreme-m5740 \
--to=hiphish@posteo.de \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).