[banshee] [build] fix some runtime errors in linux/mingw



commit 99b0c10b24107b097282855042875da3478f8711
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon Jan 25 22:13:23 2010 -0800

    [build] fix some runtime errors in linux/mingw

 build/bundle/bockbuild/package.py |    6 +++++-
 build/bundle/bockbuild/profile.py |    5 +++--
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/build/bundle/bockbuild/package.py b/build/bundle/bockbuild/package.py
index 2bb6e96..7edd0be 100644
--- a/build/bundle/bockbuild/package.py
+++ b/build/bundle/bockbuild/package.py
@@ -10,7 +10,11 @@ class Package:
 		
 		self.name = name
 		self.version = version
-		self.configure_flags = configure_flags
+		self.configure_flags = []
+		if Package.profile.global_configure_flags:
+			self.configure_flags.extend (Package.profile.global_configure_flags)
+		if configure_flags:
+			self.configure_flags.extend (configure_flags)
 
 		self.sources = sources
 		if self.sources == None \
diff --git a/build/bundle/bockbuild/profile.py b/build/bundle/bockbuild/profile.py
index 70176e5..cf6e2ba 100644
--- a/build/bundle/bockbuild/profile.py
+++ b/build/bundle/bockbuild/profile.py
@@ -14,10 +14,11 @@ class Profile:
 		self.env.set ('BOCKBUILD_ENV', '1')
 		self.packages = []
 		self.cpu_count = get_cpu_count ()
+		self.global_configure_flags = []
 		self.host = get_host ()
 
-	def bundle (self, output_dir):
-		sys.exit ('Bundle support not implemented for this profile')
+	def bundle (self):
+		sys.exit ('Bundle support not implemented for this profile (%s)' % self.name)
 
 	def build (self):
 		default_run_phases = ['prep', 'build', 'install']



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]