aboutsummaryrefslogtreecommitdiff
path: root/misc/free42/files
diff options
context:
space:
mode:
Diffstat (limited to 'misc/free42/files')
-rw-r--r--misc/free42/files/patch-common_bid__functions.h14
-rw-r--r--misc/free42/files/patch-common_core__commands6.cc13
-rw-r--r--misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_LIBRARY_src_bid__functions.h14
-rw-r--r--misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_TESTS_test__bid__functions.h14
-rw-r--r--misc/free42/files/patch-gtk_build-intel-lib.sh26
-rw-r--r--misc/free42/files/patch-gtk_intel-lib-freebsd.patch17
6 files changed, 98 insertions, 0 deletions
diff --git a/misc/free42/files/patch-common_bid__functions.h b/misc/free42/files/patch-common_bid__functions.h
new file mode 100644
index 000000000000..816794317f02
--- /dev/null
+++ b/misc/free42/files/patch-common_bid__functions.h
@@ -0,0 +1,14 @@
+--- common/bid_functions.h.orig 2021-03-25 17:43:15 UTC
++++ common/bid_functions.h
+@@ -159,11 +159,7 @@ typedef unsigned long fexcept_t;
+ typedef unsigned bid__int64 fexcept_t;
+ #endif
+ #else
+-#ifdef __QNX__
+ #include <fenv.h>
+-#else
+-typedef unsigned short int fexcept_t;
+-#endif
+ #endif
+ #endif
+
diff --git a/misc/free42/files/patch-common_core__commands6.cc b/misc/free42/files/patch-common_core__commands6.cc
new file mode 100644
index 000000000000..55583b8e7f28
--- /dev/null
+++ b/misc/free42/files/patch-common_core__commands6.cc
@@ -0,0 +1,13 @@
+--- common/core_commands6.cc.orig 2021-03-17 00:38:17 UTC
++++ common/core_commands6.cc
+@@ -1096,8 +1096,8 @@ int docmd_stoflag(arg_struct *arg) {
+ p <<= 1;
+ }
+
+- char new_g = !flags.f.rad && flags.f.grad;
+- char new_rad = flags.f.rad || flags.f.grad;
++ signed char new_g = !flags.f.rad && flags.f.grad;
++ signed char new_rad = flags.f.rad || flags.f.grad;
+ if (new_g == old_g)
+ new_g = -1;
+ if (new_rad == old_rad)
diff --git a/misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_LIBRARY_src_bid__functions.h b/misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_LIBRARY_src_bid__functions.h
new file mode 100644
index 000000000000..1369a7f697f9
--- /dev/null
+++ b/misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_LIBRARY_src_bid__functions.h
@@ -0,0 +1,14 @@
+--- gtk/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h.orig 2021-03-25 17:43:14 UTC
++++ gtk/IntelRDFPMathLib20U1/LIBRARY/src/bid_functions.h
+@@ -159,11 +159,7 @@ typedef unsigned long fexcept_t;
+ typedef unsigned bid__int64 fexcept_t;
+ #endif
+ #else
+-#ifdef __QNX__
+ #include <fenv.h>
+-#else
+-typedef unsigned short int fexcept_t;
+-#endif
+ #endif
+ #endif
+
diff --git a/misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_TESTS_test__bid__functions.h b/misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_TESTS_test__bid__functions.h
new file mode 100644
index 000000000000..f63506109004
--- /dev/null
+++ b/misc/free42/files/patch-gtk_IntelRDFPMathLib20U1_TESTS_test__bid__functions.h
@@ -0,0 +1,14 @@
+--- gtk/IntelRDFPMathLib20U1/TESTS/test_bid_functions.h.orig 2021-03-25 17:58:53 UTC
++++ gtk/IntelRDFPMathLib20U1/TESTS/test_bid_functions.h
+@@ -165,11 +165,7 @@ typedef unsigned long fexcept_t;
+ typedef unsigned bid__int64 fexcept_t;
+ #endif
+ #else
+-#ifdef __QNX__
+ #include <fenv.h>
+-#else
+-typedef unsigned short int fexcept_t;
+-#endif
+ #endif
+ #endif
+
diff --git a/misc/free42/files/patch-gtk_build-intel-lib.sh b/misc/free42/files/patch-gtk_build-intel-lib.sh
new file mode 100644
index 000000000000..a7d873ad9e8f
--- /dev/null
+++ b/misc/free42/files/patch-gtk_build-intel-lib.sh
@@ -0,0 +1,26 @@
+--- gtk/build-intel-lib.sh.orig 2021-03-05 01:52:42 UTC
++++ gtk/build-intel-lib.sh
+@@ -43,6 +43,8 @@ fi
+
+ tar xvfz ../inteldecimal/IntelRDFPMathLib20U1.tar.gz
+ cd IntelRDFPMathLib20U1
++sed -i '' -e 's/\r//g' LIBRARY/src/bid_functions.h
++patch -p0 <../intel-lib-freebsd.patch
+ patch -p0 <../intel-lib-linux.patch
+
+ # When building for architectures other than x86 or x86_64, I remove the
+@@ -55,11 +58,11 @@ patch -p0 <../intel-lib-linux.patch
+ # it to x86_64 works when targeting arm64, a 64-bit platform.
+ # Of course, proceed with caution. Your mileage may vary.
+
+-case `uname -m` in
+- armv7|armv7l|ppc)
++case `uname -p` in
++ armv6|armv7|armv7l|ppc|powerpc|powerpcspe|mips)
+ patch -p0 <../intel-lib-unknown-32bit.patch
+ ;;
+- aarch64|arm64|i86pc)
++ aarch64|arm64|i86pc|powerpc64|powerpc64le|mips64|riscv64)
+ patch -p0 <../intel-lib-unknown-64bit.patch
+ ;;
+ esac
diff --git a/misc/free42/files/patch-gtk_intel-lib-freebsd.patch b/misc/free42/files/patch-gtk_intel-lib-freebsd.patch
new file mode 100644
index 000000000000..8cbba70bb94e
--- /dev/null
+++ b/misc/free42/files/patch-gtk_intel-lib-freebsd.patch
@@ -0,0 +1,17 @@
+--- gtk/intel-lib-freebsd.patch.orig 2021-03-25 18:27:04 UTC
++++ gtk/intel-lib-freebsd.patch
+@@ -0,0 +1,14 @@
++--- LIBRARY/src/bid_functions.h.orig 2021-03-25 17:43:14 UTC
+++++ LIBRARY/src/bid_functions.h
++@@ -159,11 +159,7 @@ typedef unsigned long fexcept_t;
++ typedef unsigned bid__int64 fexcept_t;
++ #endif
++ #else
++-#ifdef __QNX__
++ #include <fenv.h>
++-#else
++-typedef unsigned short int fexcept_t;
++-#endif
++ #endif
++ #endif
++