all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: contact.ng0@cryptolab.net
Cc: guix-devel@gnu.org, ng0 <ng0@libertad.pw>
Subject: Re: [PATCH 5/5] gnu: libextractor: Move .a files to output "static".
Date: Thu, 02 Feb 2017 09:13:10 -0800	[thread overview]
Message-ID: <87d1f0a53t.fsf@gmail.com> (raw)
In-Reply-To: <20170131133501.30273-6-contact.ng0@cryptolab.net> (contact's message of "Tue, 31 Jan 2017 13:35:01 +0000")

[-- Attachment #1: Type: text/plain, Size: 2330 bytes --]

Hi ng0,

contact.ng0@cryptolab.net writes:

> From: ng0 <ng0@libertad.pw>
>
> * gnu/packages/gnunet.scm (libextractor): Move .a files to "static" output.
> [arguments](phases): New phase for moving .a files to output "static".
> ---
>  gnu/packages/gnunet.scm | 19 ++++++++++++++++++-
>  1 file changed, 18 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/gnunet.scm b/gnu/packages/gnunet.scm
> index f7da12ad5..a4514a7f4 100644
> --- a/gnu/packages/gnunet.scm
> +++ b/gnu/packages/gnunet.scm
> @@ -115,13 +115,30 @@
>        ("zlib" ,zlib)))
>     (native-inputs
>      `(("pkg-config" ,pkg-config)))
> +   (outputs '("out"
> +              "static")) ; 396 KiB .a files
>     (arguments
>      `(#:configure-flags
>        (list (string-append "--with-ltdl="
>                             (assoc-ref %build-inputs "libltdl"))
>              (string-append "--with-tidy="
>                             (assoc-ref %build-inputs "tidy-html")))
> -      #:parallel-tests? #f))
> +      #:parallel-tests? #f
> +      #:phases
> +      (modify-phases %standard-phases
> +        (add-after 'install 'move-static-libraries
> +          (lambda* (#:key outputs #:allow-other-keys)
> +            ;; Move static libraries to the "static" output.
> +            (let* ((out    (assoc-ref outputs "out"))
> +                   (lib    (string-append out "/lib"))
> +                   (static (assoc-ref outputs "static"))
> +                   (slib   (string-append static "/lib")))
> +              (mkdir-p slib)
> +              (for-each (lambda (file)
> +                          (install-file file slib)
> +                          (delete-file file))
> +                        (find-files lib "\\.a$"))
> +              #t))))))
>     (synopsis "Library to extract meta-data from media files")
>     (description
>      "GNU libextractor is a library for extracting metadata from files.  It

I've reviewed this patch series and didn't see anything wrong. Looking
at how often you strip the ".a" static libraries into a separate output,
maybe it'd be worth the effort of adding an automatic way of doing so in
the gnu build system? I'm thinking it could work in a way similar to
adding debug symbols: simply add a "static" output and the rest is taken
care of automagically.

Thanks for all the packaging work!

Maxim

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2017-02-02 17:13 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-31 13:34 libextractor dependencies: libmp4v2, tidy-html, libsmf contact.ng0
2017-01-31 13:34 ` [PATCH 1/5] gnu: Add libmp4v2 contact.ng0
2017-02-07 20:16   ` Kei Kebreau
2017-02-07 20:16   ` Kei Kebreau
2017-02-07 20:16   ` Kei Kebreau
2017-02-07 20:16   ` Kei Kebreau
2017-02-07 20:16   ` Kei Kebreau
2017-01-31 13:34 ` [PATCH 2/5] gnu: Add tidy-html contact.ng0
2017-02-07 20:27   ` Kei Kebreau
2017-02-07 20:27   ` Kei Kebreau
2017-02-07 20:27   ` Kei Kebreau
2017-02-07 20:27   ` Kei Kebreau
2017-01-31 13:34 ` [PATCH 3/5] gnu: Add libsmf contact.ng0
2017-01-31 13:35 ` [PATCH 4/5] gnu: libextractor: Add dependencies contact.ng0
2017-01-31 13:35 ` [PATCH 5/5] gnu: libextractor: Move .a files to output "static" contact.ng0
2017-02-02 17:13   ` Maxim Cournoyer [this message]
2017-02-07 20:46 ` libextractor dependencies: libmp4v2, tidy-html, libsmf Kei Kebreau
2017-02-09 12:50   ` ng0
2017-02-09 13:36   ` libextractor changes, v2 contact.ng0
2017-02-09 13:37     ` [PATCH 1/5] gnu: Add libmp4v2 contact.ng0
2017-02-09 13:37     ` [PATCH 2/5] gnu: Add tidy-html contact.ng0
2017-02-09 13:37     ` [PATCH 3/5] gnu: Add libsmf contact.ng0
2017-02-09 13:37     ` [PATCH 4/5] gnu: libextractor: Add dependencies contact.ng0
2017-02-09 13:37     ` [PATCH 5/5] gnu: libextractor: Move .a files to output "static" contact.ng0
2017-02-09 17:17     ` libextractor changes, v2 Kei Kebreau
2017-02-07 20:46 ` libextractor dependencies: libmp4v2, tidy-html, libsmf Kei Kebreau
2017-02-07 20:46 ` Kei Kebreau
  -- strict thread matches above, loose matches on Subject: below --
2016-12-22 16:44 libextractor enhancements up for review ng0
2016-12-22 16:44 ` [PATCH 5/5] gnu: libextractor: Move .a files to output "static" ng0

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=87d1f0a53t.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=contact.ng0@cryptolab.net \
    --cc=guix-devel@gnu.org \
    --cc=ng0@libertad.pw \
    /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.