From unknown Sat Sep 06 12:14:31 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#52472 <52472@debbugs.gnu.org> To: bug#52472 <52472@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add libtree Reply-To: bug#52472 <52472@debbugs.gnu.org> Date: Sat, 06 Sep 2025 19:14:31 +0000 retitle 52472 [PATCH] gnu: Add libtree reassign 52472 guix-patches submitter 52472 poptsov.artyom@gmail.com (Artyom V. Poptsov) severity 52472 normal tag 52472 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 13 15:42:53 2021 Received: (at submit) by debbugs.gnu.org; 13 Dec 2021 20:42:53 +0000 Received: from localhost ([127.0.0.1]:56942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mws9o-0004YD-Ta for submit@debbugs.gnu.org; Mon, 13 Dec 2021 15:42:53 -0500 Received: from lists.gnu.org ([209.51.188.17]:42916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mws9n-0004Y6-Fq for submit@debbugs.gnu.org; Mon, 13 Dec 2021 15:42:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mws9n-0007b9-8V for guix-patches@gnu.org; Mon, 13 Dec 2021 15:42:47 -0500 Received: from [2a00:1450:4864:20::235] (port=46751 helo=mail-lj1-x235.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mws9i-0001ax-6u for guix-patches@gnu.org; Mon, 13 Dec 2021 15:42:44 -0500 Received: by mail-lj1-x235.google.com with SMTP id a37so24370061ljq.13 for ; Mon, 13 Dec 2021 12:42:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=hnkBJPWrYTbx7Sir3zUuDjZDgm5dMRM92FQGNywYNlk=; b=dH/1g86yOP48L6ufS8NQpxItD2pkyP0fpQyrqG9RV4faZv3RnlXyPij5rZOOruCZaD K/WdoVU6ZcvuoiObaK0KjiJijfdRgyuZ0ntBacZW6tTe8srOyDuE1ZK2AJe+6oViremr TiOFw0eNSSR3Rc0ta+kkkOOiyaCJYYQkUmqM5yAd8p3AOaS8w1JTgga9JNC+m86xWqCU tlkLW8lraSqFO/1BCgktiPzsMHRKmScQbe1DwCQOo9MO37NS6ZIricGYR0kUJB86sWv2 QJdbKqMnbxtAWpU6M2PdaLNFcSburxXpkh3fSCgNxJfK7psB6yR94iqbFPVR+/TG7m5L wSGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=hnkBJPWrYTbx7Sir3zUuDjZDgm5dMRM92FQGNywYNlk=; b=CJi/cT/6t9kTFtiMTTgwoIuP7bq0iELAn89/ZE4SoI0asmVzDTghE9qBUeU8xCiCET vUZ8XBpUPle1tdLthtsZX9fo8Qa5B0HOEenPaR0lBw4pdMb3gnSy0oO5TtWWPNoVw1eO dI2glkV7fT4tazPbVgLyCCUzah0PgtnDJbxoinBWKVK5lPc+gBR/uKW++7mCaz6Hv9gc 5YqXoOwTSAIUOiZPBL2oWAqxmS9DaMpTw2Px6sYguBWRRjoE4PQnUhh/FcnS53VgaSnp F2xIZh61V5bNiRmMHYaWdW7tUa0toJr/R9VQkoY/bUNZ559yC+R5ApWB9ZsUEA2dcb59 E23g== X-Gm-Message-State: AOAM531wPqCNcIcYQvjEkrTrfC59hD8so4QAqTLyp7PPb6xzEL8hT1r6 fao5+1wS07t+OXg95fSw+WD/os/laZw= X-Google-Smtp-Source: ABdhPJw0cjsYse5ONkcgrt3JRcumlbLvaYY/z8b6oonLe4sb0K/tlNIj/YnG5gyhqSHxobscYkLreg== X-Received: by 2002:a2e:5850:: with SMTP id x16mr863751ljd.122.1639428159741; Mon, 13 Dec 2021 12:42:39 -0800 (PST) Received: from elephant ([5.164.193.196]) by smtp.gmail.com with ESMTPSA id w6sm1564028lfr.11.2021.12.13.12.42.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Dec 2021 12:42:38 -0800 (PST) From: poptsov.artyom@gmail.com (Artyom V. Poptsov) To: guix-patches@gnu.org Subject: [PATCH] gnu: Add libtree Date: Mon, 13 Dec 2021 23:42:34 +0300 Message-ID: <87fsqw5j9h.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::235 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=poptsov.artyom@gmail.com; helo=mail-lj1-x235.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit 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: -2.3 (--) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello Guixers, this patch adds libtree[1] v3.0.0-rc6. - avp References: 1: https://github.com/haampie/libtree --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libtree.patch Content-Transfer-Encoding: quoted-printable From=2098428689a669def9499cce2883ac33202fa3ac84 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Mon, 13 Dec 2021 23:34:29 +0300 Subject: [PATCH] gnu: Add libtree * gnu/packages/linux.scm (libtree): New variable. =2D-- gnu/packages/linux.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 1e51dd8d83..84e7042604 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -53,6 +53,7 @@ ;;; Copyright =C2=A9 2021 B. Wilson ;;; Copyright =C2=A9 2021 Ivan Gankevich ;;; Copyright =C2=A9 2021 Olivier Dion +;;; Copyright =C2=A9 2021 Artyom V. Poptsov ;;; ;;; This file is part of GNU Guix. ;;; @@ -8690,3 +8691,39 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.0-rc6") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1i2v70n0pn7aqa4k2pr049zwp1sf8m975pgpgmnr3d53806zchgs")))) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'check) + (delete 'configure) + (add-before 'build 'patch + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "Makefile" + (("\\$\\(DESTDIR\\)\\$\\(BINDIR\\)") + (format #f "~a/bin/" (assoc-ref outputs "out")))))) + (replace 'build + (lambda _ + (setenv "CC" "gcc") + (setenv "LDFLAGS" "-static") + (invoke "make")))))) + (build-system gnu-build-system) + (home-page "https://github.com/haampie/libtree") + (synopsis "@command{ldd} as a tree") + (description + "This tool turns @command{ldd} into a tree and explains how shared +libraries are found or why they cannot be located.") + (license license:expat))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmG3sDoACgkQ6cWi2QiY oC/TgggAj0rwqgmypMH1VWiWH5opUiHWiV1VRfaFgwJHqbAKGsF3Zjlto1BHNQx9 Cn9W3xS+l1cffbpcKoFHqYZDHF6arjwWt1Yjtf+06KHEdw1O29cznrVl2W+0U83i Zzp3D+YA9mOeemc6FyqzkGAenC3N0lUsLNkObzgFx2t+168taq99KdZ7HW3jfeRa bRrXg0JX7wVrmEP/5ipBQU2JvPj/BDKuFqAY1j92NI/OmUBbdJATpbQ0xHhbGcNu 2td8cURNCv05BG0viBUOCShCg+M4XBHLvBif4qFBU/UyhtHA44OyJeL5h7hMhNTX 6/5CEVIME2dpBiKo1C5YKjaIE+iIxw== =sVzF -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 18 03:03:10 2021 Received: (at submit) by debbugs.gnu.org; 18 Dec 2021 08:03:10 +0000 Received: from localhost ([127.0.0.1]:41216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myUgM-00011d-0e for submit@debbugs.gnu.org; Sat, 18 Dec 2021 03:03:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:38880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myUgK-00011V-Ms for submit@debbugs.gnu.org; Sat, 18 Dec 2021 03:03:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34924) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myUgK-0008J1-HA for guix-patches@gnu.org; Sat, 18 Dec 2021 03:03:04 -0500 Received: from [2a00:1450:4864:20::12c] (port=44651 helo=mail-lf1-x12c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1myUgI-0006Ut-OS for guix-patches@gnu.org; Sat, 18 Dec 2021 03:03:04 -0500 Received: by mail-lf1-x12c.google.com with SMTP id z7so9354761lfi.11 for ; Sat, 18 Dec 2021 00:03:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=nYNlllWldna1CcWMvJLjjvK6vduhEz23q7JfVJYxkXA=; b=PUfFTUFwhZd6JL0ug60DXudE7baBdWwgVmEkSCKMWL8HZyAosRHCrJ4QG3zkvcKHdG ivLWgwLbtBO8+w/dK91i3mUaOdItomVjrurJ/leAQH+wWgqjhPCGs04B3p2FwK7uBEr6 nB7q2E3nLHE0N3pik/IPLhCQYagNfrC1vZh/nr26LmG7ZXFK1l4kGZcO5lKLeRBllUhZ SGdKHlOq6LF3vxss8Fs08i7NyDj6PvT9xWKObQaHGPZnbNdXtXBmZgr2Wu1oR1MPQv03 a495fCSeOfyAo30JdLmjJKcoX4oZw5ntAecYIrGvm8sXHK38lVa5YW/Bz4U9iCLM6Mly BHbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=nYNlllWldna1CcWMvJLjjvK6vduhEz23q7JfVJYxkXA=; b=4YUAtvtZ/aQi2k2Li1ARSws4P99nG1Os5KuZByXNZYYUSUgP1i5EJFUl2MUuoY9A+7 1gBUDwymUK3/NC2rtnKog01MjmnJ+H+uB3IWyJRMR0TjvRS8Ioxu9FX5bZURZa61r83i lWNkLjxg7jkHjfiBHbv3GqYWGm2gw0vddL0JD0S1RXKzXAn6saIyQk5PUhIkC4THbnLj HhVxbCsnrTYgX3Qnc491Rht+5KI98SVg6NKs6gHjpmGvnFMXoSVoCEcixinOWV2LCNpg S3UWPtAOXShwwxe9Vq3jE2v7IlS/gA0H4PZVgoGGm69vpe7qFDH+EDNi1rqqXBcufmru HbYQ== X-Gm-Message-State: AOAM530ZteCesjgs40wEsrNnAnBVfF8vaSFwONr7omfTQ3Y4zqrdIiv5 mvppFDfWmi57N8oL4vm9ZzzHHACs1I0= X-Google-Smtp-Source: ABdhPJzs/aPC73DFAt3PEJnyN5W60nngB+bqFKL/JpiXetv0vvEdGGq2uvRTX8b6TnVzKB0L/6Nxmw== X-Received: by 2002:ac2:5e85:: with SMTP id b5mr1481731lfq.33.1639814579953; Sat, 18 Dec 2021 00:02:59 -0800 (PST) Received: from elephant ([5.164.193.196]) by smtp.gmail.com with ESMTPSA id b6sm1877730ljr.103.2021.12.18.00.02.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Dec 2021 00:02:59 -0800 (PST) From: poptsov.artyom@gmail.com (Artyom V. Poptsov) To: guix-patches@gnu.org Subject: Re: [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> Date: Sat, 18 Dec 2021 11:02:55 +0300 In-Reply-To: <87fsqw5j9h.fsf@gmail.com> (Artyom V. Poptsov's message of "Mon, 13 Dec 2021 23:42:34 +0300") Message-ID: <87pmpu5oi8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::12c (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::12c; envelope-from=poptsov.artyom@gmail.com; helo=mail-lf1-x12c.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit 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.0 (/) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain I've updated libtree to v3.0.1. - Artyom --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libtree.patch Content-Transfer-Encoding: quoted-printable From=204deebbcc8be0352121b7cf42e6a39949601faa0f Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Mon, 13 Dec 2021 23:34:29 +0300 Subject: [PATCH] gnu: Add libtree * gnu/packages/linux.scm (libtree): New variable. =2D-- gnu/packages/linux.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 055a37cb79..7503b10800 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -59,6 +59,8 @@ ;;; Copyright =C2=A9 2021 Josselin Poiret ;;; Copyright =C2=A9 2021 Olivier Dion ;;; Copyright =C2=A9 2021 Solene Rapenne +;;; Copyright =C2=A9 2021 Artyom V. Poptsov + ;;; ;;; This file is part of GNU Guix. ;;; @@ -8754,3 +8756,41 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j56j1k4rlm0wi6jvdmk7j7nf4wrmc5gyhgp6vjf180hpgwlqz92")))) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'check) + (delete 'configure) + (add-before 'build 'patch + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "Makefile" + (("\\$\\(DESTDIR\\)\\$\\(BINDIR\\)") + (format #f "~a/bin/" (assoc-ref outputs "out"))) + (("\\$\\(DESTDIR\\)\\$\\(SHAREDIR\\)") + (format #f "~a/share/" (assoc-ref outputs "out")))))) + (replace 'build + (lambda _ + (setenv "CC" "gcc") + (setenv "LDFLAGS" "-static") + (invoke "make")))))) + (build-system gnu-build-system) + (home-page "https://github.com/haampie/libtree") + (synopsis "@command{ldd} as a tree") + (description + "This tool turns @command{ldd} into a tree and explains how shared +libraries are found or why they cannot be located.") + (license license:expat))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmG9la8ACgkQ6cWi2QiY oC+0mAf+IkotJf57qW3huyHieYgpJeLUwfbJ02C+ey27tt/m0vVQAkW2zMpWXp78 wGZCyHnM+Mn+WahOZOFAmZIgWZ/EuYUSEEZFNIh4I8GUrxep3846sbxlBG94R0ca TLqTDM6y1CJitA3YOXIE6whmp3+awL46JsiFdgztoIrtcZ0Ty5zJzQ2Dhhv8b1E9 42b3ehsXFiLj1WPRuYfPwE/4gFh9OPu1Uv4fpeBkfaA75LIeRRMsXOWQ0G7QAt3Y 4qLQKqeicR6NQuD6j6k6ZOfq24su6bLF36Ykn1ajp5NjCCwVTKYP/+5f3+RLFCxn 7wY0LJNZSVq6Zp2+6SS3Hr8/oSiwEQ== =P9rc -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 04:48:38 2021 Received: (at 52472) by debbugs.gnu.org; 19 Dec 2021 09:48:38 +0000 Received: from localhost ([127.0.0.1]:44825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myso2-0003g5-DM for submit@debbugs.gnu.org; Sun, 19 Dec 2021 04:48:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myso0-0003fp-9P for 52472@debbugs.gnu.org; Sun, 19 Dec 2021 04:48:36 -0500 Received: from [2001:470:142:3::e] (port=57334 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mysnu-0000oC-IY; Sun, 19 Dec 2021 04:48:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=fevEJ+5Qm8ncODCpaTIjIjpWcvouUtcXBXoqaUuofaE=; b=hkUw44Ae5N8++sSgXTGy h3ud1zNAELniu0wIDfWRdFxPPvTuJ9Giw0H4Bf53qkitCN6WX6eDUi+sNWB1L3KmxomxGDqBih2bB +b2BuD0qSpnVf9Hq7VaL0DXR1g3F1qpXjWLnMn/hmiaxEM5myMnekxkvmWNN39T/xf8XrLpXCe4o2 uQf5NIcb2AoIm1yRCOC4ClHzl+kpK4fVw6O4BFsyH2hWsJd5tmJhW6uWVMms7o2ZvbEzhit8E3OMD pdxwMTSyS0g9p8KMTZ064TVTHAy7WMBEHedgfyaj1LOtmZOpDWTZQleCqk+wTCG0hKbtXizS9K6HI nP3k+BJENgKY8A==; Received: from [2a01:e0a:19b:d9a0:45b5:a14a:5c75:5737] (port=54124 helo=meije) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mysnu-00080b-Gm; Sun, 19 Dec 2021 04:48:30 -0500 From: Mathieu Othacehe To: poptsov.artyom@gmail.com (Artyom V. Poptsov) Subject: Re: bug#52472: [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> Date: Sun, 19 Dec 2021 10:48:28 +0100 In-Reply-To: <87pmpu5oi8.fsf@gmail.com> (Artyom V. Poptsov's message of "Sat, 18 Dec 2021 11:02:55 +0300") Message-ID: <87bl1dsz6b.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52472 Cc: 52472@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: -3.3 (---) Hey Artyom, > ;;; Copyright =C2=A9 2021 Solene Rapenne > +;;; Copyright =C2=A9 2021 Artyom V. Poptsov > + No need for an extra new-line here. > + (lambda* (#:key outputs #:allow-other-keys) > + (substitute* "Makefile" > + (("\\$\\(DESTDIR\\)\\$\\(BINDIR\\)") > + (format #f "~a/bin/" (assoc-ref outputs "out"))) > + (("\\$\\(DESTDIR\\)\\$\\(SHAREDIR\\)") > + (format #f "~a/share/" (assoc-ref outputs "out")))))) You can now write: --8<---------------cut here---------------start------------->8--- ,#~(modify-phases %standard-phases (delete 'check) (delete 'configure) (add-before 'build 'patch (lambda* (#:key outputs #:allow-other-keys) (substitute* "Makefile" (("\\$\\(DESTDIR\\)\\$\\(BINDIR\\)") (string-append #$output "/bin/")) (("\\$\\(DESTDIR\\)\\$\\(SHAREDIR\\)") (string-append #$output "/share/"))))) --8<---------------cut here---------------end--------------->8--- > + (replace 'build > + (lambda _ > + (setenv "CC" "gcc") That would break cross-compilation. You should use something like: --8<---------------cut here---------------start------------->8--- (string-append "CC=3D" ,(cc-for-target)). --8<---------------cut here---------------end--------------->8--- > + (setenv "LDFLAGS" "-static") Why are we building a static version of the program? There's also this linter warning: gnu/packages/linux.scm:8649:14: libtree@3.0.1: synopsis should start with a= n upper-case letter or digit Thanks, Mathieu From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 19 07:51:13 2021 Received: (at submit) by debbugs.gnu.org; 19 Dec 2021 12:51:13 +0000 Received: from localhost ([127.0.0.1]:45144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myvei-00052H-PW for submit@debbugs.gnu.org; Sun, 19 Dec 2021 07:51:13 -0500 Received: from lists.gnu.org ([209.51.188.17]:32900) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1myveh-000529-EY for submit@debbugs.gnu.org; Sun, 19 Dec 2021 07:51:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myveg-0008Qi-AO for guix-patches@gnu.org; Sun, 19 Dec 2021 07:51:11 -0500 Received: from lepiller.eu ([89.234.186.109]:40146) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1myvec-0006A6-7B; Sun, 19 Dec 2021 07:51:09 -0500 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 9176c641; Sun, 19 Dec 2021 12:50:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=yIzStsoNJdqz B0w2g1BZE2W37hLoHR4ixrKKIxydc50=; b=FtQ8qRVUn8o8clHLuKU/YPnLK2SK peAKnWmf/0h5CvMw8S4ZmpMS1bNQTGXnED6BJbOeflL2U2QNrZ4+Obq2jeNs3UV1 ftF/QiowTlHaDwC8+4RqBOfwEDN+1YjVKTcy7eHxDhii8Ob09mgokNNGETAutyf8 8ntBqmUbMxpyTt4PcksUJBjmipnYG/a8vO/3+rn2orT/ek0yg/l7m9XXXGAwkmp6 UEpZ1hNXrGxVA58r3K3YXek6nSZL9ExylDJXehMZ73iYB25ksFT+NOL0nojippYQ kIhYQfireSdbC1vDaQ7YL19b8AoYdIE+v0MQRNVbgZ+goTqzi1aU00HLFg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id f3354ba1 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 19 Dec 2021 12:50:58 +0000 (UTC) Date: Sun, 19 Dec 2021 07:50:52 -0500 From: Julien Lepiller To: guix-patches@gnu.org, Mathieu Othacehe , poptsov.artyom@gmail.com Subject: Re: [bug#52472] [PATCH] gnu: Add libtree User-Agent: K-9 Mail for Android In-Reply-To: <87bl1dsz6b.fsf_-_@gnu.org> References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> Message-ID: <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=89.234.186.109; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: 52472@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: -2.3 (--) Sorry if this is overwhelming, but also: Le 19 d=C3=A9cembre 2021 04:48:28 GMT-05:00, Mathieu Othacehe a =C3=A9crit=C2=A0: > >Hey Artyom, > >> ;;; Copyright =C2=A9 2021 Solene Rapenne >> +;;; Copyright =C2=A9 2021 Artyom V=2E Poptsov >> + > >No need for an extra new-line here=2E > >> + (lambda* (#:key outputs #:allow-other-keys) >> + (substitute* "Makefile" >> + (("\\$\\(DESTDIR\\)\\$\\(BINDIR\\)") >> + (format #f "~a/bin/" (assoc-ref outputs "out"))) >> + (("\\$\\(DESTDIR\\)\\$\\(SHAREDIR\\)") >> + (format #f "~a/share/" (assoc-ref outputs "out")))))) > >You can now write: > >--8<---------------cut here---------------start------------->8--- > ,#~(modify-phases %standard-phases > (delete 'check) > (delete 'configure) > (add-before 'build 'patch > (lambda* (#:key outputs #:allow-other-keys) > (substitute* "Makefile" > (("\\$\\(DESTDIR\\)\\$\\(BINDIR\\)") > (string-append #$output "/bin/")) > (("\\$\\(DESTDIR\\)\\$\\(SHAREDIR\\)") > (string-append #$output "/share/"))))) >--8<---------------cut here---------------end--------------->8--- > Don't remove the check phase=2E Use #:tests? #f instead and add a comment = explaining why=2E If the tests fail, we should fix them, not put them under= the rug ;) Maybe it would be easier to pass BINDIR, SHAREDIR and CC with #:make-flags= ? >> + (replace 'build >> + (lambda _ >> + (setenv "CC" "gcc") > >That would break cross-compilation=2E You should use something like: > >--8<---------------cut here---------------start------------->8--- >(string-append "CC=3D" ,(cc-for-target))=2E >--8<---------------cut here---------------end--------------->8--- > >> + (setenv "LDFLAGS" "-static") > >Why are we building a static version of the program? > >There's also this linter warning: > >gnu/packages/linux=2Escm:8649:14: libtree@3=2E0=2E1: synopsis should star= t with an upper-case letter or digit > >Thanks, > >Mathieu > Could you send a new patch with these changes? Don't hesitate to ask if yo= u're a bit lost or need help on some points :) From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 12 22:30:58 2022 Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 03:30:58 +0000 Received: from localhost ([127.0.0.1]:59616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7qpC-0004pZ-Ig for submit@debbugs.gnu.org; Wed, 12 Jan 2022 22:30:58 -0500 Received: from mail-lf1-f49.google.com ([209.85.167.49]:45986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7qpA-0004pH-AH for 52472@debbugs.gnu.org; Wed, 12 Jan 2022 22:30:53 -0500 Received: by mail-lf1-f49.google.com with SMTP id u13so14892149lff.12 for <52472@debbugs.gnu.org>; Wed, 12 Jan 2022 19:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=9JZzwvJIN/BNlmJ8Y9Qg5wJI0jj63ym/WK6h8BjQiUw=; b=E77RuGpiP0nqrxW55+xsfsfuxIaqjylGxaguzNi1vHRJwFXzsjgIU5i0X4aBK3TZ1z uBkcaLZXRQHvG0krmHpvaI5/qyeqapjq/BBMLPMxiRd3bSYJYUx80+euS+bAdXUyAtKM OUowV2ZvwIpM/fyYO5UGh7uxJeeZ7BskdUNSx9mKLWAiL733atAmR8vfe91kVWy2rDt1 1lZWj0KuuhBU1hDhRIzvVsHZuklpzcwYKADWjzYSWMyVXxV84UY+F5joYLGfEPusf1/X tYvdt21+OHHSJcztR8UtQcwoGDHZFVADctqoVmu2FqFzzRvMSQ8TVA1dVkdv4vn0hRMz uOag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=9JZzwvJIN/BNlmJ8Y9Qg5wJI0jj63ym/WK6h8BjQiUw=; b=01e1PYYWEHet3u6ukpw8E+AjQVercmk2UVRwHDEdbodWTsCd0jX1wkcVQ3LMxEBeun bjOnPLJmbvhIOUTwKCJiqfnv0dbh3ZJbWCqVYnF1+XlmJzzDXOCd4yuYjYsDpGFQhyhT bvC5qHX3B/aXfxAI487e8nDDDEqDw8IkoFFEEIzQZ/QdJ43KI6nNJrbGI/WoMX1eJK+0 P7TMUjkSfnNyo2uQQ3nVHLQUeO5iam/HXhb+AqMnoc0gZbwt+4JxN3jFZjQPkgEKWtgE WZm7PVmWtamVBWWICRKNFtUiiSmEPLZDidqR00bL1ps8HU57w5n0IXHr2l6TqvHHc9ds iVFA== X-Gm-Message-State: AOAM530rBCMvEq7Q2G7A4ec5QKy0gjAaJMADnQI09braTsQ7DgBJ5iBv rGMXAFPrxw+Qzr5Mp8TgyxwEkptXps4= X-Google-Smtp-Source: ABdhPJyHmk6cR8YvEA+CLYMT5nYp7ZeoF5psaYGWx6VEGI+2gnXbZzpb/iG8RrEnPcu4MMfO3h3qmg== X-Received: by 2002:a05:6512:39cc:: with SMTP id k12mr1967869lfu.372.1642044645793; Wed, 12 Jan 2022 19:30:45 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id f18sm160403lfj.56.2022.01.12.19.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 19:30:45 -0800 (PST) From: "Artyom V. Poptsov" To: Julien Lepiller Subject: Re: [bug#52472] [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> Date: Thu, 13 Jan 2022 06:30:41 +0300 In-Reply-To: <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> (Julien Lepiller's message of "Sun, 19 Dec 2021 07:50:52 -0500") Message-ID: <87zgo0jori.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52472 Cc: Mathieu Othacehe , guix-patches@gnu.org, 52472@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 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, this is the updated version of the patch with changes suggested by Mathieu Othacehe and Julien Lepiller. A note for Mathieu: I used to build libtree with "-static" flag as it is recommended by the official documentation. But libtree builds fine without the flag so I removed it. Thanks, - Artyom --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libtree.patch Content-Transfer-Encoding: quoted-printable From=204ce9098e6fe8525e1e68d97458cb246ddc901266 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Mon, 13 Dec 2021 23:34:29 +0300 Subject: [PATCH] gnu: Add libtree * gnu/packages/linux.scm (libtree): New variable. =2D-- gnu/packages/linux.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index da2ce602a7..f73e235a3c 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -60,6 +60,8 @@ ;;; Copyright =C2=A9 2021 Olivier Dion ;;; Copyright =C2=A9 2021 Solene Rapenne ;;; Copyright =C2=A9 2021 Petr Hodina +;;; Copyright =C2=A9 2022 Artyom V. Poptsov + ;;; ;;; This file is part of GNU Guix. ;;; @@ -8789,3 +8791,38 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j56j1k4rlm0wi6jvdmk7j7nf4wrmc5gyhgp6vjf180hpgwlqz92")))) + (arguments + (list #:tests? #f + #:make-flags + ;; NOTE: Official documentation recommends to build libtree with + ;; "-static" flag. + #~(list (string-append "CC=3D" #$(cc-for-target)) + "PREFIX=3D/" + (string-append "DESTDIR=3D" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" make-flags)))))) + (build-system gnu-build-system) + (home-page "https://github.com/haampie/libtree") + (synopsis "Show output of @command{ldd} as a tree") + (description + "This tool turns @command{ldd} into a tree and explains how shared +libraries are found or why they cannot be located.") + (license license:expat))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmHfnOEACgkQ6cWi2QiY oC9L0gf+JPxs7FnhvHLo23creZipNkVGRC/cdIvdhXOAYuPH4ewcxayH4RVzM7dQ OPGbogMpO0PZOgQ39oVq8afV5nBsb5XHpAsOPekiL9MhN+QtkNGGwuAWV0qQSqyT j3VKD4PSP8B2GdWulqT4BWMf5W0ufMfsHP7o8GwhEASTgxZcEP6RLPPZ2rJjbZWj 5MvqnyblNNusP52AkKycizWSpGslcw3nocU9kezvX1OQDtcjXR5NJJGxtCj5t2fL ZbEW0uL/6GSettcKsVDnZFrgx+D7N5c910w0fKCj1BKVeyPgmEPVrTgtjOljOgfX /IdrmMVPDfGyKbbGUoI5lvIiFI50Xg== =mauL -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 13 02:38:40 2022 Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 07:38:40 +0000 Received: from localhost ([127.0.0.1]:59971 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7ugy-0004I1-4j for submit@debbugs.gnu.org; Thu, 13 Jan 2022 02:38:40 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:56870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7ugu-0004Hq-Hg for 52472@debbugs.gnu.org; Thu, 13 Jan 2022 02:38:39 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by andre.telenet-ops.be with bizsmtp id i7ea2600J4UW6Th017ebsn; Thu, 13 Jan 2022 08:38:35 +0100 Message-ID: <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> Subject: Re: [bug#52472] [PATCH] gnu: Add libtree From: Maxime Devos To: "Artyom V. Poptsov" , Julien Lepiller Date: Thu, 13 Jan 2022 08:38:34 +0100 In-Reply-To: <87zgo0jori.fsf@gmail.com> References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-5FOxgy0vQFSDCl7tCZ8j" 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=1642059515; bh=FnSu+frjmpugV0jrkrVhBTVXijE4msuGswb2PG5Y6t4=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=FMZQmOTEz+qAid/w5kaNGebr9CA8rBaTS5+l5g8E1ESdQKLhtcIq2FmYoBopfCrAe HobjHwXK/0YXf/bi8lfr7yLOpJmCH/KSqwcOT/7pv+ctRLM7bHQ9Twt5DOKa7dbUPv mPamJ5QF3hiMRDo52hTF4amNZPqQa/MMV7UCzilTz9YGGOdWL07gCB22dq60EtzNdC TnV1GGefU35j1cbJRgC4Blw8vR5Pn/mpEDIcasPzkD/2Nfti2fpsiCBiFZ5idTn75X a7adiCgjRELGehTlXUuF6KinmnWjcF4vsn1hzycqoGSEeNp2YODdY5YfdDBRL9iVDp +G9GE34m2SsGQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, 52472@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.7 (-) --=-5FOxgy0vQFSDCl7tCZ8j Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Artyom V. Poptsov schreef op do 13-01-2022 om 06:30 [+0300]: > +=C2=A0=C2=A0=C2=A0=C2=A0 (list #:tests? #f There's a check target in and a bunch of tests in . Greetings, Maxime. --=-5FOxgy0vQFSDCl7tCZ8j 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+4iGRcl7gUCYd/W+hccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7qxyAP0UNEh/KHFV2ZLQ627j1YIo3cxE 9c914yVbbWQzLffKmQD9FLLWMuI3smwpi2Tu6d9tqMqWfT93aUxe01yoU+D9Wg0= =XDVQ -----END PGP SIGNATURE----- --=-5FOxgy0vQFSDCl7tCZ8j-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 13 12:19:04 2022 Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 17:19:04 +0000 Received: from localhost ([127.0.0.1]:34403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n83kd-00028c-Qu for submit@debbugs.gnu.org; Thu, 13 Jan 2022 12:19:04 -0500 Received: from mail-lf1-f43.google.com ([209.85.167.43]:42998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n83kb-000280-W4 for 52472@debbugs.gnu.org; Thu, 13 Jan 2022 12:19:02 -0500 Received: by mail-lf1-f43.google.com with SMTP id e3so19169489lfc.9 for <52472@debbugs.gnu.org>; Thu, 13 Jan 2022 09:19:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7rnJ+iYYrj0Tz5pOQv+4ynGo4rBnnq0AxMCB/59+8fs=; b=QB4E6POk6W37rSnGquLk99sVeSF85l256Y8ataMOZUo2YpRIgglJtCD2vj9H/zpm2x YQcS3DZOGy3AEOxGm0fbs3Z/wckDt6IRHOPsBmHk+zrd/DekdbgXj3wfpYjAaYx2cZXm Fx4fYuDjRF48Uu3qPUCeXN7vBZrCFgq9AyjyhidxgtVA2v21bmGcLE/Q0xrkHfBwwMZF s9w3s1lpkylcKQew3VKuogEZPm9WiQpZSyKIBOSAaUos44Z3cUv6V7i81pcezgTcawSa JVDJj8xvV3XnhQRiQ5dprRCiEuaFWLRgII4fdJbhCKQHeTF2mZExxL1nR2yOxwkJ1ltG 8GCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7rnJ+iYYrj0Tz5pOQv+4ynGo4rBnnq0AxMCB/59+8fs=; b=Le7xvBWu+le3aWSXvy0uPnFD0ssYoeao6YHqECroPuwt6dRXReloCNz6ZRMoC8aNxu y8Lkp1EobCIc8Kez9Q/ItNtAd4x/z3+7z34ZdzpzI0suLeztYMjC0wtzFU309bm63Uje WtxNBmOeeN2uRIYVMo1NI68pF+GqogZwupE2TQEMEHoxJ/W6DfNjBSwxoAx/JD1lW/9B gDfPaeC6Xp2MR0vNm75/xjs6ctO5IJTa6EedrLJBMaH+Ulw970Vbti/f7LOOqYW/1yVV 7uQUMruYacijdAPMO9w+BZFwnsT/1RqKfOKwSKDVViTeptn1lNZ7o8baZ89kGZYy0xta XQyA== X-Gm-Message-State: AOAM530kWi+dAXEZQK+sM5OOKEAzalt8umY5z/6EXQCvre4XnbBDO64S auKiVKFWYaiEqBeBtG3A4OxlofKpWD8= X-Google-Smtp-Source: ABdhPJxTEn186bnNy3P0RfeF9Ly79E7TS6/O3SRxk/NhBKJ4BxA4zPm9o2A+eh3e8goOAdO2S3ImuQ== X-Received: by 2002:a05:6512:11ee:: with SMTP id p14mr3967495lfs.495.1642094335363; Thu, 13 Jan 2022 09:18:55 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id k39sm344617lfv.150.2022.01.13.09.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 09:18:54 -0800 (PST) From: "Artyom V. Poptsov" To: Maxime Devos Subject: Re: [bug#52472] [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> Date: Thu, 13 Jan 2022 20:18:50 +0300 In-Reply-To: <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> (Maxime Devos's message of "Thu, 13 Jan 2022 08:38:34 +0100") Message-ID: <87v8ynk0zp.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Maxime, to my understanding some libtree tests (namely 07 and 08) are made in such way that they finish with a non-zero code when they pass, that makes Guix stop during the build with an error. For example, the test "07_origin_is_relative_to_symlink_location_not_realpath" expects that libtree will fail. I checked a compiled "exe" file from a failed build and got this: =2D-8<---------------cut here---------------start------------->8--- $ libtree /tmp/guix-build-libtree-3.0.1.drv-0/source/tests/07_origin_is_rel= ative_to_symlink_location_not_realpath/exe=20 exe=20 =E2=94=94=E2=94=80=E2=94=80 libg.so [runpath] =E2=94=94=E2=94=80=E2=94=80 libf.so not found =E2=94=8A Paths considered in this order: =E2=94=8A 1. rpath is skipped because runpath was set =E2=94=8A 2. LD_LIBRARY_PATH was not set =E2=94=8A 3. runpath: =E2=94=8A /tmp/guix-build-libtree-3.0.1.drv-0/source/tests/07_or= igin_is_relative_to_symlink_location_not_realpath/b =E2=94=8A 4. ld config files: =E2=94=8A /usr/lib/x86_64-linux-gnu/libfakeroot =E2=94=8A /usr/local/lib =E2=94=8A /usr/local/lib/x86_64-linux-gnu =E2=94=8A /lib/x86_64-linux-gnu =E2=94=8A /usr/lib/x86_64-linux-gnu =E2=94=8A /lib32 =E2=94=8A /usr/lib32 =E2=94=8A 5. Standard paths: =E2=94=8A /lib =E2=94=8A /lib64 =E2=94=8A /usr/lib =E2=94=8A /usr/lib64 Error [/tmp/guix-build-libtree-3.0.1.drv-0/source/tests/07_origin_is_relati= ve_to_symlink_location_not_realpath/exe]: Not all dependencies were found $ echo $? 28 =2D-8<---------------cut here---------------end--------------->8--- Yet libtree itself seems to work fine after installation from Guix. Here's an example of the output for a correct binary: =2D-8<---------------cut here---------------start------------->8--- $ libtree guix-daemon=20 guix-daemon=20 =E2=94=9C=E2=94=80=E2=94=80 libz.so.1 [runpath] =E2=94=9C=E2=94=80=E2=94=80 libbz2.so.1.0 [runpath] =E2=94=9C=E2=94=80=E2=94=80 libgcrypt.so.20 [runpath] =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 libgpg-error.so.0 [runpath] =E2=94=94=E2=94=80=E2=94=80 libsqlite3.so.0 [runpath] =2D-8<---------------cut here---------------end--------------->8--- I suggest that we keep "#f" for tests unless the libtree author fix this behavior. For now I opened an issue for libtree: https://github.com/haampie/libtree/issues/65 Thanks! =2D Artyom =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmHgXvoACgkQ6cWi2QiY oC8OyQgAhNrVBG2WukYe0cGyCF8h9yILROEDfdXDIMOBcWYMbcur9IjWiyNmvQI5 ZDSg1Tpw8AMPwuaVNSxQ2y7CmRxtgSAMRzO2ljdmFbLuQxGE+ZoHGr2It22bB1zr lu8u1s98yri84fl/V6wIBNEwkop73UvPGoqVZrZhlUMCvUx+pUKGK5S0Dm/tLW2H OQ0HT4OQkkcu1JH9AxrEWurQcXg0IQAI5xe/VJUqAtP3OCobd7ujOiOicVSEhxGo 466XlzYy7xyDX9EYN6Vszl4XDh7VUmKMHyOTj1AD/EKQs43sl1+FCXt/Ma6vBpu3 f9tOMQil4RBEVCmjRaVpQa5MImQBKg== =pIQB -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 13 12:37:28 2022 Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 17:37:28 +0000 Received: from localhost ([127.0.0.1]:34499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n842S-0002lp-D6 for submit@debbugs.gnu.org; Thu, 13 Jan 2022 12:37:28 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:55160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n842O-0002ld-UP for 52472@debbugs.gnu.org; Thu, 13 Jan 2022 12:37:27 -0500 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by michel.telenet-ops.be with bizsmtp id iHdM2600D4UW6Th06HdMWR; Thu, 13 Jan 2022 18:37:23 +0100 Message-ID: Subject: Re: [bug#52472] [PATCH] gnu: Add libtree From: Maxime Devos To: "Artyom V. Poptsov" Date: Thu, 13 Jan 2022 18:37:15 +0100 In-Reply-To: <87v8ynk0zp.fsf@gmail.com> References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-eKMkdL3toajtKA+7A0LQ" 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=1642095443; bh=B28Gr5h9GiBlh+DCjWJqgeCckCRiPpHQwyAfBWG6LaU=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=QNKKQjuKKG1UiS1TW5RVwt8M0GvSHzBYv47oncX30t1zoZwHOkDTbeQNU/GPxWSnr eKIg/LtWaXCo8IKIJIRf4V+fMH0D2OfEX2KIU07Lg9gw4Oiv9gYNlPLAC8cu8/3wYm 4uBqO2PJ+mLyBgYQfYDUPXoFw87LQyA6n1OUZc69VyYcAzMRj/kcuQi98dy96X7SRf WpiIVp0wW3dcFwZqhZrssKo+vbVEcVNt17bvFlQ1gJooJLP/dyM0+4/qiosS8qM3ho OAHaj4H1Sr1hMBm4XajZ/1im+yS0wO3KUn1ajNnil+1v2RMM/9sN8NyxJqIffJUyUl QeQPAyI5QQfiQ== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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.7 (-) --=-eKMkdL3toajtKA+7A0LQ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Artyom V. Poptsov schreef op do 13-01-2022 om 20:18 [+0300]: > [...] >=20 > I suggest that we keep "#f" for tests unless the libtree author fix this > behavior. >=20 > For now I opened an issue for libtree: > =C2=A0=C2=A0https://github.com/haampie/libtree/issues/65 Seems reasonable to me, though I would add a comment ;; See next to the #:tests? #false such that the reasons won't be lost to time. Greetings, Maxime. --=-eKMkdL3toajtKA+7A0LQ 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+4iGRcl7gUCYeBjSxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7naeAQDSewgufeSRcEoMWHKP78/zDStd ZWr+hEggQUFQaKzlQgD9G+CembadJ4rpRgtbFUxH85kIYvF49zNqzxiiRZa/6wg= =ePWc -----END PGP SIGNATURE----- --=-eKMkdL3toajtKA+7A0LQ-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 13 12:51:22 2022 Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 17:51:22 +0000 Received: from localhost ([127.0.0.1]:34526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n84Fq-0003Di-La for submit@debbugs.gnu.org; Thu, 13 Jan 2022 12:51:21 -0500 Received: from mail-lf1-f45.google.com ([209.85.167.45]:43667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n84Fm-0003DP-7T for 52472@debbugs.gnu.org; Thu, 13 Jan 2022 12:51:17 -0500 Received: by mail-lf1-f45.google.com with SMTP id x22so22184787lfd.10 for <52472@debbugs.gnu.org>; Thu, 13 Jan 2022 09:51:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=PfSNzDADBYRW6TLLvmiUaAsLpVl+2mYY9Wxk0yD7GX0=; b=R3FkllqaeTluBMGq4MYUFGLmjrMAqY/KrcF0V6dj5GnCHHUIOp+WCPj3qoc9stAtFH HaQZo+ld6gfq1jhyHfcKnmKbNWMld9DoBEbpiESnaamt480NNwGOxs5/JXwT9w8Clu8q 2mVpf/UHk0yrGs0MLrwVXNCNL32dtgjlOfrOP2QoCZ3xj/V3fJicg4Pgw1+sqpYA1DBX Qmyjcrmz7/H8WQ99F7GwtUH7c4xgZK6oBPMugmWS1f5sCYPc1INGm1+yATInlwB/AMEE cprdz/WRZwo5GtKZ4Tfq7n0revsPSQuBkMZe2OPayaO/sjSxBMEwQUs+gQlvb3T1+CsI ugzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=PfSNzDADBYRW6TLLvmiUaAsLpVl+2mYY9Wxk0yD7GX0=; b=isiExvl4OqbaUjR4xLR2S3m4ulPWkGGuH0ZnDoeWcwbXD2wU119PvlUnuPm9cpThBD +65V4DCNQ7Q/DQ8XtjrX4y05gyuoDLhjrmu3LoCy+FUcek3gqVsasiNDbR5MRGUpLHUP 8BoKIZzUm6K3aNHMxHnABAFC3xXUvOlCPcsSj/jq86kM+Xgg+FJIsRJ3pJgBX/uW+o+S 3r5QVfhP5QF+3FgA4vBvVU8IVraJwyIWLP0/bHZNblIVLXWaMiPSyZht1iW6NBJlDiKX 3ReWAjaeZzFcdtQ9QADp9i1bbmPZwjWjyZx+YEfFI5tLpPxF+jb1WBGf/eV82qaXjBG4 3XWA== X-Gm-Message-State: AOAM532rLa6p6cAaZK3YQIFbMdijGwCd5c6q/O4q2qdqX8KuzvlN6vNx mKmPFp9YTGzglJgRWisubcm28cARRzw= X-Google-Smtp-Source: ABdhPJzSKNaK5WygzMF5Xz+5oqvw2Zcmz46mPrPR0QsFDaQTa7PDuPmS8PWjruU+C3UQoEhKZbaW/Q== X-Received: by 2002:a05:651c:982:: with SMTP id b2mr3641791ljq.55.1642096267590; Thu, 13 Jan 2022 09:51:07 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id p27sm348034lfa.295.2022.01.13.09.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 09:51:06 -0800 (PST) From: "Artyom V. Poptsov" To: Maxime Devos Subject: Re: [bug#52472] [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> Date: Thu, 13 Jan 2022 20:51:02 +0300 In-Reply-To: (Maxime Devos's message of "Thu, 13 Jan 2022 18:37:15 +0100") Message-ID: <87r19bjzi1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, > Seems reasonable to me, though I would add a comment > ;; See > next to the #:tests? #false such that the reasons won't be lost to > time. I added the comment. - Artyom --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libtree.patch Content-Transfer-Encoding: quoted-printable From=208367850d181a221cdf71911022c767d466009c5d Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Mon, 13 Dec 2021 23:34:29 +0300 Subject: [PATCH] gnu: Add libtree * gnu/packages/linux.scm (libtree): New variable. =2D-- gnu/packages/linux.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index da2ce602a7..07a64da679 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -60,6 +60,8 @@ ;;; Copyright =C2=A9 2021 Olivier Dion ;;; Copyright =C2=A9 2021 Solene Rapenne ;;; Copyright =C2=A9 2021 Petr Hodina +;;; Copyright =C2=A9 2022 Artyom V. Poptsov + ;;; ;;; This file is part of GNU Guix. ;;; @@ -8789,3 +8791,38 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j56j1k4rlm0wi6jvdmk7j7nf4wrmc5gyhgp6vjf180hpgwlqz92")))) + (arguments + (list #:tests? #f ; See + #:make-flags + ;; NOTE: Official documentation recommends to build libtree with + ;; "-static" flag. + #~(list (string-append "CC=3D" #$(cc-for-target)) + "PREFIX=3D/" + (string-append "DESTDIR=3D" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" make-flags)))))) + (build-system gnu-build-system) + (home-page "https://github.com/haampie/libtree") + (synopsis "Show output of @command{ldd} as a tree") + (description + "This tool turns @command{ldd} into a tree and explains how shared +libraries are found or why they cannot be located.") + (license license:expat))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmHgZoYACgkQ6cWi2QiY oC8dggf/cDyhxvERIAjx6CqrdTFXxfFWVOmXzK1V9PLzr+R40qCTPYdHm8V3AqaP MLEvtE7+DFDH/j1C4VzcP/ecfMX4Z8SKBFQVqV5TfHVpZ9aZ9z7QIpnS7sy6wGxs kt7+GFCr/hqWrB6xSeKWZM9sV2she48P6K9W73ORxQKd/GmfF1KGyy+7oYDC5PvR 5lR+H4p81nX37cVtBGrcriV8HVjXt3UfHlfiuWtg3mbR/ggrqW90Xu1y+kuTzwR2 e2BKmVpCoZCpBJ8cL/7GqR7akybQLPZxtwc0lDQiU766uUA77QY3R/aQQS2uXZkk eWuhSk8g28i8WfkdvPBZq1iao6700g== =1G5s -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 17 13:10:11 2022 Received: (at 52472) by debbugs.gnu.org; 17 Jan 2022 18:10:11 +0000 Received: from localhost ([127.0.0.1]:47925 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9WS4-0001RI-8X for submit@debbugs.gnu.org; Mon, 17 Jan 2022 13:10:11 -0500 Received: from mail-lf1-f41.google.com ([209.85.167.41]:34415) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9WRz-0001R0-24 for 52472@debbugs.gnu.org; Mon, 17 Jan 2022 13:09:54 -0500 Received: by mail-lf1-f41.google.com with SMTP id p27so49031902lfa.1 for <52472@debbugs.gnu.org>; Mon, 17 Jan 2022 10:09:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=BRMcP8Y3xRSD18NwiABO73vfV/tZC5Z6IPZslHXmUP4=; b=B9KX6+NJMPeJ5I/LStunbJ82NxlU8PU2J4UW2ssHOGN4wo4lKtF5UOPVAbu9/tocL9 7ya+wBwGc/JNDhjOqwYQISlQedfB2auESBz5c3JxAvZSj1d1R6M2xMwb+TquPqvg/HIA oGwn5C1wfHr8U1Wf0IxUQzSN544zHOKeRgg6JB0khYwQQ4n/oTymZGNkg+g06LPaQd2/ bcJY6v8lJpcgc6sFNDj5fNFZK2ZHTUnWqWiUmo25DUOZpRLKygHPQZfSO9YABH3maJ+W d3Q+fWhcqv/6OHxPN4wRCgDpAsKRDfekPiHxvdIL2lCWqap0/ohiGtTt9IJUJSt+NMbn IZUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=BRMcP8Y3xRSD18NwiABO73vfV/tZC5Z6IPZslHXmUP4=; b=xVOW5OqxTxH0H3FpnKR3brBJT5c+Fa1nYB/IOVj+A7w78BsInSRXx9vcfJePLo1EaS 7Nz/QiySajHJeXrA+upqfoMtpxJBY15KfLHO9P25dIxXv1Kbsb1Fg3Rxh23F/8waiytS UxIqKzqy3AykPE3j8FTeLy/+wa2YZjtv8E++KZFQKof5Hrw7PeOeGBfAtlfoaaIkJDjt nx/cBs4EPy2g0TTqHXINahyBbtFks588slQqCQ15h6kjEn6sRUYYvgkaK5YeAubtPHxb RTWKitWK/ME/DziehgFLYAnfLihiY8uDB/xNOdvzvW8YRi5+f/8K92tkR3l+bybCbE48 kbNQ== X-Gm-Message-State: AOAM530251ygG9gheIpXTE1XH2WjnFBThL0BbQD/fo/9iYfBk/PVBFbe zieI7n+VuLPfIKAVXxMQxY8PwJOsVJg= X-Google-Smtp-Source: ABdhPJxlvOrtwUUP7rIOUZ+UHt1mdYOEH7HZupvmfs7BMLu8G185laUYermjPXvzFFDU7VAzDbtrjQ== X-Received: by 2002:a2e:a787:: with SMTP id c7mr5747130ljf.54.1642442984466; Mon, 17 Jan 2022 10:09:44 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id q14sm1460132lfg.43.2022.01.17.10.09.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 10:09:43 -0800 (PST) From: "Artyom V. Poptsov" To: Maxime Devos Subject: Re: [bug#52472] [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> Date: Mon, 17 Jan 2022 21:09:38 +0300 In-Reply-To: <87r19bjzi1.fsf@gmail.com> (Artyom V. Poptsov's message of "Thu, 13 Jan 2022 20:51:02 +0300") Message-ID: <87mtjujkt9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, meanwhile the libtree author fixed the tests in 3.0.2: https://github.com/haampie/libtree/issues/65 So I've updated the patch to add libtree 3.0.2. Thanks, - Artyom --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libtree.patch Content-Transfer-Encoding: quoted-printable From=206a21b02af62ce27cedd1f3f02d47362b434616f7 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Mon, 13 Dec 2021 23:34:29 +0300 Subject: [PATCH] gnu: Add libtree * gnu/packages/linux.scm (libtree): New variable. =2D-- gnu/packages/linux.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 5f471beaaf..0a1e0d829b 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -60,6 +60,8 @@ ;;; Copyright =C2=A9 2021 Olivier Dion ;;; Copyright =C2=A9 2021 Solene Rapenne ;;; Copyright =C2=A9 2021 Petr Hodina +;;; Copyright =C2=A9 2022 Artyom V. Poptsov + ;;; ;;; This file is part of GNU Guix. ;;; @@ -8761,3 +8763,38 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "072624anz9g01mp5vfkahfmzy0nb7axg5rwk3n1yrdm4hr3d4zrb")))) + (arguments + (list #:tests? #t + #:make-flags + ;; NOTE: Official documentation recommends to build libtree with + ;; "-static" flag. + #~(list (string-append "CC=3D" #$(cc-for-target)) + "PREFIX=3D/" + (string-append "DESTDIR=3D" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" make-flags)))))) + (build-system gnu-build-system) + (home-page "https://github.com/haampie/libtree") + (synopsis "Show output of @command{ldd} as a tree") + (description + "This tool turns @command{ldd} into a tree and explains how shared +libraries are found or why they cannot be located.") + (license license:expat))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmHlsOIACgkQ6cWi2QiY oC/4lQf7BOQC/8IXDi8ngSVLBqFvJop1Fvc+GEpIq0HJTC3qfDs365E9sgpyW50q 0Yzq4CI59jgTAqSpLZN6uFzurDMpyMgx6zSiVzdsgzC4Cy8n0S11G3SX1HW2mXP0 vAC0nRGgLU3DMCyf1HXrFA7x7iDvIhsZgoXuyCzNsbdW0m6wLJXS8D3P4wcHmArt ulLfB9oR7sEjal3YuRUFgQoajwJLqqEe6TenhlboRSUz86WyOWQW5LIQVfmWloQu EY7KYx4sygXXne/mGayl+9OF+NFLeZtvweNHrKO7/UV45fyNc5Uy4ziNO4ESn0Ee gOvM5C5hLTe5eSxDmqI1ij1qNjYczQ== =34m0 -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 17 14:02:28 2022 Received: (at 52472) by debbugs.gnu.org; 17 Jan 2022 19:02:28 +0000 Received: from localhost ([127.0.0.1]:47990 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9XGt-00055L-Ud for submit@debbugs.gnu.org; Mon, 17 Jan 2022 14:02:28 -0500 Received: from xavier.telenet-ops.be ([195.130.132.52]:51122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9XGr-00055B-5i for 52472@debbugs.gnu.org; Mon, 17 Jan 2022 14:02:26 -0500 Received: from [192.168.202.254] ([178.119.10.153]) by xavier.telenet-ops.be with bizsmtp id jv2P260013J72EA01v2Pmt; Mon, 17 Jan 2022 20:02:23 +0100 Message-ID: Subject: Re: [bug#52472] [PATCH] gnu: Add libtree From: Maxime Devos To: "Artyom V. Poptsov" Date: Mon, 17 Jan 2022 20:02:13 +0100 In-Reply-To: <87mtjujkt9.fsf@gmail.com> References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-wmZZlK5pxYfpTL5D9EAF" 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=1642446143; bh=7v+dGDP2A7/REACz8qykVzxhlZwr1lpmqrkIjBOn/gk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=TYZSdPsFtUaUYv1xryv1uMe/SHTk1WCSYF3jUFnULPwee6AWbLnjftvvDnM78PNI1 84tY1y0nOIedr4Vx6uTLC75QD6lxo34fq2q9KP/dZrX6Y3bSCBRuGTb+4yqZ6W9jWQ 4c21TTvOhpZNud/JbXUxu+SN7BVlalNiMm+f4NYBuQOnQXXz/7K96DsPYxckwBSlzw S+Qz2zu1zuRdTXHdmyR2lwkDr7zMjuYDJ4k0oH+Lm7ttntSNWHmgR+rDJ4Ky1a01aq xE7OUSK2B6NCo+qiQeTeDvTuX3CNswIqNMLo0gEC7l4nk2/kD7MBLJ5x6/MBbZA67T 14l3RRJtxqd5w== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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.7 (-) --=-wmZZlK5pxYfpTL5D9EAF Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Artyom V. Poptsov schreef op ma 17-01-2022 om 21:09 [+0300]: > +=C2=A0=C2=A0=C2=A0=C2=A0 (list #:tests? #t Tests can almost never be run when cross-compiling, so this needs to be #false when cross-compiling. =C2=A0This should be detected by the 'tests-true' linter. =C2=A0I suggest removing '#:tests? #t=E2=80=99. > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #~(list (st= ring-append "CC=3D" #$(cc-for-target)) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "PREFIX=3D/" > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (string-append "DESTDIR=3D" #$output)) Guix doesn't do staged installation (https://www.gnu.org/software/automake/manual/html_node/DESTDIR.html). Doing (string-append "PREFIX=3D" $output) and dropping DESTDIR=3D... should suffice. Greetings, Maxime --=-wmZZlK5pxYfpTL5D9EAF 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+4iGRcl7gUCYeW9NRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7kXfAQDvj51ptZjsvYLqYZlnNlr6SPGk Vdq5HDueVB5vbgClqwD/aYMae62Ps4PLwI8+bQbbjAHcFGDVpJCGyiIybjIJSAE= =znuF -----END PGP SIGNATURE----- --=-wmZZlK5pxYfpTL5D9EAF-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 17 14:14:29 2022 Received: (at 52472) by debbugs.gnu.org; 17 Jan 2022 19:14:29 +0000 Received: from localhost ([127.0.0.1]:48018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9XST-0005PT-Do for submit@debbugs.gnu.org; Mon, 17 Jan 2022 14:14:29 -0500 Received: from mail-lf1-f54.google.com ([209.85.167.54]:44681) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9XSP-0005PD-3s for 52472@debbugs.gnu.org; Mon, 17 Jan 2022 14:14:23 -0500 Received: by mail-lf1-f54.google.com with SMTP id o15so61303335lfo.11 for <52472@debbugs.gnu.org>; Mon, 17 Jan 2022 11:14:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=lMlDb7Pd/1jg7XoTBKXzOxDadXQQNcbRYKWN/3J4ZK8=; b=aptj649FqJaB5SmBOOWWb4mewD82p4gDoX/qlHH/mW81GwzW8kCFf8zAFRKPkDa6gr +OLcNnhmRiHw1Ru5SOrDH5tieO3ShZkuSxRuYUprior5Bu6CRBA7nQJitu2mJzc23zjm sSH9F6qFiPtEom8bkrsbwXGSy9zsAolpOQ75PIS/IJd9+wO88cbL6rEuiIsJqW+XIrRZ U/5RJ7g1HF6JTifDvH1G9OQKovpljTIRq2wj6fU/g5UF2hGs9d2yVoW3DeGQponwNmGz g3ZPKdcIb182ul+qmgafnr+kzXGkO/UCjsOiFFlV3JAxbwZD9woIHtsLG4esktcGxi4K BA5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=lMlDb7Pd/1jg7XoTBKXzOxDadXQQNcbRYKWN/3J4ZK8=; b=zPVVonrXWpHkbXP/k0hiaKIWaqSw+eI98fu+5qsM+Zb57OZEdbOZs26fdGmXrpWfFe Fq5W4E3kQAxR4mWTt0QI479Q/dtKQ90YgtTAJAxttq6hlQCeHbNnq0tddIQ8ovtZSygY YYaTCFWRgabzA1IjF6+dw8dX8xoYoRPyVqF2nwHxkc9x4pIfyUOnZR8INuQEKsGvnlm8 yJKhtPUHGZoA4mJZNTeFIUZOGxoALe+9jSXr2nFLdOj2VCy6sjSevkDSum26g+2nPrK4 JGLBVnKtja9BA8TVUM9mjmWAQ5fzY2nz1YYyeEaTcprZAhQ848rx9eE3Dk6jnDa2IYIC yLJg== X-Gm-Message-State: AOAM530XFps0OdV4eKFuRG2Kk4i7hQskopqJhkcEPwQkFooAU7E8NrcY JEGzj506rDKT2kaixVSrAdHKk86T8IY= X-Google-Smtp-Source: ABdhPJxLd4WV62+SRDBBP8Y0qocyzD29tqzUN/8fZ+uR69fmTQDE9d80/LWCNWCRFMoD/5zpJbNAxw== X-Received: by 2002:ac2:4d86:: with SMTP id g6mr18693509lfe.682.1642446854838; Mon, 17 Jan 2022 11:14:14 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id y15sm550571lfj.144.2022.01.17.11.14.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jan 2022 11:14:14 -0800 (PST) From: "Artyom V. Poptsov" To: Maxime Devos Subject: Re: [bug#52472] [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> Date: Mon, 17 Jan 2022 22:14:08 +0300 In-Reply-To: (Maxime Devos's message of "Mon, 17 Jan 2022 20:02:13 +0100") Message-ID: <87iluijhtr.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, > I suggest removing '#:tests? Okay, done. > Guix doesn't do staged installation Unfortunately it seems to me that libtree fails when I remove '(string-append "DESTDIR=" #$output)' from the make flags. The reason is this code from libtree Makefile: --8<---------------cut here---------------start------------->8--- install: all mkdir -p $(DESTDIR)$(BINDIR) cp -p libtree $(DESTDIR)$(BINDIR) mkdir -p $(DESTDIR)$(SHAREDIR)/man/man1 cp -p doc/libtree.1 $(DESTDIR)$(SHAREDIR)/man/man1 --8<---------------cut here---------------end--------------->8--- As you can see it's using 'DESTDIR' as prefix for the installation. - Artyom --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libtree.patch Content-Transfer-Encoding: quoted-printable From=201808690c43044fdd9340c75c6d726a5f71dd8c64 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Mon, 13 Dec 2021 23:34:29 +0300 Subject: [PATCH] gnu: Add libtree * gnu/packages/linux.scm (libtree): New variable. =2D-- gnu/packages/linux.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 5f471beaaf..a68f35ebf0 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -60,6 +60,8 @@ ;;; Copyright =C2=A9 2021 Olivier Dion ;;; Copyright =C2=A9 2021 Solene Rapenne ;;; Copyright =C2=A9 2021 Petr Hodina +;;; Copyright =C2=A9 2022 Artyom V. Poptsov + ;;; ;;; This file is part of GNU Guix. ;;; @@ -8761,3 +8763,37 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "072624anz9g01mp5vfkahfmzy0nb7axg5rwk3n1yrdm4hr3d4zrb")))) + (arguments + (list #:make-flags + ;; NOTE: Official documentation recommends to build libtree with + ;; "-static" flag. + #~(list (string-append "CC=3D" #$(cc-for-target)) + "PREFIX=3D/" + (string-append "DESTDIR=3D" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" make-flags)))))) + (build-system gnu-build-system) + (home-page "https://github.com/haampie/libtree") + (synopsis "Show output of @command{ldd} as a tree") + (description + "This tool turns @command{ldd} into a tree and explains how shared +libraries are found or why they cannot be located.") + (license license:expat))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmHlwAAACgkQ6cWi2QiY oC+klwf9F13PU0oxL+lKboWEcfpLeEtFyYMQAO0K4cKxeEm5bxAoYp4uB3eiaLMH cL0XTcW4U19yAPZLENbZA9UDJu43yGJuts5RqPFoJ0iy7IsrWb4bFJLA2Sz9Lwjd CGtVXG9c3BORD6vJACWyoi6Xq6N9iXhfz6cynYKY9bss+UhatSllPnUI9Wf+2J7m lW++HIXTzQYb72N7nlu7hztfVI00WpL+vnxeagcssymhXkeOwyGIbINdRkM4cZin 79OrCX8rs1HVdTsq4ApV9qhDK93u1IJFKhbHPF52yUv9J7vmyIlhJWG50zCuIWrB BSGqMGwMNsZHHdD+k1gvNl6Z+v+qHw== =81KS -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 17 14:23:03 2022 Received: (at 52472) by debbugs.gnu.org; 17 Jan 2022 19:23:03 +0000 Received: from localhost ([127.0.0.1]:48037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Xap-0005eb-E5 for submit@debbugs.gnu.org; Mon, 17 Jan 2022 14:23:03 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:59906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Xan-0005dn-KI for 52472@debbugs.gnu.org; Mon, 17 Jan 2022 14:23:02 -0500 Received: from [192.168.202.254] ([178.119.10.153]) by andre.telenet-ops.be with bizsmtp id jvNz260093J72EA01vNzDk; Mon, 17 Jan 2022 20:23:00 +0100 Message-ID: Subject: Re: [bug#52472] [PATCH] gnu: Add libtree From: Maxime Devos To: "Artyom V. Poptsov" Date: Mon, 17 Jan 2022 20:22:59 +0100 In-Reply-To: <87iluijhtr.fsf@gmail.com> References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> <87iluijhtr.fsf@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-AVBdv2IGNdjMtrsjIi8Q" 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=1642447380; bh=bqdG1hE2oaB+0uKEXglo31ODCoLFS1w5Y7XD5NV202U=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=S7NL1dtAZkGWwGt5I7wOWc3KPQR2s3QYviA6SkOpmvlM6QN9cx6JGNc/SBrP9rGqr mPktr2CD6TXpSj/ULz8Kuni/MONbCMQm5cLrQ9iN1pyciEyf0nvfnVOnHIE/J+zKJR u2l6bUCL6Nbo+G6Jq7/aq9Cqo5WRDx2NzqYl0fAEIxQrGsiuuCCL76BJKyioBLfNJi slTTA900IdlHsXHZ9Y5qRlmxeh84mbuB0LpUu5e+za73QZ3oQkGfxOr2uH/WaW8LT1 aUmkySynqCZz3zeF0l9fZGipVSGLJF3KmHNkAOpYJDyFQZvNV0gSc05SLnSmQa02/E ORt4r57WDq1Pg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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.7 (-) --=-AVBdv2IGNdjMtrsjIi8Q Content-Type: multipart/mixed; boundary="=-LOQTlq7ZD35xIJ3t+goF" --=-LOQTlq7ZD35xIJ3t+goF Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Artyom V. Poptsov schreef op ma 17-01-2022 om 22:14 [+0300]: > [...] > > Guix doesn't do staged installation >=20 > Unfortunately it seems to me that libtree fails when I remove > '(string-append "DESTDIR=3D" #$output)' from the make flags. >=20 > The reason is this code from libtree Makefile: >=20 > --8<---------------cut here---------------start------------->8--- > install: all > mkdir -p $(DESTDIR)$(BINDIR) > cp -p libtree $(DESTDIR)$(BINDIR) > mkdir -p $(DESTDIR)$(SHAREDIR)/man/man1 > cp -p doc/libtree.1 $(DESTDIR)$(SHAREDIR)/man/man1 > --8<---------------cut here---------------end--------------->8--- >=20 > As you can see it's using 'DESTDIR' as prefix for the installation. SHAREDIR is set to $(PREFIX)/share in the Makefile. It seems to work for me, the attached package definition builds and the store item has a man page and a binary. Greetings, Maxime. --=-LOQTlq7ZD35xIJ3t+goF Content-Disposition: inline; filename="libtree.scm" Content-Type: text/x-scheme; name="libtree.scm"; charset="us-ascii" Content-Transfer-Encoding: quoted-printable (use-modules (guix packages) (guix) (guix git-download) (guix build-system = gnu) ((guix licenses) #:prefix license:)) (define-public libtree (package (name "libtree") (version "3.0.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/haampie/libtree") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "072624anz9g01mp5vfkahfmzy0nb7axg5rwk3n1yrdm4hr3d4zrb")))) (arguments (list #:make-flags ;; NOTE: Official documentation recommends to build libtree with ;; "-static" flag. #~(list (string-append "CC=3D" #$(cc-for-target)) (string-append "PREFIX=3D" #$output)) #:phases #~(modify-phases %standard-phases (delete 'configure) (replace 'build (lambda* (#:key make-flags #:allow-other-keys) (apply invoke "make" make-flags)))))) (build-system gnu-build-system) (home-page "https://github.com/haampie/libtree") (synopsis "Show output of @command{ldd} as a tree") (description "This tool turns @command{ldd} into a tree and explains how shared libraries are found or why they cannot be located.") (license license:expat))) libtree --=-LOQTlq7ZD35xIJ3t+goF-- --=-AVBdv2IGNdjMtrsjIi8Q 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+4iGRcl7gUCYeXCExccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hxRAP4jExD4FAtUPpQTAeAsnFg8PHWF RWkWycZKd2JfEiXbbgEA0I59TSt/rUKqxgargwwVsdqiB5a8luqVeKc/d+o1kgs= =YBWU -----END PGP SIGNATURE----- --=-AVBdv2IGNdjMtrsjIi8Q-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 28 13:30:36 2022 Received: (at 52472) by debbugs.gnu.org; 28 Jan 2022 18:30:36 +0000 Received: from localhost ([127.0.0.1]:60485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDW16-0002aI-Lk for submit@debbugs.gnu.org; Fri, 28 Jan 2022 13:30:36 -0500 Received: from mail-lf1-f51.google.com ([209.85.167.51]:47060) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDW14-0002a2-OA for 52472@debbugs.gnu.org; Fri, 28 Jan 2022 13:30:35 -0500 Received: by mail-lf1-f51.google.com with SMTP id z19so13394807lfq.13 for <52472@debbugs.gnu.org>; Fri, 28 Jan 2022 10:30:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=WwfVgARREZgS5nF2GY91Sp6PXmFHkdpLu2vFiBvZLu8=; b=Z7Yzvc5oqlsqGY6eM1EWlKgaH5BY+WiMH9NuG2t3du+y6eD/vHVkLZN5N3Bh/KNSBJ pj5YpjoEnr70NAO5ooY+l1hTOvYKarjxKjFarwcV7GM2Ior//AY35BoZfrI43vkXHdHM 8gdCvR7fYPtcoSP5b8RP9xxgY4wCWmqRCDLfZx8Dcxhin1Jd83eraDgn1kib9Dy4ibRU T8VrPzB01gMpmTueZdu7N7DMC2Ig8tpxYMbLgSp6cl04rNQWye3Jj1cVEn6FgFI5nr7q LKadVE9TmCWs6s9itXYlVC/sLgC/DidRQ9kR051Pbewlu5pD4PnnqcGN+HQaShQfgk4t MA7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=WwfVgARREZgS5nF2GY91Sp6PXmFHkdpLu2vFiBvZLu8=; b=y8qIxsFvnUxJotpTvPdsgddL44Ly3mUpQRpAtFQFSiNxE31q11cJgHxupijmmETKhT VHMoO1s8SmVr1ylVhr/feWfG+/mmYtgOdKcq6hIib1BXx29Mg3KhwH+pjaaIT0F9rjie MLv8RmnECFsG/qTssJmA2FTW0IOfbf9nQ7p5kw/FE4aa/eihYfI2Va1HeKGzdx8no9i/ 04u8SZUYvdzlR5mn2mzF/5zVtKPl5x8p9lnySUxPzYjNwFLARtfY4sMT0y7aRN0lYt9u iB4azxyouqpQd5xle+S+YdoFdokKiijdv9LDp/H+0Z51KI5M720iKaQZFyz9dy2Oexqr pOOQ== X-Gm-Message-State: AOAM531BdqkXR0x6TxWoL2igf6l90NLs655jY7MnNNVasv5rkV8oUi9D GWXp+tM1mq7+jDnrCcXhaoJLTVI/6v0= X-Google-Smtp-Source: ABdhPJwcSHbbZX9+DlOfSmLbstH6o887j4X90IiRhuEtleCd8m0LChJ4TYZnC+5YKSKOmJWqZgA/lg== X-Received: by 2002:a05:6512:200a:: with SMTP id a10mr7108793lfb.494.1643394628128; Fri, 28 Jan 2022 10:30:28 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id cf4sm1551586lfb.280.2022.01.28.10.30.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jan 2022 10:30:27 -0800 (PST) From: "Artyom V. Poptsov" To: Maxime Devos Subject: Re: [bug#52472] [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> <87iluijhtr.fsf@gmail.com> Date: Fri, 28 Jan 2022 21:30:21 +0300 In-Reply-To: (Maxime Devos's message of "Mon, 17 Jan 2022 20:22:59 +0100") Message-ID: <87zgnfg1c2.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello, sorry for bugging you but are there any problems left with the package that I should solve? As far as I understand now the package is fine and can be merged to Guix. Am I mistaken? Thanks! =2D Artyom =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmH0Nj0ACgkQ6cWi2QiY oC+YOgf/aolyjqXmM75S2tcTDujw00ZZ8YZzSVeATj9NCa1nqVWU4PQBjHvEjYKA 1pSO0M+lvIl7uxtm5FQMNDwdkYyFOOQdYcsTkiN8RG0zfPMJe0nBj+yhQJcudHGx yOupqAm1q+JAYw2b3CHlbYwWoDILj2ZE9JEmvBfiNRv94CfMtumlw2iBfy0dBvcx HpnrY0whnRdKO8nwbq/HUEfuvCCxVWfpzBPdNAf3Nd0akxvOeGJY+RH3x3WQ7BRm SM0vTEn5FfbKtwI+3R+2PG/o9vaX33KPhxIQQtVNEmiUOC76tnBam2H38GnY/Jdh w6LgUi0u/7P/H3S+uwdidm66vkonMA== =p+Kl -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 28 13:54:28 2022 Received: (at 52472) by debbugs.gnu.org; 28 Jan 2022 18:54:28 +0000 Received: from localhost ([127.0.0.1]:60507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDWOC-0003GV-58 for submit@debbugs.gnu.org; Fri, 28 Jan 2022 13:54:28 -0500 Received: from michel.telenet-ops.be ([195.130.137.88]:43364) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nDWO9-0003GI-V2 for 52472@debbugs.gnu.org; Fri, 28 Jan 2022 13:54:27 -0500 Received: from [172.20.10.9] ([5.23.202.153]) by michel.telenet-ops.be with bizsmtp id oJuP260053K5Act06JuPug; Fri, 28 Jan 2022 19:54:24 +0100 Message-ID: <3c3cc605d110d977d10b0e7ed7d6f17d3af89f29.camel@telenet.be> Subject: Re: [bug#52472] [PATCH] gnu: Add libtree From: Maxime Devos To: "Artyom V. Poptsov" Date: Fri, 28 Jan 2022 19:54:16 +0100 In-Reply-To: <87zgnfg1c2.fsf@gmail.com> References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> <87iluijhtr.fsf@gmail.com> <87zgnfg1c2.fsf@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-JxBqF/0V6niBdvbB4187" 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=1643396064; bh=3hcZCDQvFh4GTQWnrop9TNwXIFvNiWNmNcNSYBLidNA=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=EibfsRkR1VAu7wEaofhAdqOl/MPRW2cxrACvpqwBv6pbOY4ENbwWVGJR3Emu900fc NqKiVWeyh1eqMOZ/v5sHsMOD9uCDw4m4Ey2z5783jTUTW/ouUts8OMq/zE159p8t4I 3VD/ahIW8UATdMTnPysYQZwf75H3/XEXz8DtiS9zq0+lwXfOQEf3zKD71C6MBFfhUU 5yD0ECsvwpxUlmzD4D1hZ18DcaSjKVezdbWVTHmbc5IrRaUBUkKeuz6rGlxYs8aOoD hmMPRfPzzSexxKgnrL52agASSWXqBC7qttmWtm/U97tx/Y0BBeMXj8vv6EkmvKiLQM tFZj4aGMoF4Dw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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.7 (-) --=-JxBqF/0V6niBdvbB4187 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Artyom V. Poptsov schreef op vr 28-01-2022 om 21:30 [+0300]: > Hello, >=20 > sorry for bugging you but are there any problems left with the package > that I should solve? As far as I understand now the package is fine and > can be merged to Guix. Am I mistaken? As I wrote in , setting DESTDIR is unnecessary. =C2=A0I haven't seen a revised patch not setting DESTDIR. Aside from that, the patch looks reasonable. However, I didn't look at all the source code (for hash mismatches etc.). Greetings, Maxime. --=-JxBqF/0V6niBdvbB4187 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+4iGRcl7gUCYfQ72BccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7jt9AP9FRp6cPcnwxWMHK8xZ4ALGSHRp g8ym2vTXEEdL/RLRVQD/b81UuN5WF1WnlLKdwQokwR3RQHt89DE0kaNrGVqizAU= =K4mF -----END PGP SIGNATURE----- --=-JxBqF/0V6niBdvbB4187-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 13:25:19 2022 Received: (at 52472) by debbugs.gnu.org; 4 Feb 2022 18:25:20 +0000 Received: from localhost ([127.0.0.1]:32792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG3Gm-0007Ex-4I for submit@debbugs.gnu.org; Fri, 04 Feb 2022 13:25:19 -0500 Received: from mail-lf1-f50.google.com ([209.85.167.50]:45812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG3Gk-0007Ea-EU for 52472@debbugs.gnu.org; Fri, 04 Feb 2022 13:25:15 -0500 Received: by mail-lf1-f50.google.com with SMTP id o12so14201210lfg.12 for <52472@debbugs.gnu.org>; Fri, 04 Feb 2022 10:25:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=MhvsZS3VOxlgVPRlCd2PcLULoC6PhrxMbV+lHUy8Ncc=; b=Df+5T07Cj39m020UegTiE9Me2LOAnkye7wkH80x7eyrQ1EEms/7mm382QEXL4KqaR0 DyHHgT8CfpXbF/1JTPS+J81PQh7FufznOXnTc2vxRnKWjEDB95PwiPhneOi7yY/OTK1+ +mQsIRRPgCndwwL881pwAdamDAOt6skvI1FNEMkliwalYqThA/qtikLQT9zRXCAZ0UaI 5oEUmxysCiHKQ2giqK0ZyQY5d00PD0NqzOc8/2OPi5gw6FzLye189p6U326Wgg4+IAKE H1RCqSwIXqyc+0AmeQdQjWce6asTQyEnQ7M1texKYEEaE0aVlRCr1HSKkV34hD96Zn/x X/GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=MhvsZS3VOxlgVPRlCd2PcLULoC6PhrxMbV+lHUy8Ncc=; b=119O2g3iEh7/zh1SXC2t9h078DNfuZ8liFLoQgjWEeajZoIjl9ozaAFkRwHID6JKrF aa1oV0+JsfNkmRr/68EZd6dwhQujB5nX7SSUYd7jLFbHnxevM3HGbq17rZw0M5ns9YVd zokoDYTy8UumdZeWC9AAoa6aGYpjXsjhj/jjlcUxrEwjtKA+O8YC0PPbGqvFnxabWR8U kwNkO/laf8Vl1SLgcHnOCHg0ci6lMjnVQVaqQu/q6YfWRemytfA7BARoGxzkW9loB1Dz iPO12wvpg+WS5LKCb4ED9pmTfD4KCIbe0sMsMjy8rL6XivE4RfnXuDjmedov/WZYMvek KMpg== X-Gm-Message-State: AOAM530/EFfeGIObVSQ15xd9nnYdfOfceo4bjMVjpIoEKz9ceHFutKAI 9KjhH1Q3fmSYoy6MjX1FR1hFrCDh9x4= X-Google-Smtp-Source: ABdhPJw4FeJfG5nlt9Yt6Bue4AZJWDe1d71Du8eIcp3bpUooO9HX/Qn9ah4AkAHV8Oibm8kjssCOPw== X-Received: by 2002:a05:6512:368f:: with SMTP id d15mr118828lfs.447.1643999107872; Fri, 04 Feb 2022 10:25:07 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id k1sm409986lfu.136.2022.02.04.10.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Feb 2022 10:25:06 -0800 (PST) From: "Artyom V. Poptsov" To: Maxime Devos Subject: Re: [bug#52472] [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> <87iluijhtr.fsf@gmail.com> <87zgnfg1c2.fsf@gmail.com> <3c3cc605d110d977d10b0e7ed7d6f17d3af89f29.camel@telenet.be> Date: Fri, 04 Feb 2022 21:25:02 +0300 In-Reply-To: <3c3cc605d110d977d10b0e7ed7d6f17d3af89f29.camel@telenet.be> (Maxime Devos's message of "Fri, 28 Jan 2022 19:54:16 +0100") Message-ID: <87v8xufq0x.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello Maxime! I think I figured out how to properly remove DESTDIR setting in my libtree patch. Please find the updated patch attached. - Artyom --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libtree.patch Content-Transfer-Encoding: quoted-printable From=20d481bf6df007e75df0fec118eadc448ac3f4af5a Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Mon, 13 Dec 2021 23:34:29 +0300 Subject: [PATCH] gnu: Add libtree * gnu/packages/linux.scm (libtree): New variable. =2D-- gnu/packages/linux.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 7df64bbdae..eea2fea59b 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -60,6 +60,8 @@ ;;; Copyright =C2=A9 2021 Olivier Dion ;;; Copyright =C2=A9 2021 Solene Rapenne ;;; Copyright =C2=A9 2021 Petr Hodina +;;; Copyright =C2=A9 2022 Artyom V. Poptsov + ;;; ;;; This file is part of GNU Guix. ;;; @@ -8830,3 +8832,36 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "072624anz9g01mp5vfkahfmzy0nb7axg5rwk3n1yrdm4hr3d4zrb")))) + (arguments + (list #:make-flags + ;; NOTE: Official documentation recommends to build libtree with + ;; "-static" flag. + #~(list (string-append "CC=3D" #$(cc-for-target)) + (string-append "PREFIX=3D" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" make-flags)))))) + (build-system gnu-build-system) + (home-page "https://github.com/haampie/libtree") + (synopsis "Show output of @command{ldd} as a tree") + (description + "This tool turns @command{ldd} into a tree and explains how shared +libraries are found or why they cannot be located.") + (license license:expat))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmH9b34ACgkQ6cWi2QiY oC9wNAf+O30l5+JNk/YkdDme7EwZgld6mvCZIX/XLrW9I5kzjx9RJGPdfUr9TJTH WjIMoHr/s0eYUiOWnC9pblyKuFOxYMHE5akyXWu28cXsXuAC0eBWfU83NNmeGOEC GE0z103sSC23toPIzvNfkLhAneYrp0PA7c0YDvtkYHM+joipGqQYk1w0d+y4tAf9 4SfkVh3755qBG6DCYlDf/Ge0NGaOkwRnwZofwYApfIuq5zubgknyzTpDGMjgfj85 aDUgHy8MK6hIGDwfM1JAVKnClhvEZsOB28x7swG6G3WJDituJUU5ogp6KmbbQBJh hFkiEmxgnvVPu/QICNt+xXshRgrBWQ== =sQ+C -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 04 14:19:16 2022 Received: (at 52472) by debbugs.gnu.org; 4 Feb 2022 19:19:16 +0000 Received: from localhost ([127.0.0.1]:32833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG471-00008U-U1 for submit@debbugs.gnu.org; Fri, 04 Feb 2022 14:19:16 -0500 Received: from laurent.telenet-ops.be ([195.130.137.89]:34162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG46z-00008K-Qd for 52472@debbugs.gnu.org; Fri, 04 Feb 2022 14:19:14 -0500 Received: from [192.168.43.254] ([5.23.235.206]) by laurent.telenet-ops.be with bizsmtp id r7KA2600D4TrpFp017KB3a; Fri, 04 Feb 2022 20:19:12 +0100 Message-ID: <1d4a8ba63e8a9a6c76fc8c4b3999e6695644da48.camel@telenet.be> Subject: Re: [bug#52472] [PATCH] gnu: Add libtree From: Maxime Devos To: "Artyom V. Poptsov" Date: Fri, 04 Feb 2022 20:19:06 +0100 In-Reply-To: <87v8xufq0x.fsf@gmail.com> References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> <87iluijhtr.fsf@gmail.com> <87zgnfg1c2.fsf@gmail.com> <3c3cc605d110d977d10b0e7ed7d6f17d3af89f29.camel@telenet.be> <87v8xufq0x.fsf@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-cZErPTa8nqfGkjXmALzR" 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=1644002352; bh=lMnmEbVft92schO1FFDRIRPgOyXSRS15jkT/Yk42ZRY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=TcpTK1RO+nnIo6icE6Bhxf0/MP2K/V5j2M3kSo+Nu/dvKHSbVOniDAWTjoAG7cW8S 8vkh7OsIbo60N4eN6hyp1qC8Kokg2YQSuXYWRmwIUuYbKycekEX7FT2vvbaVhuZ0tL 6acxwN2weyMtKPnZF8FRYx472SttHV/uBiIzDjGt5tTk7Jr0S1BewH3iVV8YM8YyuN RF9Ot48vAnWk4IvAqszz4MucW54B4XAMN6kEMIr4nUIBuflP64rXgQyTCGKLQu8GQo 5fBg1FYKexHTr5+bMNWt1MgSC8d0cA8ENmLgEC6J77Q6TPINNtt54MSoUVWE+t+Bkn R+0mzXGYtQ+Qg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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.7 (-) --=-cZErPTa8nqfGkjXmALzR Content-Type: multipart/mixed; boundary="=-dUJzcN6lUzr8Me6cfid5" --=-dUJzcN6lUzr8Me6cfid5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Artyom V. Poptsov schreef op vr 04-02-2022 om 21:25 [+0300]: > Hello Maxime! >=20 > I think I figured out how to properly remove DESTDIR setting in my > libtree patch. > > Please find the updated patch attached. Unless libtree's Makefile doesn't support parallel compilation, replacing the build phase has now become unnecessary, right? The attached simplified package definition builds succesfully for me. The patch seems to be ready now, I believe? Greetings, Maxime (not a committer) --=-dUJzcN6lUzr8Me6cfid5 Content-Disposition: attachment; filename="libtree.scm" Content-Type: text/x-scheme; name="libtree.scm"; charset="us-ascii" Content-Transfer-Encoding: quoted-printable (use-modules (guix packages) (guix build-system gnu) (guix utils) (guix git-download) ((guix licenses) #:prefix license:)(guix gexp)) (define-public libtree (package (name "libtree") (version "3.0.2") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/haampie/libtree") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "072624anz9g01mp5vfkahfmzy0nb7axg5rwk3n1yrdm4hr3d4zrb")))) (arguments (list #:make-flags ;; NOTE: Official documentation recommends to build libtree with ;; "-static" flag. #~(list (string-append "CC=3D" #$(cc-for-target)) (string-append "PREFIX=3D" #$output)) #:phases #~(modify-phases %standard-phases (delete 'configure)))) (build-system gnu-build-system) (home-page "https://github.com/haampie/libtree") (synopsis "Show output of @command{ldd} as a tree") (description "This tool turns @command{ldd} into a tree and explains how shared libraries are found or why they cannot be located.") (license license:expat))) libtree --=-dUJzcN6lUzr8Me6cfid5-- --=-cZErPTa8nqfGkjXmALzR 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+4iGRcl7gUCYf18KhccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7uUtAPwOE2qQJDZMran4ONyOfcVjFEeg y2SYKdbn+EsKeAvSOAD/YE2bARPrfue/swdXkh0SABfCL/BxtKqtVilL9gu6OgA= =frt+ -----END PGP SIGNATURE----- --=-cZErPTa8nqfGkjXmALzR-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 05 00:50:44 2022 Received: (at 52472) by debbugs.gnu.org; 5 Feb 2022 05:50:44 +0000 Received: from localhost ([127.0.0.1]:33436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGDy7-00025F-MW for submit@debbugs.gnu.org; Sat, 05 Feb 2022 00:50:43 -0500 Received: from mail-lj1-f180.google.com ([209.85.208.180]:36496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGDy5-000251-E3 for 52472@debbugs.gnu.org; Sat, 05 Feb 2022 00:50:41 -0500 Received: by mail-lj1-f180.google.com with SMTP id j14so11501148lja.3 for <52472@debbugs.gnu.org>; Fri, 04 Feb 2022 21:50:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=A0AnuW7dqkdOx6sUNGFZQ6QrQ0eMJzadgSofgLpTDSY=; b=XkjSPfN5YXRpBrthySxJ1OEaigMVHZMTYz/z7zy68mnRgJp3u4Kg5hOE9+g5sRB+g6 Gre2+sfSxFhCLwQlRFroGo23504S7eJsWHfDtYJ1HNKwJ2Gc1V4ohvHPAs93dlvpZ+sJ 3lZ1uwbKDkGHJnh8QttUv5zM7AijHOylxMg7//tkyST3v1xAclcc4iUyAwW2+HW4iekH bw0bQ3g9gZ3Fv7IUk38v8zB/z1+F/zfJp/2qbxw8oRgZYrnzJcKAa5s26Hl1Hi09eMft u/KcqSK/iCIW/dDJ0tUAOgsLpPsymhgU85BbSLp/tIkboPLmR5PEK5VkES9An0GbvoR3 1MVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=A0AnuW7dqkdOx6sUNGFZQ6QrQ0eMJzadgSofgLpTDSY=; b=lM7QcuViBsAjwPtm1lxCKfT26sv3fD6npuYlHRLCZvig2gpis6Bo3akzYzGEZT8TcS /9dj1kRP2mFqbmfR9BjIkIqjpZVaXGCUcsVEuJK2npjAua1mX9GQVupG48OxLEE4c19G WLC/kYuZ4KLNMBiV5khYgPnF6xEvl8aR90ET46lU88jgu+9bQU3YIQ6PI1nPIctJdUo0 Y/cCLbKWZh1V9oWF2Yl1TxmjVnNoqcXOg5IMDRVOQnfso7yLChDw2poimAa1OMWM830B 3Lyi1yQGU4iuwGDjyTbzCIjlFchLwaLQzgh1X54KO4H4dD13hu6MTvtQMNtfdaXe119q 2QHQ== X-Gm-Message-State: AOAM5330P6YX29MnKgFgikffMka+wWo2kNDBCYNsPAsq2sf+rjkNDQzs PLNI/iTVzhSVJyW3AASC3FObx4AlqzY= X-Google-Smtp-Source: ABdhPJzQjAJfcI2wl+CfpEXq4Dh6GzB5rmM62s27ZbuOj84NLoYhvNlYIa4W9XBm4nCmHaz2sDSzWA== X-Received: by 2002:a2e:9148:: with SMTP id q8mr1593029ljg.276.1644040234671; Fri, 04 Feb 2022 21:50:34 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id z3sm148508lfq.274.2022.02.04.21.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Feb 2022 21:50:33 -0800 (PST) From: "Artyom V. Poptsov" To: Maxime Devos Subject: Re: [bug#52472] [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> <87iluijhtr.fsf@gmail.com> <87zgnfg1c2.fsf@gmail.com> <3c3cc605d110d977d10b0e7ed7d6f17d3af89f29.camel@telenet.be> <87v8xufq0x.fsf@gmail.com> <1d4a8ba63e8a9a6c76fc8c4b3999e6695644da48.camel@telenet.be> Date: Sat, 05 Feb 2022 08:50:26 +0300 In-Reply-To: <1d4a8ba63e8a9a6c76fc8c4b3999e6695644da48.camel@telenet.be> (Maxime Devos's message of "Fri, 04 Feb 2022 20:19:06 +0100") Message-ID: <87r18hg8v1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hello Maxime, sorry but libtree refuses to build when I use your patch instead of mine: =2D-8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build libtree --check --no-offload ;;; note: source file /home/avp/src/dist/guix/gnu/packages/linux.scm ;;; newer than compiled /home/avp/src/dist/guix/gnu/packages/linux.go The following derivation will be built: /gnu/store/2ndjq2b7z1wqwx6mv91ygkslaziz1sw6-libtree-3.0.2.drv guix build: error: some outputs of `/gnu/store/2ndjq2b7z1wqwx6mv91ygkslaziz= 1sw6-libtree-3.0.2.drv' are not valid, so checking is not possible =2D-8<---------------cut here---------------end--------------->8--- > The patch seems to be ready now, I believe? Are you asking me or the Guix community? If you're asking me, I think that since libtree builds and runs OK with my last patch it is ready for the merge. But I'd love to hear feedback from the community as well; if someone find another flaw in the patch I'll try to fix it. Thanks, =2D Artyom =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmH+ECMACgkQ6cWi2QiY oC8FBQf/SgWFgRdDISeCc3KLkpzA3Xj6s0PZtfYGmjtCWQ9vXcFe1S+nVMC+cNWb sIw4jaFe0NLHiNJ1Bdybjw7IdE8D9pyruw4Z/pxULHXg6ZCcH0TzeTKX9ZP4uaCi sLC8KWiOX1dqXwB3g3tnOt70gL6UTM39IJddzI48aGfoey/vHL/6+/toLPsVSCa3 yXuNqC7cBNYVUQhqLQkHq3+27xP3CbGFl51Nn+FTOy+PcOtpmShTH9q5IQ5+/Bco UTp4VOWYEtSVSMU2RmlBob3aXsi9BO53B+D+lnT0at6jBC0hR0o5ZtFtvmY2UbNr QuYvyJ2lKpw7fGSwnNY/53RC+EwTzQ== =LUbD -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 05 05:56:43 2022 Received: (at 52472) by debbugs.gnu.org; 5 Feb 2022 10:56:43 +0000 Received: from localhost ([127.0.0.1]:33832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGIkF-0004Ua-Ak for submit@debbugs.gnu.org; Sat, 05 Feb 2022 05:56:43 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:42728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGIkD-0004UQ-Dk for 52472@debbugs.gnu.org; Sat, 05 Feb 2022 05:56:42 -0500 Received: from [172.20.10.9] ([188.189.241.204]) by andre.telenet-ops.be with bizsmtp id rNwe2600S4RJVgC01Nwfoe; Sat, 05 Feb 2022 11:56:39 +0100 Message-ID: Subject: Re: [bug#52472] [PATCH] gnu: Add libtree From: Maxime Devos To: "Artyom V. Poptsov" Date: Sat, 05 Feb 2022 11:56:38 +0100 In-Reply-To: <87r18hg8v1.fsf@gmail.com> References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> <87iluijhtr.fsf@gmail.com> <87zgnfg1c2.fsf@gmail.com> <3c3cc605d110d977d10b0e7ed7d6f17d3af89f29.camel@telenet.be> <87v8xufq0x.fsf@gmail.com> <1d4a8ba63e8a9a6c76fc8c4b3999e6695644da48.camel@telenet.be> <87r18hg8v1.fsf@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-FVA8Vkja2wlMobCINoSL" 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=1644058599; bh=K9o+OxgqxDK7w4qBFez4gaGBbDsFZx2yJZr1fagDcFU=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=a+HTlF1XaNDlzKQL3kgMOSf8mdnopDaqEiINuF4bcfVC4DDEE8TJf9F9oW/27OyPi BZo0I5QtqwVobOh+BGYwhiAapUn0prxL1jJl3u2g4nfGq7doB82rSY12TUryTpSGd0 gFbFGwLMv2yre8PoFaDzv7bf7SyQ+ivYI3EH8b5PS06zX2j/CALCUNXs29LWKJaVsP GXYmg37LHFH9hD621bSayf2mgaAaZFYmKi9g88jB6nhttph6yHsl+a7N++rr+IERFc oZI0zUaW/EW5hlT8GxC/xuTsd5Enr1+xm+LkO6J3J91CkBkSrHt5l8S0assCJVWY6U PtAA9zpM12XYg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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.7 (-) --=-FVA8Vkja2wlMobCINoSL Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Artyom V. Poptsov schreef op za 05-02-2022 om 08:50 [+0300]: > sorry but libtree refuses to build when I use your patch instead of > mine: >=20 > --8<---------------cut here---------------start------------->8--- > $ ./pre-inst-env guix build libtree --check --no-offload > ;;; note: source file /home/avp/src/dist/guix/gnu/packages/linux.scm > ;;;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 newer than compiled > /home/avp/src/dist/guix/gnu/packages/linux.go > The following derivation will be built: > =C2=A0=C2=A0 /gnu/store/2ndjq2b7z1wqwx6mv91ygkslaziz1sw6-libtree-3.0.2.dr= v > guix build: error: some outputs of > `/gnu/store/2ndjq2b7z1wqwx6mv91ygkslaziz1sw6-libtree-3.0.2.drv' are > not valid, so checking is not possible > --8<---------------cut here---------------end--------------->8--- I've seen this before (for something non-libtree), IIUC you can only run '--check' after it has been built (or substituted) for the first time. Greetings, Maxime. --=-FVA8Vkja2wlMobCINoSL 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+4iGRcl7gUCYf5X5hccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7nFsAP4xcrsDKRBsnsFvxfgXeWRRRKWX KCexNBJBE3j6SVSIwQD/cxjLHREyYhg4O5UaWRabcr6l3A0+LTdgAq8IMvCPDgM= =+D0G -----END PGP SIGNATURE----- --=-FVA8Vkja2wlMobCINoSL-- From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 05 06:35:01 2022 Received: (at 52472) by debbugs.gnu.org; 5 Feb 2022 11:35:01 +0000 Received: from localhost ([127.0.0.1]:33915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGJLF-0005dZ-H8 for submit@debbugs.gnu.org; Sat, 05 Feb 2022 06:35:01 -0500 Received: from mail-lj1-f181.google.com ([209.85.208.181]:43787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGJLD-0005dM-Qv for 52472@debbugs.gnu.org; Sat, 05 Feb 2022 06:34:56 -0500 Received: by mail-lj1-f181.google.com with SMTP id t7so12224554ljc.10 for <52472@debbugs.gnu.org>; Sat, 05 Feb 2022 03:34:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1z3VTtvxQHfR7iQVvOQwhX/9iIU2ydZOnACKPWLiWLE=; b=VZYl2ufWmTn8hDS/gBye0ZziheTd3XouGAZxjOwXaonQyGKvlUkP1PiUmODUyqnE9l my80z2dNCm3h7kI+CKbENG+8MOsJkXu8KTRgdCi27Rb9UvgodPVqn0ZO72ZVstyMx6Oz FU+pxpSE7sxRk5AduWUBRJFoL5Pz77biBfD/yT2Wm11aQSgraMN3voR5DJRF2ADb2a/u t/Gl2S88RfKM/U8V/MqkEpM8o0A3GwbP56n6mpjYvAXhtIhkSFP/GBrS0vZa1gQwlJ/I hySOLHuDeJm+4+2aNS/FVftd13OXQpdSfFmynHof3z89qBPs6PVGkH+r1I+bs+ZyXBCZ eRUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=1z3VTtvxQHfR7iQVvOQwhX/9iIU2ydZOnACKPWLiWLE=; b=S0/uBZa6gfRZYkN4ceklTRoQ/pmP7MmUGyRd8gHY85BXysyeoTQrTWCkWTVn9dBqAK PynnE9IJ/+78bhKkqJWVnPGkshuVCNrmAFo+c++PRYgjidXTj2ZFahw5xRCL6R0Ai9RI n6BcI1gpNnxWIhkgjpZBECKAY/dfFbrno62vny8cVeMvLRCqjz1Nje759P0U24k3VYw3 vfwlnBpVUNMf4rRS3Nvi9xKfZutumONh3kea9vcl46/K/n9KSWbADV4v/gATySDbAFTT Sz7DE60diSjc93unw8x/fQP6SmIigTCVfrze0t/nNhqjP2z+s2d4/O05PCiXsNq42bZF EBgw== X-Gm-Message-State: AOAM532QE4nSm/uuhRAg/q7bMNWZYET15yEk5kRlf0ngZBNpaVwsGmZP tj+JVbv3P6pwH6HBxa92l/XtmAdHK3Y= X-Google-Smtp-Source: ABdhPJzaE6A3FGnijpJdu/F+P1NEw75k7Z/IPjgsXPRru2nTr9dqc9km/FoU6Ea5cdhOd9GW9AA3nw== X-Received: by 2002:a05:651c:986:: with SMTP id b6mr2311990ljq.245.1644060889377; Sat, 05 Feb 2022 03:34:49 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id l18sm670755ljc.11.2022.02.05.03.34.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Feb 2022 03:34:48 -0800 (PST) From: "Artyom V. Poptsov" To: Maxime Devos Subject: Re: [bug#52472] [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> <87iluijhtr.fsf@gmail.com> <87zgnfg1c2.fsf@gmail.com> <3c3cc605d110d977d10b0e7ed7d6f17d3af89f29.camel@telenet.be> <87v8xufq0x.fsf@gmail.com> <1d4a8ba63e8a9a6c76fc8c4b3999e6695644da48.camel@telenet.be> <87r18hg8v1.fsf@gmail.com> Date: Sat, 05 Feb 2022 14:34:44 +0300 In-Reply-To: (Maxime Devos's message of "Sat, 05 Feb 2022 11:56:38 +0100") Message-ID: <87mtj5fsx7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 52472 Cc: othacehe@gnu.org, Julien Lepiller , 52472@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 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello Maxime! > I've seen this before (for something non-libtree), IIUC you can only > run '--check' after it has been built (or substituted) for the first > time. Thanks for pointing that out, I overlooked this little detail somehow. When I removed '--check' from Guix options it built libtree without errors with your version of the patch. Please find the updated patch attached. - Artyom --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libtree.patch Content-Transfer-Encoding: quoted-printable From=2044971155b6b7d05e4d9b052b5ffc02022f3a97e9 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Mon, 13 Dec 2021 23:34:29 +0300 Subject: [PATCH] gnu: Add libtree * gnu/packages/linux.scm (libtree): New variable. =2D-- gnu/packages/linux.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 7df64bbdae..da3ee63e12 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -60,6 +60,8 @@ ;;; Copyright =C2=A9 2021 Olivier Dion ;;; Copyright =C2=A9 2021 Solene Rapenne ;;; Copyright =C2=A9 2021 Petr Hodina +;;; Copyright =C2=A9 2022 Artyom V. Poptsov + ;;; ;;; This file is part of GNU Guix. ;;; @@ -8830,3 +8832,33 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "072624anz9g01mp5vfkahfmzy0nb7axg5rwk3n1yrdm4hr3d4zrb")))) + (arguments + (list #:make-flags + ;; NOTE: Official documentation recommends to build libtree with + ;; "-static" flag. + #~(list (string-append "CC=3D" #$(cc-for-target)) + (string-append "PREFIX=3D" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure)))) + (build-system gnu-build-system) + (home-page "https://github.com/haampie/libtree") + (synopsis "Show output of @command{ldd} as a tree") + (description + "This tool turns @command{ldd} into a tree and explains how shared +libraries are found or why they cannot be located.") + (license license:expat))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmH+YNQACgkQ6cWi2QiY oC//Jgf/W7DKeCX9nULQWLC7j52ZfcW3CV7NOq56zA73IMSXpVFubl4JjQC/YLg+ D5vTjY0lkGEBf3i4skS6Ewu6s0z8UGNPGt55t+hayuQjHzatWO51wrs0SX5g4Sop S4gZDJwtz6811ks5SYigsTryoPBo9W2+sCcKmi5xLRqqLE3Nr8oOcsY1JHAx1hGf zMnemdQ81H6T53sYXLMJPGbT9DOFQA0MlYEA8Sd8zlyy7q34Qq1KvWoBxwR/vDtp 1XWayiH+Sh7X5Lqmv7DEgkiWGOexgCsKeSsbMma3j3aeGjKmF+f8SS84i4xgsb3M X8P0mkMgazUsjYdXkfXT438DAU38QA== =4C7+ -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Mar 09 17:07:02 2022 Received: (at 52472-done) by debbugs.gnu.org; 9 Mar 2022 22:07:02 +0000 Received: from localhost ([127.0.0.1]:60989 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nS4SU-0004hO-3T for submit@debbugs.gnu.org; Wed, 09 Mar 2022 17:07:02 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nS4ST-0004h4-6P for 52472-done@debbugs.gnu.org; Wed, 09 Mar 2022 17:07:01 -0500 Received: from [2001:470:142:3::e] (port=44802 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nS4SM-0006he-Vg; Wed, 09 Mar 2022 17:06:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ApiMRzNkadtYXd4hdd3dIrQ+7A6AzA69jhAmjW6NtJc=; b=aMf6igSiK/CDElFbsOup VNrlkFAVxrLIhL0EVAZ3NN+3ZW0mOpJgNe/w5PHKSv5/L8B0aVEPi9VCS1MICvS4h3BxabA5QTePN U3L40BB6J7eRGEpA60fca6KKEf3r639kLNlz8cfOMfu55QnuBRQAKz4CVJauYJ0+woNw1LTUSRLL8 qVo44IlyTu8/toLqK8DaxmTdKk+euC8os7yKeJYI3zoD2VGLBy+fVQSQP+i2mScpkltepOk3ORhVQ BVG3KVftYvpyJ2fl3GqLkpvUQ+5rMVKk5+Sl3zQ6aBoNR6AubCx/U31FjSeNyyWq6nVg8Iy1Fz/WY efGN9ndnRZ2vgg==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:62399 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nS4SM-0006B9-HO; Wed, 09 Mar 2022 17:06:54 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: "Artyom V. Poptsov" Subject: Re: bug#52472: [PATCH] gnu: Add libtree References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> <87iluijhtr.fsf@gmail.com> <87zgnfg1c2.fsf@gmail.com> <3c3cc605d110d977d10b0e7ed7d6f17d3af89f29.camel@telenet.be> <87v8xufq0x.fsf@gmail.com> <1d4a8ba63e8a9a6c76fc8c4b3999e6695644da48.camel@telenet.be> <87r18hg8v1.fsf@gmail.com> <87mtj5fsx7.fsf@gmail.com> Date: Wed, 09 Mar 2022 23:06:51 +0100 In-Reply-To: <87mtj5fsx7.fsf@gmail.com> (Artyom V. Poptsov's message of "Sat, 05 Feb 2022 14:34:44 +0300") Message-ID: <87a6dy3hms.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52472-done Cc: othacehe@gnu.org, Julien Lepiller , Maxime Devos , 52472-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: -3.3 (---) Hi Artyom and all, "Artyom V. Poptsov" skribis: > * gnu/packages/linux.scm (libtree): New variable. Finally applied. Thanks you and thanks everyone for reviewing! Ludo=E2=80=99. From unknown Sat Sep 06 12:14:31 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 07 Apr 2022 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator