From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aBpkKMEYEmKZEwEAgWs5BA (envelope-from ) for ; Sun, 20 Feb 2022 11:32:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6Lq/JMEYEmIblgAAauVa8A (envelope-from ) for ; Sun, 20 Feb 2022 11:32:33 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4A0A22220E for ; Sun, 20 Feb 2022 11:32:33 +0100 (CET) Received: from localhost ([::1]:47830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nLjW3-0001lq-Is for larch@yhetil.org; Sun, 20 Feb 2022 05:32:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nLjVb-0001l3-NW for guix-patches@gnu.org; Sun, 20 Feb 2022 05:32:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37284) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nLjVa-0008OD-3p for guix-patches@gnu.org; Sun, 20 Feb 2022 05:32:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nLjVa-0000IE-1p for guix-patches@gnu.org; Sun, 20 Feb 2022 05:32:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54052] [PATCH] gnu: cgdb: Add gdb to propagated-inputs Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Feb 2022 10:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54052 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Chadwain Holness , 54052@debbugs.gnu.org Received: via spool by 54052-submit@debbugs.gnu.org id=B54052.1645353072994 (code B ref 54052); Sun, 20 Feb 2022 10:32:02 +0000 Received: (at 54052) by debbugs.gnu.org; 20 Feb 2022 10:31:12 +0000 Received: from localhost ([127.0.0.1]:59414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLjUm-0000Fy-3f for submit@debbugs.gnu.org; Sun, 20 Feb 2022 05:31:12 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:34988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLjUk-0000Fk-JA for 54052@debbugs.gnu.org; Sun, 20 Feb 2022 05:31:11 -0500 Received: from [172.20.10.9] ([188.188.224.245]) by michel.telenet-ops.be with bizsmtp id xNX82600D5JHtyL06NX8gZ; Sun, 20 Feb 2022 11:31:09 +0100 Message-ID: From: Maxime Devos Date: Sun, 20 Feb 2022 11:30:52 +0100 In-Reply-To: <20220220081155.13053-1-chadwainholness@gmail.com> References: <20220220081155.13053-1-chadwainholness@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-a9UR93AHifDncuwDCHbF" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1645353069; bh=Vbrw2H5mJT+NG2ZylVbtRfqik9pThuIyUp5L0H/f4Iw=; h=Subject:From:To:Date:In-Reply-To:References; b=eoM4U2S9Oy2/qHZ5oGJHZ7ZDr687aBEpJHfWC9wECSUPF+YPjTy+9elNmOq3VK9HG SCoOZmAz/mUWgWHYm0IzQ9lyDxQr0Ibx29uKFYTvGp5f6Glux0VP+cVeHXXSZhWqUh 82TII1RSNuxU++tvOs5gJE17YG8R8en6KHSSCSwfwG2f/C44QfaLYaAwAylSJnzruL n9b2Tvz2peG1zjxCKc0xMpUOjyl7P3Oy6mcG0xfGSnL+qiyAb2BtE0gBIkfCXZoWNw 7qaRkqFsQUTNdIqmWBlwEmwX0ayZLy0CdXrlftRJVA287l+DJjt3pa4verYTeMEGPb WopYTPcoo7gjg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645353153; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=Vbrw2H5mJT+NG2ZylVbtRfqik9pThuIyUp5L0H/f4Iw=; b=DFPWXNVApuepGQq/0syxvS4wYexh0WCXz1DI88bNPN5FFzF4WkNAUcEWnp/XX8mj6Zmcxn c5GZsNLEH29Y2ymOPG2rjaCPuXJJMfaqaVmmSzO/LC/CCfs51B8Pq4zSpVM1BFcGJJzWda ZrNcrvOf2vfvfZTej7As/aIR5Ykn66pg8bAfyIfiqdOCLNOBwaLDVWQka3yX96SHctFIzu CECgI6wVJ8ZpL9c0l0gOyZ6DpTpGWQRcKSD8CMfJzMet1/w2MovfpMYVdwW60+s4odgBCU Dl1mnPldqw5QyMscPen8B1MvpwuFOcM2YCl6cNvrq06yLc8XZuf37G13HDbeOQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645353153; a=rsa-sha256; cv=none; b=l5JW07ZSFDi/gqu7YTRWykQJ9aOP1oSMtyYd+S5W1Gc23kjwqgBjFEKF3a2qz6ITvRtXQx ZseZpXNu/84GNDkPCT5cypsGrvmzdrKl481D1ymW3NVYzBlhgkG7jzA4ir6Ne03FV2xtTq jueNXE/CFnIBZWzaNPn5N60DQybUNXnjFfwCGsX3yCAErtXwqSnoYWnMByFJaO1Q55jbZb 2Luwe1eMps3QD/EdsYBpsV0Q7MZtvHfWt8JId/BUwN7xHziI5ttSnF+5DYYoZAWZRB9xqW dsWf2wS8ie/kfK6+lTmvQ4U3YEHa09NYPcKffp7sbX1sXFOpqKLaJCMFLQAv5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=eoM4U2S9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=eoM4U2S9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 4A0A22220E X-Spam-Score: -4.23 X-Migadu-Scanner: scn1.migadu.com X-TUID: Iilm94l3fe+G --=-a9UR93AHifDncuwDCHbF Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Chadwain Holness schreef op zo 20-02-2022 om 03:11 [-0500]: > Hello Maxime, thank you for the suggestion. Is this new patch better in y= our opinion? It does look quite a bit better, but there's a cross-compilation problem now: when cross-compiling, 'which' looks in the 'native-inputs' instead of the 'inputs' (native-inputs =3D compiled for the architecture the build is performed on, inputs =3D compiled for the architecture 'cgdb' will be run on). You can use 'search-input-file' to solve this: (arguments (list #:phases #~(modify-phases %standard-phases (add-after 'unpack 'fix-paths (lambda* (#:key inputs #:allow-other-keys) (define gdb (search-input-file inputs "bin/gdb")) (define sh (search-input-file inputs "bin/sh")) (substitute* "lib/util/fork_util.cpp" (("GDB =3D \"gdb\"") (string-append "GDB =3D \"" gdb)) (("/bin/sh") sh))))))) > =C2=A0=C2=A0=C2=A0=C2=A0 (inputs > -=C2=A0=C2=A0=C2=A0=C2=A0 (list ncurses readline)) > +=C2=A0=C2=A0=C2=A0=C2=A0 (list ncurses readline gdb)) You are using a 'sh' from 'inputs' in 'fix-paths', so the package 'bash-minimal' needs to be included, otherwise the build would fail when cross-compiling. ('bash-minimal' is an (implicit) native-input, so the build failure would not happen when compiling natively). To test whether cross-compiling cgdb works, you can try ./pre-inst-env guix build cgdb --target=3Daarch64-linux-gnu (warning: this might build a cross-compiler toolchain first, which can take quite some time, and possibly 'gdb' is not cross-compilable!) Greetings, Maxime. --=-a9UR93AHifDncuwDCHbF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYhIYXBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7pc7AP9IOFkM11nrNMn3wK8NwkZkH7/i xRFUBsLaReQe0koORQD/cPYNlMyF63+mFv6+1g74yZasl96aLRZjSZ2m9nBGMgA= =myRk -----END PGP SIGNATURE----- --=-a9UR93AHifDncuwDCHbF--