From: "Ludovic Courtès" <ludo@gnu.org>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: 43746@debbugs.gnu.org
Subject: bug#43746: What to do about packages that don't support --without-tests / #:tests? #f setting
Date: Thu, 01 Oct 2020 23:07:54 +0200 [thread overview]
Message-ID: <87d021mz85.fsf@gnu.org> (raw)
In-Reply-To: <20201001143136.mu224kslmtpj4std@pelzflorian.localdomain> (pelzflorian@pelzflorian.de's message of "Thu, 1 Oct 2020 16:31:36 +0200")
Hi,
"pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> skribis:
> The new package transformation option --without-tests works by setting
> #:tests? #f in the specified packages. But some packages replace
> their 'check phase and no longer honor #tests?. glib for example.
Oh, we should fix ‘glib’ in ‘core-updates’.
> Attached is an attempt to document this current behavior. Shall I
> push it? Alternatively, it should be documented to write a check
> phase that honors #:tests?. Or the package transformation should be
> changed to remove any check phase it finds.
Hmm not sure, I think fiddling with phases is more risky or at least
could lead to more obscure errors for example with build systems that
don’t support phases, like ‘trivial-build-system’.
I’m inclined to apply the patch you propose and leaving phases
unchanged.
>>From b55e6ee01fe674b282e7ec75d0e4c8a839262261 Mon Sep 17 00:00:00 2001
> From: Florian Pelz <pelzflorian@pelzflorian.de>
> Date: Thu, 1 Oct 2020 15:35:52 +0200
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
> Subject: [PATCH] doc: Explain why '--without-tests' may fail with modified
> 'check' phase.
>
> * doc/guix.texi (Package Transformation Options): Explain.
[...]
> +Internally, @code{--without-tests} relies on changing the
> +@code{#:tests?} option of a package's @code{check} phase (@pxref{Build
> +Systems}). Note that some packages use a customized @code{check} phase
> +that does not respect a @code{#:tests? #f} setting. Therefore there are
> +some packages for which @code{--without-tests} cannot disable tests.
I’d change the last sentence to:
Therefore, @option{--without-tests} has no effect on these packages.
Thanks,
Ludo’.
next prev parent reply other threads:[~2020-10-01 21:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-01 14:31 bug#43746: What to do about packages that don't support --without-tests / #:tests? #f setting pelzflorian (Florian Pelz)
2020-10-01 21:07 ` Ludovic Courtès [this message]
2020-10-02 22:48 ` pelzflorian (Florian Pelz)
2020-10-03 10:04 ` Ludovic Courtès
2020-10-03 11:03 ` pelzflorian (Florian Pelz)
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d021mz85.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=43746@debbugs.gnu.org \
--cc=pelzflorian@pelzflorian.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).