bash5: remove patch w/musl
Leave the configureFlags, esp disabling bash malloc.
This commit is contained in:
parent
844bd53740
commit
fa00f7fb70
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, buildPackages
|
{ stdenv, buildPackages
|
||||||
, fetchurl, binutils ? null, bison, autoconf, utillinux
|
, fetchurl, binutils ? null, bison, utillinux
|
||||||
|
|
||||||
# patch for cygwin requires readline support
|
# patch for cygwin requires readline support
|
||||||
, interactive ? stdenv.isCygwin, readline80 ? null
|
, interactive ? stdenv.isCygwin, readline80 ? null
|
||||||
@ -44,12 +44,7 @@ stdenv.mkDerivation rec {
|
|||||||
patchFlags = "-p0";
|
patchFlags = "-p0";
|
||||||
|
|
||||||
patches = upstreamPatches
|
patches = upstreamPatches
|
||||||
++ optional stdenv.hostPlatform.isCygwin ./cygwin-bash-4.4.11-2.src.patch
|
++ optional stdenv.hostPlatform.isCygwin ./cygwin-bash-4.4.11-2.src.patch;
|
||||||
# https://lists.gnu.org/archive/html/bug-bash/2016-10/msg00006.html
|
|
||||||
++ optional stdenv.hostPlatform.isMusl (fetchurl {
|
|
||||||
url = "https://lists.gnu.org/archive/html/bug-bash/2016-10/patchJxugOXrY2y.patch";
|
|
||||||
sha256 = "1m4v9imidb1cc1h91f2na0b8y9kc5c5fgmpvy9apcyv2kbdcghg1";
|
|
||||||
});
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
(if interactive then "--with-installed-readline" else "--disable-readline")
|
(if interactive then "--with-installed-readline" else "--disable-readline")
|
||||||
@ -73,8 +68,7 @@ stdenv.mkDerivation rec {
|
|||||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
nativeBuildInputs = [ bison ]
|
nativeBuildInputs = [ bison ]
|
||||||
++ optional withDocs texinfo
|
++ optional withDocs texinfo
|
||||||
++ optional stdenv.hostPlatform.isDarwin binutils
|
++ optional stdenv.hostPlatform.isDarwin binutils;
|
||||||
++ optional (stdenv.hostPlatform.libc == "musl") autoconf;
|
|
||||||
|
|
||||||
buildInputs = optional interactive readline80;
|
buildInputs = optional interactive readline80;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user