Adding support for job control in bash cross-building, because otherwise it does not get built.

svn path=/nixpkgs/branches/stdenv-updates/; revision=24890
This commit is contained in:
Lluís Batlle i Rossell 2010-11-27 15:49:43 +00:00
parent c1dc539303
commit ab419e9f86

View file

@ -2,7 +2,10 @@
assert interactive -> readline != null;
let realName = "bash-4.1"; in
let
realName = "bash-4.1";
baseConfigureFlags = if interactive then "--with-installed-readline" else "--disable-readline";
in
stdenv.mkDerivation rec {
name = "${realName}-p${toString (builtins.length patches)}";
@ -33,12 +36,17 @@ stdenv.mkDerivation rec {
in
import ./bash-patches.nix patch;
crossAttrs = {
configureFlags = baseConfigureFlags +
" bash_cv_job_control_missing=nomissing bash_cv_sys_named_pipes=nomissing";
};
configureFlags = baseConfigureFlags;
# Note: Bison is needed because the patches above modify parse.y.
buildNativeInputs = [bison]
++ stdenv.lib.optional (texinfo != null) texinfo
++ stdenv.lib.optional interactive readline;
configureFlags = if interactive then "--with-installed-readline" else "--disable-readline";
postInstall = ''
# Add an `sh' -> `bash' symlink.