From patchwork Thu Jan 13 03:30:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 36285 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B670427BBEA; Thu, 13 Jan 2022 03:31:49 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3D70D27BBE9 for ; Thu, 13 Jan 2022 03:31:49 +0000 (GMT) Received: from localhost ([::1]:43340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7qq4-0004kH-8W for patchwork@mira.cbaines.net; Wed, 12 Jan 2022 22:31:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7qpL-0004ji-OB for guix-patches@gnu.org; Wed, 12 Jan 2022 22:31:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38480) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7qpJ-0005tf-Tn for guix-patches@gnu.org; Wed, 12 Jan 2022 22:31:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n7qpJ-0004pv-Mp for guix-patches@gnu.org; Wed, 12 Jan 2022 22:31: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: Thu, 13 Jan 2022 03:31: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: Julien Lepiller Cc: othacehe@gnu.org, 52472@debbugs.gnu.org X-Debbugs-Original-Cc: Mathieu Othacehe , guix-patches@gnu.org, 52472@debbugs.gnu.org Received: via spool by 52472-submit@debbugs.gnu.org id=B52472.164204465818580 (code B ref 52472); Thu, 13 Jan 2022 03:31:01 +0000 Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 03:30:58 +0000 Received: from localhost ([127.0.0.1]:59616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7qpC-0004pZ-Ig for submit@debbugs.gnu.org; Wed, 12 Jan 2022 22:30:58 -0500 Received: from mail-lf1-f49.google.com ([209.85.167.49]:45986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7qpA-0004pH-AH for 52472@debbugs.gnu.org; Wed, 12 Jan 2022 22:30:53 -0500 Received: by mail-lf1-f49.google.com with SMTP id u13so14892149lff.12 for <52472@debbugs.gnu.org>; Wed, 12 Jan 2022 19:30:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=9JZzwvJIN/BNlmJ8Y9Qg5wJI0jj63ym/WK6h8BjQiUw=; b=E77RuGpiP0nqrxW55+xsfsfuxIaqjylGxaguzNi1vHRJwFXzsjgIU5i0X4aBK3TZ1z uBkcaLZXRQHvG0krmHpvaI5/qyeqapjq/BBMLPMxiRd3bSYJYUx80+euS+bAdXUyAtKM OUowV2ZvwIpM/fyYO5UGh7uxJeeZ7BskdUNSx9mKLWAiL733atAmR8vfe91kVWy2rDt1 1lZWj0KuuhBU1hDhRIzvVsHZuklpzcwYKADWjzYSWMyVXxV84UY+F5joYLGfEPusf1/X tYvdt21+OHHSJcztR8UtQcwoGDHZFVADctqoVmu2FqFzzRvMSQ8TVA1dVkdv4vn0hRMz uOag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=9JZzwvJIN/BNlmJ8Y9Qg5wJI0jj63ym/WK6h8BjQiUw=; b=01e1PYYWEHet3u6ukpw8E+AjQVercmk2UVRwHDEdbodWTsCd0jX1wkcVQ3LMxEBeun bjOnPLJmbvhIOUTwKCJiqfnv0dbh3ZJbWCqVYnF1+XlmJzzDXOCd4yuYjYsDpGFQhyhT bvC5qHX3B/aXfxAI487e8nDDDEqDw8IkoFFEEIzQZ/QdJ43KI6nNJrbGI/WoMX1eJK+0 P7TMUjkSfnNyo2uQQ3nVHLQUeO5iam/HXhb+AqMnoc0gZbwt+4JxN3jFZjQPkgEKWtgE WZm7PVmWtamVBWWICRKNFtUiiSmEPLZDidqR00bL1ps8HU57w5n0IXHr2l6TqvHHc9ds iVFA== X-Gm-Message-State: AOAM530rBCMvEq7Q2G7A4ec5QKy0gjAaJMADnQI09braTsQ7DgBJ5iBv rGMXAFPrxw+Qzr5Mp8TgyxwEkptXps4= X-Google-Smtp-Source: ABdhPJyHmk6cR8YvEA+CLYMT5nYp7ZeoF5psaYGWx6VEGI+2gnXbZzpb/iG8RrEnPcu4MMfO3h3qmg== X-Received: by 2002:a05:6512:39cc:: with SMTP id k12mr1967869lfu.372.1642044645793; Wed, 12 Jan 2022 19:30:45 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id f18sm160403lfj.56.2022.01.12.19.30.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 19:30:45 -0800 (PST) From: "Artyom V. Poptsov" References: <87fsqw5j9h.fsf@gmail.com> <87pmpu5oi8.fsf@gmail.com> <87bl1dsz6b.fsf_-_@gnu.org> <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> Date: Thu, 13 Jan 2022 06:30:41 +0300 In-Reply-To: <61183D53-CE3D-4A00-AC7D-294C0C98FC00@lepiller.eu> (Julien Lepiller's message of "Sun, 19 Dec 2021 07:50:52 -0500") Message-ID: <87zgo0jori.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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 From 4ce9098e6fe8525e1e68d97458cb246ddc901266 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. --- 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 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -60,6 +60,8 @@ ;;; Copyright © 2021 Olivier Dion ;;; Copyright © 2021 Solene Rapenne ;;; Copyright © 2021 Petr Hodina +;;; Copyright © 2022 Artyom V. Poptsov + ;;; ;;; This file is part of GNU Guix. ;;; @@ -8789,3 +8791,38 @@ older system-wide @file{/sys} interface.") (license (list license:lgpl2.1+ ;; libgpiod license:gpl2+ ;; gpio-tools license:lgpl3+)))) ;; C++ bindings + +(define-public libtree + (package + (name "libtree") + (version "3.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/haampie/libtree") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1j56j1k4rlm0wi6jvdmk7j7nf4wrmc5gyhgp6vjf180hpgwlqz92")))) + (arguments + (list #:tests? #f + #:make-flags + ;; NOTE: Official documentation recommends to build libtree with + ;; "-static" flag. + #~(list (string-append "CC=" #$(cc-for-target)) + "PREFIX=/" + (string-append "DESTDIR=" #$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))) -- 2.25.1