From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IE+nNI9HcGKXfwAAbAwnHQ (envelope-from ) for ; Mon, 02 May 2022 23:05:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QLuoM49HcGJ4PAAAG6o9tA (envelope-from ) for ; Mon, 02 May 2022 23:05:19 +0200 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 80B3028E3F for ; Mon, 2 May 2022 23:05:19 +0200 (CEST) Received: from localhost ([::1]:58156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nldEM-0001Gh-DA for larch@yhetil.org; Mon, 02 May 2022 17:05:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34736) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldE7-0001GK-2O for bug-guix@gnu.org; Mon, 02 May 2022 17:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44225) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nldE6-0006Ns-QG for bug-guix@gnu.org; Mon, 02 May 2022 17:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nldE6-00065F-LU for bug-guix@gnu.org; Mon, 02 May 2022 17:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55186: package-definition-location is wrong for inherited packages Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 02 May 2022 21:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55186 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 55186@debbugs.gnu.org Received: via spool by 55186-submit@debbugs.gnu.org id=B55186.165152548723360 (code B ref 55186); Mon, 02 May 2022 21:05:02 +0000 Received: (at 55186) by debbugs.gnu.org; 2 May 2022 21:04:47 +0000 Received: from localhost ([127.0.0.1]:38122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldDq-00064i-Vc for submit@debbugs.gnu.org; Mon, 02 May 2022 17:04:47 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nldDp-00064V-J0 for 55186@debbugs.gnu.org; Mon, 02 May 2022 17:04:45 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38274) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldDk-0006FV-B4; Mon, 02 May 2022 17:04:40 -0400 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=+9Z2fcN6TyZ3+Be0Uf24iNWULoYJtfD6Gr43cINn1fY=; b=PzTk9imLz78yb1bUHOJb m0GpLnc3qfT+nowsxuMg2idVQ/g9IA7PvFnRALK3OpglC+VL85+ataIpCKe+Mff1iF2s4MQI0cPwI 2qmGGfFne7p+t8NL3wvNhyc3YwhpNiKxw8Ps6d/epLSDJALbgVNj6Yl33rcZi1RmwxuJLqunzDo/G KTQbX1CbI+OhyIgvEGfo0IaaOx59J1ulGp0Q9TpNCHz+6Nq2bBRti7c4Gk+f1av6XQsOdv7h04Esc hF1VD+QntHjP5szqSdvbSNYOM3U980K2djESPmeQK+ZMf9UOHyMrkkEqWBgtLOkt08f1LZ+LAcs1J +VmG9svVMwD3YA==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:50769 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nldDj-0004X8-VK; Mon, 02 May 2022 17:04:40 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87ilqrsx1p.fsf@gmail.com> Date: Mon, 02 May 2022 23:04:38 +0200 In-Reply-To: <87ilqrsx1p.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 29 Apr 2022 11:56:34 -0400") Message-ID: <87levjr6hl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651525519; 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=+9Z2fcN6TyZ3+Be0Uf24iNWULoYJtfD6Gr43cINn1fY=; b=YArzJ+TFaEZ1KNJoOrXsKwwoSoEdcV0hSdkiO+/SjspTuseufCxSGtkvnMH76/eHZaSCjq 0LbUisXuR7Ar62WeJmZQDBpsQOAc4RTSEQ+L19C6c3/nEQF5qSvsQ06ZlvufjzAj1sXzd3 7uWw3IahvOrmuBegd8UfVWxnk6XMdiHew6rY6MkwmAtzRyaEE0wFFEWV0ABi7EMEpJiTsG i3hS+cAJ5PneSHhINUm0iqeb9kPBn77HYN13hjXLEeRiiVGwYd2uVNBkohEIpecZkAHqjo sbkN7USu+cClTFpjcUZmYBkZICty53JR3xxZe3Xc2/qAuM94BnAoIF2ZC1sJSQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1651525519; a=rsa-sha256; cv=none; b=WpU1zBZs2qDsJbL6nzBF//fmV7kUU0MeXdVRyaPLZCeZD9ImrctrZitK0VCRVu2Ekf2/su jsAl9GowM7p/LZZ9GERenhEQM56XsqGgPAIWapjBygBX6S4jX3bV3BnfQ+ZIs04H1IPoe5 3u7AcHYv/Km1HNCoeNo53toAKb/URyxs6EzSDXNFV3OEYuSAVJ53RWHALl6nTnbNiuSDzP hQS8gEYIntqQJp2INp6evoE0augwk80gfkyptSXG6dusvSkuCX8DHmetAv0WgHK7ZCgT1c S8Dxn4mFAnwK3N/sRTx+ERF4AnNqir8EA3+h1ZtfsJtdY5l2IumZ0Dr4sRc6fw== 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=PzTk9imL; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Spam-Score: -2.38 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=PzTk9imL; dmarc=pass (policy=none) header.from=gnu.org; 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" X-Migadu-Queue-Id: 80B3028E3F X-Spam-Score: -2.38 X-Migadu-Scanner: scn1.migadu.com X-TUID: rVYMg6tRjKPz Hi, Maxim Cournoyer skribis: > Here's another problem with source location I've discovered when > attempting to locate the source of `python2-pytest-warnings', which > reads like: > > (define-public python2-pytest-warnings > (package (inherit (package-with-python2 > (strip-python2-variant python-pytest-warnings))) > (properties `((superseded . ,python2-pytest))))) It works for me: --8<---------------cut here---------------start------------->8--- $ guix repl GNU Guile 3.0.8 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guix-user)> ,use(guix) scheme@(guix-user)> ,use(gnu packages check) scheme@(guix-user)> (package-definition-location python2-mock ) $1 =3D #< file: "gnu/packages/check.scm" line: 882 column: 0> scheme@(guix-user)> (package-definition-location python2-nose ) $2 =3D #< file: "gnu/packages/check.scm" line: 917 column: 0> scheme@(guix-user)> (package-definition-location python2-nose2 ) $3 =3D #f scheme@(guix-user)> ,q $ guix describe Generation 214 May 02 2022 21:44:14 (current) guix 6b588da repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 6b588da368c77cde82ea2f22ca315116228777ad --8<---------------cut here---------------end--------------->8--- Note that =E2=80=98python2-nose2=E2=80=99 has #f. This is because it=E2=80= =99s defined without a literal (package =E2=80=A6) form: --8<---------------cut here---------------start------------->8--- (define-public python2-nose2 (package-with-python2 python-nose2)) --8<---------------cut here---------------end--------------->8--- It=E2=80=99s OK for the initial use case of =E2=80=98package-definition-loc= ation=E2=80=99, which was the =E2=80=98generic-git=E2=80=99 updater. Not sure if it helps, but I hope it does anyway. :-) Ludo=E2=80=99.