From unknown Sat Jun 21 03:23:39 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#55186 <55186@debbugs.gnu.org> To: bug#55186 <55186@debbugs.gnu.org> Subject: Status: package-definition-location is wrong for inherited packages Reply-To: bug#55186 <55186@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:23:39 +0000 retitle 55186 package-definition-location is wrong for inherited packages reassign 55186 guix submitter 55186 Maxim Cournoyer severity 55186 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 29 11:56:42 2022 Received: (at submit) by debbugs.gnu.org; 29 Apr 2022 15:56:42 +0000 Received: from localhost ([127.0.0.1]:55163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkSz4-0004PF-JZ for submit@debbugs.gnu.org; Fri, 29 Apr 2022 11:56:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:38096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nkSz3-0004P7-8Q for submit@debbugs.gnu.org; Fri, 29 Apr 2022 11:56:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nkSz2-0000XO-1r for bug-guix@gnu.org; Fri, 29 Apr 2022 11:56:41 -0400 Received: from mail-qv1-xf30.google.com ([2607:f8b0:4864:20::f30]:39837) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nkSz0-0002vC-AH for bug-guix@gnu.org; Fri, 29 Apr 2022 11:56:39 -0400 Received: by mail-qv1-xf30.google.com with SMTP id kj18so5647684qvb.6 for ; Fri, 29 Apr 2022 08:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version; bh=w6v0r1c2mjJzGzg1ciJhp6lmNEhILqP7d59c43b+H2s=; b=ZVD9ajq273tbwzk3PUDtp61+hpzDg9RqCz33+v+HcHTwp5uwu57l9vmJITLtxPCWQj suje7fZI7NAE66p1OVVT2N93lqz/6fXuy/4GsV84KyPd7kpdqF98nitvehGgZNHQ+pb6 XgmUGhNsykVlnWPYYSUX7BfdiihvyAWDROs/HN8QsuWSeWEA33PKKcf8SuG37fj31CGe KkeHNFKcXfgMA2wEu6Aj80+xieZ5M+5Ef8JmK6pQXfggU0Fydn273kSsilOgFXTg9cfn JX0u37lVJB0IiWbhO1KL2yLA88o9uUZywpngB0fb7jxLGWGpxYh9TQiKZYz3APfqkNfB tQaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=w6v0r1c2mjJzGzg1ciJhp6lmNEhILqP7d59c43b+H2s=; b=oqb6g9NVDv4LHMpl2xpKSkkmg7BEk0T8YywPT4OlWmtW+jqxpuK641+C5vks2cIGe9 06onQjXYoWuu8Hshfg+mkaWRdzH5s1T+pp9STuMnQGiLjq+Nf1qjSnac7aio4Gwzt1FV br3Ii0QNEJqYkZ5Zvt5LKEiWg2BgO5UnEDFQNYx7riJHyhpeGIF6NZXmHm9C+e3iKwpd EpBO3mpnDz9IYSzoCFoRrnOdLI5kOFf70G3LyuBC6heSX/tE6LcPbN8UFBg3EoTn+Giy 11TRjDdQ9jZnz3L/XvFzAEAZd5UFI+anWINDH0ITqAMM6QOAfp3soSOliMSlAp3qRwTJ 2FjA== X-Gm-Message-State: AOAM5306QUFB3Yxo5TUrc318illW1Sl/Bz5uQKSwzm2rDKhiwrjOhFny jo3bhz5ceJ3HuEAmmAu5Uw7eXbLJkYWdQQ== X-Google-Smtp-Source: ABdhPJzdxgRs542MJEmsCU4JgsMlXG8n6RZmHjPeq94mTHU56oGG32+fUkCG6E16DLOfmQcSJNHLMQ== X-Received: by 2002:ad4:5963:0:b0:443:689a:f183 with SMTP id eq3-20020ad45963000000b00443689af183mr28378659qvb.8.1651247796559; Fri, 29 Apr 2022 08:56:36 -0700 (PDT) Received: from hurd (dsl-10-129-74.b2b2c.ca. [72.10.129.74]) by smtp.gmail.com with ESMTPSA id g5-20020a05620a40c500b0069fb7955de0sm1075030qko.0.2022.04.29.08.56.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 08:56:35 -0700 (PDT) From: Maxim Cournoyer To: bug-guix Subject: package-definition-location is wrong for inherited packages Date: Fri, 29 Apr 2022 11:56:34 -0400 Message-ID: <87ilqrsx1p.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::f30; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qv1-xf30.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi Guix, Here's another problem with source location I've discovered when attempting to locate the source of `python2-pytest-warnings', which reads like: --8<---------------cut here---------------start------------->8--- (define-public python2-pytest-warnings (package (inherit (package-with-python2 (strip-python2-variant python-pytest-warnings))) (properties `((superseded . ,python2-pytest))))) --8<---------------cut here---------------end--------------->8--- The define-public line is at line 2569, but: --8<---------------cut here---------------start------------->8--- (define package (car (find-packages-by-name "python2-pytest-warnings"))) (package-definition-location package) location->source-properties) --8<---------------cut here---------------end--------------->8--- returns 2570, the line below. Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Mon May 02 17:04:47 2022 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#55186: package-definition-location is wrong for inherited packages 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55186 Cc: 55186@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon May 16 00:56:28 2022 Received: (at 55186-done) by debbugs.gnu.org; 16 May 2022 04:56:28 +0000 Received: from localhost ([127.0.0.1]:51362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqSmS-0003gQ-0a for submit@debbugs.gnu.org; Mon, 16 May 2022 00:56:28 -0400 Received: from mail-qt1-f169.google.com ([209.85.160.169]:44891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nqSmQ-0003gC-EY for 55186-done@debbugs.gnu.org; Mon, 16 May 2022 00:56:26 -0400 Received: by mail-qt1-f169.google.com with SMTP id i20so11310409qti.11 for <55186-done@debbugs.gnu.org>; Sun, 15 May 2022 21:56:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=vK9KPGY04sdKNQBR6AasiPQw/wpnIUjNdfZKS/MZCqc=; b=QZMDjRtGvHsa2NaHXq2MXrFWCKVC/UMFtb3r19e7DZXC/05Ex4AkUfTa9CPlNIc1sj U+NhgwUu9J4Ge+MkwVUXvfyFL/cF7X0q7Q1q6hmyH11VQ+Go5OsH3gu/Qiep8y3pHUwP Tk7aZLpZtPrmVl3JYUW9i8YhfUnnENuSHJB9KnuoK8bOq99S0rmfqPkeeAJncgERllVN BUbtCvB4oP+zN+1svoTmMVANc/5gUUZra41CVbHBm9KNYySN58CkWjJwEQz2tm/N4nZO dmu2a90OIXlPwj5shZgeDeG+Q3CcHmXgNjMT52CqjzsJLHaV0gbT9N43oUNwW8Gn3gqp dxyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=vK9KPGY04sdKNQBR6AasiPQw/wpnIUjNdfZKS/MZCqc=; b=pNiq2M+IyP1BRx0WkAkPfUmAv9glxVHcOgQE8x3iqR9lzwvghSnfK/TZ5SC71Qc5yt XS9IYxo4BPP7k2lOUAzpTTOqYxsLmcd0H/5OSuEkMptToxmZmMPNnBmOgW7AgS6fEwhC TMFdw93pgu0NoxgcL14d2GvcS/6JOEAdKYt4ZBJVQIxWCX1TWdWvrNOkaVSUmz7Ge79u q1UZv3Gfu+LCTPKm/cFaLFgCQVrIB2p4j/BkxpFH7ERJH50fnr9TH3adX8Xk3kDoJiMd tsluykMPBYD6B0Ti6baUTswPTxQvaxEcsgJtzJngV0fpzYKNvhSlmsNcdJsb7ux9WYuJ /84g== X-Gm-Message-State: AOAM530f/6puKTRPBkZOqq+nRfHdxsRbbCJKIP3p7ttpy/A8TAdLJlEZ X4I9TajvsGLK4u+R/6YP8pHK2p0PcTUmSw== X-Google-Smtp-Source: ABdhPJyi34L4iGbOg6BjGyMT1vgil3qiubskAlSZlfhJsbNty8FUOfkZEJF7WysoOJdRvs3Zs8gTDg== X-Received: by 2002:a05:622a:188a:b0:2f3:f4a8:ac9b with SMTP id v10-20020a05622a188a00b002f3f4a8ac9bmr13845024qtc.396.1652676980583; Sun, 15 May 2022 21:56:20 -0700 (PDT) Received: from hurd (dsl-10-136-209.b2b2c.ca. [72.10.136.209]) by smtp.gmail.com with ESMTPSA id j13-20020ac874cd000000b002f39b99f6b7sm5518229qtr.81.2022.05.15.21.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 May 2022 21:56:20 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#55186: package-definition-location is wrong for inherited packages References: <87ilqrsx1p.fsf@gmail.com> <87levjr6hl.fsf@gnu.org> Date: Mon, 16 May 2022 00:56:19 -0400 In-Reply-To: <87levjr6hl.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 02 May 2022 23:04:38 +0200") Message-ID: <87tu9qjcss.fsf@gmail.com> 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-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 55186-done Cc: 55186-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludovic, Ludovic Court=C3=A8s writes: > 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: Thanks for checking, this works for me too now. I think I was amidst modifications to the code, that induced me in error. I've fixed what I think was a typo in a comment in the code that made my understanding difficult in the early commits of https://issues.guix.gnu.org/55424. Happily closing, Maxim From unknown Sat Jun 21 03:23:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 13 Jun 2022 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator