emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#65749: closed ([PATCH] gnu: libndp: Fix cross-compile.)


From: GNU bug Tracking System
Subject: bug#65749: closed ([PATCH] gnu: libndp: Fix cross-compile.)
Date: Wed, 06 Sep 2023 03:42:04 +0000

Your message dated Tue, 05 Sep 2023 23:41:00 -0400
with message-id <877cp4arzn.fsf@gmail.com>
and subject line Re: bug#65749: [PATCH] gnu: libndp: Fix cross-compile.
has caused the debbugs.gnu.org bug report #65749,
regarding [PATCH] gnu: libndp: Fix cross-compile.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
65749: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65749
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: libndp: Fix cross-compile. Date: Mon, 4 Sep 2023 23:18:35 +0800
* 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




--- End Message ---
--- Begin Message --- Subject: Re: bug#65749: [PATCH] gnu: libndp: Fix cross-compile. Date: Tue, 05 Sep 2023 23:41:00 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
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


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]