GNU bug report logs - #52472
[PATCH] gnu: Add libtree

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: poptsov.artyom@HIDDEN (Artyom V. Poptsov); Keywords: patch; dated Mon, 13 Dec 2021 20:43:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 52472 <at> debbugs.gnu.org:


Received: (at 52472) by debbugs.gnu.org; 17 Jan 2022 19:23:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 17 14:23:03 2022
Received: from localhost ([127.0.0.1]:48037 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n9Xap-0005eb-E5
	for submit <at> 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 <maximedevos@HIDDEN>) id 1n9Xan-0005dn-KI
 for 52472 <at> 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: <b9ed068a0dbfb3c9798e2846473bfc27dda0b710.camel@HIDDEN>
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
From: Maxime Devos <maximedevos@HIDDEN>
To: "Artyom V. Poptsov" <poptsov.artyom@HIDDEN>
Date: Mon, 17 Jan 2022 20:22:59 +0100
In-Reply-To: <87iluijhtr.fsf@HIDDEN>
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
 <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
 <87zgo0jori.fsf@HIDDEN>
 <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@HIDDEN>
 <87v8ynk0zp.fsf@HIDDEN>
 <f9ba4042840bed63c059b39057f18dcae3155899.camel@HIDDEN>
 <87r19bjzi1.fsf@HIDDEN> <87mtjujkt9.fsf@HIDDEN>
 <b4910fd9166b93d64831b68536e7884a8d99673e.camel@HIDDEN>
 <87iluijhtr.fsf@HIDDEN>
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@HIDDEN, Julien Lepiller <julien@HIDDEN>,
 52472 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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--





Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at 52472 <at> debbugs.gnu.org:


Received: (at 52472) by debbugs.gnu.org; 17 Jan 2022 19:14:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 17 14:14:29 2022
Received: from localhost ([127.0.0.1]:48018 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n9XST-0005PT-Do
	for submit <at> 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 <poptsov.artyom@HIDDEN>) id 1n9XSP-0005PD-3s
 for 52472 <at> 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 <at> 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" <poptsov.artyom@HIDDEN>
To: Maxime Devos <maximedevos@HIDDEN>
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
 <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
 <87zgo0jori.fsf@HIDDEN>
 <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@HIDDEN>
 <87v8ynk0zp.fsf@HIDDEN>
 <f9ba4042840bed63c059b39057f18dcae3155899.camel@HIDDEN>
 <87r19bjzi1.fsf@HIDDEN> <87mtjujkt9.fsf@HIDDEN>
 <b4910fd9166b93d64831b68536e7884a8d99673e.camel@HIDDEN>
Date: Mon, 17 Jan 2022 22:14:08 +0300
In-Reply-To: <b4910fd9166b93d64831b68536e7884a8d99673e.camel@HIDDEN>
 (Maxime Devos's message of "Mon, 17 Jan 2022 20:02:13 +0100")
Message-ID: <87iluijhtr.fsf@HIDDEN>
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@HIDDEN, Julien Lepiller <julien@HIDDEN>,
 52472 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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" <poptsov.artyom@HIDDEN>
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 <olivier.dion@HIDDEN>
 ;;; Copyright =C2=A9 2021 Solene Rapenne <solene@HIDDEN>
 ;;; Copyright =C2=A9 2021 Petr Hodina <phodina@HIDDEN>
+;;; Copyright =C2=A9 2022 Artyom V. Poptsov <poptsov.artyom@HIDDEN>
+
 ;;;
 ;;; 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 <poptsov.artyom@HIDDEN>
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-----
--==-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at 52472 <at> debbugs.gnu.org:


Received: (at 52472) by debbugs.gnu.org; 17 Jan 2022 19:02:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 17 14:02:28 2022
Received: from localhost ([127.0.0.1]:47990 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n9XGt-00055L-Ud
	for submit <at> 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 <maximedevos@HIDDEN>) id 1n9XGr-00055B-5i
 for 52472 <at> 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: <b4910fd9166b93d64831b68536e7884a8d99673e.camel@HIDDEN>
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
From: Maxime Devos <maximedevos@HIDDEN>
To: "Artyom V. Poptsov" <poptsov.artyom@HIDDEN>
Date: Mon, 17 Jan 2022 20:02:13 +0100
In-Reply-To: <87mtjujkt9.fsf@HIDDEN>
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
 <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
 <87zgo0jori.fsf@HIDDEN>
 <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@HIDDEN>
 <87v8ynk0zp.fsf@HIDDEN>
 <f9ba4042840bed63c059b39057f18dcae3155899.camel@HIDDEN>
 <87r19bjzi1.fsf@HIDDEN> <87mtjujkt9.fsf@HIDDEN>
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@HIDDEN, Julien Lepiller <julien@HIDDEN>,
 52472 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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--





Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at 52472 <at> debbugs.gnu.org:


Received: (at 52472) by debbugs.gnu.org; 17 Jan 2022 18:10:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 17 13:10:11 2022
Received: from localhost ([127.0.0.1]:47925 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n9WS4-0001RI-8X
	for submit <at> 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 <poptsov.artyom@HIDDEN>) id 1n9WRz-0001R0-24
 for 52472 <at> 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 <at> 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" <poptsov.artyom@HIDDEN>
To: Maxime Devos <maximedevos@HIDDEN>
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
 <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
 <87zgo0jori.fsf@HIDDEN>
 <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@HIDDEN>
 <87v8ynk0zp.fsf@HIDDEN>
 <f9ba4042840bed63c059b39057f18dcae3155899.camel@HIDDEN>
 <87r19bjzi1.fsf@HIDDEN>
Date: Mon, 17 Jan 2022 21:09:38 +0300
In-Reply-To: <87r19bjzi1.fsf@HIDDEN> (Artyom V. Poptsov's message of "Thu, 
 13 Jan 2022 20:51:02 +0300")
Message-ID: <87mtjujkt9.fsf@HIDDEN>
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@HIDDEN, Julien Lepiller <julien@HIDDEN>,
 52472 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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" <poptsov.artyom@HIDDEN>
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 <olivier.dion@HIDDEN>
 ;;; Copyright =C2=A9 2021 Solene Rapenne <solene@HIDDEN>
 ;;; Copyright =C2=A9 2021 Petr Hodina <phodina@HIDDEN>
+;;; Copyright =C2=A9 2022 Artyom V. Poptsov <poptsov.artyom@HIDDEN>
+
 ;;;
 ;;; 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 <poptsov.artyom@HIDDEN>
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-----
--==-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at 52472 <at> debbugs.gnu.org:


Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 17:51:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 13 12:51:22 2022
Received: from localhost ([127.0.0.1]:34526 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n84Fq-0003Di-La
	for submit <at> 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 <poptsov.artyom@HIDDEN>) id 1n84Fm-0003DP-7T
 for 52472 <at> 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 <at> 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" <poptsov.artyom@HIDDEN>
To: Maxime Devos <maximedevos@HIDDEN>
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
 <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
 <87zgo0jori.fsf@HIDDEN>
 <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@HIDDEN>
 <87v8ynk0zp.fsf@HIDDEN>
 <f9ba4042840bed63c059b39057f18dcae3155899.camel@HIDDEN>
Date: Thu, 13 Jan 2022 20:51:02 +0300
In-Reply-To: <f9ba4042840bed63c059b39057f18dcae3155899.camel@HIDDEN>
 (Maxime Devos's message of "Thu, 13 Jan 2022 18:37:15 +0100")
Message-ID: <87r19bjzi1.fsf@HIDDEN>
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@HIDDEN, Julien Lepiller <julien@HIDDEN>,
 52472 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <https://github.com/haampie/libtree/issues/65>

> 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" <poptsov.artyom@HIDDEN>
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 <olivier.dion@HIDDEN>
 ;;; Copyright =C2=A9 2021 Solene Rapenne <solene@HIDDEN>
 ;;; Copyright =C2=A9 2021 Petr Hodina <phodina@HIDDEN>
+;;; Copyright =C2=A9 2022 Artyom V. Poptsov <poptsov.artyom@HIDDEN>
+
 ;;;
 ;;; 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 <https://github.com/haampie/libtree/issues/6=
5>
+           #: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 <poptsov.artyom@HIDDEN>
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-----
--==-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at 52472 <at> debbugs.gnu.org:


Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 17:37:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 13 12:37:28 2022
Received: from localhost ([127.0.0.1]:34499 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n842S-0002lp-D6
	for submit <at> 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 <maximedevos@HIDDEN>) id 1n842O-0002ld-UP
 for 52472 <at> 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: <f9ba4042840bed63c059b39057f18dcae3155899.camel@HIDDEN>
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
From: Maxime Devos <maximedevos@HIDDEN>
To: "Artyom V. Poptsov" <poptsov.artyom@HIDDEN>
Date: Thu, 13 Jan 2022 18:37:15 +0100
In-Reply-To: <87v8ynk0zp.fsf@HIDDEN>
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
 <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
 <87zgo0jori.fsf@HIDDEN>
 <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@HIDDEN>
 <87v8ynk0zp.fsf@HIDDEN>
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@HIDDEN, Julien Lepiller <julien@HIDDEN>,
 52472 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <https://github.com/haampie/libtree/issues/65>

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





Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at 52472 <at> debbugs.gnu.org:


Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 17:19:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 13 12:19:04 2022
Received: from localhost ([127.0.0.1]:34403 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n83kd-00028c-Qu
	for submit <at> 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 <poptsov.artyom@HIDDEN>) id 1n83kb-000280-W4
 for 52472 <at> 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 <at> 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" <poptsov.artyom@HIDDEN>
To: Maxime Devos <maximedevos@HIDDEN>
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
 <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
 <87zgo0jori.fsf@HIDDEN>
 <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@HIDDEN>
Date: Thu, 13 Jan 2022 20:18:50 +0300
In-Reply-To: <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@HIDDEN>
 (Maxime Devos's message of "Thu, 13 Jan 2022 08:38:34 +0100")
Message-ID: <87v8ynk0zp.fsf@HIDDEN>
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@HIDDEN, Julien Lepiller <julien@HIDDEN>,
 52472 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <poptsov.artyom@HIDDEN>
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-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at 52472 <at> debbugs.gnu.org:


Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 07:38:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 13 02:38:40 2022
Received: from localhost ([127.0.0.1]:59971 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n7ugy-0004I1-4j
	for submit <at> 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 <maximedevos@HIDDEN>) id 1n7ugu-0004Hq-Hg
 for 52472 <at> 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@HIDDEN>
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
From: Maxime Devos <maximedevos@HIDDEN>
To: "Artyom V. Poptsov" <poptsov.artyom@HIDDEN>, Julien Lepiller
 <julien@HIDDEN>
Date: Thu, 13 Jan 2022 08:38:34 +0100
In-Reply-To: <87zgo0jori.fsf@HIDDEN>
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
 <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
 <87zgo0jori.fsf@HIDDEN>
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@HIDDEN, 52472 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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
<https://github.com/haampie/libtree/blob/master/Makefile>
and a bunch of tests in
<https://github.com/haampie/libtree/tree/master/tests>.

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





Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Jan 2022 03:31:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 12 22:31:10 2022
Received: from localhost ([127.0.0.1]:59620 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n7qpN-0004qO-CN
	for submit <at> debbugs.gnu.org; Wed, 12 Jan 2022 22:31:09 -0500
Received: from lists.gnu.org ([209.51.188.17]:44994)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <poptsov.artyom@HIDDEN>) id 1n7qpL-0004qG-LX
 for submit <at> debbugs.gnu.org; Wed, 12 Jan 2022 22:31:04 -0500
Received: from eggs.gnu.org ([209.51.188.92]:35270)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <poptsov.artyom@HIDDEN>)
 id 1n7qpL-0004jX-DF
 for guix-patches@HIDDEN; Wed, 12 Jan 2022 22:31:03 -0500
Received: from [2a00:1450:4864:20::135] (port=37674
 helo=mail-lf1-x135.google.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <poptsov.artyom@HIDDEN>)
 id 1n7qpE-0005sa-PH; Wed, 12 Jan 2022 22:30:58 -0500
Received: by mail-lf1-x135.google.com with SMTP id m1so15019967lfq.4;
 Wed, 12 Jan 2022 19:30:47 -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=YBo9zS+69qF2kS/JfFEYA2UNhPSJF2QlBZbXU7Tr1Qxae+o8zs6liJfz1U5pS5Gqin
 rMmzycpBWKfILJf2Wt6lpZ88K3vxKDMiMLsDqRfIx0gBUWQRydJs5XeeydVt4MKj8RsF
 lvI4qZAmr/ILbnjnEI52A8fM6gbciaroPaEtiH0ZfKvLvx/a/547dVNspKGc+S94cVBY
 M23kR4y9etegnafgvDX6u6DLYKjhoXQHvXeqOhw67wxcJ5t9Ex/A8LR1FcCIG2AR47Ia
 IRmQZoWqblCZs0xBE/PwvlBO3R001kgjm4H1NFRYyZJYjZd7oYgzjtizqU/+X1tu1xXP
 lndA==
X-Gm-Message-State: AOAM530B6H1j7v1vykCPH2afwEY1cNgcvEQjM5szk+JbIvk+QMayJk9Z
 /XFmCLDVfZPxy+NcyV8/J1bHAqo0B2I=
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" <poptsov.artyom@HIDDEN>
To: Julien Lepiller <julien@HIDDEN>
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
 <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
Date: Thu, 13 Jan 2022 06:30:41 +0300
In-Reply-To: <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN> (Julien
 Lepiller's message of "Sun, 19 Dec 2021 07:50:52 -0500")
Message-ID: <87zgo0jori.fsf@HIDDEN>
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-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::135
 (failed)
Received-SPF: pass client-ip=2a00:1450:4864:20::135;
 envelope-from=poptsov.artyom@HIDDEN; helo=mail-lf1-x135.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
Cc: Mathieu Othacehe <othacehe@HIDDEN>, guix-patches@HIDDEN,
 52472 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.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" <poptsov.artyom@HIDDEN>
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 <olivier.dion@HIDDEN>
 ;;; Copyright =C2=A9 2021 Solene Rapenne <solene@HIDDEN>
 ;;; Copyright =C2=A9 2021 Petr Hodina <phodina@HIDDEN>
+;;; Copyright =C2=A9 2022 Artyom V. Poptsov <poptsov.artyom@HIDDEN>
+
 ;;;
 ;;; 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 <poptsov.artyom@HIDDEN>
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-----
--==-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at 52472 <at> debbugs.gnu.org:


Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 03:30:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 12 22:30:58 2022
Received: from localhost ([127.0.0.1]:59616 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1n7qpC-0004pZ-Ig
	for submit <at> 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 <poptsov.artyom@HIDDEN>) id 1n7qpA-0004pH-AH
 for 52472 <at> 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 <at> 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" <poptsov.artyom@HIDDEN>
To: Julien Lepiller <julien@HIDDEN>
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
 <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
Date: Thu, 13 Jan 2022 06:30:41 +0300
In-Reply-To: <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN> (Julien
 Lepiller's message of "Sun, 19 Dec 2021 07:50:52 -0500")
Message-ID: <87zgo0jori.fsf@HIDDEN>
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 <othacehe@HIDDEN>, guix-patches@HIDDEN,
 52472 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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" <poptsov.artyom@HIDDEN>
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 <olivier.dion@HIDDEN>
 ;;; Copyright =C2=A9 2021 Solene Rapenne <solene@HIDDEN>
 ;;; Copyright =C2=A9 2021 Petr Hodina <phodina@HIDDEN>
+;;; Copyright =C2=A9 2022 Artyom V. Poptsov <poptsov.artyom@HIDDEN>
+
 ;;;
 ;;; 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 <poptsov.artyom@HIDDEN>
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-----
--==-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at 52472 <at> debbugs.gnu.org:


Received: (at 52472) by debbugs.gnu.org; 19 Dec 2021 12:51:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 19 07:51:05 2021
Received: from localhost ([127.0.0.1]:45141 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1myveb-00051x-Fl
	for submit <at> debbugs.gnu.org; Sun, 19 Dec 2021 07:51:05 -0500
Received: from lepiller.eu ([89.234.186.109]:42208)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <julien@HIDDEN>) id 1myveX-00051K-9X
 for 52472 <at> debbugs.gnu.org; Sun, 19 Dec 2021 07:51:04 -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 <julien@HIDDEN>
To: guix-patches@HIDDEN, Mathieu Othacehe <othacehe@HIDDEN>,
 poptsov.artyom@HIDDEN
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
User-Agent: K-9 Mail for Android
In-Reply-To: <87bl1dsz6b.fsf_-_@HIDDEN>
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
Message-ID: <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 52472
Cc: 52472 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sorry if this is overwhelming, but also:

Le 19 d=C3=A9cembre 2021 04:48:28 GMT-05:00, Mathieu Othacehe <othacehe@gn=
u=2Eorg> a =C3=A9crit=C2=A0:
>
>Hey Artyom,
>
>>  ;;; Copyright =C2=A9 2021 Solene Rapenne <solene@perso=2Epw>
>> +;;; Copyright =C2=A9 2021 Artyom V=2E Poptsov <poptsov=2Eartyom@gmail=
=2Ecom>
>> +
>
>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 :)




Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 19 Dec 2021 12:51:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 19 07:51:13 2021
Received: from localhost ([127.0.0.1]:45144 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1myvei-00052H-PW
	for submit <at> 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 <julien@HIDDEN>) id 1myveh-000529-EY
 for submit <at> 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 <julien@HIDDEN>)
 id 1myveg-0008Qi-AO
 for guix-patches@HIDDEN; 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 <julien@HIDDEN>)
 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 <julien@HIDDEN>
To: guix-patches@HIDDEN, Mathieu Othacehe <othacehe@HIDDEN>,
 poptsov.artyom@HIDDEN
Subject: Re: [bug#52472] [PATCH] gnu: Add libtree
User-Agent: K-9 Mail for Android
In-Reply-To: <87bl1dsz6b.fsf_-_@HIDDEN>
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
 <87bl1dsz6b.fsf_-_@HIDDEN>
Message-ID: <61183D53-CE3D-4A00-AC7D-294C0C98FC00@HIDDEN>
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@HIDDEN;
 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 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <othacehe@gn=
u=2Eorg> a =C3=A9crit=C2=A0:
>
>Hey Artyom,
>
>>  ;;; Copyright =C2=A9 2021 Solene Rapenne <solene@perso=2Epw>
>> +;;; Copyright =C2=A9 2021 Artyom V=2E Poptsov <poptsov=2Eartyom@gmail=
=2Ecom>
>> +
>
>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 :)




Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at 52472 <at> debbugs.gnu.org:


Received: (at 52472) by debbugs.gnu.org; 19 Dec 2021 09:48:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 19 04:48:38 2021
Received: from localhost ([127.0.0.1]:44825 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1myso2-0003g5-DM
	for submit <at> 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 <othacehe@HIDDEN>) id 1myso0-0003fp-9P
 for 52472 <at> 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 <othacehe@HIDDEN>)
 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 <othacehe@HIDDEN>)
 id 1mysnu-00080b-Gm; Sun, 19 Dec 2021 04:48:30 -0500
From: Mathieu Othacehe <othacehe@HIDDEN>
To: poptsov.artyom@HIDDEN (Artyom V. Poptsov)
Subject: Re: bug#52472: [PATCH] gnu: Add libtree
References: <87fsqw5j9h.fsf@HIDDEN> <87pmpu5oi8.fsf@HIDDEN>
Date: Sun, 19 Dec 2021 10:48:28 +0100
In-Reply-To: <87pmpu5oi8.fsf@HIDDEN> (Artyom V. Poptsov's message of "Sat, 
 18 Dec 2021 11:02:55 +0300")
Message-ID: <87bl1dsz6b.fsf_-_@HIDDEN>
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 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


Hey Artyom,

>  ;;; Copyright =C2=A9 2021 Solene Rapenne <solene@HIDDEN>
> +;;; Copyright =C2=A9 2021 Artyom V. Poptsov <poptsov.artyom@HIDDEN>
> +

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@HIDDEN: synopsis should start with a=
n upper-case letter or digit

Thanks,

Mathieu




Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Dec 2021 08:03:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Dec 18 03:03:10 2021
Received: from localhost ([127.0.0.1]:41216 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1myUgM-00011d-0e
	for submit <at> 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 <poptsov.artyom@HIDDEN>) id 1myUgK-00011V-Ms
 for submit <at> 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 <poptsov.artyom@HIDDEN>)
 id 1myUgK-0008J1-HA
 for guix-patches@HIDDEN; 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 <poptsov.artyom@HIDDEN>)
 id 1myUgI-0006Ut-OS
 for guix-patches@HIDDEN; Sat, 18 Dec 2021 03:03:04 -0500
Received: by mail-lf1-x12c.google.com with SMTP id z7so9354761lfi.11
 for <guix-patches@HIDDEN>; 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 <guix-patches@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 18 Dec 2021 00:02:59 -0800 (PST)
From: poptsov.artyom@HIDDEN (Artyom V. Poptsov)
To: guix-patches@HIDDEN
Subject: Re: [PATCH] gnu: Add libtree
References: <87fsqw5j9h.fsf@HIDDEN>
Date: Sat, 18 Dec 2021 11:02:55 +0300
In-Reply-To: <87fsqw5j9h.fsf@HIDDEN> (Artyom V. Poptsov's message of "Mon, 
 13 Dec 2021 23:42:34 +0300")
Message-ID: <87pmpu5oi8.fsf@HIDDEN>
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@HIDDEN; 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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" <poptsov.artyom@HIDDEN>
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 <josselin.poiret@HIDDEN>
 ;;; Copyright =C2=A9 2021 Olivier Dion <olivier.dion@HIDDEN>
 ;;; Copyright =C2=A9 2021 Solene Rapenne <solene@HIDDEN>
+;;; Copyright =C2=A9 2021 Artyom V. Poptsov <poptsov.artyom@HIDDEN>
+
 ;;;
 ;;; 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 <poptsov.artyom@HIDDEN>
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-----
--==-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Dec 2021 20:42:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 13 15:42:53 2021
Received: from localhost ([127.0.0.1]:56942 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mws9o-0004YD-Ta
	for submit <at> 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 <poptsov.artyom@HIDDEN>) id 1mws9n-0004Y6-Fq
 for submit <at> 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 <poptsov.artyom@HIDDEN>)
 id 1mws9n-0007b9-8V
 for guix-patches@HIDDEN; 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 <poptsov.artyom@HIDDEN>)
 id 1mws9i-0001ax-6u
 for guix-patches@HIDDEN; Mon, 13 Dec 2021 15:42:44 -0500
Received: by mail-lj1-x235.google.com with SMTP id a37so24370061ljq.13
 for <guix-patches@HIDDEN>; 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 <guix-patches@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 13 Dec 2021 12:42:38 -0800 (PST)
From: poptsov.artyom@HIDDEN (Artyom V. Poptsov)
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add libtree
Date: Mon, 13 Dec 2021 23:42:34 +0300
Message-ID: <87fsqw5j9h.fsf@HIDDEN>
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@HIDDEN; 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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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" <poptsov.artyom@HIDDEN>
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 <elaexuotee@HIDDEN>
 ;;; Copyright =C2=A9 2021 Ivan Gankevich <i.gankevich@HIDDEN>
 ;;; Copyright =C2=A9 2021 Olivier Dion <olivier.dion@HIDDEN>
+;;; Copyright =C2=A9 2021 Artyom V. Poptsov <poptsov.artyom@HIDDEN>
 ;;;
 ;;; 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 <poptsov.artyom@HIDDEN>
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-----
--==-=-=--




Acknowledgement sent to poptsov.artyom@HIDDEN (Artyom V. Poptsov):
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#52472; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 17 Jan 2022 19:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.