# HG changeset patch # User Jan Nieuwenhuizen # Date 1250791534 -7200 # Node ID 82d782f62ab137e7627a941238bc7828dc331282 # Parent f9a5bc9a4a24e95e004968baecb56ed51a0bd11b bash: avoid using patch. diff -r f9a5bc9a4a24 -r 82d782f62ab1 gub/specs/bash.py --- a/gub/specs/bash.py Thu Aug 20 20:05:23 2009 +0200 +++ b/gub/specs/bash.py Thu Aug 20 20:05:34 2009 +0200 @@ -18,12 +18,17 @@ return str class Bash__tools (tools.AutoBuild, Bash): - patches = ['bash-3.2-librestrict.patch'] +# let's not use patch in a bootstrap package +# patches = ['bash-3.2-librestrict.patch'] def force_sequential_build (self): return True @context.subst_method def LDFLAGS (self): return '%(rpath)' + def patch (self): + tools.AutoBuild.patch (self) + self.file_sub ([('^ (check_dev_tty [(][)];)', r' /* \1 */')], + '%(srcdir)s/shell.c') def install (self): tools.AutoBuild.install (self) self.system ('cd %(install_prefix)s/bin && ln -s bash sh')