summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-11-04 11:59:35 +0900
committerMaxim Cournoyer <maxim@guixotic.coop>2025-11-19 09:42:12 +0900
commit90ce7d84e6577f7d36ab70d5d66e26758c2feb5d (patch)
treea4f38041e028f12044d76c060bec8adfef9e8c0f
parent1fd565b7e3baf66d3b200ab0913babc0a0dc8962 (diff)
gnu: libxmi: Update to 1.3.
* gnu/packages/graphics.scm (libxmi): Update to 1.3 and apply Gentoo patches. * gnu/packages/patches/libxmi-gcc15.patch: New file. * gnu/packages/patches/libxmi-implicit.patch: New file. * gnu/local.mk: Register them. Change-Id: I73afe29743ebb99a5d2146f65ad76ec9a18c2466
-rw-r--r--gnu/local.mk2
-rw-r--r--gnu/packages/graphics.scm11
-rw-r--r--gnu/packages/patches/libxmi-gcc15.patch25
-rw-r--r--gnu/packages/patches/libxmi-implicit.patch15
4 files changed, 50 insertions, 3 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 1af1adfabab..147363cc0b4 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1784,6 +1784,8 @@ dist_patch_DATA = \
1784 %D%/packages/patches/libvdpau-va-gl-unbundle.patch \ 1784 %D%/packages/patches/libvdpau-va-gl-unbundle.patch \
1785 %D%/packages/patches/libvpx-CVE-2016-2818.patch \ 1785 %D%/packages/patches/libvpx-CVE-2016-2818.patch \
1786 %D%/packages/patches/libxcb-path-max.patch \ 1786 %D%/packages/patches/libxcb-path-max.patch \
1787 %D%/packages/patches/libxmi-gcc15.patch \
1788 %D%/packages/patches/libxmi-implicit.patch \
1787 %D%/packages/patches/libxml2-xpath0-Add-option-xpath0.patch \ 1789 %D%/packages/patches/libxml2-xpath0-Add-option-xpath0.patch \
1788 %D%/packages/patches/libwpd-gcc-compat.patch \ 1790 %D%/packages/patches/libwpd-gcc-compat.patch \
1789 %D%/packages/patches/libxt-guix-search-paths.patch \ 1791 %D%/packages/patches/libxt-guix-search-paths.patch \
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index c93fb9ac994..872008eb2a5 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -1233,13 +1233,18 @@ basic geometries.")
1233(define-public libxmi 1233(define-public libxmi
1234 (package 1234 (package
1235 (name "libxmi") 1235 (name "libxmi")
1236 (version "1.2") 1236 (version "1.3") ;version bundled in plotutils
1237 (source (origin 1237 (source (origin
1238 (method url-fetch) 1238 (method url-fetch)
1239 (uri (string-append "mirror://gnu/libxmi/libxmi-" version ".tar.gz")) 1239 ;; XXX: Use this Gentoo-maintained fork, which is the more
1240 ;; up-to-date 1.3 version bundled with plotutils.
1241 (uri (string-append "http://gentoo.osuosl.org/distfiles/65/"
1242 name "-" version ".tar.xz"))
1240 (sha256 1243 (sha256
1241 (base32 1244 (base32
1242 "03d4ikh29l38rl1wavb0icw7m5pp7yilnv7bb2k8qij1dinsymlx")))) 1245 "04npjh8k2ipmpwflfivqchga5r2qw7qbhbyk9n6kgccsm3aaxwl6"))
1246 (patches (search-patches "libxmi-gcc15.patch"
1247 "libxmi-implicit.patch"))))
1243 (build-system gnu-build-system) 1248 (build-system gnu-build-system)
1244 (arguments (list #:configure-flags #~(list "--disable-static") 1249 (arguments (list #:configure-flags #~(list "--disable-static")
1245 #:phases #~(modify-phases %standard-phases 1250 #:phases #~(modify-phases %standard-phases
diff --git a/gnu/packages/patches/libxmi-gcc15.patch b/gnu/packages/patches/libxmi-gcc15.patch
new file mode 100644
index 00000000000..0ddf4d776b5
--- /dev/null
+++ b/gnu/packages/patches/libxmi-gcc15.patch
@@ -0,0 +1,25 @@
1Retrieved from: https://raw.githubusercontent.com/gentoo/gentoo/refs/heads/master/media-libs/libxmi/files/libxmi-1.3-gcc15.patch
2
3https://bugs.gentoo.org/944450
4
5--- a/sys-defines.h
6+++ b/sys-defines.h
7@@ -166,17 +166,7 @@ extern __C_LINKAGE void free (void * ptr);
8 /* Support the `bool' datatype, which our code uses extensively. */
9 /**************************************************************************/
10
11-#ifndef __cplusplus
12-#ifndef HAVE_BOOL_IN_CC
13-#ifdef __STDC__
14-typedef enum { false = 0, true = 1 } bool;
15-#else /* not __STDC__, do things the old-fashioned way */
16-typedef int bool;
17-#define false 0
18-#define true 1
19-#endif
20-#endif /* not HAVE_BOOL_IN_CC */
21-#endif /* not __cplusplus */
22+#include <stdbool.h>
23
24 /**************************************************************************/
25 /* Define numerical constants (unofficial, so may not be in math.h). */
diff --git a/gnu/packages/patches/libxmi-implicit.patch b/gnu/packages/patches/libxmi-implicit.patch
new file mode 100644
index 00000000000..43b5fee38fc
--- /dev/null
+++ b/gnu/packages/patches/libxmi-implicit.patch
@@ -0,0 +1,15 @@
1Retrieved from: https://raw.githubusercontent.com/gentoo/gentoo/refs/heads/master/media-libs/libxmi/files/libxmi-1.3-gcc15.patch
2
3https://bugs.gentoo.org/899832
4
5--- a/configure.in
6+++ b/configure.in
7@@ -77,7 +77,7 @@ int main()
8 int i;
9 for (i=0; i < B; i++)
10 Array[[i]] = i - 3;
11- exit (Array[[1]] != -2);
12+ return (Array[[1]] != -2);
13 }],
14 ac_cv_c_gcc_strength_bug="no",
15 ac_cv_c_gcc_strength_bug="yes",