midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame patches/dropbear-2017.75.local.patch

Lucio Andrés Illanes Albornoz 47fff4
diff -ru dropbear-2017.75.orig/configure dropbear-2017.75/configure
Lucio Andrés Illanes Albornoz 47fff4
--- dropbear-2017.75.orig/configure	2017-05-18 16:47:03.000000000 +0200
Lucio Andrés Illanes Albornoz 47fff4
+++ dropbear-2017.75/configure	2017-08-23 17:34:07.708548199 +0200
Lucio Andrés Illanes Albornoz 47fff4
@@ -6793,20 +6793,22 @@
Lucio Andrés Illanes Albornoz 47fff4
 
Lucio Andrés Illanes Albornoz 47fff4
 fi
Lucio Andrés Illanes Albornoz 47fff4
 
Lucio Andrés Illanes Albornoz 47fff4
-
Lucio Andrés Illanes Albornoz 47fff4
-# Solaris needs ptmx
Lucio Andrés Illanes Albornoz 47fff4
-if test -z "$no_ptmx_check" ; then
Lucio Andrés Illanes Albornoz 47fff4
-	if test x"$cross_compiling" = x"no" ; then
Lucio Andrés Illanes Albornoz 47fff4
-		if test -e /dev/ptmx ; then
Lucio Andrés Illanes Albornoz 47fff4
-
Lucio Andrés Illanes Albornoz 47fff4
+#Why no config.cache checking?!
Lucio Andrés Illanes Albornoz 47fff4
 $as_echo "#define USE_DEV_PTMX /**/" >>confdefs.h
Lucio Andrés Illanes Albornoz 47fff4
 
Lucio Andrés Illanes Albornoz 47fff4
-		fi
Lucio Andrés Illanes Albornoz 47fff4
-	else
Lucio Andrés Illanes Albornoz 47fff4
-		{ $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5
Lucio Andrés Illanes Albornoz 47fff4
-$as_echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;}
Lucio Andrés Illanes Albornoz 47fff4
-	fi
Lucio Andrés Illanes Albornoz 47fff4
-fi
Lucio Andrés Illanes Albornoz 47fff4
+# Solaris needs ptmx
Lucio Andrés Illanes Albornoz 47fff4
+#if test -z "$no_ptmx_check" ; then
Lucio Andrés Illanes Albornoz 47fff4
+#	if test x"$cross_compiling" = x"no" ; then
Lucio Andrés Illanes Albornoz 47fff4
+#		if test -e /dev/ptmx ; then
Lucio Andrés Illanes Albornoz 47fff4
+#
Lucio Andrés Illanes Albornoz 47fff4
+#$as_echo "#define USE_DEV_PTMX /**/" >>confdefs.h
Lucio Andrés Illanes Albornoz 47fff4
+#
Lucio Andrés Illanes Albornoz 47fff4
+#		fi
Lucio Andrés Illanes Albornoz 47fff4
+#	else
Lucio Andrés Illanes Albornoz 47fff4
+#		{ $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for /dev/ptmx, we're cross-compiling" >&5
Lucio Andrés Illanes Albornoz 47fff4
+#$as_echo "$as_me: Not checking for /dev/ptmx, we're cross-compiling" >&6;}
Lucio Andrés Illanes Albornoz 47fff4
+#	fi
Lucio Andrés Illanes Albornoz 47fff4
+#fi
Lucio Andrés Illanes Albornoz 47fff4
 
Lucio Andrés Illanes Albornoz 47fff4
 if test -z "$no_ptc_check" ; then
Lucio Andrés Illanes Albornoz 47fff4
 	if test x"$cross_compiling" = x"no" ; then
Lucio Andrés Illanes Albornoz 47fff4
diff -ru dropbear-2017.75.orig/includes.h dropbear-2017.75/includes.h
Lucio Andrés Illanes Albornoz 47fff4
--- dropbear-2017.75.orig/includes.h	2017-05-18 16:47:02.000000000 +0200
Lucio Andrés Illanes Albornoz 47fff4
+++ dropbear-2017.75/includes.h	2017-08-23 17:23:59.379752797 +0200
Lucio Andrés Illanes Albornoz 47fff4
@@ -156,7 +156,7 @@
Lucio Andrés Illanes Albornoz 47fff4
 typedef u_int32_t uint32_t;
Lucio Andrés Illanes Albornoz 47fff4
 #endif /* HAVE_UINT32_T */
Lucio Andrés Illanes Albornoz 47fff4
 
Lucio Andrés Illanes Albornoz 47fff4
-#ifdef SO_PRIORITY
Lucio Andrés Illanes Albornoz 47fff4
+#if defined(SO_PRIORITY) && !defined(__midipix__)
Lucio Andrés Illanes Albornoz 47fff4
 #include <linux/types.h>
Lucio Andrés Illanes Albornoz 47fff4
 #include <linux/pkt_sched.h>
Lucio Andrés Illanes Albornoz 47fff4
 #endif
Lucio Andrés Illanes Albornoz 47fff4
diff -ru dropbear-2017.75.orig/netio.c dropbear-2017.75/netio.c
Lucio Andrés Illanes Albornoz 47fff4
--- dropbear-2017.75.orig/netio.c	2017-05-18 16:47:02.000000000 +0200
Lucio Andrés Illanes Albornoz 47fff4
+++ dropbear-2017.75/netio.c	2017-08-23 17:25:34.759249812 +0200
Lucio Andrés Illanes Albornoz 47fff4
@@ -333,7 +333,7 @@
Lucio Andrés Illanes Albornoz 47fff4
 	}
Lucio Andrés Illanes Albornoz 47fff4
 #endif
Lucio Andrés Illanes Albornoz 47fff4
 
Lucio Andrés Illanes Albornoz 47fff4
-#ifdef SO_PRIORITY
Lucio Andrés Illanes Albornoz 47fff4
+#if defined(SO_PRIORITY) && !defined(__midipix__)
Lucio Andrés Illanes Albornoz 47fff4
 	if (prio == DROPBEAR_PRIO_LOWDELAY) {
Lucio Andrés Illanes Albornoz 47fff4
 		so_prio_val = TC_PRIO_INTERACTIVE;
Lucio Andrés Illanes Albornoz 47fff4
 	} else if (prio == DROPBEAR_PRIO_BULK) {
Lucio Andrés Illanes Albornoz 47fff4
diff -ru dropbear-2017.75.orig/options.h dropbear-2017.75/options.h
Lucio Andrés Illanes Albornoz 47fff4
--- dropbear-2017.75.orig/options.h	2017-05-18 16:47:02.000000000 +0200
Lucio Andrés Illanes Albornoz 47fff4
+++ dropbear-2017.75/options.h	2017-08-23 17:27:15.962716376 +0200
Lucio Andrés Illanes Albornoz 47fff4
@@ -52,7 +52,7 @@
Lucio Andrés Illanes Albornoz 47fff4
 several kB in binary size however will make the symmetrical ciphers and hashes
Lucio Andrés Illanes Albornoz 47fff4
 slower, perhaps by 50%. Recommended for small systems that aren't doing
Lucio Andrés Illanes Albornoz 47fff4
 much traffic. */
Lucio Andrés Illanes Albornoz 47fff4
-#define DROPBEAR_SMALL_CODE
Lucio Andrés Illanes Albornoz 47fff4
+/*#define DROPBEAR_SMALL_CODE*/ /* NO! */
Lucio Andrés Illanes Albornoz 47fff4
 
Lucio Andrés Illanes Albornoz 47fff4
 /* Enable X11 Forwarding - server only */
Lucio Andrés Illanes Albornoz 47fff4
 #define ENABLE_X11FWD
Lucio Andrés Illanes Albornoz 47fff4
@@ -347,7 +347,7 @@
Lucio Andrés Illanes Albornoz 47fff4
 #define DEFAULT_IDLE_TIMEOUT 0
Lucio Andrés Illanes Albornoz 47fff4
 
Lucio Andrés Illanes Albornoz 47fff4
 /* The default path. This will often get replaced by the shell */
Lucio Andrés Illanes Albornoz 47fff4
-#define DEFAULT_PATH "/usr/bin:/bin"
Lucio Andrés Illanes Albornoz 47fff4
+#define DEFAULT_PATH "/bin"
Lucio Andrés Illanes Albornoz 47fff4
 
Lucio Andrés Illanes Albornoz 47fff4
 /* Some other defines (that mostly should be left alone) are defined
Lucio Andrés Illanes Albornoz 47fff4
  * in sysoptions.h */