From unknown Thu Aug 21 12:11:05 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65749] [PATCH] gnu: libndp: Fix cross-compile. Resent-From: Zheng Junjie Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 05 Sep 2023 02:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65749 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65749@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16938806719863 (code B ref -1); Tue, 05 Sep 2023 02:25:01 +0000 Received: (at submit) by debbugs.gnu.org; 5 Sep 2023 02:24:31 +0000 Received: from localhost ([127.0.0.1]:53000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdLjx-0002Yy-Gc for submit@debbugs.gnu.org; Mon, 04 Sep 2023 22:24:31 -0400 Received: from lists.gnu.org ([2001:470:142::17]:48790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdBM2-0002fZ-3j for submit@debbugs.gnu.org; Mon, 04 Sep 2023 11:19:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdBLv-0000xC-Fv for guix-patches@gnu.org; Mon, 04 Sep 2023 11:19:00 -0400 Received: from smtp81.cstnet.cn ([159.226.251.81] helo=cstnet.cn) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1qdBLr-0003KD-JF for guix-patches@gnu.org; Mon, 04 Sep 2023 11:18:58 -0400 Received: from localhost.localdomain (unknown [111.0.51.83]) by APP-03 (Coremail) with SMTP id rQCowAC3v2NO9fVkkh2vCg--.30678S2; Mon, 04 Sep 2023 23:18:39 +0800 (CST) From: Zheng Junjie Date: Mon, 4 Sep 2023 23:18:35 +0800 Message-ID: <44232e5ddaa22c46b77284dfe141d3d5181e9735.1693840715.git.zhengjunjie@iscas.ac.cn> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: rQCowAC3v2NO9fVkkh2vCg--.30678S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Cw43Gry8KFW7XF1rGw1fXrb_yoW8Gw43pF 4rAr15Aws5WFyftw43Ja1IgF15Wr97JF15Cw17A3W8Za1YkFyUKrya9FWayF12gr9xGayU WF4IgFs8GFy5GaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUy2b7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8Jw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64vIr41l4I8I 3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxV WUGVWUWwC2zVAF1VAY17CE14v26r1j6r15MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAF wI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcI k0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j 6r4UYxBIdaVFxhVjvjDU0xZFpf9x07bOoGdUUUUU= X-Originating-IP: [111.0.51.83] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ Received-SPF: pass client-ip=159.226.251.81; envelope-from=zhengjunjie@iscas.ac.cn; helo=cstnet.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Mailman-Approved-At: Mon, 04 Sep 2023 22:24:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) * 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 From unknown Thu Aug 21 12:11:05 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Zheng Junjie Subject: bug#65749: closed (Re: bug#65749: [PATCH] gnu: libndp: Fix cross-compile.) Message-ID: References: <877cp4arzn.fsf@gmail.com> <44232e5ddaa22c46b77284dfe141d3d5181e9735.1693840715.git.zhengjunjie@iscas.ac.cn> X-Gnu-PR-Message: they-closed 65749 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 65749@debbugs.gnu.org Date: Wed, 06 Sep 2023 03:42:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1693971724-32316-1" This is a multi-part message in MIME format... ------------=_1693971724-32316-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #65749: [PATCH] gnu: libndp: Fix cross-compile. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 65749@debbugs.gnu.org. --=20 65749: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D65749 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1693971724-32316-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 65749-done) by debbugs.gnu.org; 6 Sep 2023 03:41:18 +0000 Received: from localhost ([127.0.0.1]:60395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdjPm-0008NW-4Z for submit@debbugs.gnu.org; Tue, 05 Sep 2023 23:41:18 -0400 Received: from mail-qk1-x72d.google.com ([2607:f8b0:4864:20::72d]:49374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdjPh-0008N6-30 for 65749-done@debbugs.gnu.org; Tue, 05 Sep 2023 23:41:11 -0400 Received: by mail-qk1-x72d.google.com with SMTP id af79cd13be357-770819c1db6so70404285a.2 for <65749-done@debbugs.gnu.org>; Tue, 05 Sep 2023 20:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693971662; x=1694576462; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=ATt3d1HStAj9gYjV1pAQzX5K3qP5/42C2b/yb4oNWGM=; b=L2FSnfZnI0PVjYCokeYfMC2D+m4VL2Y9KWkMcbOqeoLjNQxP1g5xwPOAkoIUkVuu3o kPKU8BkpLyvBKXOOwzffnU5A6AgS96rv9zuj0B9y/nTbpn0sAG7gEwxHH0bg1XbJeFZj ezqPdyoOtph2GeLV2NS27LHNh/nV/Ih/qdSv87mx3WqEtIJbMjdrT/7uhAc9A8OTQT2y R1XYv8CXKWiVSbc07HDSq89w6/aQKUYd0mhxZ7rtuMJZqr2CYRZRQxYVPPt+KVIG5oiw uH6GZJcAHLsUtgym+xbP5SEaKC6cgKSAU9jQDm2JlKqq4b3B/5NiHbWqvDekJYkbr0RU DYOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693971662; x=1694576462; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ATt3d1HStAj9gYjV1pAQzX5K3qP5/42C2b/yb4oNWGM=; b=CgvoD99P5Jc+i51vHNZXsfhdA7m3vWSLHL3VTa9VkOvYDx1PiYuuCnDKMbaiS/Pcxn Kql2D9QWiu47S6dx4xS0296wCm80OFeMOKRrSeZ1pq9aQEw+Ve3aOJlaIbRxTYuo1J20 ziGlhVp92Wuvpb9idyTtWeulr9uHQ2mS+g4zzoH9R7+higW/vM4ZIRUFXwX21WYHknjz OsGL09N+OIQjbh8dJFyUNOFAv3y5Iv60ua4sM5eyu6k9ahl9FraprOZOq6F9tnx2Xd2n UAIGSRx40U+Otjlci22ce0J8t0SbYIIQXn8WmsLxLTya6AFEFGrm90cpHKEZsP5BLVK/ DCRw== X-Gm-Message-State: AOJu0Yz3CsB9aQ9OtNb/lYQaMyyq0gFmzNSjlkIa3+LcsuRS6WUmDlV7 dkUlXV9TgGfq2FNjOvcRWmGZOyHS03IuWg== X-Google-Smtp-Source: AGHT+IHVJaJtkBqqIYTcfKsEbvlOfPZf4J1AOy/y3RR502G4h3PcLvx6nTtKydW8gyF+AB8S8LC8Cw== X-Received: by 2002:a05:620a:22b6:b0:76f:1eac:e720 with SMTP id p22-20020a05620a22b600b0076f1eace720mr12101676qkh.25.1693971662136; Tue, 05 Sep 2023 20:41:02 -0700 (PDT) Received: from hurd (dsl-153-125.b2b2c.ca. [66.158.153.125]) by smtp.gmail.com with ESMTPSA id k10-20020a05620a142a00b0076da8785347sm4606273qkj.72.2023.09.05.20.41.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Sep 2023 20:41:01 -0700 (PDT) From: Maxim Cournoyer To: Zheng Junjie Subject: Re: bug#65749: [PATCH] gnu: libndp: Fix cross-compile. References: <44232e5ddaa22c46b77284dfe141d3d5181e9735.1693840715.git.zhengjunjie@iscas.ac.cn> Date: Tue, 05 Sep 2023 23:41:00 -0400 In-Reply-To: <44232e5ddaa22c46b77284dfe141d3d5181e9735.1693840715.git.zhengjunjie@iscas.ac.cn> (Zheng Junjie's message of "Mon, 4 Sep 2023 23:18:35 +0800") Message-ID: <877cp4arzn.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 65749-done Cc: 65749-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Zheng Junjie 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 ------------=_1693971724-32316-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 Sep 2023 02:24:31 +0000 Received: from localhost ([127.0.0.1]:53000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdLjx-0002Yy-Gc for submit@debbugs.gnu.org; Mon, 04 Sep 2023 22:24:31 -0400 Received: from lists.gnu.org ([2001:470:142::17]:48790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdBM2-0002fZ-3j for submit@debbugs.gnu.org; Mon, 04 Sep 2023 11:19:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdBLv-0000xC-Fv for guix-patches@gnu.org; Mon, 04 Sep 2023 11:19:00 -0400 Received: from smtp81.cstnet.cn ([159.226.251.81] helo=cstnet.cn) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1qdBLr-0003KD-JF for guix-patches@gnu.org; Mon, 04 Sep 2023 11:18:58 -0400 Received: from localhost.localdomain (unknown [111.0.51.83]) by APP-03 (Coremail) with SMTP id rQCowAC3v2NO9fVkkh2vCg--.30678S2; Mon, 04 Sep 2023 23:18:39 +0800 (CST) From: Zheng Junjie To: guix-patches@gnu.org Subject: [PATCH] gnu: libndp: Fix cross-compile. Date: Mon, 4 Sep 2023 23:18:35 +0800 Message-ID: <44232e5ddaa22c46b77284dfe141d3d5181e9735.1693840715.git.zhengjunjie@iscas.ac.cn> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: rQCowAC3v2NO9fVkkh2vCg--.30678S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Cw43Gry8KFW7XF1rGw1fXrb_yoW8Gw43pF 4rAr15Aws5WFyftw43Ja1IgF15Wr97JF15Cw17A3W8Za1YkFyUKrya9FWayF12gr9xGayU WF4IgFs8GFy5GaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUy2b7Iv0xC_Kw4lb4IE77IF4wAFF20E14v26r1j6r4UM7CY07I2 0VC2zVCF04k26cxKx2IYs7xG6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rw A2F7IY1VAKz4vEj48ve4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xII jxv20xvEc7CjxVAFwI0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I 8E87Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI 64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8Jw Am72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64vIr41l4I8I 3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxV WUGVWUWwC2zVAF1VAY17CE14v26r1j6r15MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAF wI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcI k0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j 6r4UYxBIdaVFxhVjvjDU0xZFpf9x07bOoGdUUUUU= X-Originating-IP: [111.0.51.83] X-CM-SenderInfo: x2kh0wxmxqyx3h6l2u1dvotugofq/ Received-SPF: pass client-ip=159.226.251.81; envelope-from=zhengjunjie@iscas.ac.cn; helo=cstnet.cn X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 04 Sep 2023 22:24:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) * 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 ------------=_1693971724-32316-1--