From patchwork Fri Feb 4 18:25:02 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: 36997 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 9B1A727BBEA; Fri, 4 Feb 2022 18:38:09 +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, 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 232E427BBE9 for ; Fri, 4 Feb 2022 18:38:09 +0000 (GMT) Received: from localhost ([::1]:49986 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nG3TE-0002Pj-AQ for patchwork@mira.cbaines.net; Fri, 04 Feb 2022 13:38:08 -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 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 Maxime! I think I figured out how to properly remove DESTDIR setting in my libtree patch. Please find the updated patch attached. - Artyom From d481bf6df007e75df0fec118eadc448ac3f4af5a 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 | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 7df64bbdae..eea2fea59b 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. ;;; @@ -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=" #$(cc-for-target)) + (string-append "PREFIX=" #$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