unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 3/3] gnu: btrfs-progs: Add "static" output.
Date: Sat, 2 Apr 2016 20:50:53 -0400	[thread overview]
Message-ID: <20160403005053.GC4959@jasmine> (raw)
In-Reply-To: <1459603774-9455-4-git-send-email-tobias.geerinckx.rice@gmail.com>

On Sat, Apr 02, 2016 at 03:29:34PM +0200, Tobias Geerinckx-Rice wrote:
> * gnu/packages/linux.scm (btrfs-progs)[outputs]: New field.
>   [inputs]: Add "static" outputs of util-linux for libuuid and libblkid.
>   [arguments]: Add 'build-static and 'install-static phases.
> ---
>  gnu/packages/linux.scm | 16 +++++++++++++++-
>  1 file changed, 15 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
> index 0260b0e..a3f61c2 100644
> --- a/gnu/packages/linux.scm
> +++ b/gnu/packages/linux.scm
> @@ -2507,12 +2507,26 @@ and copy/paste text in the console and in xterm.")
>                 (base32
>                  "1znf2zhb56zbmdjk3lq107678xwsqwc5gczspypmc5i31qnppy7f"))))
>      (build-system gnu-build-system)
> +    (outputs '("out"
> +               "static"))      ; static versions of binaries in "out" (~16MiB!)
>      (arguments
> -     '(#:test-target "test"
> +     '(#:phases (modify-phases %standard-phases
> +                 (add-after 'build 'build-static
> +                   (lambda _ (zero? (system* "make" "static"))))
> +                 (add-after 'install 'install-static
> +                   (let ((staticbin (string-append (assoc-ref %outputs "static")
> +                                                  "/bin")))
> +                     (lambda _
> +                       (zero? (system* "make"
> +                                       (string-append "bindir=" staticbin)
> +                                       "install-static"))))))
> +       #:test-target "test"
>         #:parallel-tests? #f)) ; tests fail when run in parallel
>      (inputs `(("e2fsprogs" ,e2fsprogs)
>                ("libblkid" ,util-linux)
> +              ("libblkid:static" ,util-linux "static")
>                ("libuuid" ,util-linux)
> +              ("libuuid:static" ,util-linux "static")

I really like giving a descriptive name to uses of "grab-bag" packages
like util-linux. LGTM!

>                ("zlib" ,zlib)
>                ("lzo" ,lzo)))
>      (native-inputs `(("pkg-config" ,pkg-config)
> -- 
> 2.7.0
> 
> 

  reply	other threads:[~2016-04-03  0:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-02 13:29 Update btrfs-progs once again and add static output Tobias Geerinckx-Rice
2016-04-02 13:29 ` [PATCH 1/3] gnu: btrfs-progs: Update to 4.5.1 Tobias Geerinckx-Rice
2016-04-03  0:51   ` Leo Famulari
2016-04-02 13:29 ` [PATCH 2/3] gnu: util-linux: Add "static" output Tobias Geerinckx-Rice
2016-04-03  0:47   ` Leo Famulari
2016-04-03  0:53   ` Leo Famulari
2016-04-03 18:29     ` Tobias Geerinckx-Rice
2016-04-03 19:21       ` Leo Famulari
2016-04-14 17:50         ` Thompson, David
2016-04-02 13:29 ` [PATCH 3/3] gnu: btrfs-progs: " Tobias Geerinckx-Rice
2016-04-03  0:50   ` Leo Famulari [this message]
2016-04-03  0:53 ` Update btrfs-progs once again and add static output Leo Famulari
2016-04-12  0:07 ` Leo Famulari
2016-04-12  7:13   ` Leo Famulari
2016-04-14 16:30     ` Ludovic Courtès
2016-04-14 18:58       ` Thompson, David
2016-04-15  1:34       ` Leo Famulari
2016-04-15 21:00         ` Ludovic Courtès
2016-04-16  1:11           ` Leo Famulari

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=20160403005053.GC4959@jasmine \
    --to=leo@famulari.name \
    --cc=guix-devel@gnu.org \
    --cc=tobias.geerinckx.rice@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 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).