all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 55186@debbugs.gnu.org
Subject: bug#55186: package-definition-location is wrong for inherited packages
Date: Mon, 02 May 2022 23:04:38 +0200	[thread overview]
Message-ID: <87levjr6hl.fsf@gnu.org> (raw)
In-Reply-To: <87ilqrsx1p.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 29 Apr 2022 11:56:34 -0400")

Hi,

Maxim Cournoyer <maxim.cournoyer@gmail.com> 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 = #<<location> file: "gnu/packages/check.scm" line: 882 column: 0>
scheme@(guix-user)> (package-definition-location python2-nose )
$2 = #<<location> file: "gnu/packages/check.scm" line: 917 column: 0>
scheme@(guix-user)> (package-definition-location python2-nose2 )
$3 = #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 ‘python2-nose2’ has #f.  This is because it’s defined without
a literal (package …) form:

--8<---------------cut here---------------start------------->8---
(define-public python2-nose2
  (package-with-python2 python-nose2))
--8<---------------cut here---------------end--------------->8---

It’s OK for the initial use case of ‘package-definition-location’, which
was the ‘generic-git’ updater.

Not sure if it helps, but I hope it does anyway.  :-)

Ludo’.




  reply	other threads:[~2022-05-02 21:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-29 15:56 bug#55186: package-definition-location is wrong for inherited packages Maxim Cournoyer
2022-05-02 21:04 ` Ludovic Courtès [this message]
2022-05-16  4:56   ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87levjr6hl.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=55186@debbugs.gnu.org \
    --cc=maxim.cournoyer@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.