Control: tags 1060885 + patch
Control: tags 1060885 + pending
Dear maintainer,
I've prepared an NMU for gambc (versioned as 4.9.3-1.4) and
uploaded it to.
Regards.
diff -Nru gambc-4.9.3/debian/changelog gambc-4.9.3/debian/changelog
--- gambc-4.9.3/debian/changelog 2024-02-29 23:30:23.000000000 +0100
+++ gambc-4.9.3/debian/changelog 2025-03-07 13:33:09.000000000 +0100
@@ -1,3 +1,13 @@
+gambc (4.9.3-1.4) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ [ yalingfang <fangyal...@loongson.cn> ]
+ [ wuruilong <wuruil...@loongson.cn> ]
+ [ zhangdandan <zhangdan...@loongson.cn> ]
+ * add loongarch support with upstream merged patch (Closes: #1060885)
+
+ -- Gianfranco Costamagna <locutusofb...@debian.org> Fri, 07 Mar 2025
13:33:09 +0100
+
gambc (4.9.3-1.3) unstable; urgency=medium
* Non-maintainer upload.
diff -Nru gambc-4.9.3/debian/patches/series gambc-4.9.3/debian/patches/series
--- gambc-4.9.3/debian/patches/series 2021-12-06 21:16:55.000000000 +0100
+++ gambc-4.9.3/debian/patches/series 2025-03-07 13:32:54.000000000 +0100
@@ -3,3 +3,4 @@
reproducibility.patch
s390x.patch
autoconf2.71.patch
+update-loongarch-support.patch
diff -Nru gambc-4.9.3/debian/patches/update-loongarch-support.patch
gambc-4.9.3/debian/patches/update-loongarch-support.patch
--- gambc-4.9.3/debian/patches/update-loongarch-support.patch 1970-01-01
01:00:00.000000000 +0100
+++ gambc-4.9.3/debian/patches/update-loongarch-support.patch 2025-03-07
13:33:07.000000000 +0100
@@ -0,0 +1,42 @@
+Forwarded: https://github.com/gambit/gambit/pull/926
+Author: Dandan Zhang <zhangdan...@loongson.cn>
+
+---
+Last-Update: 2025-02-27
+
+--- gambc-4.9.3.orig/include/gambit.h.in
++++ gambc-4.9.3/include/gambit.h.in
+@@ -408,6 +408,22 @@
+
+ #endif
+
++#ifndef ___CPU_loongarch
++
++#ifdef loongarch
++#define ___CPU_loongarch
++#else
++#ifdef __loongarch
++#define ___CPU_loongarch
++#else
++#ifdef __loongarch__
++#define ___CPU_loongarch
++#endif
++#endif
++#endif
++
++#endif
++
+ #ifdef __aarch64__
+ #define ___CPU_aarch64
+ #else
+@@ -483,6 +499,10 @@
+ #endif
+ #endif
+
++#ifdef ___CPU_loongarch
++#define ___LITTLE_ENDIAN
++#endif
++
+ #ifdef EMSCRIPTEN
+ #define ___LITTLE_ENDIAN
+ #endif
diff -Nru gambc-4.9.3/debian/changelog gambc-4.9.3/debian/changelog
--- gambc-4.9.3/debian/changelog 2024-02-29 23:30:23.000000000 +0100
+++ gambc-4.9.3/debian/changelog 2025-03-07 13:33:09.000000000 +0100
@@ -1,3 +1,13 @@
+gambc (4.9.3-1.4) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ [ yalingfang <fangyal...@loongson.cn> ]
+ [ wuruilong <wuruil...@loongson.cn> ]
+ [ zhangdandan <zhangdan...@loongson.cn> ]
+ * add loongarch support with upstream merged patch (Closes: #1060885)
+
+ -- Gianfranco Costamagna <locutusofb...@debian.org> Fri, 07 Mar 2025 13:33:09 +0100
+
gambc (4.9.3-1.3) unstable; urgency=medium
* Non-maintainer upload.
diff -Nru gambc-4.9.3/debian/patches/series gambc-4.9.3/debian/patches/series
--- gambc-4.9.3/debian/patches/series 2021-12-06 21:16:55.000000000 +0100
+++ gambc-4.9.3/debian/patches/series 2025-03-07 13:32:54.000000000 +0100
@@ -3,3 +3,4 @@
reproducibility.patch
s390x.patch
autoconf2.71.patch
+update-loongarch-support.patch
diff -Nru gambc-4.9.3/debian/patches/update-loongarch-support.patch gambc-4.9.3/debian/patches/update-loongarch-support.patch
--- gambc-4.9.3/debian/patches/update-loongarch-support.patch 1970-01-01 01:00:00.000000000 +0100
+++ gambc-4.9.3/debian/patches/update-loongarch-support.patch 2025-03-07 13:33:07.000000000 +0100
@@ -0,0 +1,42 @@
+Forwarded: https://github.com/gambit/gambit/pull/926
+Author: Dandan Zhang <zhangdan...@loongson.cn>
+
+---
+Last-Update: 2025-02-27
+
+--- gambc-4.9.3.orig/include/gambit.h.in
++++ gambc-4.9.3/include/gambit.h.in
+@@ -408,6 +408,22 @@
+
+ #endif
+
++#ifndef ___CPU_loongarch
++
++#ifdef loongarch
++#define ___CPU_loongarch
++#else
++#ifdef __loongarch
++#define ___CPU_loongarch
++#else
++#ifdef __loongarch__
++#define ___CPU_loongarch
++#endif
++#endif
++#endif
++
++#endif
++
+ #ifdef __aarch64__
+ #define ___CPU_aarch64
+ #else
+@@ -483,6 +499,10 @@
+ #endif
+ #endif
+
++#ifdef ___CPU_loongarch
++#define ___LITTLE_ENDIAN
++#endif
++
+ #ifdef EMSCRIPTEN
+ #define ___LITTLE_ENDIAN
+ #endif