guix-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] build-system/glib-or-gtk: Factorize 'wrap-all-programs'.


From: Ludovic Courtès
Subject: Re: [PATCH] build-system/glib-or-gtk: Factorize 'wrap-all-programs'.
Date: Fri, 09 Oct 2015 14:29:30 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Mathieu Lirzin <address@hidden> skribis:

> * guix/build/glib-or-gtk-build-system.scm (wrap-all-programs):
>   Factorize it.

[...]

> +  (define (env-var var dirs)
> +    "Associate an environment variable VAR with a list of directory DIRS."
> +    (and (not (null? dirs)) (list var ":" 'prefix dirs)))

s/env-var/wrapper-specification/ or something like that

> +        (let ((bindir     (string-append directory "/bin"))
> +              (libexecdir (string-append directory "/libexec"))
> +              (data-var   (env-var "XDG_DATA_DIRS"
> +                                   (data-directories
> +                                    (alist-cons output directory inputs))))
> +              (gtk-var    (env-var "GTK_PATH"
> +                                   (gtk-module-directories
> +                                    (alist-cons output directory inputs))))
> +              (gio-var    (env-var "GIO_EXTRA_MODULES"
> +                                   (gio-module-directories
> +                                    (alist-cons output directory inputs)))))
> +          (for-each (cute apply wrap-program <>
> +                          (filter-map identity
> +                                      (list data-var gtk-var gio-var)))

s/filter-map/filter/

And maybe ‘->bool’ instead of ‘identity’ for clarity.

Could you check on a concrete example like Evince that the set of
variables and values in the wrapper remains unchanged with this commit?

If it’s OK, then OK to commit, but after ‘core-updates’ has been merge
(hopefully soonish.)

Thank you!

Ludo’.



reply via email to

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