From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 +HInNqFg4GHCDAEAgWs5BA (envelope-from ) for ; Thu, 13 Jan 2022 18:25:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cCrILqFg4GGZ6QAAG6o9tA (envelope-from ) for ; Thu, 13 Jan 2022 18:25:53 +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 29178CCAF for ; Thu, 13 Jan 2022 18:25:53 +0100 (CET) Received: from localhost ([::1]:47964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n83rE-0003e4-2a for larch@yhetil.org; Thu, 13 Jan 2022 12:25:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n83la-0004vf-KN for guix-patches@gnu.org; Thu, 13 Jan 2022 12:20:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41512) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n83la-00008m-9h for guix-patches@gnu.org; Thu, 13 Jan 2022 12:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n83la-0002Ai-5x for guix-patches@gnu.org; Thu, 13 Jan 2022 12:20: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:20: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.16420943448226 (code B ref 52472); Thu, 13 Jan 2022 17:20:02 +0000 Received: (at 52472) by debbugs.gnu.org; 13 Jan 2022 17:19:04 +0000 Received: from localhost ([127.0.0.1]:34403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n83kd-00028c-Qu for submit@debbugs.gnu.org; Thu, 13 Jan 2022 12:19:04 -0500 Received: from mail-lf1-f43.google.com ([209.85.167.43]:42998) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n83kb-000280-W4 for 52472@debbugs.gnu.org; Thu, 13 Jan 2022 12:19:02 -0500 Received: by mail-lf1-f43.google.com with SMTP id e3so19169489lfc.9 for <52472@debbugs.gnu.org>; Thu, 13 Jan 2022 09:19:01 -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=7rnJ+iYYrj0Tz5pOQv+4ynGo4rBnnq0AxMCB/59+8fs=; b=QB4E6POk6W37rSnGquLk99sVeSF85l256Y8ataMOZUo2YpRIgglJtCD2vj9H/zpm2x YQcS3DZOGy3AEOxGm0fbs3Z/wckDt6IRHOPsBmHk+zrd/DekdbgXj3wfpYjAaYx2cZXm Fx4fYuDjRF48Uu3qPUCeXN7vBZrCFgq9AyjyhidxgtVA2v21bmGcLE/Q0xrkHfBwwMZF s9w3s1lpkylcKQew3VKuogEZPm9WiQpZSyKIBOSAaUos44Z3cUv6V7i81pcezgTcawSa JVDJj8xvV3XnhQRiQ5dprRCiEuaFWLRgII4fdJbhCKQHeTF2mZExxL1nR2yOxwkJ1ltG 8GCg== 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=7rnJ+iYYrj0Tz5pOQv+4ynGo4rBnnq0AxMCB/59+8fs=; b=Le7xvBWu+le3aWSXvy0uPnFD0ssYoeao6YHqECroPuwt6dRXReloCNz6ZRMoC8aNxu y8Lkp1EobCIc8Kez9Q/ItNtAd4x/z3+7z34ZdzpzI0suLeztYMjC0wtzFU309bm63Uje WtxNBmOeeN2uRIYVMo1NI68pF+GqogZwupE2TQEMEHoxJ/W6DfNjBSwxoAx/JD1lW/9B gDfPaeC6Xp2MR0vNm75/xjs6ctO5IJTa6EedrLJBMaH+Ulw970Vbti/f7LOOqYW/1yVV 7uQUMruYacijdAPMO9w+BZFwnsT/1RqKfOKwSKDVViTeptn1lNZ7o8baZ89kGZYy0xta XQyA== X-Gm-Message-State: AOAM530kWi+dAXEZQK+sM5OOKEAzalt8umY5z/6EXQCvre4XnbBDO64S auKiVKFWYaiEqBeBtG3A4OxlofKpWD8= X-Google-Smtp-Source: ABdhPJxTEn186bnNy3P0RfeF9Ly79E7TS6/O3SRxk/NhBKJ4BxA4zPm9o2A+eh3e8goOAdO2S3ImuQ== X-Received: by 2002:a05:6512:11ee:: with SMTP id p14mr3967495lfs.495.1642094335363; Thu, 13 Jan 2022 09:18:55 -0800 (PST) Received: from elephant ([5.164.221.125]) by smtp.gmail.com with ESMTPSA id k39sm344617lfv.150.2022.01.13.09.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jan 2022 09:18:54 -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> Date: Thu, 13 Jan 2022 20:18:50 +0300 In-Reply-To: <2cabbfdeec3e063747dc8f852ec119ffe0cef1f6.camel@telenet.be> (Maxime Devos's message of "Thu, 13 Jan 2022 08:38:34 +0100") Message-ID: <87v8ynk0zp.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=1642094753; 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=7rnJ+iYYrj0Tz5pOQv+4ynGo4rBnnq0AxMCB/59+8fs=; b=OY6ZIS3CNY5XN1hQG9bJmtZMi9Y/ruuDQp3s+p6Fc3oW3QeHgaYippvcEAuSRt66zyEfG8 o+G65WZAdFz+mo16IYi84AcHqZvqSn9TtvWnq7C7hlhxFLrzhA6c82v6Orp3U1h4Yp2xz3 i9tp1FQ/IyhQFcxyPd82yw4xQ9LnbmChsK1QXTseVvNGO3rO8mFNBHlgD3YQ6xDOwzkv+g i+tT7aok1UtsaUVsCc104yfA3GDDze5K2q/5FNhaABCiNXzXjpX/nlMC2T8z+hV8gcIMCx x72oTCtiOlGMx38li90DD8gdaVXpEQ/MVOhT9iKPET95qSRsygf52+u7RBv+aQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642094753; a=rsa-sha256; cv=none; b=N5XsmBPKtfnsHnhkZ+cz19aohmGY4xuTIQgRDKfl1nuaWFnJWmvB9yltX/EgkiwkS/pEzU BYJsKyS4Ai7W+t/dJGYaxkroqGhYZwG7rstC61RIPpzcb/D/iop+pksYe5OihRJ99uRWrn mhUeZc17dgu9Msl/sjaacbrzkk8vc+9oqvrL/49QEYCSGAnciu4H2ltTfF6ZrhQTRb8KbN D9ik6v/9zoGYgtrmnnh5owA8xchRquHiM2RZY/ILdb8DrfrD3sk0cf/F9T+YCGlHcd2d83 ThrMAoTDV3LHk9ZL1rh8vqNAvkoTTIkNvifeMH00rE1hw7XY8PiWkFWWLD7jAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QB4E6POk; 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.42 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=QB4E6POk; 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: 29178CCAF X-Spam-Score: -5.42 X-Migadu-Scanner: scn0.migadu.com X-TUID: QpGeR5ZsmUL1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Maxime, to my understanding some libtree tests (namely 07 and 08) are made in such way that they finish with a non-zero code when they pass, that makes Guix stop during the build with an error. For example, the test "07_origin_is_relative_to_symlink_location_not_realpath" expects that libtree will fail. I checked a compiled "exe" file from a failed build and got this: =2D-8<---------------cut here---------------start------------->8--- $ libtree /tmp/guix-build-libtree-3.0.1.drv-0/source/tests/07_origin_is_rel= ative_to_symlink_location_not_realpath/exe=20 exe=20 =E2=94=94=E2=94=80=E2=94=80 libg.so [runpath] =E2=94=94=E2=94=80=E2=94=80 libf.so not found =E2=94=8A Paths considered in this order: =E2=94=8A 1. rpath is skipped because runpath was set =E2=94=8A 2. LD_LIBRARY_PATH was not set =E2=94=8A 3. runpath: =E2=94=8A /tmp/guix-build-libtree-3.0.1.drv-0/source/tests/07_or= igin_is_relative_to_symlink_location_not_realpath/b =E2=94=8A 4. ld config files: =E2=94=8A /usr/lib/x86_64-linux-gnu/libfakeroot =E2=94=8A /usr/local/lib =E2=94=8A /usr/local/lib/x86_64-linux-gnu =E2=94=8A /lib/x86_64-linux-gnu =E2=94=8A /usr/lib/x86_64-linux-gnu =E2=94=8A /lib32 =E2=94=8A /usr/lib32 =E2=94=8A 5. Standard paths: =E2=94=8A /lib =E2=94=8A /lib64 =E2=94=8A /usr/lib =E2=94=8A /usr/lib64 Error [/tmp/guix-build-libtree-3.0.1.drv-0/source/tests/07_origin_is_relati= ve_to_symlink_location_not_realpath/exe]: Not all dependencies were found $ echo $? 28 =2D-8<---------------cut here---------------end--------------->8--- Yet libtree itself seems to work fine after installation from Guix. Here's an example of the output for a correct binary: =2D-8<---------------cut here---------------start------------->8--- $ libtree guix-daemon=20 guix-daemon=20 =E2=94=9C=E2=94=80=E2=94=80 libz.so.1 [runpath] =E2=94=9C=E2=94=80=E2=94=80 libbz2.so.1.0 [runpath] =E2=94=9C=E2=94=80=E2=94=80 libgcrypt.so.20 [runpath] =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 libgpg-error.so.0 [runpath] =E2=94=94=E2=94=80=E2=94=80 libsqlite3.so.0 [runpath] =2D-8<---------------cut here---------------end--------------->8--- I suggest that we keep "#f" for tests unless the libtree author fix this behavior. For now I opened an issue for libtree: https://github.com/haampie/libtree/issues/65 Thanks! =2D Artyom =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----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmHgXvoACgkQ6cWi2QiY oC8OyQgAhNrVBG2WukYe0cGyCF8h9yILROEDfdXDIMOBcWYMbcur9IjWiyNmvQI5 ZDSg1Tpw8AMPwuaVNSxQ2y7CmRxtgSAMRzO2ljdmFbLuQxGE+ZoHGr2It22bB1zr lu8u1s98yri84fl/V6wIBNEwkop73UvPGoqVZrZhlUMCvUx+pUKGK5S0Dm/tLW2H OQ0HT4OQkkcu1JH9AxrEWurQcXg0IQAI5xe/VJUqAtP3OCobd7ujOiOicVSEhxGo 466XlzYy7xyDX9EYN6Vszl4XDh7VUmKMHyOTj1AD/EKQs43sl1+FCXt/Ma6vBpu3 f9tOMQil4RBEVCmjRaVpQa5MImQBKg== =pIQB -----END PGP SIGNATURE----- --=-=-=--