GNU bug report logs - #41569
build systems cannot set default outputs other than "out"

Previous Next

Package: guix;

Reported by: Ricardo Wurmus <rekado <at> elephly.net>

Date: Wed, 27 May 2020 22:03:02 UTC

Severity: normal

To reply to this bug, email your comments to 41569 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#41569; Package guix. (Wed, 27 May 2020 22:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ricardo Wurmus <rekado <at> elephly.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 27 May 2020 22:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ricardo Wurmus <rekado <at> elephly.net>
To: bug-guix <at> gnu.org
Subject: build systems cannot set default outputs other than "out"
Date: Thu, 28 May 2020 00:02:08 +0200
For the haskell-build-system I want to offer two outputs by default:
"out" and "static".  However, the build system has no way to override
the default as (@ (guix packages) package->bag) passes the package’s
“outputs” value to make-bag.

When the package doesn’t define a value for “outputs”, the default
'("out") is used.  I suggest removing the default value from the
<package> record, so that the build system defaults have a chance.

-- 
Ricardo




Information forwarded to bug-guix <at> gnu.org:
bug#41569; Package guix. (Sun, 31 May 2020 21:17:01 GMT) Full text and rfc822 format available.

Message #8 received at 41569 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 41569 <at> debbugs.gnu.org
Subject: Re: bug#41569: build systems cannot set default outputs other than
 "out"
Date: Sun, 31 May 2020 23:16:07 +0200
Hi,

Ricardo Wurmus <rekado <at> elephly.net> skribis:

> For the haskell-build-system I want to offer two outputs by default:
> "out" and "static".  However, the build system has no way to override
> the default as (@ (guix packages) package->bag) passes the package’s
> “outputs” value to make-bag.

Ah.

> When the package doesn’t define a value for “outputs”, the default
> '("out") is used.  I suggest removing the default value from the
> <package> record, so that the build system defaults have a chance.

Problem is, we don’t want to add an ‘outputs’ line to each and every
package definition.  So how can we deal with that?

We could have a special trick where ‘outputs’ defaults to a special
value and ‘package-outputs’ actually asks the build system what the
default outputs are.

Thoughts?

Ludo’.




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

Previous Next


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