diff options
| author | Maxime Devos <maximedevos@telenet.be> | 2021-08-25 13:53:22 +0200 |
|---|---|---|
| committer | Mathieu Othacehe <othacehe@gnu.org> | 2021-09-20 11:15:08 +0000 |
| commit | 0636f02b0e33aed9b2f951bc91ded0fe8a7d1654 (patch) | |
| tree | 3e64640ab941b7b76e43b2616665b4f00709d7ca /gnu/packages/avahi.scm | |
| parent | 0515ebb0d17f4350b094cace66d5469640029da7 (diff) | |
gnu: avahi: Use the cross-compiled bash.
* gnu/packages/avahi.scm (avahi)[arguments]<#:phases>{patch-more-shebangs}:
Replace the bash in the shebangs in "/etc/avahi" with a cross-compiled bash.
Diffstat (limited to 'gnu/packages/avahi.scm')
| -rw-r--r-- | gnu/packages/avahi.scm | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/gnu/packages/avahi.scm b/gnu/packages/avahi.scm index 5582df479e5..7dcaa17a763 100644 --- a/gnu/packages/avahi.scm +++ b/gnu/packages/avahi.scm | |||
| @@ -23,9 +23,11 @@ | |||
| 23 | (define-module (gnu packages avahi) | 23 | (define-module (gnu packages avahi) |
| 24 | #:use-module ((guix licenses) #:select (lgpl2.1+)) | 24 | #:use-module ((guix licenses) #:select (lgpl2.1+)) |
| 25 | #:use-module (guix packages) | 25 | #:use-module (guix packages) |
| 26 | #:use-module (guix gexp) | ||
| 26 | #:use-module (guix download) | 27 | #:use-module (guix download) |
| 27 | #:use-module (guix build-system gnu) | 28 | #:use-module (guix build-system gnu) |
| 28 | #:use-module (gnu packages) | 29 | #:use-module (gnu packages) |
| 30 | #:use-module (gnu packages bash) | ||
| 29 | #:use-module (gnu packages dbm) | 31 | #:use-module (gnu packages dbm) |
| 30 | #:use-module (gnu packages gettext) | 32 | #:use-module (gnu packages gettext) |
| 31 | #:use-module (gnu packages glib) | 33 | #:use-module (gnu packages glib) |
| @@ -72,9 +74,28 @@ | |||
| 72 | "--enable-compat-libdns_sd" | 74 | "--enable-compat-libdns_sd" |
| 73 | ,@(if (%current-target-system) | 75 | ,@(if (%current-target-system) |
| 74 | '("ac_cv_prog_have_pkg_config=yes") | 76 | '("ac_cv_prog_have_pkg_config=yes") |
| 75 | '())))) | 77 | '())) |
| 78 | ;; TODO(core-updates): Make this unconditional. | ||
| 79 | ,@(if (%current-target-system) | ||
| 80 | `(#:modules ((srfi srfi-26) | ||
| 81 | (guix build utils) | ||
| 82 | (guix build gnu-build-system)) | ||
| 83 | #:phases | ||
| 84 | ,#~(modify-phases %standard-phases | ||
| 85 | (add-after 'patch-shebangs 'patch-more-shebangs | ||
| 86 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 87 | (define path | ||
| 88 | `(,(dirname (search-input-file inputs "bin/sh")))) | ||
| 89 | (for-each | ||
| 90 | (cut patch-shebang <> path) | ||
| 91 | (find-files (string-append #$output "/etc/avahi"))))))) | ||
| 92 | '()))) | ||
| 76 | (inputs | 93 | (inputs |
| 77 | `(("dbus" ,dbus) | 94 | ;; TODO(core-updates): Make this input unconditional. |
| 95 | `(,@(if (%current-target-system) | ||
| 96 | `(("bash-minimal" ,bash-minimal)) | ||
| 97 | '()) | ||
| 98 | ("dbus" ,dbus) | ||
| 78 | ("expat" ,expat) | 99 | ("expat" ,expat) |
| 79 | ("gdbm" ,gdbm) | 100 | ("gdbm" ,gdbm) |
| 80 | ("glib" ,glib) | 101 | ("glib" ,glib) |
