* bug#41569: build systems cannot set default outputs other than "out"
@ 2020-05-27 22:02 Ricardo Wurmus
2020-05-31 21:16 ` Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Ricardo Wurmus @ 2020-05-27 22:02 UTC (permalink / raw)
To: 41569
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#41569: build systems cannot set default outputs other than "out"
2020-05-27 22:02 bug#41569: build systems cannot set default outputs other than "out" Ricardo Wurmus
@ 2020-05-31 21:16 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-05-31 21:16 UTC (permalink / raw)
To: Ricardo Wurmus; +Cc: 41569
Hi,
Ricardo Wurmus <rekado@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’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-05-31 21:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27 22:02 bug#41569: build systems cannot set default outputs other than "out" Ricardo Wurmus
2020-05-31 21:16 ` Ludovic Courtès
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).