# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.477 2005/12/20 20:30:47 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.478 2005/12/20 20:53:49 rocket Exp $
+
+ 20 Dec 2005; Eric Edgar <rocket@gentoo.org> modules/stage1_target.py,
+ modules/stage2_target.py:
+ Disable reading of CHOST/CFLAGS/CXXFLAGS/LDFLAGS from the environment. Allow
+ stage1 to be overridden again.
20 Dec 2005; Chris Gianelloni <wolf31o2@gentoo.org>
targets/stage1/stage1-controller.sh:
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage1_target.py,v 1.19 2005/12/16 14:42:07 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage1_target.py,v 1.20 2005/12/20 20:53:49 rocket Exp $
"""
Builder class for a stage1 installation tarball build.
generic_stage_target.set_cleanables(self)
self.settings["cleanables"].extend(["/usr/share/gettext","/usr/lib/python2.2/test", "/usr/lib/python2.2/encodings","/usr/lib/python2.2/email", "/usr/lib/python2.2/lib-tk","/usr/share/zoneinfo"])
+ def override_chost(self):
+ #if os.environ.has_key("CHOST"):
+ # self.settings["CHOST"] = os.environ["CHOST"]
+ if self.settings.has_key("chost"):
+ self.settings["CHOST"]=list_to_string(self.settings["chost"])
+
+ def override_cflags(self):
+ #if os.environ.has_key("CFLAGS"):
+ # self.settings["CFLAGS"] = os.environ["CFLAGS"]
+ if self.settings.has_key("cflags"):
+ self.settings["CFLAGS"]=list_to_string(self.settings["cflags"])
+
+ def override_cxxflags(self):
+ #if os.environ.has_key("CXXFLAGS"):
+ # self.settings["CXXFLAGS"] = os.environ["CXXFLAGS"]
+ if self.settings.has_key("cxxflags"):
+ self.settings["CXXFLAGS"]=list_to_string(self.settings["cxxflags"])
+
+ def override_ldflags(self):
+ #if os.environ.has_key("LDFLAGS"):
+ # self.settings["LDFLAGS"] = os.environ["LDFLAGS"]
+ if self.settings.has_key("ldflags"):
+ self.settings["LDFLAGS"]=list_to_string(self.settings["ldflags"])
+
+
def set_portage_overlay(self):
generic_stage_target.set_portage_overlay(self)
if self.settings.has_key("portage_overlay"):
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage2_target.py,v 1.11 2005/12/19 20:53:13 rocket Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/stage2_target.py,v 1.12 2005/12/20 20:53:49 rocket Exp $
"""
Builder class for a stage2 installation tarball build.
if os.path.exists(self.settings["source_path"]):
self.settings["source_path_hash"]=generate_hash(self.settings["source_path"])
def override_chost(self):
- if os.environ.has_key("CHOST"):
- self.settings["CHOST"] = os.environ["CHOST"]
+ #if os.environ.has_key("CHOST"):
+ # self.settings["CHOST"] = os.environ["CHOST"]
if self.settings.has_key("chost"):
self.settings["CHOST"]=list_to_string(self.settings["chost"])
def override_cflags(self):
- if os.environ.has_key("CFLAGS"):
- self.settings["CFLAGS"] = os.environ["CFLAGS"]
+ #if os.environ.has_key("CFLAGS"):
+ # self.settings["CFLAGS"] = os.environ["CFLAGS"]
if self.settings.has_key("cflags"):
self.settings["CFLAGS"]=list_to_string(self.settings["cflags"])
def override_cxxflags(self):
- if os.environ.has_key("CXXFLAGS"):
- self.settings["CXXFLAGS"] = os.environ["CXXFLAGS"]
+ #if os.environ.has_key("CXXFLAGS"):
+ # self.settings["CXXFLAGS"] = os.environ["CXXFLAGS"]
if self.settings.has_key("cxxflags"):
self.settings["CXXFLAGS"]=list_to_string(self.settings["cxxflags"])
def override_ldflags(self):
- if os.environ.has_key("LDFLAGS"):
- self.settings["LDFLAGS"] = os.environ["LDFLAGS"]
+ #if os.environ.has_key("LDFLAGS"):
+ # self.settings["LDFLAGS"] = os.environ["LDFLAGS"]
if self.settings.has_key("ldflags"):
self.settings["LDFLAGS"]=list_to_string(self.settings["ldflags"])