unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54820: build-systems: inconsistent use of standard-packages
@ 2022-04-09 16:24 Hartmut Goebel
  2022-04-09 17:52 ` Maxime Devos
  0 siblings, 1 reply; 2+ messages in thread
From: Hartmut Goebel @ 2022-04-09 16:24 UTC (permalink / raw)
  To: 54820

Build-systems are adding „@(standard-packages)“ inconsistently to 
„host-packages“ or „build-packages”. For one developing a new 
build-system it is not clear which is the correct form.

Some (e.g. texlive, ruby, python) add it to „host-inputs“)

          (host-inputs `(,@(if source
                               `(("source" ,source))
                               '())
                         ,@inputs
                          ;; Keep the standard inputs of 'gnu-build-system'.
                          ,@(standard-packages)))

Some add it to „build-inputs (e.g. gnu, cmake, qt):

     (build-inputs `(,@(if source
                           `(("source" ,source))
                           '())
                     ,@`(("cmake" ,cmake))
                     ,@native-inputs
                     ,@(if target
                           ;; Use the standard cross inputs of
                           ;; 'gnu-build-system'.
                           (standard-cross-packages target 'host)
                           '())
                     ;; Keep the standard inputs of 'gnu-build-system'.
                     ,@(standard-packages)))


Expected:

Either

a) review and align the code of all build-systems, or

b) add a comment to every build-system briefly explaining why in host 
resp. build-packages here,

c) document how and why to use which form.

Since as far as I've seen there is no detailed „How to write a 
build-system“, developers (well, me :-) tend to develop new 
build-systems based on existing ones. Thus (a) or (b) seem the easier 
and quicker solution.


Reproduce:

grep -A5 -B5 standard-packages guix/build-system/*.scm

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-09 17:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-09 16:24 bug#54820: build-systems: inconsistent use of standard-packages Hartmut Goebel
2022-04-09 17:52 ` Maxime Devos

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).