diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2016-12-20 23:36:21 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2016-12-21 10:22:32 +0100 |
| commit | b291b3271a025dfe41e1a7fdfadd393373b0128d (patch) | |
| tree | cdc5381b2ff5655c5d594b509a8d75c936830bfd | |
| parent | 62a3179395d5da1352083df77cf9df35531ff381 (diff) | |
gnu: linux-libre: Avoid invalid "kconfig" input on armhf and mips64el.
This fixes a bug whereby:
guix build linux-libre -s armhf-linux
would fail with:
guix build: error: gnu/packages/linux.scm:231:2: package `linux-libre-4.8.15' has an invalid input: ("kconfig" #f)
This led 'tests/guix-system.sh' to fail.
* gnu/packages/linux.scm (make-linux-libre)[native-inputs]: Never add #f
as a "kconfig" input.
| -rw-r--r-- | gnu/packages/linux.scm | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 827ee8b37cf..5d6fbbb1481 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm | |||
| @@ -242,13 +242,15 @@ for ARCH and optionally VARIANT, or #f if there is no such configuration." | |||
| 242 | ("bc" ,bc) | 242 | ("bc" ,bc) |
| 243 | ("openssl" ,openssl) | 243 | ("openssl" ,openssl) |
| 244 | ("kmod" ,kmod) | 244 | ("kmod" ,kmod) |
| 245 | ,@(if configuration-file | 245 | ,@(match (and configuration-file |
| 246 | `(("kconfig" ,(configuration-file | 246 | (configuration-file |
| 247 | (system->linux-architecture | 247 | (system->linux-architecture |
| 248 | (or (%current-target-system) | 248 | (or (%current-target-system) (%current-system))) |
| 249 | (%current-system))) | 249 | #:variant (version-major+minor version))) |
| 250 | #:variant (version-major+minor version)))) | 250 | (#f ;no config for this platform |
| 251 | '()))) | 251 | '()) |
| 252 | ((? string? config) | ||
| 253 | `(("kconfig" ,config)))))) | ||
| 252 | (arguments | 254 | (arguments |
| 253 | `(#:modules ((guix build gnu-build-system) | 255 | `(#:modules ((guix build gnu-build-system) |
| 254 | (guix build utils) | 256 | (guix build utils) |
