From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id ILRrFVfBimYCHAAAe85BDQ:P1 (envelope-from ) for ; Sun, 07 Jul 2024 16:24:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id ILRrFVfBimYCHAAAe85BDQ (envelope-from ) for ; Sun, 07 Jul 2024 18:24:55 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=YyS49jgF; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=jDyKsI5X; 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=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720369042; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=0WvHfIovICYzhhR/ukDJUJTBr5VmEjCPjwMBs+CpHd0=; b=ZHEGQ3zeIlpBWQf057P7XkfyHBF4qLg8ghBCeFNGhvyDIT8xPMO0ZDsSJFB8jz9yYU7C0R JD9h8q7vShzPZY3AeTHU/5dcabPnnydIIJc41GmpeJDMzUSGQNOkciwX8mr9+YNOPL4SPI YWlqKexHHhwDJynlyppgmMUTz/CCmu41tpaTmmbuW6bmD0zijB0WHoCxaE8wv+yJe+jXjz 7GhAOGpG+ufKki0Re7xAclVRUFcSRLql48e+nT4AaWW7nQx9XCqzNhk96LXBJiC7Zx8Bfj rUu/dEAQIb+h3ZJfYc9r43WWlPtkm4rbr7ehpxa2tmjUDkorskx4iTlkjUl8VA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=YyS49jgF; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=jDyKsI5X; 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=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720369042; a=rsa-sha256; cv=none; b=RWIwIMLvfyykpM1HwOXsLNaKF+gOPv1rcVKvnJs82yChzk98FeGSTw0fJ95nxxhM8wWSqe 5k35PXLtew6DttB6nFrPq3uhGK+T0vj15S7P2bu/IJRCGkpcqN/4CeLF9mbcKM7RSzAkCr /HNJLFucyaGneuN472Xy41/uaMgFA7UWTvvoUs7qQ5psZHBgi2S4na4M84FJ7rI5yef+2E j1SjOdK6EekkfMvWmzuioY9+9M55LGBsbprDgAGlogGRwlWicQC32yDdH/UJOcc+op9Q3c dkJkla5EStIz6/SXAUYXwynYG4IaPE53IhUoqsdscW9x39h+TwUj/YUvVOT4/Q== 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 35A8F6DFDB for ; Sun, 7 Jul 2024 18:17:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQUZQ-0001FR-PY; Sun, 07 Jul 2024 12:17:00 -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 1sQUZO-0001F5-FP for bug-guix@gnu.org; Sun, 07 Jul 2024 12:16:58 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sQUZO-0007Fc-7R for bug-guix@gnu.org; Sun, 07 Jul 2024 12:16:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sQUZS-0003oF-9l for bug-guix@gnu.org; Sun, 07 Jul 2024 12:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#71979: (file-name->module-name (location-file (package-location pkg))) returns wrong module Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 07 Jul 2024 16:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71979 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 71979@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172036898514596 (code B ref -1); Sun, 07 Jul 2024 16:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jul 2024 16:16:25 +0000 Received: from localhost ([127.0.0.1]:49019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sQUYr-0003nL-1C for submit@debbugs.gnu.org; Sun, 07 Jul 2024 12:16:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:40148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1sQUYo-0003nD-MR for submit@debbugs.gnu.org; Sun, 07 Jul 2024 12:16:23 -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 <~@wolfsden.cz>) id 1sQUYj-0001AT-Uv for bug-guix@gnu.org; Sun, 07 Jul 2024 12:16:17 -0400 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1sQUYh-0007Bs-Ne for bug-guix@gnu.org; Sun, 07 Jul 2024 12:16:17 -0400 Received: by wolfsden.cz (Postfix, from userid 104) id AA45684BD; Sun, 7 Jul 2024 16:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1720368972; bh=Sus+p3/APi73tdtt25IWo4suhIl8D5F1pnd8FHbXFTw=; h=Date:From:To:Subject; b=YyS49jgFHvQii3vtiRBl6mAZNar3ZDvSPhAjBI5GMqQqj88gzZSRytizquSz07+Id eG1T5kNyPfL8A2oSdcGIoSDwenvaHNh+HGHoL9K2hp0EduI0ctOXYBFevHSvwgBgZB jwNgcrBsVLbNgKQSCrMjCfIS8GFFEd+pIP6FfUL3oFTMkR1P0rZQ0PlWdE566ko6mX vzO8i2s/C+ZwmiiykAWc4veZlIAWQ+LQHI5eyil0IR5DF2LK+7SuP2vMQZcH4areTZ ERFird7pRUzb0xtyC18N483+4dOt1M6/Do264mNraUXlLwQCrjqeTEN4M/Sn4BUYI1 2fVWlMc69Bdk7uhWYHeX6LAygGIzWtQ5h19x2R1LLSmUi7yvH6M74qrJRsfBrdjRD+ 1llqqlbCohuVwvJtksVYj/bdNFwGpgGhKg5GziFhWXYUKp+3kx2Lm16B9AueIXxRTu BttnNldEgwy+E33npU5sGFsbQPwvFGoBmIQ313/yVRvWKbXnD867caj+unShZm8JmB CfGPX+7NmnKyRrBFodfhVV6lfk4RtFrVIFc9A8sKDQs2KA8NWCKE87wQIgrajBJpwu qa8ZLrvBPK+60tCFVNzEIirec+/ZZgqCbGCuOl+cydz2WOEsH7dYEUo+HLo4REyqQo 5qDNQkyT+21EkzFF0uUd65wU= Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id D7AC09038 for ; Sun, 7 Jul 2024 16:16:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1720368971; bh=Sus+p3/APi73tdtt25IWo4suhIl8D5F1pnd8FHbXFTw=; h=Date:From:To:Subject; b=jDyKsI5XXPskijP2OVw+1kDqRvj4b20096Cp6w7Ue1m++tsS6/edig3xowP+Lse3c 6cCIsfl38msBq1Js3D6vbVTHNhT8JM5/e2OVd4dwpSRb8BMhyBMRNP08pAnwjxzrbR 73vSQOmgjfHC8y/zF1737EixkI3e2Cqcw8+mBEzvsXq8IF/XGh6ihs8H2xE8OvJm1U KTn5hyFfwcY7MKl3KHDKzGAZx2k9rt5RR0UZ2Qnmf1IRAO97l4jQEElHlKzCcXnskR UQ+yhANPzp728jgtWlp2CSlXfcfeXsa93j7ExjcsSdpOaoRXElOQ7w0owG5744ZqEd rDekjd/QMf5Bhly1756OcAsTFc6Z8I7lI0vUM1/gIZ210VVKd7amoYe0Vl4+5NLvIz 4f7GMdqB8TZsGrKiAKKLhvGIehBvCCL4+DgrCAICdANYkicHO7AMdKIa+j1oMPXJ0a D3rz3WfusauyOTTcRODAs7sIr9cm4erZveBUQnq3o6B8Sr69itucpkUqptvQIQ221r 9LTkvvFn8HL1yWp13ssFrmf9vbckS1XIBj1QYVaOe6fph5/BP+7RutVkm/0BOup7py PRdF/2sKCoEJdvctsEGlOoctScFdeljyqPP+aUGKwgq7a8zF5o45BWk2iQiX34jd16 UU1U/JfektBYexmi7Ihpa2Gw= Date: Sun, 7 Jul 2024 18:16:10 +0200 From: Tomas Volf <~@wolfsden.cz> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="GoiQVJScH/rRBXIl" Content-Disposition: inline Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz 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 autolearn=ham autolearn_force=no X-Spam_action: no action 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 X-Migadu-Queue-Id: 35A8F6DFDB X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.09 X-Spam-Score: -7.09 X-TUID: 2CzTW/ZnuCX5 --GoiQVJScH/rRBXIl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, when I try to use the above, it returns wrong module. The module returned is prefixed by #{.}# symbol. Full reproducer: (define-module (xx) #:use-module (guix) #:use-module (guix modules) #:use-module (guix utils)) (define-public pkg (package (name "foo") (version #f) (source #f) (build-system #f) (synopsis #f) (description #f) (license #f) (home-page #f))) (pk (file-name->module-name (location-file (package-location pkg)))) Now just run it: $ GUILE_AUTO_COMPILE=0 guile -L . -c '(use-modules (xx))' ;;; ((#{.}# xx)) Notice that the module is not just (xx) as it should have been. The impact of this bug is broken guix pull for my channel (I will work around it somehow, I hope) but still it would be nice if it worked properly, hence this report. Have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --GoiQVJScH/rRBXIl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmaKv0oACgkQL7/ufbZ/ wak5XRAAmwnC+HrQOOVvhbtHQcWvexqlrdPjsBDE6UFdlVP3Eq+8nzdPnuI/mhfa au1muqAC8wJfl1n/dQ+jGVIpt26SGT0TMEHjV+jtJIPvD3zOwZtKivxoVuUrO9Ou Vboek075m2LL4r3vcxL2DbjY4wmmE6jvrhJBdVxFxw1utURHjwPoJmVwzh/R1O46 EkmWccbUIQv51JgNC0XOEcsD99wQiOHTIRp4Fierh8MwAsDwMl3bO0xxYl5ppcJg lKdxympnpwt7IB2IiVXYgIQesVmnz1IZ9WuEqS9UNvw9ygaSvLqDOxtzGtRoQj9F Fcz+2YJrNMuXDBsmPP+g+oKZAhlPmrbVglpCBMdl4ncSoQUZyeS9u6IPRC+/ihNW nY/8lwKauEmEXAvEXw9NqrEqEcxW+8zvUed4psJZBA0SnjOedPMp0/auMQ1IJtV9 NqGv1M3fpZcJitcgIUvtoWNvl7MFwjD4945ned8Euul9VZB1/r3xXhp3gQ4ULDi7 UEe54fkD++cJtUObDuHHZL1DWjNyPBO2Y6X4rWDuYBQ7CL/+CzCOF93yXdifNd05 C0r53c2CHF4AgTNe4o8rUXWVUEcVGQFVBlVKgzn6sjNOwUr6XaKWu2W2X8sEYL9G T5laJY7C1Igzkm6v87ubfW+qIUMU3nLwVEcToC5OTyJzX8O7g9s= =dF7L -----END PGP SIGNATURE----- --GoiQVJScH/rRBXIl--