From 25591631f566827c472c4764de0762584d8d9d0b Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Thu, 12 Dec 2013 21:31:18 +0100 Subject: [PATCH] Bump recovery --- .../1.20.2/busybox-1.21.1-musl-1.patch | 44 +++++++++++++++++++ .../001_all_dropbear-initramfs-no-usr.patch | 27 ++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 sys-kernel/recoveryinitramfs/files/busybox/1.20.2/busybox-1.21.1-musl-1.patch create mode 100644 sys-kernel/recoveryinitramfs/files/dropbear/2013.62/001_all_dropbear-initramfs-no-usr.patch diff --git a/sys-kernel/recoveryinitramfs/files/busybox/1.20.2/busybox-1.21.1-musl-1.patch b/sys-kernel/recoveryinitramfs/files/busybox/1.20.2/busybox-1.21.1-musl-1.patch new file mode 100644 index 0000000..e7becc4 --- /dev/null +++ b/sys-kernel/recoveryinitramfs/files/busybox/1.20.2/busybox-1.21.1-musl-1.patch @@ -0,0 +1,44 @@ +Submitted By: Andrew Bradford +Date: 2013-10-16 +Initial Package Version: 1.21.1 +Origin: Buildroot git and BusyBox git +Upstream Status: ifconfig.c and partially iplink.c yes, libbb.h no +Description: Patches to BusyBox to build for musl-libc. + +diff -Naur busybox-1.21.1-orig/include/libbb.h busybox-1.21.1/include/libbb.h +--- busybox-1.21.1-orig/include/libbb.h 2013-06-29 10:58:06.000000000 -0400 ++++ busybox-1.21.1/include/libbb.h 2013-10-16 10:38:04.222276525 -0400 +@@ -37,7 +37,7 @@ + #include /* dirname,basename */ + #undef basename + #define basename dont_use_basename +-#include ++#include + #include + #include + #include +diff -Naur busybox-1.21.1-orig/networking/ifconfig.c busybox-1.21.1/networking/ifconfig.c +--- busybox-1.21.1-orig/networking/ifconfig.c 2013-05-11 19:30:43.000000000 -0400 ++++ busybox-1.21.1/networking/ifconfig.c 2013-10-16 10:37:51.628945111 -0400 +@@ -56,7 +56,7 @@ + #endif + + #if ENABLE_FEATURE_IFCONFIG_SLIP +-# include ++# include + #endif + + /* I don't know if this is needed for busybox or not. Anyone? */ +diff -Naur busybox-1.21.1-orig/networking/libiproute/iplink.c busybox-1.21.1/networking/libiproute/iplink.c +--- busybox-1.21.1-orig/networking/libiproute/iplink.c 2013-05-11 19:30:43.000000000 -0400 ++++ busybox-1.21.1/networking/libiproute/iplink.c 2013-10-16 10:59:59.925471509 -0400 +@@ -5,8 +5,7 @@ + * Licensed under GPLv2 or later, see file LICENSE in this source tree. + */ + #include +-#include +-#include ++#include + #include + + #include "ip_common.h" /* #include "libbb.h" is inside */ diff --git a/sys-kernel/recoveryinitramfs/files/dropbear/2013.62/001_all_dropbear-initramfs-no-usr.patch b/sys-kernel/recoveryinitramfs/files/dropbear/2013.62/001_all_dropbear-initramfs-no-usr.patch new file mode 100644 index 0000000..a07b6f8 --- /dev/null +++ b/sys-kernel/recoveryinitramfs/files/dropbear/2013.62/001_all_dropbear-initramfs-no-usr.patch @@ -0,0 +1,27 @@ +diff -uNr dropbear-2013.60.orig/options.h dropbear-2013.60/options.h +--- dropbear-2013.60.orig/options.h 2013-10-16 16:34:53.000000000 +0200 ++++ dropbear-2013.60/options.h 2013-10-27 07:38:45.561526446 +0100 +@@ -241,7 +241,7 @@ + /* The default file to store the daemon's process ID, for shutdown + scripts etc. This can be overridden with the -P flag */ + #ifndef DROPBEAR_PIDFILE +-#define DROPBEAR_PIDFILE "/var/run/dropbear.pid" ++#define DROPBEAR_PIDFILE "/run/dropbear.pid" + #endif + + /* The command to invoke for xauth when using X11 forwarding. +@@ -254,12 +254,12 @@ + * OpenSSH), set the path below. If the path isn't defined, sftp will not + * be enabled */ + #ifndef SFTPSERVER_PATH +-#define SFTPSERVER_PATH "/usr/libexec/sftp-server" ++#define SFTPSERVER_PATH "/libexec/sftp-server" + #endif + + /* This is used by the scp binary when used as a client binary. If you're + * not using the Dropbear client, you'll need to change it */ +-#define _PATH_SSH_PROGRAM "/usr/bin/dbclient" ++#define _PATH_SSH_PROGRAM "/bin/dbclient" + + /* Whether to log commands executed by a client. This only logs the + * (single) command sent to the server, not what a user did in a