[packages/crossmingw64-gcc] - fix m2 compiler build on x32, d BR: libphobos-static
qboosh
qboosh at pld-linux.org
Sun Apr 12 20:06:44 CEST 2026
commit fce81c24e8367f0d7bd9cad3ac55a72d51437b72
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Apr 12 20:07:14 2026 +0200
- fix m2 compiler build on x32, d BR: libphobos-static
crossmingw64-gcc.spec | 3 +++
gcc-types.patch | 11 +++++++++++
2 files changed, 14 insertions(+)
---
diff --git a/crossmingw64-gcc.spec b/crossmingw64-gcc.spec
index 8944797..ca600cf 100644
--- a/crossmingw64-gcc.spec
+++ b/crossmingw64-gcc.spec
@@ -33,6 +33,7 @@ Patch0: gcc-branch.diff
Patch1: gcc-mingw-dirs.patch
Patch2: gcc-mingw64.patch
Patch3: gcc-new-libgcc.patch
+Patch4: gcc-types.patch
URL: https://www.mingw-w64.org/
BuildRequires: autoconf >= 2.69
BuildRequires: automake >= 1:1.11.1
@@ -46,6 +47,7 @@ BuildRequires: flex >= 2.5.4
BuildRequires: gettext-tools >= 0.14.5
BuildRequires: gmp-devel >= 4.3.2
BuildRequires: isl-devel >= 0.15
+%{?with_d:BuildRequires: libgphobos-static >= 6:11}
BuildRequires: libmpc-devel >= 0.8.1
BuildRequires: libstdc++-devel
BuildRequires: m4 >= 1.4.16
@@ -413,6 +415,7 @@ Ten pakiet zawiera kompilator skrośny języka Modula-2.
%patch -P1 -p1
%patch -P2 -p1
%patch -P3 -p1
+%patch -P4 -p1
# override snapshot version.
echo %{version} > gcc/BASE-VER
diff --git a/gcc-types.patch b/gcc-types.patch
new file mode 100644
index 0000000..5c2ddf3
--- /dev/null
+++ b/gcc-types.patch
@@ -0,0 +1,11 @@
+--- gcc-13.4.0/gcc/m2/mc/mc.flex.orig 2025-06-05 18:02:59.000000000 +0200
++++ gcc-13.4.0/gcc/m2/mc/mc.flex 2026-04-11 21:30:39.772934242 +0200
+@@ -326,7 +326,7 @@ handleColumn (void)
+ static void
+ handleDate (void)
+ {
+- time_t clock = time ((long *)0);
++ time_t clock = time (NULL);
+ char *sdate = ctime (&clock);
+ char *s = (char *)alloca (strlen (sdate)+2+1);
+ char *p = index(sdate, '\n');
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/crossmingw64-gcc.git/commitdiff/fce81c24e8367f0d7bd9cad3ac55a72d51437b72
More information about the pld-cvs-commit
mailing list