changeset 5439:a93a45ee6e33

glibc: add perl, gzip dependencies and /GUB chroot chmod fixup.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Mon, 27 Jul 2009 21:37:41 +0200
parents 07028e5a37d8
children 5f3a5d4d54f5
files gub/specs/glibc.py
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/glibc.py	Mon Jul 27 21:37:23 2009 +0200
+++ b/gub/specs/glibc.py	Mon Jul 27 21:37:41 2009 +0200
@@ -1,3 +1,5 @@
+import os
+#
 from gub import cross
 from gub import misc
 from gub import repository
@@ -41,9 +43,15 @@
         'glibc-2.3-slibdir.patch',
         ]
     def _get_build_dependencies (self):
-        return ['cross/gcc', 'glibc-core', 'linux-headers']
+        return ['cross/gcc', 'glibc-core', 'tools::gzip', 'tools::perl', 'linux-headers']
     def get_conflict_dict (self):
         return {'': ['glibc-core'], 'devel': ['glibc-core'], 'doc': ['glibc-core'], 'runtime': ['glibc-core']}
+    def patch (self):
+        cross.AutoBuild.patch (self)
+        if 'BOOTSTRAP' in os.environ.keys ():
+            # running in chroot: chmod: memory exhausted...
+            self.file_sub ([('chmod a-w,a\+x', 'chmod +x',)],
+                           '%(srcdir)s/Makefile')
     def get_add_ons (self):
         return ('linuxthreads', 'nptl')
     def config_cache_overrides (self, str):