[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: gnu: avahi: Support for cross-building and the Hu
From: |
guix-commits |
Subject: |
branch master updated: gnu: avahi: Support for cross-building and the Hurd. |
Date: |
Mon, 29 May 2023 03:27:19 -0400 |
This is an automated email from the git hooks/post-receive script.
janneke pushed a commit to branch master
in repository guix.
The following commit(s) were added to refs/heads/master by this push:
new 77fe306c66 gnu: avahi: Support for cross-building and the Hurd.
77fe306c66 is described below
commit 77fe306c66eea88acd4b29dd0e60bbf9d7bae101
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon May 29 08:49:45 2023 +0200
gnu: avahi: Support for cross-building and the Hurd.
* gnu/packages/avahi.scm (avahi)[inputs]: Include libcap only for supported
systems and when not cross-building.
[arguments]: Add --disable-autoipd when not using libcap.
---
gnu/packages/avahi.scm | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/avahi.scm b/gnu/packages/avahi.scm
index 65d3ede131..a2b5f256bc 100644
--- a/gnu/packages/avahi.scm
+++ b/gnu/packages/avahi.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -73,6 +74,12 @@
"--enable-compat-libdns_sd"
,@(if (%current-target-system)
'("ac_cv_prog_have_pkg_config=yes")
+ '())
+ ,@(if (or (%current-target-system)
+ (not (member (%current-system)
+ (package-supported-systems
+ libcap))))
+ '("--disable-autoipd")
'()))
#:modules ((srfi srfi-26)
(guix build utils)
@@ -92,7 +99,13 @@
("expat" ,expat)
("gdbm" ,gdbm)
("glib" ,glib)
- ("libcap" ,libcap) ;to enable chroot support in avahi-daemon
+ ;; Do not use libcap when cross-compiling since it's not quite
+ ;; cross-compilable; and use it only for supported systems.
+ ,@(if (and (not (%current-target-system))
+ (member (%current-system)
+ (package-supported-systems libcap)))
+ `(("libcap" ,libcap)) ;to enable chroot support in avahi-daemon
+ '())
("libdaemon" ,libdaemon)
("libevent" ,libevent)))
(native-inputs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: gnu: avahi: Support for cross-building and the Hurd.,
guix-commits <=