GNU bug report logs - #52316
Package example from cookbook has bugs

Previous Next

Package: guix;

Reported by: Maxime Devos <maximedevos <at> telenet.be>

Date: Sun, 5 Dec 2021 19:19:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Maxime Devos <maximedevos <at> telenet.be>
To: 52316 <at> debbugs.gnu.org
Subject: bug#52316: Package example from cookbook has bugs
Date: Sun, 05 Dec 2021 19:18:17 +0000
Hi guix,

The example at
https://guix.gnu.org/cookbook/en/html_node/Extended-example.html has
two bugs:

#:tests? is unconditionally set to #true. This is bad for cross-
compilation and --without-tests=PACKAGE reasons, and would be flagged
by the linter.

In the new 'check' phase, libgit2_clar is invoked unconditionally. This
would be flagged by the linter.

Also, not exactly a bug, but still bad practice: the web page suggests:

#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out"))
                   "CC=gcc")

however, hardcoding gcc is bad for cross-compilation reasons. It should
use (cc-for-target) instead.

Greetings,
Maxime





This bug report was last modified 3 years and 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.