From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IKw1OvFgx2amqQAA62LTzQ:P1 (envelope-from ) for ; Thu, 22 Aug 2024 16:01:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id IKw1OvFgx2amqQAA62LTzQ (envelope-from ) for ; Thu, 22 Aug 2024 18:01:54 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pelzflorian.de header.s=key2 header.b=WF1G4JT8; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724342513; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ojcsQJ4Etcy5lM/WR+TmpoaD8TGD4fNllPgWdfxPM9E=; b=mUtYA9Oe06Fdz1cllqEhDMAvCvMyncnISiFtAmNYTIJSPl/8r0+vcgix8rBTP/QYvrKfMM pLC38VKHoP3FLT9qcmEkqQfHkKBI1S4umAHvKtH8tJEi8fJDIUEUcJZ3bccG15NoKQsT4f Ufif6k43SMRCkskdthqLSkQb13JGyct/JPBtI/LdNHdYguQP+W65lWyOHSo2zThGq9JSOp 9mB4N7NZltdUdU0yxlf1Gn8dQCLbO4oAaA1liDPVnhPU+B9xK+6QtF/k2/BFWrRVBaC8MQ Py9IzYnTvy0+zwSu3kJ5zPjJVUbUhm3V32iXUYNjUP1FxduMpUe/R9L3sPnVAQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724342513; a=rsa-sha256; cv=none; b=JSNlVRLFZ1ij6CyxUV2QVeQigTnshPG7vfPcTcB2zi93kHrHn/RvKQ0dvfjcKzBZcXrmwB rpOBj+oTCRaBR5sP5HBb7STlOkh8Lo1a+loFnA2C68oBXJHSIDGpcd/G+hHDXnA9WtO6W+ dPpq7q27Gl7EaOeqZJiodYrmeFmQUymISQC+tl4J2NXw9iHHeNFFuzN2kyxCB9eeqsQC1I axRBFQhgS2lUuTetd1j/j/lAVth+P/6Kic7RZM8SY19ztu9Vb+4lwIGKw16pPq4WFj04qe 3rJZ+KRJQpJSI4rMMOc9HY2TAqNoCpY2Oc6o4FEqHkRl0hkQtzhsw9gRiXpJFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pelzflorian.de header.s=key2 header.b=WF1G4JT8; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" 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 A503635A57 for ; Thu, 22 Aug 2024 18:01:53 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shAFC-0004Qb-3E; Thu, 22 Aug 2024 12:01:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shAF0-0003ym-KD for guix-devel@gnu.org; Thu, 22 Aug 2024 12:00:56 -0400 Received: from relay.yourmailgateway.de ([188.68.61.103]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1shAEx-0004Gd-6X for guix-devel@gnu.org; Thu, 22 Aug 2024 12:00:50 -0400 Received: from mors-relay-8403.netcup.net (localhost [127.0.0.1]) by mors-relay-8403.netcup.net (Postfix) with ESMTPS id 4WqSbb0Q24z81Ft; Thu, 22 Aug 2024 18:00:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1724342443; bh=ILr0Z+P/BysiAkmyi8R+RQv814fYtwMmOtA5bd5wdZQ=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=WF1G4JT8P88/zLxPTZNAtxodqOSUgaUPYA13esCxq4zJVbVyXLvY6t404dX1H6tmx +3opk1kKNuf7aVD2xebo5cX2yAC4hZJ77Bs+LUa8zcrvup8suYu4Osb92xBbIKChLU q3/OFS/h3z7Ypt/zBXKSodxh0gfhdLCACTdWxXax9DjYq6jgTuRJ6NGaAX8NqEtkeC Q7+VN3EE6C769vdlotRawz6cJ7xtRV1nubp5xcCEU4u3LzH5Ukytl+C0zeTO6W/7XT DC5DgaZQ/9ZS5MvplbukhLR5V1j9Ehs9uw4UvLbBqtrg3HgvMfn7R8guSOKDtW7YCC XtAMgJOK/g/rw== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8403.netcup.net (Postfix) with ESMTPS id 4WqSbb01W7z81FW; Thu, 22 Aug 2024 18:00:43 +0200 (CEST) Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy02-mors.netcup.net (Postfix) with ESMTPS id 4WqSbZ39Jzz8sZV; Thu, 22 Aug 2024 18:00:42 +0200 (CEST) Received: from florianhp (ipb2186896.dynamic.kabel-deutschland.de [178.24.104.150]) by mxe217.netcup.net (Postfix) with ESMTPSA id 2B7CB8410F; Thu, 22 Aug 2024 18:00:36 +0200 (CEST) From: "pelzflorian (Florian Pelz)" To: Nigko Yerden Cc: Attila Lendvai , guix-devel@gnu.org Subject: Re: Cookbook recipe from "The Repository as a Channel" section does not work for Guix with properly configured GUILE_LOAD_PATH In-Reply-To: <26f24821-13e6-4afe-82a4-57cf60bf2064@gmail.com> (Nigko Yerden's message of "Thu, 22 Aug 2024 14:53:57 +0500") References: <63d4684d-7e8e-437b-91f5-ce20607ab882@gmail.com> <87ed6sebdp.fsf@pelzflorian.de> <4d2eb8d0-1bed-429d-a99e-a1ea182dec1c@gmail.com> <87ttfotjw1.fsf@pelzflorian.de> <87cymbyv57.fsf@pelzflorian.de> <87y14yq4wm.fsf@pelzflorian.de> <6fe218cd-2995-4d46-ba5f-3e262b730faf@gmail.com> <87sev1qzxm.fsf@pelzflorian.de> <8e565865-b601-46df-a4ce-2635f24151ff@gmail.com> <87ttfgwbvk.fsf@pelzflorian.de> <07bd739e-2444-46e3-beda-ff853b34f2cd@gmail.com> <87bk1np2a5.fsf@pelzflorian.de> <87bk1l88sx.fsf@pelzflorian.de> <26f24821-13e6-4afe-82a4-57cf60bf2064@gmail.com> Date: Thu, 22 Aug 2024 18:00:35 +0200 Message-ID: <87cym0czto.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 2B7CB8410F X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: teewUYKy+UYyBTE75TBVw2Cpu3+RiVnAS7JnIJK+B334RZwHrymEw/Au Received-SPF: pass client-ip=188.68.61.103; envelope-from=pelzflorian@pelzflorian.de; helo=relay.yourmailgateway.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: A503635A57 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.50 X-Spam-Score: -9.50 X-TUID: IXRkZbo8u3DS Hello Nigko. I should have been looking for agreement from the start, and now with your statement of the problem, I concur that without the current implementation of `current-source-directory', it is hard not to follow symlinks. But then again, the current current-source-directory already does follow symlinks in nearly all cases, even in configuration files, except apparently when called in weird ways like local-file, maybe because of Guix=E2=80=99 code staging. It is not consistent, but actually I do not know why `local-file', when calling `absolute-dirname', takes this case of `if'. > Thanks to Attila there is another variant [2] which leaves the > directory structure intact: Documenting this work-around is not enough; we would have to also document the rationale that local-file is weird and inconsistent, because current-source-directory is weird and inconsistent. I believe making local-file usable with any symlinks is better, and changing absolute-dirname used by current-source-directory achieves that. The other alternative is making local-file not use current-source-directory. > ('channel-dir' is a macro instead of a variable, but I don't see any > real benefits in using macro here) Yes, macros are not necessary, because syntax-source, as used by current-source-directory, is not necessary. Why does current-source-directory use syntax-source? Perhaps it works even outside modules. Another reason against the other alternative. Regards, Florian