changeset 5501:82d782f62ab1

bash: avoid using patch.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Thu, 20 Aug 2009 20:05:34 +0200
parents f9a5bc9a4a24
children b4c4a5def857
files gub/specs/bash.py
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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')