From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UHt8F6Fy/WHcdwAAgWs5BA (envelope-from ) for ; Fri, 04 Feb 2022 19:38:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sKLtFKFy/WHw0QAA9RJhRA (envelope-from ) for ; Fri, 04 Feb 2022 19:38:25 +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 9E0692D8DB for ; Fri, 4 Feb 2022 19:38:24 +0100 (CET) Received: from localhost ([::1]:49986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nG3TS-0002Pj-P8 for larch@yhetil.org; Fri, 04 Feb 2022 13:38:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nG3HW-0004qH-Dv for guix-patches@gnu.org; Fri, 04 Feb 2022 13:26:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38895) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nG3HW-0001Tt-2q for guix-patches@gnu.org; Fri, 04 Feb 2022 13:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nG3HV-0007Fz-SU for guix-patches@gnu.org; Fri, 04 Feb 2022 13:26:01 -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: Fri, 04 Feb 2022 18:26:01 +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.164399912027844 (code B ref 52472); Fri, 04 Feb 2022 18:26:01 +0000 Received: (at 52472) by debbugs.gnu.org; 4 Feb 2022 18:25:20 +0000 Received: from localhost ([127.0.0.1]:32792 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG3Gm-0007Ex-4I for submit@debbugs.gnu.org; Fri, 04 Feb 2022 13:25:19 -0500 Received: from mail-lf1-f50.google.com ([209.85.167.50]:45812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nG3Gk-0007Ea-EU for 52472@debbugs.gnu.org; Fri, 04 Feb 2022 13:25:15 -0500 Received: by mail-lf1-f50.google.com with SMTP id o12so14201210lfg.12 for <52472@debbugs.gnu.org>; Fri, 04 Feb 2022 10:25:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=MhvsZS3VOxlgVPRlCd2PcLULoC6PhrxMbV+lHUy8Ncc=; b=Df+5T07Cj39m020UegTiE9Me2LOAnkye7wkH80x7eyrQ1EEms/7mm382QEXL4KqaR0 DyHHgT8CfpXbF/1JTPS+J81PQh7FufznOXnTc2vxRnKWjEDB95PwiPhneOi7yY/OTK1+ +mQsIRRPgCndwwL881pwAdamDAOt6skvI1FNEMkliwalYqThA/qtikLQT9zRXCAZ0UaI 5oEUmxysCiHKQ2giqK0ZyQY5d00PD0NqzOc8/2OPi5gw6FzLye189p6U326Wgg4+IAKE H1RCqSwIXqyc+0AmeQdQjWce6asTQyEnQ7M1texKYEEaE0aVlRCr1HSKkV34hD96Zn/x X/GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=MhvsZS3VOxlgVPRlCd2PcLULoC6PhrxMbV+lHUy8Ncc=; b=119O2g3iEh7/zh1SXC2t9h078DNfuZ8liFLoQgjWEeajZoIjl9ozaAFkRwHID6JKrF aa1oV0+JsfNkmRr/68EZd6dwhQujB5nX7SSUYd7jLFbHnxevM3HGbq17rZw0M5ns9YVd zokoDYTy8UumdZeWC9AAoa6aGYpjXsjhj/jjlcUxrEwjtKA+O8YC0PPbGqvFnxabWR8U kwNkO/laf8Vl1SLgcHnOCHg0ci6lMjnVQVaqQu/q6YfWRemytfA7BARoGxzkW9loB1Dz iPO12wvpg+WS5LKCb4ED9pmTfD4KCIbe0sMsMjy8rL6XivE4RfnXuDjmedov/WZYMvek KMpg== X-Gm-Message-State: AOAM530/EFfeGIObVSQ15xd9nnYdfOfceo4bjMVjpIoEKz9ceHFutKAI 9KjhH1Q3fmSYoy6MjX1FR1hFrCDh9x4= X-Google-Smtp-Source: ABdhPJw4FeJfG5nlt9Yt6Bue4AZJWDe1d71Du8eIcp3bpUooO9HX/Qn9ah4AkAHV8Oibm8kjssCOPw== X-Received: by 2002:a05:6512:368f:: with SMTP id d15mr118828lfs.447.1643999107872; Fri, 04 Feb 2022 10:25:07 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id k1sm409986lfu.136.2022.02.04.10.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Feb 2022 10:25:06 -0800 (PST) From: "Artyom V. Poptsov" References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> <87r19bjzi1.fsf@gmail.com> <87mtjujkt9.fsf@gmail.com> <87iluijhtr.fsf@gmail.com> <87zgnfg1c2.fsf@gmail.com> <3c3cc605d110d977d10b0e7ed7d6f17d3af89f29.camel@telenet.be> Date: Fri, 04 Feb 2022 21:25:02 +0300 In-Reply-To: <3c3cc605d110d977d10b0e7ed7d6f17d3af89f29.camel@telenet.be> (Maxime Devos's message of "Fri, 28 Jan 2022 19:54:16 +0100") Message-ID: <87v8xufq0x.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-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=1643999904; 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=MhvsZS3VOxlgVPRlCd2PcLULoC6PhrxMbV+lHUy8Ncc=; b=CgqObtLPz2dJLdDp0kD62Dpoi1OxLG9Wc6Bmjt/DT5+C6Sq1wTSPRd7xe2CcuprEiqN6Nk UqyHjnKSNmXjytIuQ6ZrQS21Y/6ZLyhjXB2BJ6+oZgv7jJbkQG4fQY69QmQhf/dvaTStn0 u6E+Wgt0GIozddH/GPn5xwIL6ymkURRj8mvkvXfON5z/tFJtyfsV2YVB9bMi/czAs5dmUA 5RJOw36le3961am8yKU3TpQzrAttaQPDYzCHJFNaFnpTubGzLQDL4kl6YVwxFRyE9krJtP E7ytiwc6fya9rmSRkvSxZ2BmhMuU4CcQ2/CVuZylDFjlZmuZoAW+LYkiRiYVvw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643999904; a=rsa-sha256; cv=none; b=FGa9/V7Uri7eXdvlK2AiSwNIsjeyEP+lHHTYxMGdV0jQM+nyWGka6kEfodnk30V73riFqE qcRG43OqmNVvagWU2PPIkDTHa7l0eovZ8xhCj0SZQJdpl31IListLZmjQVk250np8eDiou Q+r+OGlZw6//bU4UosCOejE7ZzBszozFfV9zm0yZYfOyuzmqXzzcYORvyq69NptGbnu6Kd YtNjl2RsIsYgjn14fNmDmLsNdEgBgKgXpO3sZrvDzjUq2NKqcMKpSXj00dGuZJnztrKSpx WAO3B1uZKce9QsJ2IHpNBOcLunkuKtPWGZPreupsQSTGR3WhHEt81GsCx0YkEQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Df+5T07C; 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: -4.13 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=Df+5T07C; 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: 9E0692D8DB X-Spam-Score: -4.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: V1SyOMM0P0qa --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello Maxime! I think I figured out how to properly remove DESTDIR setting in my libtree patch. Please find the updated patch attached. - Artyom --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libtree.patch Content-Transfer-Encoding: quoted-printable From=20d481bf6df007e75df0fec118eadc448ac3f4af5a Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Mon, 13 Dec 2021 23:34:29 +0300 Subject: [PATCH] gnu: Add libtree * gnu/packages/linux.scm (libtree): New variable. =2D-- gnu/packages/linux.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 7df64bbdae..eea2fea59b 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -60,6 +60,8 @@ ;;; Copyright =C2=A9 2021 Olivier Dion ;;; Copyright =C2=A9 2021 Solene Rapenne ;;; Copyright =C2=A9 2021 Petr Hodina +;;; Copyright =C2=A9 2022 Artyom V. Poptsov + ;;; ;;; This file is part of GNU Guix. ;;; @@ -8830,3 +8832,36 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "072624anz9g01mp5vfkahfmzy0nb7axg5rwk3n1yrdm4hr3d4zrb")))) + (arguments + (list #:make-flags + ;; NOTE: Official documentation recommends to build libtree with + ;; "-static" flag. + #~(list (string-append "CC=3D" #$(cc-for-target)) + (string-append "PREFIX=3D" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" make-flags)))))) + (build-system gnu-build-system) + (home-page "https://github.com/haampie/libtree") + (synopsis "Show output of @command{ldd} as a tree") + (description + "This tool turns @command{ldd} into a tree and explains how shared +libraries are found or why they cannot be located.") + (license license:expat))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmH9b34ACgkQ6cWi2QiY oC9wNAf+O30l5+JNk/YkdDme7EwZgld6mvCZIX/XLrW9I5kzjx9RJGPdfUr9TJTH WjIMoHr/s0eYUiOWnC9pblyKuFOxYMHE5akyXWu28cXsXuAC0eBWfU83NNmeGOEC GE0z103sSC23toPIzvNfkLhAneYrp0PA7c0YDvtkYHM+joipGqQYk1w0d+y4tAf9 4SfkVh3755qBG6DCYlDf/Ge0NGaOkwRnwZofwYApfIuq5zubgknyzTpDGMjgfj85 aDUgHy8MK6hIGDwfM1JAVKnClhvEZsOB28x7swG6G3WJDituJUU5ogp6KmbbQBJh hFkiEmxgnvVPu/QICNt+xXshRgrBWQ== =sQ+C -----END PGP SIGNATURE----- --==-=-=--