From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id gO94MCuypWOXOwEAbAwnHQ (envelope-from ) for ; Fri, 23 Dec 2022 14:50:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qEu0LyuypWN9/wAAG6o9tA (envelope-from ) for ; Fri, 23 Dec 2022 14:50:35 +0100 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 27D10135B4 for ; Fri, 23 Dec 2022 14:50:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8iR2-0003K2-7z; Fri, 23 Dec 2022 08:50:04 -0500 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 1p8iR0-0003Jg-FY for bug-guix@gnu.org; Fri, 23 Dec 2022 08:50:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p8iR0-0002cY-6W for bug-guix@gnu.org; Fri, 23 Dec 2022 08:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p8iQz-0004on-OV for bug-guix@gnu.org; Fri, 23 Dec 2022 08:50:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#58250: guix import json: GUIX_PACKAGE_PATH -- no code for module Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 23 Dec 2022 13:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58250 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: itd Cc: 58250@debbugs.gnu.org Received: via spool by 58250-submit@debbugs.gnu.org id=B58250.167180339218509 (code B ref 58250); Fri, 23 Dec 2022 13:50:01 +0000 Received: (at 58250) by debbugs.gnu.org; 23 Dec 2022 13:49:52 +0000 Received: from localhost ([127.0.0.1]:37115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8iQq-0004oT-76 for submit@debbugs.gnu.org; Fri, 23 Dec 2022 08:49:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46818) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p8iQo-0004oN-1p for 58250@debbugs.gnu.org; Fri, 23 Dec 2022 08:49:50 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8iQg-0002ah-UX; Fri, 23 Dec 2022 08:49:42 -0500 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=io4BpLHbF9ZnzGrsleBfqAuBuyGemeuSc5h7CxYMzlg=; b=JRKsFH8Z2WlKXAsouV2G uLgSpHnBhso5N5m30znjqPJ4L/y4/jyGicw2KRUeurr8H9ptkUa+JVYqnLIHHj8bOQ19oTfsCbSU1 65zixgSD3lf18+07aWhCVvAazQTzpnE2Kt8G4iBmnjLNY4COkmKqym8YVpPK8wnZVQN570L1GCg8Y tIWjDoJOJsqhhKQUJEqZ2aMRMOlHnRTY6e7jsjYJCoTmQyZHpeWZz4GsuyLTcl4lYxAPAf1dffSDU 1hKvoWGuhXp9yxeohNjwHS4kt+6jM2Ij83TfWUZ/hWxp3RXyfYxx4hwANBB5HNo429sxOIkOX84Qy Bxej5quZzOBptg==; Received: from [193.50.110.60] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8iQg-0003hP-9J; Fri, 23 Dec 2022 08:49:42 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <871qrqfgiq.fsf@localhost> <87y1tye1je.fsf@localhost> Date: Fri, 23 Dec 2022 14:49:40 +0100 In-Reply-To: <87y1tye1je.fsf@localhost> (itd@net.in.tum.de's message of "Sun, 02 Oct 2022 16:35:33 +0200") Message-ID: <87r0wqz0uj.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671803435; a=rsa-sha256; cv=none; b=ltFscs6iRpMqJHKaUSP5zxHaZM2Rq2gdkBR9KR8kHbXq5qQ3WtyNkZj/gw2Debtu+dhZOF xCf1EtZzg4NK5ZemurEkdJPry533WPt5USTqm756G+5N2VBMn8WzHQRu3XBr197P7jMTvH UVM+0Qi7uiJXOpNOOd8sex9Qtmcm4u1TDfpIwuRnbnWaR/po8q8zvZIYDCoXGkI+tRYs5n DJico6oqs7oziy4QGqJo1EyJGM365wbOdKQNzUxHbb61t+YQIP6oGToFbU/58c9tR/KeTb q365azKtMj2Te5Ncgpbt4HdkEPyx0VZpgPog244ZYpk32pfAU+ISTVKILjVkyg== 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=JRKsFH8Z; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671803435; 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=io4BpLHbF9ZnzGrsleBfqAuBuyGemeuSc5h7CxYMzlg=; b=uvtClpQ69NKu3Ela4jU5V/tyYT6iJ7qzIxKnDEt9VtNXf2RKXdY58ySDjVXbQ5okWqpb9w OWgfjOHqGC0xryNaUAD4HHTEqJs7ovmul/jYwVz6hsNlCefeYT/WWui7YMR1tsTVpQPl4w bEqzlZcKMmUf7S1v4MFj6BE2wWHR7gm8TGbfr81dsVfLQmo8TVx2XM1Ij88X1MfsUDIaTx ptcT0S3NPagOmUrnNW2L05WprnMTbD5P/s5l0x6jtPwzZeMqaJYENaFj8Slf21IkxECTvQ 77Z+fxKJRYdBWDXnzRRL4CPX+j4+e9/VaPHU9i6zyFQGjMdgDwUmZeQOJ1Jf8A== X-Spam-Score: -4.51 X-Migadu-Queue-Id: 27D10135B4 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=JRKsFH8Z; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.51 X-TUID: 5izn+kcwuSKp Hi, itd skribis: > * guix/modules.scm (file-name->module-name): Ignore load path prefix > when building module name. > --- > It was mentioned on IRC, that (guix modules)'s file-name->module-name > might be function to be used by the JSON importer (and fixed if needed). > This patch attempts to implement the idea from the bug report. At first sight I believe the fix should be in =E2=80=98package->code=E2=80= =99, not in (guix modules). (guix modules) is quite sensitive so in general we should refrain from changing the semantics of its procedures. In this case, =E2=80=98file-name->module-name=E2=80=99 expects a file name relative to a = search path entry. HTH, Ludo=E2=80=99.