[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#73682] [PATCH 3/3] gnu: varnish: Improve style.
From: |
Ludovic Courtès |
Subject: |
[bug#73682] [PATCH 3/3] gnu: varnish: Improve style. |
Date: |
Tue, 15 Oct 2024 18:25:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Nicolas Graves <ngraves@ngraves.fr> skribis:
> * gnu/packages/web.scm (varnish): Improve style.
> [arguments]: Rewrite using gexps.
> [inputs]: Replace coreutils by coreutils-minimal, python by
> python-minimal. Add glibc.
[...]
> + ;; Varnish uses GCC to compile VCL, so wrap it with required GCC
> + ;; environment variables to avoid propagating them to profiles.
> + (lambda _
> + (wrap-program (string-append #$output "/sbin/varnishd")
> ;; Add binutils to PATH so gcc finds the 'as' executable.
> - `("PATH" ":" prefix (,PATH))
> + `("PATH" ":" prefix (,(dirname (which "as"))))
> ;; Make sure 'crti.o' et.al is found.
> - `("LIBRARY_PATH" ":" prefix (,LIBRARY_PATH)))))))))
> + `("LIBRARY_PATH" ":" prefix
> + (,#$(file-append (this-package-input "glibc")
> "/lib"))))))))))
If we assume we’ll never want to cross-compile Varnish (sounds
reasonable to me), use:
(dirname (search-input-file inputs "/lib/libc.so"))
and do *not* add ‘glibc’ as an input, as this effectively adds a
dependency on a second glibc.
Ludo’.
- [bug#73682] [PATCH 0/3] gnu: varnish: Update to 7.6.0. [security fixes], Nicolas Graves, 2024/10/07
- [bug#73682] [PATCH 1/3] gnu: varnish: Update to 7.6.0. [security fixes], Nicolas Graves, 2024/10/07
- [bug#73682] [PATCH 2/3] gnu: varnish-modules: Update to 0.25.0., Nicolas Graves, 2024/10/08
- [bug#73682] [PATCH v2 1/3] gnu: varnish: Update to 7.6.0. [security fixes], Nicolas Graves, 2024/10/15
- [bug#73682] [PATCH v3 1/3] gnu: varnish: Update to 7.6.0. [security fixes], Nicolas Graves, 2024/10/16
- [bug#73682] [PATCH v4 1/4] gnu: varnish: Update to 7.6.0. [security fixes], Nicolas Graves, 2024/10/17