guix-devel
[Top][All Lists]
Advanced

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

Re: [Patch 4/10] argon2: Install pkg-config file.


From: Ludovic Courtès
Subject: Re: [Patch 4/10] argon2: Install pkg-config file.
Date: Wed, 28 Sep 2016 11:18:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hello,

Lukas Gradl <address@hidden> skribis:

> From 5fb85fef7b1475baca6c29beb26799ca8f3d814a Mon Sep 17 00:00:00 2001
> From: Lukas Gradl <address@hidden>
> Date: Tue, 9 Aug 2016 16:49:19 -0500
> Subject: [PATCH 04/10] gnu: argon2: Install pkg-config file.
>
> * gnu/packages/password-utils.scm (argon2)[source]: Create pkg-config file.
> [arguments]: Install it.
> ---
>  gnu/packages/password-utils.scm | 26 +++++++++++++++++++++++++-
>  1 file changed, 25 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/password-utils.scm b/gnu/packages/password-utils.scm
> index 7288da6..f62d041 100644
> --- a/gnu/packages/password-utils.scm
> +++ b/gnu/packages/password-utils.scm
> @@ -311,6 +311,21 @@ through the pass command.")
>           "https://codeload.github.com/P-H-C/phc-winner-";
>           name "/tar.gz/" version))
>         (file-name (string-append name "-" version ".tar.gz"))
> +       (snippet
> +        '(let ((p (open-file "argon2.pc" "w")))
> +           (begin
> +             (display
> +              (string-append "prefix=/usr/local\n"
> +                             "exec_prefix=${prefix}\n"
> +                             "includedir=${prefix}/include\n"
> +                             "libdir=${prefix}/lib\n\n"
> +                             "Name: Argon2\n"
> +                             "Description: "
> +                             "The Argon2 password hashing algorithm\n"
> +                             "Version: 1.0.0\n"
> +                             "Cflags: -I${includedir}/\n"
> +                             "Libs: -L${libdir} -largon2\n") p)
> +             (close-output-port p))))

As Danny suggested, this should be discussed upstream.  What’s the
status of this .pc file upstream?  I’m reluctant to start relying on it
if there’s no sign that it will eventually be provided by upstream.

Thanks,
Ludo’.



reply via email to

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