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 8LqFKaXE5WExHQAAgWs5BA (envelope-from ) for ; Mon, 17 Jan 2022 20:33:57 +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 IM+8JqXE5WGidgAA9RJhRA (envelope-from ) for ; Mon, 17 Jan 2022 20:33:57 +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 5E39B1B836 for ; Mon, 17 Jan 2022 20:33:57 +0100 (CET) Received: from localhost ([::1]:55858 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9XlM-0007Jc-JA for larch@yhetil.org; Mon, 17 Jan 2022 14:33:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9Xbt-00086p-Ix for guix-patches@gnu.org; Mon, 17 Jan 2022 14:24:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:55134) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9Xbm-00030b-2W for guix-patches@gnu.org; Mon, 17 Jan 2022 14:24:09 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n9Xbm-0005ft-04 for guix-patches@gnu.org; Mon, 17 Jan 2022 14:24:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52472] [PATCH] gnu: Add libtree Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jan 2022 19:24: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: "Artyom V. Poptsov" Cc: othacehe@gnu.org, Julien Lepiller , 52472@debbugs.gnu.org Received: via spool by 52472-submit@debbugs.gnu.org id=B52472.164244738321741 (code B ref 52472); Mon, 17 Jan 2022 19:24:01 +0000 Received: (at 52472) by debbugs.gnu.org; 17 Jan 2022 19:23:03 +0000 Received: from localhost ([127.0.0.1]:48037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Xap-0005eb-E5 for submit@debbugs.gnu.org; Mon, 17 Jan 2022 14:23:03 -0500 Received: from andre.telenet-ops.be ([195.130.132.53]:59906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Xan-0005dn-KI for 52472@debbugs.gnu.org; Mon, 17 Jan 2022 14:23:02 -0500 Received: from [192.168.202.254] ([178.119.10.153]) by andre.telenet-ops.be with bizsmtp id jvNz260093J72EA01vNzDk; Mon, 17 Jan 2022 20:23:00 +0100 Message-ID: From: Maxime Devos Date: Mon, 17 Jan 2022 20:22:59 +0100 In-Reply-To: <87iluijhtr.fsf@gmail.com> 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> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-AVBdv2IGNdjMtrsjIi8Q" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1642447380; bh=bqdG1hE2oaB+0uKEXglo31ODCoLFS1w5Y7XD5NV202U=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=S7NL1dtAZkGWwGt5I7wOWc3KPQR2s3QYviA6SkOpmvlM6QN9cx6JGNc/SBrP9rGqr mPktr2CD6TXpSj/ULz8Kuni/MONbCMQm5cLrQ9iN1pyciEyf0nvfnVOnHIE/J+zKJR u2l6bUCL6Nbo+G6Jq7/aq9Cqo5WRDx2NzqYl0fAEIxQrGsiuuCCL76BJKyioBLfNJi slTTA900IdlHsXHZ9Y5qRlmxeh84mbuB0LpUu5e+za73QZ3oQkGfxOr2uH/WaW8LT1 aUmkySynqCZz3zeF0l9fZGipVSGLJF3KmHNkAOpYJDyFQZvNV0gSc05SLnSmQa02/E ORt4r57WDq1Pg== 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=1642448037; 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=bqdG1hE2oaB+0uKEXglo31ODCoLFS1w5Y7XD5NV202U=; b=D5t8ELvencdqyQhDGIbs33NyfuKhb4UAm0Zxn3YID2YlW5PixErCtzmb1UOM/rq1TgDkRo 6upu7POgfeM8eNT97Ai4QOvxeaYzrJa0Bz5y+l77qNh5eCSrYys4MYOHP130mgXl7wRb9N uc8WYsz49jsK7sP8zaAocCtqL39GEEgZjPzuc3Rm0qroNFzEzy9gc/gPWgXcsvNCvr7vJD WQ8niG0lB172L2+t9gWXj8RjbgphwD6JIFm26AD/cHC2EhlT5Mu8ubxBFCssKjUNy80Dp1 T8lWCh/TcuBN6jcuQ947RLPkmdXI1qneLChrFpSpQqVuP6SKZwF4UEPgQlU2yg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642448037; a=rsa-sha256; cv=none; b=dqJEGfn5vLdZjuU4YRa7ydrKzMExRXKfbO6vfFLnG+U8CBA6HxzVzpJTx1vmc4wJdznmTd i9z1KmGsmerhO0KyFMbHY6Ak42PVhClUY+iQnbNlVq0XX2jqAHUliCucxXys190RiGhEJR XpQSbZSCzCDjZqxYx3kmiELF3tIrE/8BfnyKEKQNYV9UYfkS8NeOLoJyv/T+yPos3IXsmC 7EYrD7tk8hblDBYzdNGJzUA6Xh88RqTrn+velXlV/yOGjCu4tiNHDOBHE/5eg2SAM6DFze bqflxP7FT3B85sfSQlSiTH6FYrgHszSaIFYi5RNQfAUV0ByduxJ9Ha+QXBArMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=S7NL1dtA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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: -2.72 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=S7NL1dtA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (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: 5E39B1B836 X-Spam-Score: -2.72 X-Migadu-Scanner: scn1.migadu.com X-TUID: U+8NYA6Dsv2u --=-AVBdv2IGNdjMtrsjIi8Q Content-Type: multipart/mixed; boundary="=-LOQTlq7ZD35xIJ3t+goF" --=-LOQTlq7ZD35xIJ3t+goF Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Artyom V. Poptsov schreef op ma 17-01-2022 om 22:14 [+0300]: > [...] > > Guix doesn't do staged installation >=20 > Unfortunately it seems to me that libtree fails when I remove > '(string-append "DESTDIR=3D" #$output)' from the make flags. >=20 > The reason is this code from libtree Makefile: >=20 > --8<---------------cut here---------------start------------->8--- > install: all > mkdir -p $(DESTDIR)$(BINDIR) > cp -p libtree $(DESTDIR)$(BINDIR) > mkdir -p $(DESTDIR)$(SHAREDIR)/man/man1 > cp -p doc/libtree.1 $(DESTDIR)$(SHAREDIR)/man/man1 > --8<---------------cut here---------------end--------------->8--- >=20 > As you can see it's using 'DESTDIR' as prefix for the installation. SHAREDIR is set to $(PREFIX)/share in the Makefile. It seems to work for me, the attached package definition builds and the store item has a man page and a binary. Greetings, Maxime. --=-LOQTlq7ZD35xIJ3t+goF Content-Disposition: inline; filename="libtree.scm" Content-Type: text/x-scheme; name="libtree.scm"; charset="us-ascii" Content-Transfer-Encoding: quoted-printable (use-modules (guix packages) (guix) (guix git-download) (guix build-system = gnu) ((guix licenses) #:prefix license:)) (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))) libtree --=-LOQTlq7ZD35xIJ3t+goF-- --=-AVBdv2IGNdjMtrsjIi8Q Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYeXCExccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hxRAP4jExD4FAtUPpQTAeAsnFg8PHWF RWkWycZKd2JfEiXbbgEA0I59TSt/rUKqxgargwwVsdqiB5a8luqVeKc/d+o1kgs= =YBWU -----END PGP SIGNATURE----- --=-AVBdv2IGNdjMtrsjIi8Q--