[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#51440] [PATCH 04/10] gnu: guile-netlink: Allow cross-compilation.
From: |
Ludovic Courtès |
Subject: |
[bug#51440] [PATCH 04/10] gnu: guile-netlink: Allow cross-compilation. |
Date: |
Wed, 27 Oct 2021 16:02:39 +0200 |
* gnu/packages/guile-xyz.scm (guile-netlink)[arguments]: Add #:phases.
Remove unnecessary #:tests? #f.
[native-inputs]: Add GUILE-3.0.
---
gnu/packages/guile-xyz.scm | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 355b23f57e..daef8bbb26 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -4854,13 +4854,22 @@ (define-public guile-netlink
"03zmsha2d7whlwb52gna83jdas9bqi18rq3sss7kkicv814qb35g"))))
(build-system gnu-build-system)
(arguments
- `(#:tests? #f)); no tests
+ `(#:phases (modify-phases %standard-phases
+ (add-before 'bootstrap 'set-guile-target
+ (lambda* (#:key target #:allow-other-keys)
+ (when target
+ ;; Pass '--target=TRIPLET' to 'guild compile'.
+ (substitute* "guile.am"
+ (("\\$\\(GUILD\\) compile")
+ (string-append "$(GUILD) compile --target="
+ target " ")))))))))
(inputs
`(("guile" ,guile-3.0)))
(native-inputs
`(("automake" ,automake)
("autoconf" ,autoconf)
("pkg-config" ,pkg-config)
+ ("guile" ,guile-3.0) ;for 'guild compile' + guile.m4
("texinfo" ,texinfo)))
(home-page "https://git.lepiller.eu/guile-netlink")
(synopsis "Netlink protocol implementation for Guile")
--
2.33.0
- [bug#51440] [PATCH 00/10] Declarative static networking interface, Ludovic Courtès, 2021/10/27
- [bug#51440] [PATCH 03/10] doc: Add new "Networking Setup" node for the main setup options., Ludovic Courtès, 2021/10/27
- [bug#51440] [PATCH 08/10] services: Define '%qemu-static-networking'., Ludovic Courtès, 2021/10/27
- [bug#51440] [PATCH 09/10] services: Define '%loopback-static-networking'., Ludovic Courtès, 2021/10/27
- [bug#51440] [PATCH 02/10] tests: openvswitch: Check whether ovs0 is up., Ludovic Courtès, 2021/10/27