Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame patches/libressl-2.9.1.local.patch

Lucio Andrés Illanes Albornoz 77690b
diff -ru libressl-2.9.1.orig/configure.ac libressl-2.9.1/configure.ac
Lucio Andrés Illanes Albornoz 77690b
--- libressl-2.9.1.orig/configure.ac	2019-04-11 13:20:57.000000000 +0200
Lucio Andrés Illanes Albornoz 77690b
+++ libressl-2.9.1/configure.ac	2019-04-25 11:35:00.232577751 +0200
Lucio Andrés Illanes Albornoz 77690b
@@ -115,6 +115,8 @@
Lucio Andrés Illanes Albornoz 77690b
     [test "x$HOST_ABI" = "xmasm" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"])
Lucio Andrés Illanes Albornoz 77690b
 AM_CONDITIONAL([HOST_ASM_MINGW64_X86_64],
Lucio Andrés Illanes Albornoz 77690b
     [test "x$HOST_ABI" = "xmingw64" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"])
Lucio Andrés Illanes Albornoz 77690b
+AM_CONDITIONAL([HOST_ASM_MINGW64_X86_64],
Lucio Andrés Illanes Albornoz 77690b
+    [test "x$HOST_ABI" = "xmingw64" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"])
Lucio Andrés Illanes Albornoz 77690b
 
Lucio Andrés Illanes Albornoz 77690b
 # Check if time_t is sized correctly
Lucio Andrés Illanes Albornoz 77690b
 AC_CHECK_SIZEOF([time_t], [time.h])
Lucio Andrés Illanes Albornoz 77690b
diff -ru libressl-2.9.1.orig/crypto/compat/arc4random.h libressl-2.9.1/crypto/compat/arc4random.h
Lucio Andrés Illanes Albornoz 77690b
--- libressl-2.9.1.orig/crypto/compat/arc4random.h	2017-11-04 21:04:56.000000000 +0100
Lucio Andrés Illanes Albornoz 77690b
+++ libressl-2.9.1/crypto/compat/arc4random.h	2019-04-23 08:24:53.883460156 +0200
Lucio Andrés Illanes Albornoz 77690b
@@ -12,7 +12,7 @@
Lucio Andrés Illanes Albornoz 77690b
 #elif defined(__hpux)
Lucio Andrés Illanes Albornoz 77690b
 #include "arc4random_hpux.h"
Lucio Andrés Illanes Albornoz 77690b
 
Lucio Andrés Illanes Albornoz 77690b
-#elif defined(__linux__)
Lucio Andrés Illanes Albornoz 77690b
+#elif defined(__linux__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz 77690b
 #include "arc4random_linux.h"
Lucio Andrés Illanes Albornoz 77690b
 
Lucio Andrés Illanes Albornoz 77690b
 #elif defined(__NetBSD__)
Lucio Andrés Illanes Albornoz 77690b
diff -ru libressl-2.9.1.orig/crypto/Makefile.am libressl-2.9.1/crypto/Makefile.am
Lucio Andrés Illanes Albornoz 77690b
--- libressl-2.9.1.orig/crypto/Makefile.am	2019-04-11 13:20:57.000000000 +0200
Lucio Andrés Illanes Albornoz 77690b
+++ libressl-2.9.1/crypto/Makefile.am	2019-04-25 12:00:00.092586851 +0200
Lucio Andrés Illanes Albornoz 77690b
@@ -167,6 +167,9 @@
Lucio Andrés Illanes Albornoz 77690b
 if HOST_LINUX
Lucio Andrés Illanes Albornoz 77690b
 libcompat_la_SOURCES += compat/getprogname_linux.c
Lucio Andrés Illanes Albornoz 77690b
 else
Lucio Andrés Illanes Albornoz 77690b
+if HOST_MIDIPIX
Lucio Andrés Illanes Albornoz 77690b
+libcompat_la_SOURCES += compat/getprogname_linux.c
Lucio Andrés Illanes Albornoz 77690b
+else
Lucio Andrés Illanes Albornoz 77690b
 if HOST_WIN
Lucio Andrés Illanes Albornoz 77690b
 libcompat_la_SOURCES += compat/getprogname_windows.c
Lucio Andrés Illanes Albornoz 77690b
 else
Lucio Andrés Illanes Albornoz 77690b
@@ -174,6 +177,7 @@
Lucio Andrés Illanes Albornoz 77690b
 endif
Lucio Andrés Illanes Albornoz 77690b
 endif
Lucio Andrés Illanes Albornoz 77690b
 endif
Lucio Andrés Illanes Albornoz 77690b
+endif
Lucio Andrés Illanes Albornoz 77690b
 
Lucio Andrés Illanes Albornoz 77690b
 if !HAVE_TIMEGM
Lucio Andrés Illanes Albornoz 77690b
 libcompat_la_SOURCES += compat/timegm.c
Lucio Andrés Illanes Albornoz 77690b
diff -ru libressl-2.9.1.orig/include/compat/machine/endian.h libressl-2.9.1/include/compat/machine/endian.h
Lucio Andrés Illanes Albornoz 77690b
--- libressl-2.9.1.orig/include/compat/machine/endian.h	2017-11-04 21:04:56.000000000 +0100
Lucio Andrés Illanes Albornoz 77690b
+++ libressl-2.9.1/include/compat/machine/endian.h	2019-04-23 08:20:38.971458609 +0200
Lucio Andrés Illanes Albornoz 77690b
@@ -21,7 +21,7 @@
Lucio Andrés Illanes Albornoz 77690b
 #define BYTE_ORDER BIG_ENDIAN
Lucio Andrés Illanes Albornoz 77690b
 #endif
Lucio Andrés Illanes Albornoz 77690b
 
Lucio Andrés Illanes Albornoz 77690b
-#elif defined(__linux__)
Lucio Andrés Illanes Albornoz 77690b
+#elif defined(__linux__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz 77690b
 #include <endian.h>
Lucio Andrés Illanes Albornoz 77690b
 
Lucio Andrés Illanes Albornoz 77690b
 #elif defined(__sun) || defined(_AIX) || defined(__hpux)
Lucio Andrés Illanes Albornoz 77690b
diff -ru libressl-2.9.1.orig/m4/check-os-options.m4 libressl-2.9.1/m4/check-os-options.m4
Lucio Andrés Illanes Albornoz 77690b
--- libressl-2.9.1.orig/m4/check-os-options.m4	2019-04-11 13:20:57.000000000 +0200
Lucio Andrés Illanes Albornoz 77690b
+++ libressl-2.9.1/m4/check-os-options.m4	2019-04-25 11:33:31.580577213 +0200
Lucio Andrés Illanes Albornoz 77690b
@@ -110,6 +110,11 @@
Lucio Andrés Illanes Albornoz 77690b
 		CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_SPEED"
Lucio Andrés Illanes Albornoz 77690b
 		AC_SUBST([PLATFORM_LDADD], ['-lws2_32'])
Lucio Andrés Illanes Albornoz 77690b
 		;;
Lucio Andrés Illanes Albornoz 77690b
+	*midipix*)
Lucio Andrés Illanes Albornoz 77690b
+		HOST_OS=midipix
Lucio Andrés Illanes Albornoz 77690b
+		HOST_ABI=mingw64
Lucio Andrés Illanes Albornoz 77690b
+		CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE"
Lucio Andrés Illanes Albornoz 77690b
+		;;
Lucio Andrés Illanes Albornoz 77690b
 	*solaris*)
Lucio Andrés Illanes Albornoz 77690b
 		HOST_OS=solaris
Lucio Andrés Illanes Albornoz 77690b
 		HOST_ABI=elf
Lucio Andrés Illanes Albornoz 77690b
@@ -134,4 +139,5 @@
Lucio Andrés Illanes Albornoz 77690b
 AM_CONDITIONAL([HOST_OPENBSD], [test x$HOST_OS = xopenbsd])
Lucio Andrés Illanes Albornoz 77690b
 AM_CONDITIONAL([HOST_SOLARIS], [test x$HOST_OS = xsolaris])
Lucio Andrés Illanes Albornoz 77690b
 AM_CONDITIONAL([HOST_WIN],     [test x$HOST_OS = xwin])
Lucio Andrés Illanes Albornoz 77690b
+AM_CONDITIONAL([HOST_MIDIPIX], [test x$HOST_OS = xmidipix])
Lucio Andrés Illanes Albornoz 77690b
 ])