changeset 5159:ab0dccc775b4

librestrict: move dash, coreutils dependencies to cross.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Mon, 16 Feb 2009 16:17:11 +0100
parents 118e00ad86bd
children 867ecc2c61fc 8ee86f3c06c7
files gub/cross.py gub/specs/guile.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gub/cross.py	Mon Feb 16 16:16:10 2009 +0100
+++ b/gub/cross.py	Mon Feb 16 16:17:11 2009 +0100
@@ -64,6 +64,10 @@
 # SVN
 bootstrap_names = ['tools::librestrict', 'tools::make']
 def set_cross_dependencies (package_object_dict):
+    if 'stat' in misc.librestrict ():
+        global bootstrap_names
+        bootstrap_names += ['tools::dash', 'tools::coreutils']
+
     packs = list (package_object_dict.values ())
 
     cross_packs = [p for p in packs if isinstance (p, AutoBuild)]
--- a/gub/specs/guile.py	Mon Feb 16 16:16:10 2009 +0100
+++ b/gub/specs/guile.py	Mon Feb 16 16:17:11 2009 +0100
@@ -120,10 +120,6 @@
         return (Guile.makeflags (self)
                 + ''' 'LIBTOOL=%(tools_prefix)s/bin/dash $(top_builddir)/libtool' ''')
     def _get_build_dependencies (self):
-        if 'stat' in misc.librestrict ():
-            return (Guile._get_build_dependencies (self)
-                    + ['tools::dash', 'tools::coreutils']
-                    + ['regex-devel'])
         return Guile._get_build_dependencies (self) +  ['regex-devel']
     def configure_command (self):
         SHELL = ''