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 qKuqLoZp4GEqNAEAgWs5BA (envelope-from ) for ; Thu, 13 Jan 2022 19:03:50 +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 sE0DLIZp4GHukwAA9RJhRA (envelope-from ) for ; Thu, 13 Jan 2022 19:03:50 +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 6FC2ED956 for ; Thu, 13 Jan 2022 19:03:50 +0100 (CET) Received: from localhost ([::1]:48162 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n84Rx-00040C-Bo for larch@yhetil.org; Thu, 13 Jan 2022 13:03:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38902) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n84GY-0001Ce-Nx for guix-patches@gnu.org; Thu, 13 Jan 2022 12:52:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41627) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n84GY-0006cg-Dr for guix-patches@gnu.org; Thu, 13 Jan 2022 12:52:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n84GY-0003FE-83 for guix-patches@gnu.org; Thu, 13 Jan 2022 12:52: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: Thu, 13 Jan 2022 17:52: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.164209628212395 (code B ref 52472); Thu, 13 Jan 2022 17:52:02 +0000 Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 17:51:22 +0000 Received: from localhost ([127.0.0.1]:34526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n84Fq-0003Di-La for submit@debbugs.gnu.org; Thu, 13 Jan 2022 12:51:21 -0500 Received: from mail-lf1-f45.google.com ([209.85.167.45]:43667) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n84Fm-0003DP-7T for 52472@debbugs.gnu.org; Thu, 13 Jan 2022 12:51:17 -0500 Received: by mail-lf1-f45.google.com with SMTP id x22so22184787lfd.10 for <52472@debbugs.gnu.org>; Thu, 13 Jan 2022 09:51:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=PfSNzDADBYRW6TLLvmiUaAsLpVl+2mYY9Wxk0yD7GX0=; b=R3FkllqaeTluBMGq4MYUFGLmjrMAqY/KrcF0V6dj5GnCHHUIOp+WCPj3qoc9stAtFH HaQZo+ld6gfq1jhyHfcKnmKbNWMld9DoBEbpiESnaamt480NNwGOxs5/JXwT9w8Clu8q 2mVpf/UHk0yrGs0MLrwVXNCNL32dtgjlOfrOP2QoCZ3xj/V3fJicg4Pgw1+sqpYA1DBX Qmyjcrmz7/H8WQ99F7GwtUH7c4xgZK6oBPMugmWS1f5sCYPc1INGm1+yATInlwB/AMEE cprdz/WRZwo5GtKZ4Tfq7n0revsPSQuBkMZe2OPayaO/sjSxBMEwQUs+gQlvb3T1+CsI ugzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=PfSNzDADBYRW6TLLvmiUaAsLpVl+2mYY9Wxk0yD7GX0=; b=isiExvl4OqbaUjR4xLR2S3m4ulPWkGGuH0ZnDoeWcwbXD2wU119PvlUnuPm9cpThBD +65V4DCNQ7Q/DQ8XtjrX4y05gyuoDLhjrmu3LoCy+FUcek3gqVsasiNDbR5MRGUpLHUP 8BoKIZzUm6K3aNHMxHnABAFC3xXUvOlCPcsSj/jq86kM+Xgg+FJIsRJ3pJgBX/uW+o+S 3r5QVfhP5QF+3FgA4vBvVU8IVraJwyIWLP0/bHZNblIVLXWaMiPSyZht1iW6NBJlDiKX 3ReWAjaeZzFcdtQ9QADp9i1bbmPZwjWjyZx+YEfFI5tLpPxF+jb1WBGf/eV82qaXjBG4 3XWA== X-Gm-Message-State: AOAM532rLa6p6cAaZK3YQIFbMdijGwCd5c6q/O4q2qdqX8KuzvlN6vNx mKmPFp9YTGzglJgRWisubcm28cARRzw= X-Google-Smtp-Source: ABdhPJzSKNaK5WygzMF5Xz+5oqvw2Zcmz46mPrPR0QsFDaQTa7PDuPmS8PWjruU+C3UQoEhKZbaW/Q== X-Received: by 2002:a05:651c:982:: with SMTP id b2mr3641791ljq.55.1642096267590; Thu, 13 Jan 2022 09:51:07 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id p27sm348034lfa.295.2022.01.13.09.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 09:51:06 -0800 (PST) From: "Artyom V. Poptsov" References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> <87zgo0jori.fsf@gmail.com> <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> <87v8ynk0zp.fsf@gmail.com> Date: Thu, 13 Jan 2022 20:51:02 +0300 In-Reply-To: (Maxime Devos's message of "Thu, 13 Jan 2022 18:37:15 +0100") Message-ID: <87r19bjzi1.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-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=1642097030; 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=PfSNzDADBYRW6TLLvmiUaAsLpVl+2mYY9Wxk0yD7GX0=; b=o8xK7DmMtPYKalAd5G+PkDXAZh7WiYJlyBJWeBFo2IMlc9toOciY6hgChbcVygGR0NKxic uvtzJTCJo7Dj7U5+0MA6KX4D6Q2SFxoPw6fySs9HZil9Oa8sGKZUVoPQH32Fp8Y6wPxzLG 7Oq0FAMPHFV6zQ3Y3sWSNSR6gHcx+zHaK8FhDBVCb8Z6vXTu+jaR991kjeal3G3cOEHL5F sjk55lM0WV0QxMRLU2quyAG6z6Ajx+QkmUHgJXbv8V3SN3JL7zRO5lzEAOt/pJ/xmvke16 BgWImrp4qQjdL/Jao+57fY/DMyd2KLVjcZCgVeEJT7iPbX1/h2jLc3Vj0lqiEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642097030; a=rsa-sha256; cv=none; b=akizZfPMR42kZeigHTj4UqYrXuNWSYmFUp6d+KGCbwSOXfPBVy1s0jbQnovbEfp9YUJ/U4 6d7FGK4dH/459ZieJEV867WlIkRiDxZlEPHCNc3UJR579KbGViKeh9/OeDhhGfmhQ5jtPP Sj0ZpKGH0S/rInD26MD41u5o+ttEwWg5Hvh5cpxqlYVqyJsY2/DxZqJY/wFIUGx203Xlae yytRANQ+O4n8feDwcNHkK8/YlPpiKUQI9C49C3sFIItVPOIYTBP6Y6r5nxNPGVXqMuOiTV yyxU/Esa0CCN8wrqSLaUE4NnuacjMXglhF9V4WBhi/DU4zA9RLQGqGYPqebaIw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=R3Fkllqa; 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.12 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=R3Fkllqa; 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: 6FC2ED956 X-Spam-Score: -5.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: 570iGgUTWC4Y --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello, > Seems reasonable to me, though I would add a comment > ;; See > next to the #:tests? #false such that the reasons won't be lost to > time. I added the comment. - Artyom --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-libtree.patch Content-Transfer-Encoding: quoted-printable From=208367850d181a221cdf71911022c767d466009c5d Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Mon, 13 Dec 2021 23:34:29 +0300 Subject: [PATCH] gnu: Add libtree * gnu/packages/linux.scm (libtree): New variable. =2D-- gnu/packages/linux.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index da2ce602a7..07a64da679 100644 =2D-- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -60,6 +60,8 @@ ;;; Copyright =C2=A9 2021 Olivier Dion ;;; Copyright =C2=A9 2021 Solene Rapenne ;;; Copyright =C2=A9 2021 Petr Hodina +;;; Copyright =C2=A9 2022 Artyom V. Poptsov + ;;; ;;; This file is part of GNU Guix. ;;; @@ -8789,3 +8791,38 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j56j1k4rlm0wi6jvdmk7j7nf4wrmc5gyhgp6vjf180hpgwlqz92")))) + (arguments + (list #:tests? #f ; See + #:make-flags + ;; NOTE: Official documentation recommends to build libtree with + ;; "-static" flag. + #~(list (string-append "CC=3D" #$(cc-for-target)) + "PREFIX=3D/" + (string-append "DESTDIR=3D" #$output)) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda* (#:key make-flags #:allow-other-keys) + (apply invoke "make" make-flags)))))) + (build-system gnu-build-system) + (home-page "https://github.com/haampie/libtree") + (synopsis "Show output of @command{ldd} as a tree") + (description + "This tool turns @command{ldd} into a tree and explains how shared +libraries are found or why they cannot be located.") + (license license:expat))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmHgZoYACgkQ6cWi2QiY oC8dggf/cDyhxvERIAjx6CqrdTFXxfFWVOmXzK1V9PLzr+R40qCTPYdHm8V3AqaP MLEvtE7+DFDH/j1C4VzcP/ecfMX4Z8SKBFQVqV5TfHVpZ9aZ9z7QIpnS7sy6wGxs kt7+GFCr/hqWrB6xSeKWZM9sV2she48P6K9W73ORxQKd/GmfF1KGyy+7oYDC5PvR 5lR+H4p81nX37cVtBGrcriV8HVjXt3UfHlfiuWtg3mbR/ggrqW90Xu1y+kuTzwR2 e2BKmVpCoZCpBJ8cL/7GqR7akybQLPZxtwc0lDQiU766uUA77QY3R/aQQS2uXZkk eWuhSk8g28i8WfkdvPBZq1iao6700g== =1G5s -----END PGP SIGNATURE----- --==-=-=--