Blame patches/libressl-2.6.1.local.patch

Lucio Andrés Illanes Albornoz a7c532
diff -ru libressl-2.6.1.orig/configure libressl-2.6.1/configure
Lucio Andrés Illanes Albornoz a7c532
--- libressl-2.6.1.orig/configure	2017-09-04 23:50:38.000000000 +0200
Lucio Andrés Illanes Albornoz a7c532
+++ libressl-2.6.1/configure	2017-09-19 20:07:11.024248094 +0200
Lucio Andrés Illanes Albornoz a7c532
@@ -724,6 +724,8 @@
Lucio Andrés Illanes Albornoz a7c532
 HOST_LINUX_TRUE
Lucio Andrés Illanes Albornoz a7c532
 HOST_HPUX_FALSE
Lucio Andrés Illanes Albornoz a7c532
 HOST_HPUX_TRUE
Lucio Andrés Illanes Albornoz a7c532
+HOST_MIDIPIX_FALSE
Lucio Andrés Illanes Albornoz a7c532
+HOST_MIDIPIX_TRUE
Lucio Andrés Illanes Albornoz a7c532
 HOST_FREEBSD_FALSE
Lucio Andrés Illanes Albornoz a7c532
 HOST_FREEBSD_TRUE
Lucio Andrés Illanes Albornoz a7c532
 HOST_DARWIN_FALSE
Lucio Andrés Illanes Albornoz a7c532
@@ -11045,7 +11047,7 @@
Lucio Andrés Illanes Albornoz a7c532
   ;;
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
 # This must be glibc/ELF.
Lucio Andrés Illanes Albornoz a7c532
-linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lucio Andrés Illanes Albornoz a7c532
+linux* | k*bsd*-gnu | kopensolaris*-gnu | midipix*)
Lucio Andrés Illanes Albornoz a7c532
   version_type=linux # correct to gnu/linux during the next big refactor
Lucio Andrés Illanes Albornoz a7c532
   need_lib_prefix=no
Lucio Andrés Illanes Albornoz a7c532
   need_version=no
Lucio Andrés Illanes Albornoz a7c532
@@ -12190,6 +12192,11 @@
Lucio Andrés Illanes Albornoz a7c532
 		HOST_ABI=elf
Lucio Andrés Illanes Albornoz a7c532
 		CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE"
Lucio Andrés Illanes Albornoz a7c532
 		;;
Lucio Andrés Illanes Albornoz a7c532
+	*midipix*)
Lucio Andrés Illanes Albornoz a7c532
+		HOST_OS=midipix
Lucio Andrés Illanes Albornoz a7c532
+		HOST_ABI=pe
Lucio Andrés Illanes Albornoz a7c532
+		CFLAGS="$CFLAGS -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE"
Lucio Andrés Illanes Albornoz a7c532
+		;;
Lucio Andrés Illanes Albornoz a7c532
 	*netbsd*)
Lucio Andrés Illanes Albornoz a7c532
 		HOST_OS=netbsd
Lucio Andrés Illanes Albornoz a7c532
 		HOST_ABI=elf
Lucio Andrés Illanes Albornoz a7c532
@@ -12316,6 +12323,14 @@
Lucio Andrés Illanes Albornoz a7c532
   HOST_LINUX_FALSE=
Lucio Andrés Illanes Albornoz a7c532
 fi
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
+ if test x$HOST_OS = xmidipix; then
Lucio Andrés Illanes Albornoz a7c532
+  HOST_MIDIPIX_TRUE=
Lucio Andrés Illanes Albornoz a7c532
+  HOST_MIDIPIX_FALSE='#'
Lucio Andrés Illanes Albornoz a7c532
+else
Lucio Andrés Illanes Albornoz a7c532
+  HOST_MIDIPIX_TRUE='#'
Lucio Andrés Illanes Albornoz a7c532
+  HOST_MIDIPIX_FALSE=
Lucio Andrés Illanes Albornoz a7c532
+fi
Lucio Andrés Illanes Albornoz a7c532
+
Lucio Andrés Illanes Albornoz a7c532
  if test x$HOST_OS = xnetbsd; then
Lucio Andrés Illanes Albornoz a7c532
   HOST_NETBSD_TRUE=
Lucio Andrés Illanes Albornoz a7c532
   HOST_NETBSD_FALSE='#'
Lucio Andrés Illanes Albornoz a7c532
@@ -14214,6 +14229,10 @@
Lucio Andrés Illanes Albornoz a7c532
   as_fn_error $? "conditional \"HOST_LINUX\" was never defined.
Lucio Andrés Illanes Albornoz a7c532
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lucio Andrés Illanes Albornoz a7c532
 fi
Lucio Andrés Illanes Albornoz a7c532
+if test -z "${HOST_MIDIPIX_TRUE}" && test -z "${HOST_MIDIPIX_FALSE}"; then
Lucio Andrés Illanes Albornoz a7c532
+  as_fn_error $? "conditional \"HOST_MIDIPIX\" was never defined.
Lucio Andrés Illanes Albornoz a7c532
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lucio Andrés Illanes Albornoz a7c532
+fi
Lucio Andrés Illanes Albornoz a7c532
 if test -z "${HOST_NETBSD_TRUE}" && test -z "${HOST_NETBSD_FALSE}"; then
Lucio Andrés Illanes Albornoz a7c532
   as_fn_error $? "conditional \"HOST_NETBSD\" was never defined.
Lucio Andrés Illanes Albornoz a7c532
 Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lucio Andrés Illanes Albornoz a7c532
diff -ru libressl-2.6.1.orig/crypto/compat/arc4random.h libressl-2.6.1/crypto/compat/arc4random.h
Lucio Andrés Illanes Albornoz a7c532
--- libressl-2.6.1.orig/crypto/compat/arc4random.h	2016-04-04 00:14:45.000000000 +0200
Lucio Andrés Illanes Albornoz a7c532
+++ libressl-2.6.1/crypto/compat/arc4random.h	2017-09-19 19:45:28.995745938 +0200
Lucio Andrés Illanes Albornoz a7c532
@@ -12,7 +12,7 @@
Lucio Andrés Illanes Albornoz a7c532
 #elif defined(__hpux)
Lucio Andrés Illanes Albornoz a7c532
 #include "arc4random_hpux.h"
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
-#elif defined(__linux__)
Lucio Andrés Illanes Albornoz a7c532
+#elif defined(__linux__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz a7c532
 #include "arc4random_linux.h"
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
 #elif defined(__NetBSD__)
Lucio Andrés Illanes Albornoz a7c532
diff -ru libressl-2.6.1.orig/crypto/compat/getentropy_linux.c libressl-2.6.1/crypto/compat/getentropy_linux.c
Lucio Andrés Illanes Albornoz a7c532
--- libressl-2.6.1.orig/crypto/compat/getentropy_linux.c	2017-09-04 23:50:15.000000000 +0200
Lucio Andrés Illanes Albornoz a7c532
+++ libressl-2.6.1/crypto/compat/getentropy_linux.c	2017-09-19 20:18:40.240411176 +0200
Lucio Andrés Illanes Albornoz a7c532
@@ -27,7 +27,7 @@
Lucio Andrés Illanes Albornoz a7c532
 #include <sys/ioctl.h>
Lucio Andrés Illanes Albornoz a7c532
 #include <sys/resource.h>
Lucio Andrés Illanes Albornoz a7c532
 #include <sys/syscall.h>
Lucio Andrés Illanes Albornoz a7c532
-#ifdef SYS__sysctl
Lucio Andrés Illanes Albornoz a7c532
+#if defined(SYS__sysctl) && !defined(__midipix__)
Lucio Andrés Illanes Albornoz a7c532
 #include <linux/sysctl.h>
Lucio Andrés Illanes Albornoz a7c532
 #endif
Lucio Andrés Illanes Albornoz a7c532
 #include <sys/statvfs.h>
Lucio Andrés Illanes Albornoz a7c532
@@ -49,8 +49,10 @@
Lucio Andrés Illanes Albornoz a7c532
 #include <time.h>
Lucio Andrés Illanes Albornoz a7c532
 #include <openssl/sha.h>
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
+#ifndef __midipix__
Lucio Andrés Illanes Albornoz a7c532
 #include <linux/types.h>
Lucio Andrés Illanes Albornoz a7c532
 #include <linux/random.h>
Lucio Andrés Illanes Albornoz a7c532
+#endif
Lucio Andrés Illanes Albornoz a7c532
 #ifdef HAVE_GETAUXVAL
Lucio Andrés Illanes Albornoz a7c532
 #include <sys/auxv.h>
Lucio Andrés Illanes Albornoz a7c532
 #endif
Lucio Andrés Illanes Albornoz a7c532
@@ -74,11 +76,11 @@
Lucio Andrés Illanes Albornoz a7c532
 int	getentropy(void *buf, size_t len);
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
 static int gotdata(char *buf, size_t len);
Lucio Andrés Illanes Albornoz a7c532
-#ifdef SYS_getrandom
Lucio Andrés Illanes Albornoz a7c532
+#if defined(SYS_getrandom) && !defined(__midipix__)
Lucio Andrés Illanes Albornoz a7c532
 static int getentropy_getrandom(void *buf, size_t len);
Lucio Andrés Illanes Albornoz a7c532
 #endif
Lucio Andrés Illanes Albornoz a7c532
 static int getentropy_urandom(void *buf, size_t len);
Lucio Andrés Illanes Albornoz a7c532
-#ifdef SYS__sysctl
Lucio Andrés Illanes Albornoz a7c532
+#if defined(SYS__sysctl) && !defined(__midipix__)
Lucio Andrés Illanes Albornoz a7c532
 static int getentropy_sysctl(void *buf, size_t len);
Lucio Andrés Illanes Albornoz a7c532
 #endif
Lucio Andrés Illanes Albornoz a7c532
 static int getentropy_fallback(void *buf, size_t len);
Lucio Andrés Illanes Albornoz a7c532
@@ -94,7 +96,7 @@
Lucio Andrés Illanes Albornoz a7c532
 		return (-1);
Lucio Andrés Illanes Albornoz a7c532
 	}
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
-#ifdef SYS_getrandom
Lucio Andrés Illanes Albornoz a7c532
+#if defined(SYS_getrandom) && !defined(__midipix__)
Lucio Andrés Illanes Albornoz a7c532
 	/*
Lucio Andrés Illanes Albornoz a7c532
 	 * Try descriptor-less getrandom(), in non-blocking mode.
Lucio Andrés Illanes Albornoz a7c532
 	 *
Lucio Andrés Illanes Albornoz a7c532
@@ -118,7 +120,7 @@
Lucio Andrés Illanes Albornoz a7c532
 	if (ret != -1)
Lucio Andrés Illanes Albornoz a7c532
 		return (ret);
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
-#ifdef SYS__sysctl
Lucio Andrés Illanes Albornoz a7c532
+#if defined(SYS__sysctl) && !defined(__midipix__)
Lucio Andrés Illanes Albornoz a7c532
 	/*
Lucio Andrés Illanes Albornoz a7c532
 	 * Try to use sysctl CTL_KERN, KERN_RANDOM, RANDOM_UUID.
Lucio Andrés Illanes Albornoz a7c532
 	 * sysctl is a failsafe API, so it guarantees a result.  This
Lucio Andrés Illanes Albornoz a7c532
@@ -193,7 +195,7 @@
Lucio Andrés Illanes Albornoz a7c532
 	return (0);
Lucio Andrés Illanes Albornoz a7c532
 }
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
-#ifdef SYS_getrandom
Lucio Andrés Illanes Albornoz a7c532
+#if defined(SYS_getrandom) && !defined(__midipix__)
Lucio Andrés Illanes Albornoz a7c532
 static int
Lucio Andrés Illanes Albornoz a7c532
 getentropy_getrandom(void *buf, size_t len)
Lucio Andrés Illanes Albornoz a7c532
 {
Lucio Andrés Illanes Albornoz a7c532
@@ -244,10 +246,12 @@
Lucio Andrés Illanes Albornoz a7c532
 		close(fd);
Lucio Andrés Illanes Albornoz a7c532
 		goto nodevrandom;
Lucio Andrés Illanes Albornoz a7c532
 	}
Lucio Andrés Illanes Albornoz a7c532
+#ifndef __midipix__
Lucio Andrés Illanes Albornoz a7c532
 	if (ioctl(fd, RNDGETENTCNT, &cnt) == -1) {
Lucio Andrés Illanes Albornoz a7c532
 		close(fd);
Lucio Andrés Illanes Albornoz a7c532
 		goto nodevrandom;
Lucio Andrés Illanes Albornoz a7c532
 	}
Lucio Andrés Illanes Albornoz a7c532
+#endif
Lucio Andrés Illanes Albornoz a7c532
 	for (i = 0; i < len; ) {
Lucio Andrés Illanes Albornoz a7c532
 		size_t wanted = len - i;
Lucio Andrés Illanes Albornoz a7c532
 		ssize_t ret = read(fd, (char *)buf + i, wanted);
Lucio Andrés Illanes Albornoz a7c532
@@ -270,7 +274,7 @@
Lucio Andrés Illanes Albornoz a7c532
 	return (-1);
Lucio Andrés Illanes Albornoz a7c532
 }
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
-#ifdef SYS__sysctl
Lucio Andrés Illanes Albornoz a7c532
+#if defined(SYS__sysctl) && !defined(__midipix__)
Lucio Andrés Illanes Albornoz a7c532
 static int
Lucio Andrés Illanes Albornoz a7c532
 getentropy_sysctl(void *buf, size_t len)
Lucio Andrés Illanes Albornoz a7c532
 {
Lucio Andrés Illanes Albornoz a7c532
diff -ru libressl-2.6.1.orig/crypto/Makefile.in libressl-2.6.1/crypto/Makefile.in
Lucio Andrés Illanes Albornoz a7c532
--- libressl-2.6.1.orig/crypto/Makefile.in	2017-09-04 23:50:41.000000000 +0200
Lucio Andrés Illanes Albornoz a7c532
+++ libressl-2.6.1/crypto/Makefile.in	2017-09-19 20:01:29.750162029 +0200
Lucio Andrés Illanes Albornoz a7c532
@@ -121,10 +121,11 @@
Lucio Andrés Illanes Albornoz a7c532
 @HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_FREEBSD_TRUE@am__append_26 = compat/getentropy_freebsd.c
Lucio Andrés Illanes Albornoz a7c532
 @HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_HPUX_TRUE@am__append_27 = compat/getentropy_hpux.c
Lucio Andrés Illanes Albornoz a7c532
 @HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_LINUX_TRUE@am__append_28 = compat/getentropy_linux.c
Lucio Andrés Illanes Albornoz a7c532
-@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_NETBSD_TRUE@am__append_29 = compat/getentropy_netbsd.c
Lucio Andrés Illanes Albornoz a7c532
-@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_DARWIN_TRUE@am__append_30 = compat/getentropy_osx.c
Lucio Andrés Illanes Albornoz a7c532
-@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_SOLARIS_TRUE@am__append_31 = compat/getentropy_solaris.c
Lucio Andrés Illanes Albornoz a7c532
-@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_WIN_TRUE@am__append_32 = compat/getentropy_win.c
Lucio Andrés Illanes Albornoz a7c532
+@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_MIDIPIX_TRUE@am__append_29 = compat/getentropy_linux.c
Lucio Andrés Illanes Albornoz a7c532
+@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_NETBSD_TRUE@am__append_30 = compat/getentropy_netbsd.c
Lucio Andrés Illanes Albornoz a7c532
+@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_DARWIN_TRUE@am__append_31 = compat/getentropy_osx.c
Lucio Andrés Illanes Albornoz a7c532
+@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_SOLARIS_TRUE@am__append_32 = compat/getentropy_solaris.c
Lucio Andrés Illanes Albornoz a7c532
+@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_WIN_TRUE@am__append_33 = compat/getentropy_win.c
Lucio Andrés Illanes Albornoz a7c532
 @HOST_ASM_ELF_X86_64_TRUE@am__append_33 = -DAES_ASM -DBSAES_ASM \
Lucio Andrés Illanes Albornoz a7c532
 @HOST_ASM_ELF_X86_64_TRUE@	-DVPAES_ASM -DOPENSSL_IA32_SSE2 \
Lucio Andrés Illanes Albornoz a7c532
 @HOST_ASM_ELF_X86_64_TRUE@	-DOPENSSL_BN_ASM_MONT \
Lucio Andrés Illanes Albornoz a7c532
@@ -239,10 +240,11 @@
Lucio Andrés Illanes Albornoz a7c532
 @HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_FREEBSD_TRUE@am__objects_18 = compat/getentropy_freebsd.lo
Lucio Andrés Illanes Albornoz a7c532
 @HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_HPUX_TRUE@am__objects_19 = compat/getentropy_hpux.lo
Lucio Andrés Illanes Albornoz a7c532
 @HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_LINUX_TRUE@am__objects_20 = compat/getentropy_linux.lo
Lucio Andrés Illanes Albornoz a7c532
-@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_NETBSD_TRUE@am__objects_21 = compat/getentropy_netbsd.lo
Lucio Andrés Illanes Albornoz a7c532
-@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_DARWIN_TRUE@am__objects_22 = compat/getentropy_osx.lo
Lucio Andrés Illanes Albornoz a7c532
-@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_SOLARIS_TRUE@am__objects_23 = compat/getentropy_solaris.lo
Lucio Andrés Illanes Albornoz a7c532
-@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_WIN_TRUE@am__objects_24 = compat/getentropy_win.lo
Lucio Andrés Illanes Albornoz a7c532
+@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_MIDIPIX_TRUE@am__objects_21 = compat/getentropy_linux.lo
Lucio Andrés Illanes Albornoz a7c532
+@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_NETBSD_TRUE@am__objects_22 = compat/getentropy_netbsd.lo
Lucio Andrés Illanes Albornoz a7c532
+@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_DARWIN_TRUE@am__objects_23 = compat/getentropy_osx.lo
Lucio Andrés Illanes Albornoz a7c532
+@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_SOLARIS_TRUE@am__objects_24 = compat/getentropy_solaris.lo
Lucio Andrés Illanes Albornoz a7c532
+@HAVE_ARC4RANDOM_BUF_FALSE@@HAVE_GETENTROPY_FALSE@@HOST_WIN_TRUE@am__objects_25 = compat/getentropy_win.lo
Lucio Andrés Illanes Albornoz a7c532
 am_libcompat_la_OBJECTS = $(am__objects_1) $(am__objects_2) \
Lucio Andrés Illanes Albornoz a7c532
 	$(am__objects_3) $(am__objects_4) $(am__objects_5) \
Lucio Andrés Illanes Albornoz a7c532
 	$(am__objects_6) $(am__objects_7) $(am__objects_8) \
Lucio Andrés Illanes Albornoz a7c532
@@ -251,7 +253,7 @@
Lucio Andrés Illanes Albornoz a7c532
 	$(am__objects_15) $(am__objects_16) $(am__objects_17) \
Lucio Andrés Illanes Albornoz a7c532
 	$(am__objects_18) $(am__objects_19) $(am__objects_20) \
Lucio Andrés Illanes Albornoz a7c532
 	$(am__objects_21) $(am__objects_22) $(am__objects_23) \
Lucio Andrés Illanes Albornoz a7c532
-	$(am__objects_24)
Lucio Andrés Illanes Albornoz a7c532
+	$(am__objects_24) $(am__objects_25)
Lucio Andrés Illanes Albornoz a7c532
 libcompat_la_OBJECTS = $(am_libcompat_la_OBJECTS)
Lucio Andrés Illanes Albornoz a7c532
 AM_V_lt = $(am__v_lt_@AM_V@)
Lucio Andrés Illanes Albornoz a7c532
 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
Lucio Andrés Illanes Albornoz a7c532
@@ -1020,7 +1022,7 @@
Lucio Andrés Illanes Albornoz a7c532
 	$(am__append_23) $(am__append_24) $(am__append_25) \
Lucio Andrés Illanes Albornoz a7c532
 	$(am__append_26) $(am__append_27) $(am__append_28) \
Lucio Andrés Illanes Albornoz a7c532
 	$(am__append_29) $(am__append_30) $(am__append_31) \
Lucio Andrés Illanes Albornoz a7c532
-	$(am__append_32)
Lucio Andrés Illanes Albornoz a7c532
+	$(am__append_32) $(am__append_33)
Lucio Andrés Illanes Albornoz a7c532
 libcompat_la_LIBADD = $(PLATFORM_LDADD)
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
 # rc4
Lucio Andrés Illanes Albornoz a7c532
diff -ru libressl-2.6.1.orig/include/compat/machine/endian.h libressl-2.6.1/include/compat/machine/endian.h
Lucio Andrés Illanes Albornoz a7c532
--- libressl-2.6.1.orig/include/compat/machine/endian.h	2016-04-04 00:14:45.000000000 +0200
Lucio Andrés Illanes Albornoz a7c532
+++ libressl-2.6.1/include/compat/machine/endian.h	2017-09-19 20:02:26.977839948 +0200
Lucio Andrés Illanes Albornoz a7c532
@@ -21,7 +21,7 @@
Lucio Andrés Illanes Albornoz a7c532
 #define BYTE_ORDER BIG_ENDIAN
Lucio Andrés Illanes Albornoz a7c532
 #endif
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
-#elif defined(__linux__)
Lucio Andrés Illanes Albornoz a7c532
+#elif defined(__linux__) || defined(__midipix__)
Lucio Andrés Illanes Albornoz a7c532
 #include <endian.h>
Lucio Andrés Illanes Albornoz a7c532
 
Lucio Andrés Illanes Albornoz a7c532
 #elif defined(__sun) || defined(_AIX) || defined(__hpux)
Lucio Andrés Illanes Albornoz d67761
diff -ru libressl-2.6.1.orig/man/Makefile.am libressl-2.6.1/man/Makefile.am
Lucio Andrés Illanes Albornoz d67761
--- libressl-2.6.1.orig/man/Makefile.am	2017-09-04 23:50:27.000000000 +0200
Lucio Andrés Illanes Albornoz d67761
+++ libressl-2.6.1/man/Makefile.am	2017-10-17 15:08:48.948729828 +0200
Lucio Andrés Illanes Albornoz d67761
@@ -2411,14 +2411,6 @@
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/LHASH_DOALL_ARG_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/LHASH_DOALL_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/LHASH_HASH_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_delete.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_doall.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_doall_arg.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_error.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_free.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_insert.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_new.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_retrieve.3"
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_delete.3"
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_doall.3"
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_doall_arg.3"
Lucio Andrés Illanes Albornoz d67761
@@ -4517,14 +4509,6 @@
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/LHASH_DOALL_ARG_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/LHASH_DOALL_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/LHASH_HASH_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_delete.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_doall.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_doall_arg.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_error.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_free.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_insert.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_new.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_retrieve.3"
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/lh_delete.3"
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/lh_doall.3"
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/lh_doall_arg.3"
Lucio Andrés Illanes Albornoz d67761
diff -ru libressl-2.6.1.orig/man/Makefile.in libressl-2.6.1/man/Makefile.in
Lucio Andrés Illanes Albornoz d67761
--- libressl-2.6.1.orig/man/Makefile.in	2017-09-04 23:50:42.000000000 +0200
Lucio Andrés Illanes Albornoz d67761
+++ libressl-2.6.1/man/Makefile.in	2017-10-17 15:09:11.020656860 +0200
Lucio Andrés Illanes Albornoz d67761
@@ -2677,14 +2677,6 @@
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/LHASH_DOALL_ARG_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/LHASH_DOALL_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/LHASH_HASH_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_delete.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_doall.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_doall_arg.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_error.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_free.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_insert.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_new.3"
Lucio Andrés Illanes Albornoz d67761
-	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_<type>_retrieve.3"
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_delete.3"
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_doall.3"
Lucio Andrés Illanes Albornoz d67761
 	ln -sf "lh_new.3" "$(DESTDIR)$(mandir)/man3/lh_doall_arg.3"
Lucio Andrés Illanes Albornoz d67761
@@ -4783,14 +4775,6 @@
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/LHASH_DOALL_ARG_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/LHASH_DOALL_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/LHASH_HASH_FN_TYPE.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_delete.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_doall.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_doall_arg.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_error.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_free.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_insert.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_new.3"
Lucio Andrés Illanes Albornoz d67761
-	-rm -f "$(DESTDIR)$(mandir)/man3/lh_<type>_retrieve.3"
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/lh_delete.3"
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/lh_doall.3"
Lucio Andrés Illanes Albornoz d67761
 	-rm -f "$(DESTDIR)$(mandir)/man3/lh_doall_arg.3"