[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
09/20: gnu: libndp: Fix cross-compile.
From: |
guix-commits |
Subject: |
09/20: gnu: libndp: Fix cross-compile. |
Date: |
Wed, 6 Sep 2023 01:27:55 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit f8e3e02b98001bcc51603ef8a2068c7342be496d
Author: Zheng Junjie <zhengjunjie@iscas.ac.cn>
AuthorDate: Mon Sep 4 23:18:35 2023 +0800
gnu: libndp: Fix cross-compile.
* gnu/packages/networking.scm (libndp)
[native-inputs]: When cross-compile add pkg-config, libtool,
gettext-minimal,
autoconf, automake.
[arguments]: When cross-compile, add phase to fix rpl_malloc undefined
references.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
---
gnu/packages/networking.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 7d1fa307a3..7259336b35 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -1474,6 +1474,26 @@ containing both Producer and Consumer support.")
(base32
"0ay0n0d85254zdmv8znmn399gfiqpk6ga0jwdwa7ylpbw9pbdzw8"))))
(build-system gnu-build-system)
+ (native-inputs
+ (if (%current-target-system)
+ (list pkg-config
+ libtool
+ gettext-minimal
+ autoconf automake)
+ '()))
+ (arguments
+ (if (%current-target-system)
+ (list #:phases
+ #~(modify-phases %standard-phases
+ ;; AC_FUNC_MALLOC and AC_FUNC_REALLOC usually unneeded
+ ;; see
https://lists.gnu.org/archive/html/autoconf/2003-02/msg00017.html
+ (add-after 'unpack 'fix-rpl_malloc
+ (lambda _
+ (substitute* "configure.ac"
+ (("AC_FUNC_MALLOC") ""))
+ ;; let bootstrap phase run.
+ (delete-file "./configure")))))
+ '()))
(home-page "https://libndp.org/")
(synopsis "Library for Neighbor Discovery Protocol")
(description
- branch master updated (c3d48d024b -> 6113e0529d), guix-commits, 2023/09/06
- 01/20: git: Fix typo in reference-available? comment., guix-commits, 2023/09/06
- 02/20: gnu: libusb-compat: Specify the absolute file name for libusb., guix-commits, 2023/09/06
- 07/20: gnu: gmime: Remove version 2.6.23., guix-commits, 2023/09/06
- 04/20: gnu: qemu: Update to 8.1.0., guix-commits, 2023/09/06
- 05/20: gnu: ccache: Update to 4.8.3., guix-commits, 2023/09/06
- 09/20: gnu: libndp: Fix cross-compile.,
guix-commits <=
- 12/20: gnu: rtaudio: Update to 5.2.0., guix-commits, 2023/09/06
- 13/20: gnu: zrythm: Enable rtaudio., guix-commits, 2023/09/06
- 14/20: gnu: Add go-github-com-dgryski-go-metro., guix-commits, 2023/09/06
- 20/20: gnu: gmime: Update home-page URL., guix-commits, 2023/09/06
- 06/20: gnu: bear: Update to 3.1.3., guix-commits, 2023/09/06
- 03/20: doc: Fix typo., guix-commits, 2023/09/06
- 08/20: gnu: gambit-c: Update to 4.9.5., guix-commits, 2023/09/06
- 10/20: gnu: gst-plugins-bad: Remove the svt-hevc input., guix-commits, 2023/09/06
- 11/20: gnu-maintenance: Do not error when there are no candidates., guix-commits, 2023/09/06
- 15/20: gnu: Add go-github-com-dgryski-go-mph., guix-commits, 2023/09/06