aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2024-06-10 07:41:41 +0200
committerJanneke Nieuwenhuizen <janneke@gnu.org>2024-06-11 14:42:17 +0200
commit3036a2ed434efa1c34f9533293dc5e37de3102b3 (patch)
treefd2850300ed7d1e1b31002855017c3ea245e5f57 /gnu
parent520d85bad4c0207df85273c72d59e9e7d7416538 (diff)
downloadguix-3036a2ed434efa1c34f9533293dc5e37de3102b3.tar.gz
guix-3036a2ed434efa1c34f9533293dc5e37de3102b3.zip
gnu: mes: Fix build on arm and x86_64.
* gnu/packages/patches/mes-0.26.1-fixups.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/mes.scm (mes)[source]: Use it. Change-Id: I071d442232c8e4bbce2e85cac0f73fb9205a678c
Diffstat (limited to 'gnu')
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/mes.scm1
-rw-r--r--gnu/packages/patches/mes-0.26.1-fixups.patch126
3 files changed, 128 insertions, 0 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 1ff72a7c4c..83b7402b09 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1723,6 +1723,7 @@ dist_patch_DATA = \
%D%/packages/patches/memtest86+-build-reproducibly.patch \
%D%/packages/patches/mercurial-hg-extension-path.patch \
%D%/packages/patches/mercurial-openssl-compat.patch \
+ %D%/packages/patches/mes-0.26.1-fixups.patch \
%D%/packages/patches/mhash-keygen-test-segfault.patch \
%D%/packages/patches/mia-fix-boost-headers.patch \
%D%/packages/patches/mia-vtk9.patch \
diff --git a/gnu/packages/mes.scm b/gnu/packages/mes.scm
index 664aa77667..64bcbe2d7e 100644
--- a/gnu/packages/mes.scm
+++ b/gnu/packages/mes.scm
@@ -159,6 +159,7 @@ parsers to allow execution with Guile as extension languages.")))
(method url-fetch)
(uri (string-append "mirror://gnu/mes/"
"mes-" version ".tar.gz"))
+ (patches (search-patches "mes-0.26.1-fixups.patch"))
(sha256
(base32
"1x7wq9cj8pybdl736mn8z48zcwgvyvi9mr9mr9vv9jxzii90sdz1"))))
diff --git a/gnu/packages/patches/mes-0.26.1-fixups.patch b/gnu/packages/patches/mes-0.26.1-fixups.patch
new file mode 100644
index 0000000000..511b85cfc5
--- /dev/null
+++ b/gnu/packages/patches/mes-0.26.1-fixups.patch
@@ -0,0 +1,126 @@
+Taken from upstream.
+
+From 7f549d02ac997505a7ed8a05339e73b851a875b8 Mon Sep 17 00:00:00 2001
+From: Janneke Nieuwenhuizen <janneke@gnu.org>
+Date: Sun, 9 Jun 2024 08:18:35 +0200
+Subject: [PATCH 1/4] build: Remove a0-call-trunc-int from xfail for
+ mescc-x86_64.
+
+Reported by Vagrant Cascadian <vagrant@debian.org> via IRC.
+
+* build-aux/check-mescc.sh (xfail_tests)[mescc x86_64]: Remove
+a0-call-trunc-int.c.
+---
+ build-aux/check-mescc.sh | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/build-aux/check-mescc.sh b/build-aux/check-mescc.sh
+index fb5e1ef46..b2d771c89 100755
+--- a/build-aux/check-mescc.sh
++++ b/build-aux/check-mescc.sh
+@@ -273,7 +273,6 @@ lib/tests/scaffold/91-goto-array.c
+ lib/tests/scaffold/16-cast.c
+ lib/tests/scaffold/17-compare-unsigned-le.c
+ lib/tests/scaffold/17-compare-rotated.c
+-lib/tests/scaffold/a0-call-trunc-int.c
+ "
+ fi
+
+--
+2.41.0
+
+From 3389cf4aef17cec38a5fd693c4c5d62520b0eab3 Mon Sep 17 00:00:00 2001
+From: Janneke Nieuwenhuizen <janneke@gnu.org>
+Date: Sun, 9 Jun 2024 08:28:13 +0200
+Subject: [PATCH 2/4] lib: arm: Fix signal.h header.
+
+This is a follow-up to commit
+ 83a08a0788a5417d0a0bae3a43dc9c4026e09d99
+ lib: Add ucontext_t for all architectures.
+
+* include/linux/arm/signal.h: Add missing semicolon.
+---
+ include/linux/arm/signal.h | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/include/linux/arm/signal.h b/include/linux/arm/signal.h
+index 06cb09176..381811714 100644
+--- a/include/linux/arm/signal.h
++++ b/include/linux/arm/signal.h
+@@ -1,6 +1,7 @@
+ /* -*-comment-start: "//";comment-end:""-*-
+ * GNU Mes --- Maxwell Equations of Software
+ * Copyright © 2024 Ekaitz Zarraga <ekaitz@elenq.tech>
++ * Copyright © 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
+ *
+ * This file is part of GNU Mes.
+ *
+@@ -20,7 +21,7 @@
+
+ // Taken from musl libc (4a16ddf5)
+
+-typedef int greg_t
++typedef int greg_t;
+ typedef int gregset_t[18];
+ typedef struct sigcontext
+ {
+--
+2.41.0
+
+From 835d13ee2614a8b6ed54e5b7ead44b3d93cd63b4 Mon Sep 17 00:00:00 2001
+From: Janneke Nieuwenhuizen <janneke@gnu.org>
+Date: Sun, 9 Jun 2024 11:20:42 +0200
+Subject: [PATCH 3/4] build: Add 90-signal to xfail for mescc-arm.
+
+Bisected until 0.23; this test sadly never worked on arm.
+
+* build-aux/check-mescc.sh (xfail_tests)[mescc-arm]: Add 90-signal.c
+---
+ build-aux/check-mescc.sh | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/build-aux/check-mescc.sh b/build-aux/check-mescc.sh
+index b2d771c89..3900601e9 100755
+--- a/build-aux/check-mescc.sh
++++ b/build-aux/check-mescc.sh
+@@ -280,6 +280,7 @@ lib/tests/scaffold/17-compare-rotated.c
+ xfail_tests="$xfail_tests
+ lib/tests/scaffold/17-compare-rotated.c
+ lib/tests/scaffold/67-m1-overflow-check.c
++lib/tests/signal/90-signal.c
+ "
+ fi
+
+--
+2.41.0
+
+From 1683f074a0462bc27023ce5a980ff3d35d4126cf Mon Sep 17 00:00:00 2001
+From: Janneke Nieuwenhuizen <janneke@gnu.org>
+Date: Sun, 9 Jun 2024 11:24:25 +0200
+Subject: [PATCH 4/4] build: Remove 17-compare-rotated, 67-m1-overflow-check
+ xfail for mescc-arm.
+
+These were fixed by the riscv64 work.
+
+* build-aux/check-mescc.sh (xfail_tests)[mescc arm]: Remove
+17-compare-rotated, 67-m1-overflow-check.
+---
+ build-aux/check-mescc.sh | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/build-aux/check-mescc.sh b/build-aux/check-mescc.sh
+index 3900601e9..9abf43384 100755
+--- a/build-aux/check-mescc.sh
++++ b/build-aux/check-mescc.sh
+@@ -278,8 +278,6 @@ lib/tests/scaffold/17-compare-rotated.c
+
+ if test $mes_cpu = arm; then
+ xfail_tests="$xfail_tests
+-lib/tests/scaffold/17-compare-rotated.c
+-lib/tests/scaffold/67-m1-overflow-check.c
+ lib/tests/signal/90-signal.c
+ "
+ fi
+--
+2.41.0
+