Ticket #235 (closed defect: fixed)
CHOST is overwritten
| Reported by: | jkes | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | pkgcore | Version: | 0.5.9 |
| Keywords: | cross-compile | Cc: |
Description
Version 0.5.9 !!!
I have tried to cross-compile with pmerge.
The values CHOST, CBUILD or CTARGET, which are defined in a domain in a config file, are overwritten in ebd.py.
It works with following changes
=== modified file 'pkgcore/ebuild/ebd.py'
--- pkgcore/ebuild/ebd.py 2009-12-14 06:16:44 +0000
+++ pkgcore/ebuild/ebd.py 2010-01-20 12:35:29 +0000
@@ -97,7 +97,7 @@
for x in ('chost', 'cbuild', 'ctarget'):
val = getattr(pkg, x)
if val is not None:
- self.env[x.upper()] = val
+ self.env.setdefault(x.upper(),val)
if "PYTHONPATH" in os.environ:
self.env["PYTHONPATH"] = os.environ["PYTHONPATH"]
Now CHOST, CBUILD or CTARGET are only overwritten, when there are not defined.
Change History
Note: See
TracTickets for help on using
tickets.
