From: ludo@gnu.org (Ludovic Courtès)
To: Manolis Ragkousis <manolis837@gmail.com>
Cc: Guix-devel@gnu.org
Subject: Re: [PATCH] gnu: Add glibc-hurd-headers
Date: Tue, 15 Apr 2014 21:39:47 +0200 [thread overview]
Message-ID: <87k3aq1iws.fsf@gnu.org> (raw)
In-Reply-To: <CAFtzXzMip3enx==ROf5pEttvp7P3YYaCyy_kf=raRAf5wmFfwQ@mail.gmail.com> (Manolis Ragkousis's message of "Tue, 15 Apr 2014 14:00:02 +0000")
Manolis Ragkousis <manolis837@gmail.com> skribis:
> +(define-public glibc/hurd-headers
> + (package (inherit glibc)
> + (name "glibc-hurd-headers")
Indentation still wrong.
> + (arguments
> + `(#:strip-binaries? #f
> + #:out-of-source? #t
> + #:tests? #f
> + #:configure-flags
> + (list "--host=i686-pc-gnu"
> + "--enable-addons"
> +
> + ;; Installs NIS and RPC related headers that
> + ;; are not installed by default
> + "--enable-obsolete-rpc"
> +
> + (string-append "--with-headers="
> + (assoc-ref %build-inputs "gnumach-headers")
> + "/include:"
> + (assoc-ref %build-inputs "hurd-headers")
> + "/include")
> +
> + ;; Use our Bash instead of /bin/sh.
> + (string-append "BASH_SHELL="
> + (assoc-ref %build-inputs "bash")
> + "/bin/bash"))
> + #:phases (alist-replace
> + 'install
> + (lambda _
> + (zero? (system* "make" "install-headers")))
> + (alist-delete
> + 'build
> + (alist-cons-before
> + 'configure 'pre-configure
> + (lambda _
> + (substitute* "configure"
> + (("/bin/pwd") "pwd")))
> + %standard-phases)))))))
Sorry, I didn’t get initially that it needed this much of the initial
arguments. #:phases is the only thing that differs, right?
If that is the case, then indeed something like this is enough:
(arguments
`(#:tests? #f
,@(substitute-keyword-arguments (package-arguments glibc/hurd)
((#:phases _)
'(alist-replace ...)))))
In general the guideline is to keep things as simple and concise as
possible. In some cases, making things more concise will actually make
them more difficult to understand, which is not desirable.
HTH!
Ludo’.
prev parent reply other threads:[~2014-04-15 19:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-14 22:00 [PATCH] gnu: Add glibc-hurd-headers Manolis Ragkousis
2014-04-14 22:20 ` Ludovic Courtès
2014-04-14 22:31 ` Manolis Ragkousis
[not found] ` <CAFtzXzM3yy-WJ7EpmKBK8Vf4FnwQhG3gs1+bw5T=+Wmz_qZJXA@mail.gmail.com>
[not found] ` <87d2gjat2d.fsf@gnu.org>
2014-04-15 14:00 ` Manolis Ragkousis
2014-04-15 19:39 ` Ludovic Courtès [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k3aq1iws.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=Guix-devel@gnu.org \
--cc=manolis837@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.