guix/gnu
Pierre Langlois 5ee38c4672
gnu: node: Enable cross-compilation.
Node runs parts of itself on the host for bootstraping therefore for
cross-compiling support we need to fidle with the rpath in the build system,
as well as duplicating some of the dependencies as native-inputs and inputs.

* gnu/pakcages/node.scm (node)[arguments]: Refer to /bin/sh and /bin/env
directly instead of using (which).  Add new 'set-bootstrap-host-rpath phase
to correctly set the rpath for binaries that are meant to run on the host.
Pass --cross-compiling and --dest-cpu to configure script if needed.  Set the
CC_host, CXX_host, CC, CCX and PKG_CONFIG variable for cross-compilation.
Refer to the host python.  Do not return #t from any phases.
[native-inputs]: Add c-ares, http-parser, icu4c, libuv, nghttp2, openssl and
zlib.  Remove which.
[inputs]: Add bash and coreutils.
(llhttp-bootstrap)[arguments]: Refer to esbuild via (or native-inputs inputs).
(node-lts)[arguments]: Add new 'set-bootstrap-host-rpath phase to correctly
set the rpath for host binaries.  Pass --cross-compiling and --dest-cpu to
configure script if needed.  Set the CC_host, CXX_host, CCX and PKG_CONFIG
variable for cross-compilation.  Refer to the host python.  Do not return #t
from any phases.  Refer to /bin/sh and /bin/env directly instead of
using (which).  Do not return #t from any phases.
[native-inputs]: Hardcode native inputs instead of inheriting them from node.
[inputs]: Add bash and coreutils.
2021-09-02 20:47:12 +01:00
..
bootloader Migrate to the new 'targets' field of bootloader-configuration. 2021-08-29 01:05:26 -04:00
build build/jami-service: Fix range ends in account-fingerprint-rx. 2021-08-30 14:09:32 -04:00
installer Migrate to the new 'targets' field of bootloader-configuration. 2021-08-29 01:05:26 -04:00
machine Migrate to the new 'targets' field of bootloader-configuration. 2021-08-29 01:05:26 -04:00
packages gnu: node: Enable cross-compilation. 2021-09-02 20:47:12 +01:00
services services: hurd-vm: Use the new 'targets' field of <bootloader-configuration>. 2021-08-30 14:24:14 +02:00
system Migrate to the new 'targets' field of bootloader-configuration. 2021-08-29 01:05:26 -04:00
tests Migrate to the new 'targets' field of bootloader-configuration. 2021-08-29 01:05:26 -04:00
artwork.scm
bootloader.scm bootloader: Report location of the deprecated 'target' field. 2021-08-30 14:22:35 +02:00
ci.scm
image.scm
installer.scm
local.mk gnu: mailutils: Look up Scheme variables in the right module. 2021-09-01 23:41:41 +02:00
machine.scm
packages.scm
services.scm system: Handle 'setuid-programs' deprecation handling as a field sanitizer. 2021-08-12 12:34:13 +02:00
system.scm system: Accept gexps in 'setuid-programs'. 2021-08-12 12:34:13 +02:00
tests.scm Migrate to the new 'targets' field of bootloader-configuration. 2021-08-29 01:05:26 -04:00