unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#65749] [PATCH] gnu: libndp: Fix cross-compile.
@ 2023-09-04 15:18 Zheng Junjie
  2023-09-06  3:41 ` bug#65749: " Maxim Cournoyer
  0 siblings, 1 reply; 2+ messages in thread
From: Zheng Junjie @ 2023-09-04 15:18 UTC (permalink / raw)
  To: 65749

* 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.
---
 gnu/packages/networking.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index f4ecd85009..865da14d9b 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -1474,6 +1474,26 @@ (define-public libndp
                (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

base-commit: bedcdf0fb5ac035f696790827679406c7146396c
-- 
2.41.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#65749: [PATCH] gnu: libndp: Fix cross-compile.
  2023-09-04 15:18 [bug#65749] [PATCH] gnu: libndp: Fix cross-compile Zheng Junjie
@ 2023-09-06  3:41 ` Maxim Cournoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Maxim Cournoyer @ 2023-09-06  3:41 UTC (permalink / raw)
  To: Zheng Junjie; +Cc: 65749-done

Hi,

Zheng Junjie <zhengjunjie@iscas.ac.cn> writes:

> * 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.

Installed, thank you.

-- 
Maxim




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-06  3:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-04 15:18 [bug#65749] [PATCH] gnu: libndp: Fix cross-compile Zheng Junjie
2023-09-06  3:41 ` bug#65749: " Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).