From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eJGwJ/Vg/mE4mQAAgWs5BA (envelope-from ) for ; Sat, 05 Feb 2022 12:35:17 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8FfyJPVg/mH/BwAA9RJhRA (envelope-from ) for ; Sat, 05 Feb 2022 12:35:17 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 659B02B75C for ; Sat, 5 Feb 2022 12:35:16 +0100 (CET) Received: from localhost ([::1]:39968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nGJLX-0008Bt-3U for larch@yhetil.org; Sat, 05 Feb 2022 06:35:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nGJLK-0008AU-Ta for guix-patches@gnu.org; Sat, 05 Feb 2022 06:35:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nGJLK-0003sc-KF for guix-patches@gnu.org; Sat, 05 Feb 2022 06:35:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nGJLK-0005dv-FM for guix-patches@gnu.org; Sat, 05 Feb 2022 06:35:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52472] [PATCH] gnu: Add libtree Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 05 Feb 2022 11:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52472 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: othacehe@gnu.org, Julien Lepiller , 52472@debbugs.gnu.org Received: via spool by 52472-submit@debbugs.gnu.org id=B52472.164406090121681 (code B ref 52472); Sat, 05 Feb 2022 11:35:02 +0000 Received: (at 52472) by debbugs.gnu.org; 5 Feb 2022 11:35:01 +0000 Received: from localhost ([127.0.0.1]:33915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGJLF-0005dZ-H8 for submit@debbugs.gnu.org; Sat, 05 Feb 2022 06:35:01 -0500 Received: from mail-lj1-f181.google.com ([209.85.208.181]:43787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nGJLD-0005dM-Qv for 52472@debbugs.gnu.org; Sat, 05 Feb 2022 06:34:56 -0500 Received: by mail-lj1-f181.google.com with SMTP id t7so12224554ljc.10 for <52472@debbugs.gnu.org>; Sat, 05 Feb 2022 03:34:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1z3VTtvxQHfR7iQVvOQwhX/9iIU2ydZOnACKPWLiWLE=; b=VZYl2ufWmTn8hDS/gBye0ZziheTd3XouGAZxjOwXaonQyGKvlUkP1PiUmODUyqnE9l my80z2dNCm3h7kI+CKbENG+8MOsJkXu8KTRgdCi27Rb9UvgodPVqn0ZO72ZVstyMx6Oz FU+pxpSE7sxRk5AduWUBRJFoL5Pz77biBfD/yT2Wm11aQSgraMN3voR5DJRF2ADb2a/u t/Gl2S88RfKM/U8V/MqkEpM8o0A3GwbP56n6mpjYvAXhtIhkSFP/GBrS0vZa1gQwlJ/I hySOLHuDeJm+4+2aNS/FVftd13OXQpdSfFmynHof3z89qBPs6PVGkH+r1I+bs+ZyXBCZ eRUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=1z3VTtvxQHfR7iQVvOQwhX/9iIU2ydZOnACKPWLiWLE=; b=S0/uBZa6gfRZYkN4ceklTRoQ/pmP7MmUGyRd8gHY85BXysyeoTQrTWCkWTVn9dBqAK PynnE9IJ/+78bhKkqJWVnPGkshuVCNrmAFo+c++PRYgjidXTj2ZFahw5xRCL6R0Ai9RI n6BcI1gpNnxWIhkgjpZBECKAY/dfFbrno62vny8cVeMvLRCqjz1Nje759P0U24k3VYw3 vfwlnBpVUNMf4rRS3Nvi9xKfZutumONh3kea9vcl46/K/n9KSWbADV4v/gATySDbAFTT Sz7DE60diSjc93unw8x/fQP6SmIigTCVfrze0t/nNhqjP2z+s2d4/O05PCiXsNq42bZF EBgw== X-Gm-Message-State: AOAM532QE4nSm/uuhRAg/q7bMNWZYET15yEk5kRlf0ngZBNpaVwsGmZP tj+JVbv3P6pwH6HBxa92l/XtmAdHK3Y= X-Google-Smtp-Source: ABdhPJzaE6A3FGnijpJdu/F+P1NEw75k7Z/IPjgsXPRru2nTr9dqc9km/FoU6Ea5cdhOd9GW9AA3nw== X-Received: by 2002:a05:651c:986:: with SMTP id b6mr2311990ljq.245.1644060889377; Sat, 05 Feb 2022 03:34:49 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id l18sm670755ljc.11.2022.02.05.03.34.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Feb 2022 03:34:48 -0800 (PST) From: "Artyom V. Poptsov" References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> <87iluijhtr.fsf@gmail.com> <87zgnfg1c2.fsf@gmail.com> <3c3cc605d110d977d10b0e7ed7d6f17d3af89f29.camel@telenet.be> <87v8xufq0x.fsf@gmail.com> <1d4a8ba63e8a9a6c76fc8c4b3999e6695644da48.camel@telenet.be> <87r18hg8v1.fsf@gmail.com> Date: Sat, 05 Feb 2022 14:34:44 +0300 In-Reply-To: (Maxime Devos's message of "Sat, 05 Feb 2022 11:56:38 +0100") Message-ID: <87mtj5fsx7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1644060916; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=1z3VTtvxQHfR7iQVvOQwhX/9iIU2ydZOnACKPWLiWLE=; b=oIdT02yF6R1PCfKfMa93FdRcKMufT6d+XJvSrefO+iwpKnGuzdgvPRoc7Ff+K8qJlsRfZ4 9kKAvcXNki7AwB6VPdxdpEPzgsvtAdXzUjjC/R1C3BwwgBrfiK6j58hbmo8f5YlqClEvzy Qp6BjXooVY9iynKO3kfhyVDJhcSZLyqzgDp/+4DsQXME2p2g7e8u0JE9tD3CWPLaExAIEC gOvlBa3Ig6ZyvD4Q/qP+QUavOpWy7uJyB+CoCZxJIxYdYpDZAEEON1rZET+pawj/ZtIn7s 0bHIRfu8C+M11OW6Ug/1LiKNtb6bRSoMpr1RTprhkyuN7imky/H1Cj9/AZYxxQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1644060916; a=rsa-sha256; cv=none; b=AgKo/5fGxN5MmmpYLs9qyVp/SkcEbf2lAtp0KSy6RSll6v2xBgE4iNweSq65LXEFK9oIRu cF+RaoFBNyIgggXkQ5/AizKLJWlvZdCY1VtS2rvN7UtZlWq8fDNluKhF/Q6MIIbdT+UeW4 7avinSWTg8e/o2OkeNteQGzsEXZvKrIG2IfEx+4Km/ySynImGw9loyYjmc1pMukYQuctEw IUUP2XJBskVYFPPK9HxoWuRLUL3bVt3sBnBKvLqfO24H6cKPsIM0wz+pSTBdohYl9wiziS Ylcpsjo6wX7FCNv7spHNo0/K8HBAuNcxENTsfBmrHKV4APVDzy8EOeVae26N0A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=VZYl2ufW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -5.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=VZYl2ufW; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 659B02B75C X-Spam-Score: -5.63 X-Migadu-Scanner: scn0.migadu.com X-TUID: WolARfOAJn9g --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello Maxime! > I've seen this before (for something non-libtree), IIUC you can only > run '--check' after it has been built (or substituted) for the first > time. Thanks for pointing that out, I overlooked this little detail somehow. When I removed '--check' from Guix options it built libtree without errors with your version of the patch. Please find the updated patch attached. - Artyom --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libtree.patch Content-Transfer-Encoding: quoted-printable From=2044971155b6b7d05e4d9b052b5ffc02022f3a97e9 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Mon, 13 Dec 2021 23:34:29 +0300 Subject: [PATCH] gnu: Add libtree * gnu/packages/linux.scm (libtree): New variable. =2D-- gnu/packages/linux.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 7df64bbdae..da3ee63e12 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -60,6 +60,8 @@ ;;; Copyright =C2=A9 2021 Olivier Dion ;;; Copyright =C2=A9 2021 Solene Rapenne ;;; Copyright =C2=A9 2021 Petr Hodina +;;; Copyright =C2=A9 2022 Artyom V. Poptsov + ;;; ;;; This file is part of GNU Guix. ;;; @@ -8830,3 +8832,33 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "072624anz9g01mp5vfkahfmzy0nb7axg5rwk3n1yrdm4hr3d4zrb")))) + (arguments + (list #:make-flags + ;; NOTE: Official documentation recommends to build libtree with + ;; "-static" flag. + #~(list (string-append "CC=3D" #$(cc-for-target)) + (string-append "PREFIX=3D" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure)))) + (build-system gnu-build-system) + (home-page "https://github.com/haampie/libtree") + (synopsis "Show output of @command{ldd} as a tree") + (description + "This tool turns @command{ldd} into a tree and explains how shared +libraries are found or why they cannot be located.") + (license license:expat))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmH+YNQACgkQ6cWi2QiY oC//Jgf/W7DKeCX9nULQWLC7j52ZfcW3CV7NOq56zA73IMSXpVFubl4JjQC/YLg+ D5vTjY0lkGEBf3i4skS6Ewu6s0z8UGNPGt55t+hayuQjHzatWO51wrs0SX5g4Sop S4gZDJwtz6811ks5SYigsTryoPBo9W2+sCcKmi5xLRqqLE3Nr8oOcsY1JHAx1hGf zMnemdQ81H6T53sYXLMJPGbT9DOFQA0MlYEA8Sd8zlyy7q34Qq1KvWoBxwR/vDtp 1XWayiH+Sh7X5Lqmv7DEgkiWGOexgCsKeSsbMma3j3aeGjKmF+f8SS84i4xgsb3M X8P0mkMgazUsjYdXkfXT438DAU38QA== =4C7+ -----END PGP SIGNATURE----- --==-=-=--