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 oBcyLxlCzGaqSwAA62LTzQ:P1 (envelope-from ) for ; Mon, 26 Aug 2024 08:51:37 +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 oBcyLxlCzGaqSwAA62LTzQ (envelope-from ) for ; Mon, 26 Aug 2024 10:51:37 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pelzflorian.de header.s=key2 header.b=jg3plJtj; 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=1724662297; 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=hKesEp7VTr0tnHCL5y/XkFINVJv9RLzdnOin/6RuXWc=; b=iI3JdhI1gtW3usDKdMCPhmoJ5RZUP2LWo+HvkQDeber2CmuerdOv7072oCuB2fwNRl5MRa Y2s1b95G3lAiuKjbni3cp0u6JZDjk+q9syAtF7GJjcxUtRxS4TC7ruUhsiZ2Hx8+dqRJmJ dfd+5ljMwr+Ig7P/Mlx+siuAkUFdRDuVTPEBzT92pvP2pxXIiHFvTzooGQ6cGwvqOfxYIW oee0rMeet9ltYdGoIA/q4jQVCh6tKUz4fsiicmLGlWRL3GSLQgNX5Cx6S9EifzJanmIcVm 01aI7ok+sfNddv0XmkfXkKDZniSkGhTN3nwtJek60N/U+QfwDpZ4fZKfYXzz4w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724662297; a=rsa-sha256; cv=none; b=HRomsDYL61K5ioxqHsOwjAV+eVTNYJA9hBRA7SBbDH4rVTpbWf86mtVClzqJIyCHletUuV msh75nr5ViSe/0xJ1DnKQtvNbRpo6NEJbfMsVNC1qj4fQ+n4tnVCvnOO9yKc7D5vzgrFam E06S3vrXHr2YrYfKtpatCDXsbK0nzU+7sx7Y50Uho1C1yGPiC21Ve2BZZwPR0q442Qd3qb gwcc3o8xJhl/BqttndQp+eCmojDpu8vMK1KgW8Ty+UfiIj28OC3DAS2wcYdHIB5yL4dPvl w+eWsNLHa1B7XWwUYwhZCtTT8sENoPFRwITybCZZxpoZZ/lJi/lOuxomVCtgXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pelzflorian.de header.s=key2 header.b=jg3plJtj; 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 845E768AAF for ; Mon, 26 Aug 2024 10:51:37 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siVRF-0008Ih-DX; Mon, 26 Aug 2024 04:51:01 -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 1siVRD-0008IH-HB for guix-devel@gnu.org; Mon, 26 Aug 2024 04:50:59 -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 1siVRB-0007Jd-C5 for guix-devel@gnu.org; Mon, 26 Aug 2024 04:50:59 -0400 Received: from mors-relay-8403.netcup.net (localhost [127.0.0.1]) by mors-relay-8403.netcup.net (Postfix) with ESMTPS id 4Wsksn30kdz81k2; Mon, 26 Aug 2024 10:50:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1724662253; bh=/jT0sUGQY9LX5FYpgCPfMBY7rhmwBtS19P9rqcgjCbo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=jg3plJtjaPPi8HaV7RzyIH+Ds+rx3P1m/iPyyGo9pKzrX/nglxppTB+3upmTSwrfM AhAL+1tXJLptePG0/E6PyGwAvmHE3izWuSzKLNnDL3Qu0rv73vjwSfdK9/VLEJSDEu pbrlpOnRczo0LeiquQGjptHTH0wd6+FC9fM2tNZEJRo2SSOdHQvlcFAfXA0j3bsL9w eiRksKPxSsSxHm4XJcd/xeiAJMC62//xx4+vjMYUVv5lPsiS4xYFwSJbf4VHq+0OGp akjwiJS3iLk2Kxq2YeeiFIbA0wICzAldUzJHJiG1N5dK5yFU66L6qekRtn0QsOrPlZ rod8den4vOV8A== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by mors-relay-8403.netcup.net (Postfix) with ESMTPS id 4Wsksn2cHzz81PN; Mon, 26 Aug 2024 10:50:53 +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 4Wsksm5YG0z8svT; Mon, 26 Aug 2024 10:50:52 +0200 (CEST) Received: from florianhp (ipb2186896.dynamic.kabel-deutschland.de [178.24.104.150]) by mxe217.netcup.net (Postfix) with ESMTPSA id 5D78283616; Mon, 26 Aug 2024 10:50:45 +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: <00be7dd1-ca5f-48a2-b89f-acb9f0d9c69f@gmail.com> (Nigko Yerden's message of "Sat, 24 Aug 2024 19:47:59 +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> <87cym0czto.fsf@pelzflorian.de> <5224b08c-90bb-4822-a89f-f6cf1bf8a6a9@gmail.com> <87ed6f5jhr.fsf@pelzflorian.de> <00be7dd1-ca5f-48a2-b89f-acb9f0d9c69f@gmail.com> Date: Mon, 26 Aug 2024 10:50:45 +0200 Message-ID: <87le0jsm56.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: 5D78283616 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: szhj2KV2WlAm9rG8n+0Ko8lHZQl/2H1+/PAwDc9UkI/YeQaEj2bVn7v8 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, 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: 845E768AAF X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.50 X-Spam-Score: -9.50 X-TUID: oDeBhaPzvFvY Hello Nigko. Nigko Yerden writes: > pelzflorian (Florian Pelz) wrote: >> If the configuration or package file is not in the load-path, >> guile-package.scm is returned, absolute-dirname=E2=80=99s other `if' bra= nch >> calls `canonicalize-path' on all but the basename and directory symlinks >> already got resolved. > No, in this case 'search-path' returns #f. But if 'syntax-source' gives > absolute path, then 'current-source-directory' returns 'dirname' of this > path without calling 'absolute-dirname'. Oops. Indeed, your view is right. Still, when would your diff break someone else=E2=80=99s code? They would need to currently use `local-file' or `current-source-directory' to reference a file in .config/guix/current/share/guile/site/3.0, which your diff would break. But this still seems unlikely to me. What `local-file' needs is a kind of current-source-directory. Current `current-source-directory' does a bad job in channels. Your diff does fix this. The compatibility burden is on the channel authors. `current-source-directory' would no longer be bad in what we deem realistic use. Regards, Florian