[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/11: guix: packages: Add &unsupported-cross-compilation-target-error.
From: |
guix-commits |
Subject: |
03/11: guix: packages: Add &unsupported-cross-compilation-target-error. |
Date: |
Mon, 15 Jul 2024 17:35:35 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit b6afc69605cd04b1574c7f6e560fe3f19c32a9d5
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Fri Jul 5 13:45:05 2024 +0200
guix: packages: Add &unsupported-cross-compilation-target-error.
* guix/packages.scm (&unsupported-cross-compilation-target-error): New
variable.
* guix/ui.scm (call-with-error-handling): Handle this new condition type.
Change-Id: I9e7782ee4799b5fecb3c890a75008c35c003f55d
---
guix/packages.scm | 10 ++++++++++
guix/ui.scm | 7 +++++++
2 files changed, 17 insertions(+)
diff --git a/guix/packages.scm b/guix/packages.scm
index e793714f2e..c953db9a03 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -160,6 +160,11 @@
%cuirass-supported-systems
supported-package?
+ &unsupported-cross-compilation-target-error
+ unsupported-cross-compilation-target-error?
+ unsupported-cross-compilation-target-error-build-system
+ unsupported-cross-compilation-target-error-target
+
&package-error
package-error?
package-error-package
@@ -834,6 +839,11 @@ exist, return #f instead."
;; Error conditions.
+(define-condition-type &unsupported-cross-compilation-target-error &error
+ unsupported-cross-compilation-target-error?
+ (build-system unsupported-cross-compilation-target-error-build-system)
+ (target unsupported-cross-compilation-target-error-target))
+
(define-condition-type &package-error &error
package-error?
(package package-error-package))
diff --git a/guix/ui.scm b/guix/ui.scm
index 0bb1b3b3ba..9db6f6e9d7 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -763,6 +763,13 @@ evaluating the tests and bodies of CLAUSES."
(location->string loc)
(package-full-name package)
(package-unsupported-target-error-target c))))
+ ((unsupported-cross-compilation-target-error? c)
+ (let ((build-system
+ (unsupported-cross-compilation-target-error-build-system
c))
+ (target (unsupported-cross-compilation-target-error-target
c)))
+ (leave (G_ "the `~a' build system: does not support target
`~a'~%")
+ (build-system-name build-system)
+ target)))
((gexp-input-error? c)
(let ((input (gexp-error-invalid-input c)))
(leave (G_ "~s: invalid G-expression input~%")
- branch master updated (0e5e3edec5 -> bf6ab0e0f5), guix-commits, 2024/07/15
- 01/11: guix: packages: Add new &package-unsupported-target-error., guix-commits, 2024/07/15
- 09/11: gnu: make-mingw-w64: Update to 12.0.0., guix-commits, 2024/07/15
- 11/11: gnu: mingw-w64-tools: Update to 12.0.0., guix-commits, 2024/07/15
- 03/11: guix: packages: Add &unsupported-cross-compilation-target-error.,
guix-commits <=
- 02/11: gnu: tls: Raise conditions from target->openssl-target., guix-commits, 2024/07/15
- 04/11: build-system: meson: Use a more specific exception., guix-commits, 2024/07/15
- 05/11: gnu: rust: Guard against unsupported rust targets., guix-commits, 2024/07/15
- 08/11: gnu: make-mingw-w64: Use G-Expressions., guix-commits, 2024/07/15
- 06/11: build-system: go: Properly handle when a target is unsupported., guix-commits, 2024/07/15
- 10/11: gnu: mingw-w64-tools: Use G-Expressions., guix-commits, 2024/07/15
- 07/11: gnu: make-mingw-w64: Memoize., guix-commits, 2024/07/15