From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iIUuCtNowmacSAAA62LTzQ:P1 (envelope-from ) for ; Sun, 18 Aug 2024 21:34:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iIUuCtNowmacSAAA62LTzQ (envelope-from ) for ; Sun, 18 Aug 2024 23:34:11 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pelzflorian.de header.s=key2 header.b=jWj7rNhs; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724016851; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bIdBct1TUDLte53kUBkGdeAZpGYbNrwP9bzRxHpjgsU=; b=uX5jd9DH9TVg8K7wkiT/ud057fgX4TQfZF/cUMS4xV/HAIIlMLB8J5eGU5awTdwuO9M7J6 VZpn5CvvO9E/Nm805SECyNtaZhfQdYJm5348jw+38zcg/6704cCRSLSCHHbqQPKH2VnNoW 3nUDj3o/JzBeZSaVwr0UY7ImogbeHJhT5kx/7oAAJ3CTEgg0NeV3dWVVzhM/Xz7m3A7gI9 rhOJp4gqSiEETK7qOYssUONWMHYMm9ZRbliNNcvFoPvKjYVWASw0y3kuHLh98KJdelwsw9 b3/+YP+Aqa/r7Qi+rlmEtb+9p2zDxAXQxoqj4N4l6Fx7xJap6E7LMZvwmDxAiw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=pelzflorian.de header.s=key2 header.b=jWj7rNhs; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724016851; a=rsa-sha256; cv=none; b=LTSE+mNqhZTX+3hVOWK4wQ5xuZNkZrJa6SqzFaIsY916W65sxZsbUCEUrrniVnnLUWgjD9 6NnYRmBgarKk+6jdiR8tMnpf4HhEZGgW6taHhl0SlxNbXWFi2uvB72v7bfHzB2z6LG+ik9 A1Ntn754B1+fHVO2uMXF7+k7nrHFAF4XwPZZcHwsb8fdFxAcZIYmhAcgMSTgFT4qcrHKOS FPaUgDX07a2mgSnH2ZNgG3Jcc/Jnk9sANV5ByuRmRlquFBQ6hHDIMX+reJk7O1lSQNYg3m /WLdFNEptRFGrkTS78z7lSYmjnnkZG/XObs00wu7PbsE760fGMEyh8t+EFmXew== 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 ACF617A16A for ; Sun, 18 Aug 2024 23:34:10 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sfnWg-0002YY-9f; Sun, 18 Aug 2024 17:33:26 -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 1sfnWe-0002Y6-4h for guix-devel@gnu.org; Sun, 18 Aug 2024 17:33:24 -0400 Received: from relay.yourmailgateway.de ([185.244.194.184]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sfnWc-0007sg-3i for guix-devel@gnu.org; Sun, 18 Aug 2024 17:33:23 -0400 Received: from relay01-mors.netcup.net (localhost [127.0.0.1]) by relay01-mors.netcup.net (Postfix) with ESMTPS id 4Wn8982Bw2z8ynG; Sun, 18 Aug 2024 23:33:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1724016796; bh=Ilvh3rRLqmJeCgCZEvlxlGXTvipvkpXkHcgs4RAMoBU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=jWj7rNhsex8Eew2uNn6p0q3GBTlvBcYt7F1BBhhYIfpQ6rPETpRFBpTO4DBhhz937 ZDxJFyGdVI8NqkacynZpHBPEUqUI7mDUgQktUGtsLJUAlz+eGEAlvWmC/WCqL79TEf 7bu7lliXfGzjyKRRzegpJHuJD9uhUaztjvZ3wzNEkA/EZNmi6K1eICRPAyVwC5T4Bg K0gZD0ouI6jnS04hgB41r5EuZV/Sk5RGUT4Fb10ikjqWJjJDKvoXZrksY1LdGb1wZk kH86g5a5OWkq3xABwMFrzIq/Kf7FO7kl564c/WVqtoQFrC6mlvz08Roh6A8S16O+v+ xChiPZPvwCu8w== Received: from policy02-mors.netcup.net (unknown [46.38.225.35]) by relay01-mors.netcup.net (Postfix) with ESMTPS id 4Wn8981WdMz7xm5; Sun, 18 Aug 2024 23:33:16 +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 4Wn8976M22z8sZh; Sun, 18 Aug 2024 23:33:15 +0200 (CEST) Received: from florianhp (ipb2186896.dynamic.kabel-deutschland.de [178.24.104.150]) by mxe217.netcup.net (Postfix) with ESMTPSA id 8E0BF84057; Sun, 18 Aug 2024 23:33:09 +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: <6fe218cd-2995-4d46-ba5f-3e262b730faf@gmail.com> (Nigko Yerden's message of "Thu, 15 Aug 2024 09:11:33 +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> Date: Sun, 18 Aug 2024 23:33:09 +0200 Message-ID: <87sev1qzxm.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Rspamd-Queue-Id: 8E0BF84057 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: lnBPP9PWKMw4YBQXburQM5VAhIAVRPNQtD9kiV3BGY8FoGnZlm5KeuSn Received-SPF: pass client-ip=185.244.194.184; 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, 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -9.49 X-Migadu-Queue-Id: ACF617A16A X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -9.49 X-TUID: h5YYfSSTw7d8 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Nigko and Attila. My current belief is that any `local-file' referring to outside the .guix-channel directory cannot work in channels in all situations. (Attila=E2=80=99s hashes files are inside guix-crypto= =E2=80=99s .guix-channel src directory. They are fine.) At first glance, Guix is faulty and does not respect all symlinks in `absolute-dirname'. The following diff should be applied to guix.git, to resolve symlinks before computing dirname, not after: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=diff Content-Description: guix/utils.scm diff --git a/guix/utils.scm b/guix/utils.scm index d8ce6ed886..322c9457e4 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -1124,7 +1124,7 @@ (define absolute-dirname ;; needs to be canonicalized. (if (string-prefix? "/" file) (dirname file) - (canonicalize-path (dirname file))))))) + (dirname (canonicalize-path file))))))) (define-syntax current-source-directory (lambda (s) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable But this does not help with the cookbook=E2=80=99s guile channel nor Nigko= =E2=80=99s test-repo, even after repeatedly pulling a guix channel with this change. I might misunderstand .go compilation and whether macros are evaluated at compile-time. But maybe the error is because `local-file' is relative to the current-source-directory from which the .go file was compiled. But the .go file was compiled from a directory union that does not contain the source code, it only has the modules directory listed in .guix-channel. Only when the pre-compiled .go is not used, the source directory can be found. (Am I on the right track or mistaken?) /var/guix/profiles/per-user/florian/current-guix links to it. guix gc --referrers and --derivers show what is built from what. Maybe I misunderstand. Maybe the channel build system would need changes. In particular, $ guix build -S guile@3.0.99-git never works no matter the load path. Regards, Florian --=-=-=--