guix-devel
[Top][All Lists]
Advanced

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

Re: 02/05: gnu: libmad: Install pkg-config file.


From: Ludovic Courtès
Subject: Re: 02/05: gnu: libmad: Install pkg-config file.
Date: Mon, 04 Jan 2021 12:31:54 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Hi Kei,

guix-commits@gnu.org skribis:

> commit 83afa4e9a6aa4dc69f86651d795007dc96a31e64
> Author: Kei Kebreau <kkebreau@posteo.net>
> AuthorDate: Sun Aug 2 16:54:03 2020 -0400
>
>     gnu: libmad: Install pkg-config file.
>     
>     * gnu/packages/mp3.scm (libmad)[arguments]: Add 'install-pkg-config phase.

[...]

> +        (add-after 'install 'install-pkg-config
> +          (lambda* (#:key outputs #:allow-other-keys)
> +            (let* ((out (assoc-ref outputs "out"))
> +                   (pkg-config-dir (string-append out "/lib/pkgconfig")))
> +              (mkdir-p pkg-config-dir)
> +              (with-output-to-file (string-append pkg-config-dir "/mad.pc")
> +                (lambda _
> +                  (format #t
> +                          "prefix=~@*~a~@
> +                           libdir=${prefix}/lib~@

It seems to me that we shouldn’t provide .pc files if upstream doesn’t
do it.  The main reason is that developers who use Guix will come to
rely on it and unknowingly write code that doesn’t work on other
distros.  (I remember pestering in the past as I stumbled upon packages
who depended on some library as packaged by a specific distro.  :-))

WDYT?

Apologies if I missed an earlier discussion!

Ludo’.



reply via email to

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