Merge pull request #18943 from Mic92/busybox

busybox: 1.23.2 -> 1.24.2
This commit is contained in:
zimbatm 2016-09-26 12:23:22 +01:00 committed by GitHub
commit 0e91a0bbe7
2 changed files with 6 additions and 7 deletions

View File

@ -2,14 +2,13 @@ Allow BusyBox to be invoked as "<something>-busybox". This is
necessary when it's run from the Nix store as <hash>-busybox during
stdenv bootstrap.
diff -ru -x '*~' busybox-1.22.1-orig/libbb/appletlib.c busybox-1.22.1/libbb/appletlib.c
--- busybox-1.22.1-orig/libbb/appletlib.c 2014-01-09 19:15:44.000000000 +0100
+++ busybox-1.22.1/libbb/appletlib.c 2014-10-29 09:53:01.232052068 +0100
@@ -764,7 +764,7 @@
--- busybox-1.24.2-orig/libbb/appletlib.c 2016-03-17 21:35:49.000000000 +0100
+++ busybox-1.24.2/libbb/appletlib.c 2016-09-25 08:48:18.293104041 +0200
@@ -779,7 +779,7 @@
int applet = find_applet_by_name(name);
if (applet >= 0)
run_applet_no_and_exit(applet, argv);
- if (strncmp(name, "busybox", 7) == 0)
- if (is_prefixed_with(name, "busybox"))
+ if (strstr(name, "busybox") != 0)
exit(busybox_main(argv));
}

View File

@ -26,11 +26,11 @@ let
in
stdenv.mkDerivation rec {
name = "busybox-1.23.2";
name = "busybox-1.24.2";
src = fetchurl {
url = "http://busybox.net/downloads/${name}.tar.bz2";
sha256 = "16ii9sqracvh2r1gfzhmlypl269nnbkpvrwa7270k35d3bigk9h5";
sha256 = "0mf8f6ly8yi1fbr15jkyv6hxwh2x800x661rcd11rwsnqqzga7p7";
};
hardeningDisable = [ "format" ] ++ lib.optional enableStatic [ "fortify" ];