From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id AAmKCMEuDWODbwAAbAwnHQ (envelope-from ) for ; Mon, 29 Aug 2022 23:25:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cHfAB8EuDWMy8gAAG6o9tA (envelope-from ) for ; Mon, 29 Aug 2022 23:25:21 +0200 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 BEE1ACE7C for ; Mon, 29 Aug 2022 23:25:20 +0200 (CEST) Received: from localhost ([::1]:39846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSmFz-0004pQ-HD for larch@yhetil.org; Mon, 29 Aug 2022 17:25:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSmFi-0004jK-VQ for guix-patches@gnu.org; Mon, 29 Aug 2022 17:25:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44307) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSmFi-0000NU-JQ for guix-patches@gnu.org; Mon, 29 Aug 2022 17:25:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSmFi-0006q5-E2 for guix-patches@gnu.org; Mon, 29 Aug 2022 17:25:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56777] [PATCH] Use absolute path for home activation script. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 Aug 2022 21:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56777 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Andrew Tropin Cc: 56777@debbugs.gnu.org Received: via spool by 56777-submit@debbugs.gnu.org id=B56777.166180825226198 (code B ref 56777); Mon, 29 Aug 2022 21:25:02 +0000 Received: (at 56777) by debbugs.gnu.org; 29 Aug 2022 21:24:12 +0000 Received: from localhost ([127.0.0.1]:34047 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSmEt-0006oT-UB for submit@debbugs.gnu.org; Mon, 29 Aug 2022 17:24:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSmEr-0006oE-QM for 56777@debbugs.gnu.org; Mon, 29 Aug 2022 17:24:10 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:53282) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSmEm-0000Hu-Ca; Mon, 29 Aug 2022 17:24:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=3NaW8pWz3gtUP+VR2/Wnt/bH+q37NtisW8TwNv+Wc2g=; b=LiN1G8qsmBcwNSqY5XnM MF0I00bLMRiQ/Zldrp63FMMNJ6nUred0PiJ6jI4Hw1Ckl4yVNFDPjRv3VmFUcxWix8Pm9HpgyEKYq WOQID6bjoBzsbJIhbCiJAJALhR5yTUKpub1zBRr3Uef2Zoc3KQ+bwyHwHGBf7IdmCyCcBqUgc32XG q9liux92ZVIuuZYFrTRbM2OHoVU1AexECXMvL57V8D/PbN4q7T8vwmaeNJKQCPiN2pysOCKE+Xc1W MmKNt0n+Sv25otNPvOifX2TjcoMCa9fQMPDqX294EYggqj3kUXIoSJXl+z/liAPQa6/Atb4Jvgh4x 86Tb++sydLcgOw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:53935 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSmEl-0004m8-VG; Mon, 29 Aug 2022 17:24:04 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87tu74z479.fsf@trop.in> Date: Mon, 29 Aug 2022 23:24:02 +0200 In-Reply-To: <87tu74z479.fsf@trop.in> (Andrew Tropin's message of "Fri, 14 Jan 2022 09:16:32 +0300") Message-ID: <871qsy68wd.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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: 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661808320; 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:dkim-signature; bh=3NaW8pWz3gtUP+VR2/Wnt/bH+q37NtisW8TwNv+Wc2g=; b=VSo++CNj9BB5O0MC36XdwcxAkZuoij0FPpF9WHsJ7DMqSS5lvLA7oJ5kpfHnPKVM2vNDHl G2aNCcLna86t3AlR5BF2fGyiVynDixlfjPhzfGtwCncOsG0q90CpR1DUJf/Gii6KB5AC8Y poSZXlZYwWHq/0yuyVSutIdajO+O5i9csPSuGDtCnZFDz4absF/lhsjfHIRVOe0/1xvZyC tW971Q4+XSEsk12oye5Fdmh91oKuZOOo6+g4qVWzsQAdF7FfN4Tty375yubZ3JI0eLCRZW v2eNPuJtNVr8fogz5lCvENePbIIyIKNXuExQkXbULoxLWDtxNPq/FgEsCzmiMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661808320; a=rsa-sha256; cv=none; b=EvbjRzkdrwN/6deNvenPNEADPAx4cVC5jCul2+6FxyjEEh5SC+Rq2Eos2TGweQjJaTipAF WAEf5Nnpm1gdAovlwqbwUAvQOgWt4GuNYUd9JPwnx2IpgDHraumCsMrSWgL977kJw9/Fmy jswTzrv/0XP27hXvp/pAOfZzYxeRyLsxFBXYlSWnFfoXhsJzQJUtHZzV5OJpruB0E8WUe4 i/ZU/l1nBSyvC68s5I9MQm0L95aAj+zrvjqIYtZKKqiRXy44FyDtwQMnu76oOWMFO9rN5A CFeWdKxSipMAIyhP/6a3qqvlovBaFEo+CbNK07WDcMiM6Tcw/rkj7ApDNWRQ3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=LiN1G8qs; dmarc=pass (policy=none) header.from=gnu.org; 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.20 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=LiN1G8qs; dmarc=pass (policy=none) header.from=gnu.org; 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: BEE1ACE7C X-Spam-Score: -2.20 X-Migadu-Scanner: scn1.migadu.com X-TUID: OzrXLdu8nBvR Hi Andrew, Andrew Tropin skribis: > * gnu/home/services.scm (compute-activation-script): Use absolute path for > home activation script. > > --- > gnu/home/services.scm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/gnu/home/services.scm b/gnu/home/services.scm > index b05ec53e2a..6d5e4308a0 100644 > --- a/gnu/home/services.scm > +++ b/gnu/home/services.scm > @@ -418,7 +418,7 @@ (define (compute-activation-script init-gexp gexps) > (new-home-env (getenv "GUIX_NEW_HOME")) > (new-home (or new-home-env > ;; Path of the activation file if called inter= actively > - (dirname (car (command-line))))) > + (canonicalize-path (dirname (car (command-line= )))))) Just wondering: what=E2=80=99s the rationale? This is harmless-looking and perhaps it=E2=80=99s all fine, but IME calling =E2=80=98canonicalize-path=E2=80=99 might sometimes paper over problems rel= ated to file name handling. Thanks, Ludo=E2=80=99.