Fixes <https://issues.guix.gnu.org/60947>.
Previously, with the #+(file-append gcc "/bin/gcc") reference, the
resulting derivation would end up referring to the grafted GCC when
grafts are enabled, and to the ungrafted one otherwise. As a result, a
different derivation would be produced depending on whether grafts are
enabled.
* gnu/packages/build-tools.scm (gnulib-checkout)[arguments]: Refer to
"gcc", not #+(file-append gcc "/bin/gcc").
Previously, when cross-compiling, "self" would point to GUILE-3.0
because it came from (package-native-inputs guile-3.0).
When cross-compiling, ./configure would see a version in 'guile-3.0.pc'
different from its own version and would thus bail out:
building Guile 3.0.8-1.cabbage but `/gnu/store/…/bin/guile' has version 3.0.7
* gnu/packages/guile.scm (guile-next)[native-inputs]: Replace "self".
So far, "guile --version" and 'guile-3.0.pc' would use "UNKNOWN" as the
version string, making the package unsuitable as a drop-in replacement
for the 'guile-3.0' package.
* gnu/packages/guile.scm (guile-next)[arguments]: Add 'set-version'
phase.
The previously used commit was failing against formatted_phone_number test,
the 8ceeb39f5d51b49045b001b04f6f660c04f76698 has a fix for it. The last
commit containing the fix and passing tdlib's CI was picked.
* gnu/packages/messaging.scm (tdlib): Update to commit with fixed
formatted_phone_number test.
Reuse knowledge from recent U-Boot modifications to streamline the package
definition.
* gnu/packages/firmware.scm (make-arm-trusted-firmware): Change optional
argument ARCH to keyword TRIPLET. Default to aarch64-linux-gnu.
[arguments]: Use gexps. Add a #:target argument. Streamline how the
CROSS_COMPILE make flag is computed.
[native-inputs]: Delete field.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
* gnu/packages/bootloaders.scm (make-u-boot-package) <same-arch?>: Rename
procedure to 'native-build?'.
[native-inputs]: Remove field.
[arguments]: Specify the #:target argument, when not natively building.
Adjust for the above renaming.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
The extra python inputs are only needed for running the u-boot-test-tools test
suite. This lowers the requirements for cross-building the various u-boot
packages.
* gnu/packages/bootloaders.scm (u-boot) [native-inputs]: Delete bc.
Move python-coverage, python-pycryptodomex and python-pytest to...
* gnu/packages/bootloaders.scm (u-boot-tools) [native-inputs]: ... here.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
* gnu/packages/bootloaders.scm
(make-u-boot-package) [phases] <install>: Add imx to the regexp of files
considered for installation.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
And have that u-boot argument used as the complete base of the template, so
that a user can override it.
* gnu/packages/bootloaders.scm (make-u-boot-package): New U-BOOT argument.
Document it.
[native-inputs]: Move the native-inputs of U-BOOT first, so that the
cross compilation tools can be overridden via U-BOOT.
[arguments]: Rewrite using substitute-keyword-arguments, extending rather than
overriding most arguments. Use gexps. Do not bind OUTPUTS.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Relates to <https://issues.guix.gnu.org/60786>.
The mips64el architecture is not currently supported, causing (guix platform)
to raise an exception when attempting to cross-build the package.
* gnu/packages/bootloaders.scm (u-boot-malta): Delete variable.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This was motivated by #60786, which produced a cryptic, hard to understand
backtrace.
Given the following reproducer:
(use-modules (guix packages)
(gnu packages cross-base))
(define linux-libre-headers-cross-mips64el-linux-gnuabi64
(cross-kernel-headers "mips64el-linux-gnuabi64"))
(package-arguments linux-libre-headers-cross-mips64el-linux-gnuabi64)
Before this change:
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting struct): #f
After this change:
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
ERROR:
1. &platform-not-found-error: "mips64el-linux-gnuabi64"
* guix/platform.scm (&platform-not-found-error): New condition.
(platform-not-found-error?): New predicate.
(false-if-platform-not-found): New syntax.
(lookup-platform-by-system): Raise an exception when no platform is found.
Update documentation.
(lookup-platform-by-target): Likewise.
(lookup-platform-by-target-or-system): Likewise, and guard lookup calls with
false-if-platform-not-found.
* gnu/packages/bootstrap.scm (glibc-dynamic-linker): Handle
lookup-platform-by-system call to preserve existing behavior.
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
The hash being used covered only the gdcm repository, not the gdcmdata
submodule.
* gnu/packages/bioinformatics.scm (gdcm)[source]: Update hash.
Reported by civodul in #guix.
I've noticed, that openmw is not playable as it hangs on clicking any
menu item. It seems the issue is known and fixed upstream, but a new
version is not released yet.
* gnu/packages/game-development.scm (openmw)[inputs]: Replace FFMPEG
with FFMEG-4.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>