From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0NmzBmj2l2CjBgAAgWs5BA (envelope-from ) for ; Sun, 09 May 2021 16:49:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2OpEAmj2l2DybQAAbx9fmQ (envelope-from ) for ; Sun, 09 May 2021 14:49:12 +0000 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 6B32FE702 for ; Sun, 9 May 2021 16:49:11 +0200 (CEST) Received: from localhost ([::1]:41950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfkk1-0003tM-FC for larch@yhetil.org; Sun, 09 May 2021 10:49:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfkju-0003tD-LB for bug-guix@gnu.org; Sun, 09 May 2021 10:49:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44150) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfkju-0007Ps-Dm for bug-guix@gnu.org; Sun, 09 May 2021 10:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfkju-0000Jb-CM for bug-guix@gnu.org; Sun, 09 May 2021 10:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48313: [1.3.0rc2] =?UTF-8?Q?=E2=80=98guix_?= =?UTF-8?Q?describe=E2=80=99?= prints nothing and exits with 0 Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 09 May 2021 14:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48313 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48313@debbugs.gnu.org Received: via spool by 48313-submit@debbugs.gnu.org id=B48313.16205716891186 (code B ref 48313); Sun, 09 May 2021 14:49:02 +0000 Received: (at 48313) by debbugs.gnu.org; 9 May 2021 14:48:09 +0000 Received: from localhost ([127.0.0.1]:55693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfkj2-0000J4-UW for submit@debbugs.gnu.org; Sun, 09 May 2021 10:48:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfkj0-0000Ib-KW for 48313@debbugs.gnu.org; Sun, 09 May 2021 10:48:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34934) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfkiv-0006pE-Cd; Sun, 09 May 2021 10:48:01 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=57274 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfkiv-0005lM-36; Sun, 09 May 2021 10:48:01 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87pmy06kny.fsf@inria.fr> Date: Sun, 09 May 2021 16:47:59 +0200 In-Reply-To: <87pmy06kny.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Sun, 09 May 2021 16:34:09 +0200") Message-ID: <87fsyw6k0w.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxim Cournoyer Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620571751; 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: content-transfer-encoding:content-transfer-encoding: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; bh=qkaf5EDeKjtYPtolf4IxX/Uxge9je923Za4tpN6R5cY=; b=HKuAzvNOYr87K+/AP+a86qvCXK9sS8Y6Wxv6W3YGgxo4dt6BdiJjHI1z5HSffkyTwYN4PL sYWiH05gGK8WjbcllFIvR6N5ukSOPikhcyG5wDugvTLCtEDVXrGzbYy6EXdhu+MQdYjNvB qWJUDvVxIYnSW3iysI4D6/1jKq4u5OFGgMgyDe0dZCKGca4XN6PH5WnkeYK98WhcZakDhK PScFZWsRGmE3FnI5kJjaJKAEbdTxthdI/zoUI18xtOBKeEonNZIx58+KJ8Clj9pDCr8uK8 SXKdiBBKR6372SiUgCmdqnEyNcu0GCzT36wQHMerze5ggqJMZh8sXHA8XPd7CQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620571751; a=rsa-sha256; cv=none; b=Jenag0nZz9Ogi7gpqmUtn5NNt3bh/zYCwrjY1Egwkch1T4j1NaZRemovn3Uwc131Cpv/4j CGDgHRmjVr/sHfmyVNTXTy0k+9dUU3Ys6+NM6TMlVI1yDlflzW/Ye50Cd/o15Q1W7m3ko1 9PVLRoXXSYpfhYG0rxL798Ksh5HG+RredtZ19UT33P1sEVo8opvPrW58l+A66BkXAN9PJi erIqv5cTCcq2tPtDItYe+ajOoDHsreyk7NcO2ISgz0ovJH1D+lRRjZUGXqpkY4DMuXHUAG 01fyPcaS9s8ExWLhlL20aocko3qia093EG1KcZjfoylzU8vj+dokfZFu0yqsfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.95 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 6B32FE702 X-Spam-Score: -2.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: 2LpvtOD4rJ1B Ludovic Court=C3=A8s skribis: > In the 1.3.0rc2 VM image, =E2=80=98guix describe=E2=80=99 prints nothing = and exits with > 0 (success). This is with /run/current-system/profile/bin/guix. > =E2=80=98strace=E2=80=99 shows that it parses /run/current-system/profile= /manifest, > which does not contain provenance information. In RC1, =E2=80=98current-profile=E2=80=99 from (guix describe) returns #f. Thus, =E2=80=98current-channels=E2=80=99 returns channel metadata from (gui= x config). In RC2, =E2=80=98current-profile=E2=80=99 returns /run/current-system/profi= le. Thus, =E2=80=98current-channels=E2=80=99 returns metadata from profile entr= ies, but there=E2=80=99s none. The different =E2=80=98current-profile=E2=80=99 behavior stems from this co= ndition: --8<---------------cut here---------------start------------->8--- (define current-profile (mlambda () "Return the profile (created by 'guix pull') the calling process lives = in, or #f if this is not applicable." (match initial-program-arguments ((program . _) (and (string-suffix? "/bin/guix" program) ;<------ HERE! ;; Note: We want to do _lexical dot-dot resolution_. Using ".." ;; for real would instead take us into the /gnu/store directory ;; that ~/.config/guix/current/bin points to, whereas we want to ;; obtain ~/.config/guix/current. (let ((candidate (dirname (dirname program)))) (and (file-exists? (string-append candidate "/manifest")) candidate))))))) --8<---------------cut here---------------end--------------->8--- Prior to c47f3fc13562d82edfd2d47342574154c452843a, PROGRAM was =E2=80=9C.guix-real=E2=80=9D (hence the #f return value), but now it=E2=80= =99s =E2=80=9Cguix=E2=80=9D. Ludo=E2=80=99.