This reduces the number of RPCs on "guix build libreoffice -nd" from
2,589 to 2,558 (1%).
* guix/derivations.scm (imported-files): Rewrite to call to
'add-file-tree-to-store'. Remove #:system and #:guile parameters.
(%imported-modules): Adjust docstring to say that result is a store
item, and adjust 'imported-files' call.
(%compiled-modules): Adjust accordingly.
(imported+compiled-modules): Likewise.
(build-expression->derivation): Likewise.
* gnu/packages/image.scm (libjpeg-turbo)[arguments]: In #:configure-flags, add
"-DCMAKE_SYSTEM_PROCESSOR" for known architectures when cross-compiling.
This allows removing the bundled LibUV in a subsequent commit. This commit
alone makes no functional changes apart from the build system adjustments.
* gnu/packages/cmake.scm (%common-build-phases, %common-disabled-tests): New
variables.
(cmake-bootstrap)[arguments]: Refactor to use the shared phases and tests.
(cmake-minimal)[build-system]: Change to CMAKE-BUILD-SYSTEM.
[arguments]: Adjust accordingly.
(cmake)[arguments]: Likewise.
...and change the inheritance order while at it, to prepare for the next commit.
* gnu/packages/cmake.scm (cmake-minimal): Rename to ...
(cmake-bootstrap): ... this.
[name]: Set to "cmake-bootstrap".
[native-inputs]: Change from CURL to CURL-MINIMAL.
(cmake-minimal-bootstrap): Remove variable.
(cmake-minimal): New variable, inherits from CMAKE-BOOTSTRAP.
* gnu/packages/image.scm (libjpeg-turbo)[arguments]: Change from
CMAKE-MINIMAL-BOOTSTRAP to CMAKE-BOOTSTRAP.
* gnu/packages/glib.scm (python-pygobject): Update to 3.34.0.
[source](modules, snippet): New fields. Delete failing tests identified by
commit 622d702f7e.
[build-system]: Change to MESON-BUILD-SYSTEM.
[arguments]: Remove.
[native-inputs]: Remove WHICH and DBUS.
(python2-pygobject)[build-system]: Change to PYTHON-BUILD-SYSTEM.
[arguments]: New field. Copy old phase from python-pygobject.
[native-inputs]: Remove WHICH and DBUS.
(python-pygobject-3.34.0): Remove variable.
* gnu/packages/python-xyz.scm (python-mako)[native-inputs]: Replace
PYTHON-PYTEST with PYTHON-NOSE.
[arguments]: Adjust check phase accordingly. While at it, allow overriding
the #:tests? key.
* gnu/packages/check.scm (python2-pytest): Update to 4.6.9.
(python2-pytest-bootstrap)[propagated-inputs]: Add
PYTHON2-IMPORTLIB-METADATA-BOOTSTRAP, PYTHON2-PACKAGING-BOOTSTRAP, and
PYTHON2-WCWIDTH. Replace PYTHON2-PLUGGY with PYTHON2-PLUGGY-BOOTSTRAP.
* gnu/packages/python-compression.scm (python2-zipp-bootstrap): New public variable.
* gnu/packages/python-xyz.scm (python2-importlib-resources-bootstrap): New
public variable.
(python-importlib-metadata)[native-inputs]: Change from PYTHON-PACKAGING to
PYTHON-PACKAGING-BOOTSTRAP.
[properties]: New field.
(python2-importlib-metadata-bootstrap, python2-contextlib2-bootstrap,
python2-pluggy-bootstrap): New public variables.
(python-packaging)[arguments]: Allow overriding #:tests?.
(python2-packaging-bootstrap): New public variable.
* gnu/packages/check.scm (python-pytest): Update to 5.3.2.
[propagated-inputs]: Add PYTHON-WCWIDTH and PYTHON-PACKAGING-BOOTSTRAP.
[native-inputs]: Add PYTHON-XMLSCHEMA.
[arguments]: Support overriding check phase with #:tests?.
(python2-pytest): Stay on version 4.4.2.
(python2-pytest-bootstrap): Inherit from PYTHON2-PYTEST instead of
PYTHON-PYTEST-BOOTSTRAP.
* gnu/packages/python-xyz.scm (python-packaging-bootstrap): New public variable.