portage.git
14 years agoRemove code for svn.IO_error and bzr.IO_error categories since they don't
Zac Medico [Fri, 29 Jan 2010 18:53:35 +0000 (18:53 -0000)]
Remove code for svn.IO_error and bzr.IO_error categories since they don't
exist therefore and if this code had ever executed it would have raised
a KeyError. (trunk r15222)

svn path=/main/branches/2.1.7/; revision=15271

14 years agoEnable EAPI 3 and deprecate EAPI 3_pre2. (trunk r15221)
Zac Medico [Fri, 29 Jan 2010 18:53:23 +0000 (18:53 -0000)]
Enable EAPI 3 and deprecate EAPI 3_pre2. (trunk r15221)

svn path=/main/branches/2.1.7/; revision=15270

14 years agoShow the path of the lockfile when chown fails. Thanks to Jeremy Olexa
Zac Medico [Fri, 29 Jan 2010 18:53:15 +0000 (18:53 -0000)]
Show the path of the lockfile when chown fails. Thanks to Jeremy Olexa
<darkside@g.o> for reporting. (trunk r15220)

svn path=/main/branches/2.1.7/; revision=15269

14 years agoIn portage.spawn(), apply group write permission to the log file. (trunk r15218)
Zac Medico [Fri, 29 Jan 2010 18:52:52 +0000 (18:52 -0000)]
In portage.spawn(), apply group write permission to the log file. (trunk r15218)

svn path=/main/branches/2.1.7/; revision=15268

14 years agoBug #300378 - Don't export FILESDIR to the 'depend' phase. (trunk r15217)
Zac Medico [Fri, 29 Jan 2010 18:52:44 +0000 (18:52 -0000)]
Bug #300378 - Don't export FILESDIR to the 'depend' phase. (trunk r15217)

svn path=/main/branches/2.1.7/; revision=15267

14 years agoMove the DOM unlink call to a finally block. (trunk r15216)
Zac Medico [Fri, 29 Jan 2010 18:52:36 +0000 (18:52 -0000)]
Move the DOM unlink call to a finally block. (trunk r15216)

svn path=/main/branches/2.1.7/; revision=15266

14 years agoFix AttributeError from has_versions for atoms with no USE deps. Thanks to
Zac Medico [Fri, 29 Jan 2010 18:52:28 +0000 (18:52 -0000)]
Fix AttributeError from has_versions for atoms with no USE deps. Thanks to
Arfrever for reporting. (trunk r15214)

svn path=/main/branches/2.1.7/; revision=15265

14 years agoFix typo in docstring. (trunk r15213)
Zac Medico [Fri, 29 Jan 2010 18:52:20 +0000 (18:52 -0000)]
Fix typo in docstring. (trunk r15213)

svn path=/main/branches/2.1.7/; revision=15264

14 years agoAdd an Atom.evaluate_conditionals() method and use where appropriate.
Zac Medico [Fri, 29 Jan 2010 18:52:04 +0000 (18:52 -0000)]
Add an Atom.evaluate_conditionals() method and use where appropriate.
(trunk r15212)

svn path=/main/branches/2.1.7/; revision=15263

14 years agoAdd support for evaluation of conditional USE atoms in has_version and
Zac Medico [Fri, 29 Jan 2010 18:51:56 +0000 (18:51 -0000)]
Add support for evaluation of conditional USE atoms in has_version and
best_version arguments, using the USE environment variable. (trunk r15211)

svn path=/main/branches/2.1.7/; revision=15262

14 years agoAdd a warning for built_with_use. Thanks to Petteri Räty <betelgeuse@g.o> for
Zac Medico [Fri, 29 Jan 2010 18:51:48 +0000 (18:51 -0000)]
Add a warning for built_with_use. Thanks to Petteri Räty <betelgeuse@g.o> for
this patch. (trunk r15209)

svn path=/main/branches/2.1.7/; revision=15261

14 years agoBug #302005 - Remove broken test code. (trunk r15208)
Zac Medico [Fri, 29 Jan 2010 18:51:27 +0000 (18:51 -0000)]
Bug #302005 - Remove broken test code. (trunk r15208)

svn path=/main/branches/2.1.7/; revision=15260

14 years agoBug #301926 - Handle ValueError in parseManifest2(), triggered by corrupt
Zac Medico [Fri, 29 Jan 2010 18:50:06 +0000 (18:50 -0000)]
Bug #301926 - Handle ValueError in parseManifest2(), triggered by corrupt
manifest entry. (trunk r15207)

svn path=/main/branches/2.1.7/; revision=15259

14 years agoFix Manifest commit logic for cvs and svn. Thanks to Rafael Martins
Zac Medico [Fri, 29 Jan 2010 18:49:58 +0000 (18:49 -0000)]
Fix Manifest commit logic for cvs and svn. Thanks to Rafael Martins
<rafael@rafaelmartins.com>. (trunk r15205)

svn path=/main/branches/2.1.7/; revision=15258

14 years agoInvert some vcs conditionals that are specific to cvs and svn. (trunk r15204)
Zac Medico [Fri, 29 Jan 2010 18:49:48 +0000 (18:49 -0000)]
Invert some vcs conditionals that are specific to cvs and svn. (trunk r15204)

svn path=/main/branches/2.1.7/; revision=15257

14 years agoSupport mercurial. Thanks to Rafael Martins <rafael@rafaelmartins.com> for
Zac Medico [Fri, 29 Jan 2010 18:49:38 +0000 (18:49 -0000)]
Support mercurial. Thanks to Rafael Martins <rafael@rafaelmartins.com> for
this patch. (trunk r15203)

svn path=/main/branches/2.1.7/; revision=15256

14 years agoDon't bail out if postinst fails. Thanks to Brain Harring for the suggestion.
Zac Medico [Fri, 29 Jan 2010 18:49:23 +0000 (18:49 -0000)]
Don't bail out if postinst fails. Thanks to Brain Harring for the suggestion.
(trunk r15202)

svn path=/main/branches/2.1.7/; revision=15255

14 years agoRemove ibiblio.org from the default GENTOO_MIRRORS value. Thanks to
Zac Medico [Fri, 29 Jan 2010 18:49:10 +0000 (18:49 -0000)]
Remove ibiblio.org from the default GENTOO_MIRRORS value. Thanks to
Jeremy Olexa <darkside@g.o> for this patch. (trunk r15201)

svn path=/main/branches/2.1.7/; revision=15254

14 years agoMake sure repoman knows about all files in the directory to commit using bzr. Patch...
Zac Medico [Fri, 29 Jan 2010 18:49:01 +0000 (18:49 -0000)]
Make sure repoman knows about all files in the directory to commit using bzr.  Patch by Christian Faulhammer.
(trunk r15199)

svn path=/main/branches/2.1.7/; revision=15253

14 years agoBug #300744 - Inside xpak(), exclude CONTENTS for quickpkg since contents is
Zac Medico [Fri, 29 Jan 2010 18:48:48 +0000 (18:48 -0000)]
Bug #300744 - Inside xpak(), exclude CONTENTS for quickpkg since contents is
generated by the merge process. (trunk r15198)

svn path=/main/branches/2.1.7/; revision=15252

14 years agoUse encoded byte strings with python-2.x, since the python ebuilds are
Zac Medico [Fri, 29 Jan 2010 18:48:40 +0000 (18:48 -0000)]
Use encoded byte strings with python-2.x, since the python ebuilds are
known to remove the encodings module when USE=build is enabled (thus
disabling unicode decoding/encoding). (trunk r15197)

svn path=/main/branches/2.1.7/; revision=15251

14 years agoFix output handling to avoid potential UnicodeEncodeError. (trunk r15196)
Zac Medico [Fri, 29 Jan 2010 18:48:32 +0000 (18:48 -0000)]
Fix output handling to avoid potential UnicodeEncodeError. (trunk r15196)

svn path=/main/branches/2.1.7/; revision=15250

14 years agoFix unicode quote handling to work with python3. (trunk r15195)
Zac Medico [Fri, 29 Jan 2010 18:48:21 +0000 (18:48 -0000)]
Fix unicode quote handling to work with python3. (trunk r15195)

svn path=/main/branches/2.1.7/; revision=15249

14 years agoAvoid portage import in order to avoid a potential sandbox violation if
Zac Medico [Fri, 29 Jan 2010 18:48:08 +0000 (18:48 -0000)]
Avoid portage import in order to avoid a potential sandbox violation if
portage's *.pyc files are stale. (trunk r15194)

svn path=/main/branches/2.1.7/; revision=15248

14 years agoAvoid potential UnicodeDecodeError with Python 3. Reported by devurandom.
Zac Medico [Fri, 29 Jan 2010 18:47:59 +0000 (18:47 -0000)]
Avoid potential UnicodeDecodeError with Python 3. Reported by devurandom.
(trunk r15192)

svn path=/main/branches/2.1.7/; revision=15247

14 years agoBug #300388 - Fix terminal handling code to so term codes aren't sent when
Zac Medico [Fri, 29 Jan 2010 18:47:51 +0000 (18:47 -0000)]
Bug #300388 - Fix terminal handling code to so term codes aren't sent when
TERM=dumb. (trunk r15191)

svn path=/main/branches/2.1.7/; revision=15246

14 years agoTweak TERM usage in xtermTitleReset() to match that in xtermTitle().
Zac Medico [Fri, 29 Jan 2010 18:47:30 +0000 (18:47 -0000)]
Tweak TERM usage in xtermTitleReset() to match that in xtermTitle().
(trunk r15190)

svn path=/main/branches/2.1.7/; revision=15245

14 years agoonly return status for the current directory (or the directory being asked for),...
Zac Medico [Fri, 29 Jan 2010 18:47:09 +0000 (18:47 -0000)]
only return status for the current directory (or the directory being asked for), instead of the whole tree
(trunk r15188)

svn path=/main/branches/2.1.7/; revision=15244

14 years agoAdd Bazaar (bzr) support for repoman, test-driven by Fauli (Christian Faulhammer)
Zac Medico [Fri, 29 Jan 2010 18:46:55 +0000 (18:46 -0000)]
Add Bazaar (bzr) support for repoman, test-driven by Fauli (Christian Faulhammer)
(trunk r15185)

svn path=/main/branches/2.1.7/; revision=15243

14 years agoFix blocker example output to appear as emerge actually displays it.
Zac Medico [Fri, 29 Jan 2010 18:46:45 +0000 (18:46 -0000)]
Fix blocker example output to appear as emerge actually displays it.
(trunk r15180)

svn path=/main/branches/2.1.7/; revision=15242

14 years agoSkip global updates for help, version, and info actions. (trunk r15179)
Zac Medico [Fri, 29 Jan 2010 18:46:36 +0000 (18:46 -0000)]
Skip global updates for help, version, and info actions. (trunk r15179)

svn path=/main/branches/2.1.7/; revision=15241

14 years agoBug #269225 - Warn about virtuals with non-empty HOMEPAGE or LICENSE. Thanks
Zac Medico [Fri, 29 Jan 2010 18:46:24 +0000 (18:46 -0000)]
Bug #269225 - Warn about virtuals with non-empty HOMEPAGE or LICENSE. Thanks
to Ulrich Müller <ulm@g.o> for this patch. (trunk r15174)

svn path=/main/branches/2.1.7/; revision=15240

14 years agoAdd a TODO comment for improved handling of /lib/modules. (trunk r15173)
Zac Medico [Fri, 29 Jan 2010 18:46:10 +0000 (18:46 -0000)]
Add a TODO comment for improved handling of /lib/modules. (trunk r15173)

svn path=/main/branches/2.1.7/; revision=15239

14 years agoFix it so an empty directory given to doins -r does not trigger failure.
Zac Medico [Fri, 29 Jan 2010 18:45:59 +0000 (18:45 -0000)]
Fix it so an empty directory given to doins -r does not trigger failure.
(trunk r15172)

svn path=/main/branches/2.1.7/; revision=15238

14 years agoIn python-2.x, convert PortageException.value attribute from unicode to str
Zac Medico [Fri, 29 Jan 2010 18:45:49 +0000 (18:45 -0000)]
In python-2.x, convert PortageException.value attribute from unicode to str
in order to avoid empty output with string format operator. (trunk r15169)

svn path=/main/branches/2.1.7/; revision=15237

14 years agoHandle AttributeError inside atomic_ofstream.__del__. Thanks to Cardoe for
Zac Medico [Fri, 29 Jan 2010 18:45:41 +0000 (18:45 -0000)]
Handle AttributeError inside atomic_ofstream.__del__. Thanks to Cardoe for
reporting. (trunk r15168)

svn path=/main/branches/2.1.7/; revision=15236

14 years agoRearrange _selinux ImportError handling so the workaround for bug #298310
Zac Medico [Fri, 29 Jan 2010 18:45:33 +0000 (18:45 -0000)]
Rearrange _selinux ImportError handling so the workaround for bug #298310
isn't necessary. (trunk r15167)

svn path=/main/branches/2.1.7/; revision=15235

14 years agoRevert r15161 so 12.2.5 is greater than 12.2b once again. Depending on how you
Zac Medico [Fri, 29 Jan 2010 18:45:23 +0000 (18:45 -0000)]
Revert r15161 so 12.2.5 is greater than 12.2b once again. Depending on how you
look at, it may seem counter-intuitive. However, if you really think about it,
it seems like it's probably safe to assume that 12.2.5 > 12.2b is the behavior
that is intended by anyone who would use versions such as these. (trunk r15166)

svn path=/main/branches/2.1.7/; revision=15234

14 years agoMore cases. (trunk r15165)
Zac Medico [Fri, 29 Jan 2010 18:45:14 +0000 (18:45 -0000)]
More cases. (trunk r15165)

svn path=/main/branches/2.1.7/; revision=15233

14 years agoAdd some more cases for versions with letter suffixes. (trunk r15164)
Zac Medico [Fri, 29 Jan 2010 18:45:06 +0000 (18:45 -0000)]
Add some more cases for versions with letter suffixes. (trunk r15164)

svn path=/main/branches/2.1.7/; revision=15232

14 years agoAdd test cases for cvs versions. (trunk r15163)
Zac Medico [Fri, 29 Jan 2010 18:44:56 +0000 (18:44 -0000)]
Add test cases for cvs versions. (trunk r15163)

svn path=/main/branches/2.1.7/; revision=15231

14 years agoFix vercmp so 1b > 1 and add corresponding tests. (trunk r15162)
Zac Medico [Fri, 29 Jan 2010 18:44:47 +0000 (18:44 -0000)]
Fix vercmp so 1b > 1 and add corresponding tests. (trunk r15162)

svn path=/main/branches/2.1.7/; revision=15230

14 years agoRevert vercmp() behavior so 12.2b > 12.2.5 which was accidentally changed in
Zac Medico [Fri, 29 Jan 2010 18:44:31 +0000 (18:44 -0000)]
Revert vercmp() behavior so 12.2b > 12.2.5 which was accidentally changed in
r2309 (between portage-2.0.x and portage-2.1). Thanks to Brian Harring for
reporting in bug #287848, comment #3. (trunk r15161)

svn path=/main/branches/2.1.7/; revision=15229

14 years agoAdd test cases for implicit .0 at end of version. (trunk r15160)
Zac Medico [Fri, 29 Jan 2010 18:44:05 +0000 (18:44 -0000)]
Add test cases for implicit .0 at end of version. (trunk r15160)

svn path=/main/branches/2.1.7/; revision=15228

14 years agoBug #298310 - Make sure the _selinux attribute is correctly reinitialized after
Zac Medico [Fri, 29 Jan 2010 18:43:50 +0000 (18:43 -0000)]
Bug #298310 - Make sure the _selinux attribute is correctly reinitialized after
reload(portage) is called. (trunk r15159)

svn path=/main/branches/2.1.7/; revision=15227

14 years agoBug #299248 - Fix doins return code handling to make sure it always fails
Zac Medico [Fri, 29 Jan 2010 18:43:41 +0000 (18:43 -0000)]
Bug #299248 - Fix doins return code handling to make sure it always fails
when appropriate. Thanks to Jonathan Callen <abcd@g.o> for the initial
patch. (trunk r15158)

svn path=/main/branches/2.1.7/; revision=15226

14 years agoDocument doins -r option. (trunk r15157)
Zac Medico [Fri, 29 Jan 2010 18:43:31 +0000 (18:43 -0000)]
Document doins -r option. (trunk r15157)

svn path=/main/branches/2.1.7/; revision=15225

14 years agoUse get_term_size() to adjust to current terminal width. Thanks to Dror Levin
Zac Medico [Fri, 29 Jan 2010 18:43:21 +0000 (18:43 -0000)]
Use get_term_size() to adjust to current terminal width. Thanks to Dror Levin
<spatz@g.0> for the initial patch. (trunk r15156)

svn path=/main/branches/2.1.7/; revision=15224

14 years agoAdd some tests related to bug #287848. (trunk r15155)
Zac Medico [Fri, 29 Jan 2010 18:43:08 +0000 (18:43 -0000)]
Add some tests related to bug #287848. (trunk r15155)

svn path=/main/branches/2.1.7/; revision=15223

15 years agoMerge PATH initialization/filtering changes from trunk r15149. v2.1.7.16
Zac Medico [Thu, 24 Dec 2009 05:37:52 +0000 (05:37 -0000)]
Merge PATH initialization/filtering changes from trunk r15149.

svn path=/main/branches/2.1.7/; revision=15150

15 years agoRemove stray echo. (trunk r15147)
Zac Medico [Thu, 24 Dec 2009 05:21:55 +0000 (05:21 -0000)]
Remove stray echo. (trunk r15147)

svn path=/main/branches/2.1.7/; revision=15148

15 years agoIn save_ebuild_env(), preserve all ebuild phases in any case since excluding
Zac Medico [Thu, 24 Dec 2009 05:11:32 +0000 (05:11 -0000)]
In save_ebuild_env(), preserve all ebuild phases in any case since excluding
the already executed ones from environment.bz2 doesn't save much space, and
it's possible that someone would want to look at them later. (trunk r15145)

svn path=/main/branches/2.1.7/; revision=15146

15 years agoRemove obsolete backing up of ROOTPATH via PORTAGE_ROOTPATH. (trunk r15143)
Zac Medico [Thu, 24 Dec 2009 04:40:22 +0000 (04:40 -0000)]
Remove obsolete backing up of ROOTPATH via PORTAGE_ROOTPATH. (trunk r15143)

svn path=/main/branches/2.1.7/; revision=15144

15 years agoBug #297933: Filter BASHOPTS variable for compatibility with bash-4.1.
Zac Medico [Thu, 24 Dec 2009 04:02:21 +0000 (04:02 -0000)]
Bug #297933: Filter BASHOPTS variable for compatibility with bash-4.1.
(trunk r15130)

svn path=/main/branches/2.1.7/; revision=15142

15 years agoIf the TERM environment variable is unset then just use internal default
Zac Medico [Thu, 24 Dec 2009 04:02:13 +0000 (04:02 -0000)]
If the TERM environment variable is unset then just use internal default
term codes since the vt100 codes typically produce strange output. This
fixes strange output from catalyst stage1 builds. (trunk r15129)

svn path=/main/branches/2.1.7/; revision=15141

15 years agoBug #297541 - Make $(no-as-needed) trigger upstream.workaround warning. Thanks
Zac Medico [Thu, 24 Dec 2009 04:01:50 +0000 (04:01 -0000)]
Bug #297541 - Make $(no-as-needed) trigger upstream.workaround warning. Thanks
to Samuli Suominen <ssuominen@g.o> for this patch. (trunk r15128)

svn path=/main/branches/2.1.7/; revision=15140

15 years agoAdd missing stat import. (trunk r15127)
Zac Medico [Thu, 24 Dec 2009 04:01:35 +0000 (04:01 -0000)]
Add missing stat import. (trunk r15127)

svn path=/main/branches/2.1.7/; revision=15139

15 years agoWhen integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of the
Zac Medico [Thu, 24 Dec 2009 04:01:27 +0000 (04:01 -0000)]
When integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of the
float st_mtime in order to avoid rounding *up* in some rare cases.
(trunk r15126)

svn path=/main/branches/2.1.7/; revision=15138

15 years agoWhen integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of the
Zac Medico [Thu, 24 Dec 2009 04:01:10 +0000 (04:01 -0000)]
When integer mtime is desired, use stat_obj[stat.ST_MTIME] instead of the
float st_mtime in order to avoid rounding *up* in some rare cases.
(trunk r15125)

svn path=/main/branches/2.1.7/; revision=15137

15 years agoRemove some old debug code that should not have been committed. (trunk r15124)
Zac Medico [Thu, 24 Dec 2009 04:00:56 +0000 (04:00 -0000)]
Remove some old debug code that should not have been committed. (trunk r15124)

svn path=/main/branches/2.1.7/; revision=15136

15 years agoFix the assert alias to avoid 'value to great for base' messages in some cases.
Zac Medico [Thu, 24 Dec 2009 04:00:46 +0000 (04:00 -0000)]
Fix the assert alias to avoid 'value to great for base' messages in some cases.
Thanks to Jonathan Callen <abcd@g.o> for reporting. (trunk r15121)

svn path=/main/branches/2.1.7/; revision=15135

15 years agoUse portage.writemsg for lazy portage.util import. (trunk r15108) v2.1.7.15
Zac Medico [Thu, 17 Dec 2009 03:36:16 +0000 (03:36 -0000)]
Use portage.writemsg for lazy portage.util import. (trunk r15108)

svn path=/main/branches/2.1.7/; revision=15109

15 years agoConvert bytes to unicode for exception messages. (trunk r15106)
Zac Medico [Thu, 17 Dec 2009 03:30:46 +0000 (03:30 -0000)]
Convert bytes to unicode for exception messages. (trunk r15106)

svn path=/main/branches/2.1.7/; revision=15107

15 years agoBug #286497 - Make setexec() warn/nonfatal in permissive mode. Thanks to
Zac Medico [Thu, 17 Dec 2009 03:22:11 +0000 (03:22 -0000)]
Bug #286497 - Make setexec() warn/nonfatal in permissive mode. Thanks to
Chris PeBenito <pebenito@gentoo.org> for this patch. (trunk r15100)

svn path=/main/branches/2.1.7/; revision=15105

15 years agoFix typo. (trunk r15099)
Zac Medico [Thu, 17 Dec 2009 03:22:02 +0000 (03:22 -0000)]
Fix typo. (trunk r15099)

svn path=/main/branches/2.1.7/; revision=15104

15 years agoBug #296710 - Add equery to QA_INTERCEPTORS since it can trigger a fork bomb.
Zac Medico [Thu, 17 Dec 2009 03:21:53 +0000 (03:21 -0000)]
Bug #296710 - Add equery to QA_INTERCEPTORS since it can trigger a fork bomb.
(trunk r15098)

svn path=/main/branches/2.1.7/; revision=15103

15 years agoWarn if /proc is not mounted. (trunk r15097)
Zac Medico [Thu, 17 Dec 2009 03:21:42 +0000 (03:21 -0000)]
Warn if /proc is not mounted. (trunk r15097)

svn path=/main/branches/2.1.7/; revision=15102

15 years agoBug #296870 - Allow locale related LANG and LC_* variables to persist between
Zac Medico [Thu, 17 Dec 2009 03:21:33 +0000 (03:21 -0000)]
Bug #296870 - Allow locale related LANG and LC_* variables to persist between
ebuild phases, and only filter them for binary and installed packages.
(trunk r15096)

svn path=/main/branches/2.1.7/; revision=15101

15 years agoCombine 2 shift calls into one. (trunk r15059) v2.1.7.14
Zac Medico [Sun, 13 Dec 2009 03:55:39 +0000 (03:55 -0000)]
Combine 2 shift calls into one. (trunk r15059)

svn path=/main/branches/2.1.7/; revision=15092

15 years agoBug #296554 - Add decompression support to ecompress (similar to ecompressdir
Zac Medico [Sun, 13 Dec 2009 03:55:30 +0000 (03:55 -0000)]
Bug #296554 - Add decompression support to ecompress (similar to ecompressdir
behavior) since dodoc can call ecompress with stuff that's already compressed
in some way. (trunk r15058)

svn path=/main/branches/2.1.7/; revision=15091

15 years agoMake prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and
Zac Medico [Sun, 13 Dec 2009 03:55:20 +0000 (03:55 -0000)]
Make prefix varialbes ED, EPREFIX, and EROOT readonly except in EAPI 0, 1, and
2. (trunk r15057)

svn path=/main/branches/2.1.7/; revision=15090

15 years agoInside depgraph._validate_blockers(), do not consider blockers in DEPEND of
Zac Medico [Sun, 13 Dec 2009 03:55:07 +0000 (03:55 -0000)]
Inside depgraph._validate_blockers(), do not consider blockers in DEPEND of
installed packages, since DEPEND is supposed to be irrelevant for packages
after they are built. (trunk r15056)

svn path=/main/branches/2.1.7/; revision=15089

15 years agoBug #296641 - Avoid UnicodeEncodeError with python2 in eapi_is_supported()
Zac Medico [Sun, 13 Dec 2009 03:54:53 +0000 (03:54 -0000)]
Bug #296641 - Avoid UnicodeEncodeError with python2 in eapi_is_supported()
triggered by corrupt EAPI. (trunk r15055)

svn path=/main/branches/2.1.7/; revision=15088

15 years agoIn movefile mtime preservation code, simply round down to the nearest whole
Zac Medico [Sun, 13 Dec 2009 03:54:38 +0000 (03:54 -0000)]
In movefile mtime preservation code, simply round down to the nearest whole
second since python's float cannot preserve the st_mtim.tv_nsec field with
complete precision. Note that we have to use stat_obj[stat.ST_MTIME] here
because the float stat_obj.st_mtime rounds *up* sometimes. (trunk r15054)

svn path=/main/branches/2.1.7/; revision=15087

15 years agoRemove redundant EPREFIX, EROOT, and ROOT assingments inside
Zac Medico [Sun, 13 Dec 2009 03:54:24 +0000 (03:54 -0000)]
Remove redundant EPREFIX, EROOT, and ROOT assingments inside
doebuild_environment(). (trunk r15052)

svn path=/main/branches/2.1.7/; revision=15086

15 years agoRemove unused STARTDIR variable. (trunk r15051)
Zac Medico [Sun, 13 Dec 2009 03:54:16 +0000 (03:54 -0000)]
Remove unused STARTDIR variable. (trunk r15051)

svn path=/main/branches/2.1.7/; revision=15085

15 years agoUnset prefix vars for depend phase (even if EAPI is known). (trunk r15050)
Zac Medico [Sun, 13 Dec 2009 03:54:07 +0000 (03:54 -0000)]
Unset prefix vars for depend phase (even if EAPI is known). (trunk r15050)

svn path=/main/branches/2.1.7/; revision=15084

15 years agoUnset prefix vars for depend phase when EAPI is unknown. (trunk r15049)
Zac Medico [Sun, 13 Dec 2009 03:53:58 +0000 (03:53 -0000)]
Unset prefix vars for depend phase when EAPI is unknown. (trunk r15049)

svn path=/main/branches/2.1.7/; revision=15083

15 years ago* Fix type in econf --host argument.
Zac Medico [Sun, 13 Dec 2009 03:53:48 +0000 (03:53 -0000)]
* Fix type in econf --host argument.
* Add missing econf --build and --target arguments.
* Use tabs instead of spaces for indentation. (trunk r15048)

svn path=/main/branches/2.1.7/; revision=15082

15 years agoFix typo. (trunk r15047)
Zac Medico [Sun, 13 Dec 2009 03:53:31 +0000 (03:53 -0000)]
Fix typo. (trunk r15047)

svn path=/main/branches/2.1.7/; revision=15081

15 years agoIn movefile mtime rounding code, generate nanosecond resolution (9 decimal
Zac Medico [Sun, 13 Dec 2009 03:53:22 +0000 (03:53 -0000)]
In movefile mtime rounding code, generate nanosecond resolution (9 decimal
places) in order to ensure that the floating point representation is the
highest value possible without rounding up. (trunk r15046)

svn path=/main/branches/2.1.7/; revision=15080

15 years agoFix typo. (trunk r15045)
Zac Medico [Sun, 13 Dec 2009 03:53:11 +0000 (03:53 -0000)]
Fix typo. (trunk r15045)

svn path=/main/branches/2.1.7/; revision=15079

15 years agoRemove redundant EPREFIX setting since it's already initialized earlier in the
Zac Medico [Sun, 13 Dec 2009 03:52:59 +0000 (03:52 -0000)]
Remove redundant EPREFIX setting since it's already initialized earlier in the
config constructor. (trunk r15044)

svn path=/main/branches/2.1.7/; revision=15078

15 years agoUpdate for EAPI 3_pre2. (trunk r15043)
Zac Medico [Sun, 13 Dec 2009 03:52:44 +0000 (03:52 -0000)]
Update for EAPI 3_pre2. (trunk r15043)

svn path=/main/branches/2.1.7/; revision=15077

15 years agoAdd more EAPI 3 conditionals for prefix variables. (trunk r15042)
Zac Medico [Sun, 13 Dec 2009 03:52:30 +0000 (03:52 -0000)]
Add more EAPI 3 conditionals for prefix variables. (trunk r15042)

svn path=/main/branches/2.1.7/; revision=15076

15 years agoAdd EAPI 3 conditionals for prefix variables. (trunk r15041)
Zac Medico [Sun, 13 Dec 2009 03:52:18 +0000 (03:52 -0000)]
Add EAPI 3 conditionals for prefix variables. (trunk r15041)

svn path=/main/branches/2.1.7/; revision=15075

15 years agoJust use integer mtime if no fractional seconds are found in the search.
Zac Medico [Sun, 13 Dec 2009 03:52:06 +0000 (03:52 -0000)]
Just use integer mtime if no fractional seconds are found in the search.
(trunk r15040)

svn path=/main/branches/2.1.7/; revision=15074

15 years agoTweak movefile() timestamp preservation code to maximize precision for old
Zac Medico [Sun, 13 Dec 2009 03:51:52 +0000 (03:51 -0000)]
Tweak movefile() timestamp preservation code to maximize precision for old
timestamps that are closer to the epoch. (trunk r15039)

svn path=/main/branches/2.1.7/; revision=15073

15 years agoAdd missing line from previous commit. (trunk r15038)
Zac Medico [Sun, 13 Dec 2009 03:51:39 +0000 (03:51 -0000)]
Add missing line from previous commit. (trunk r15038)

svn path=/main/branches/2.1.7/; revision=15072

15 years agoIn movefile() timestamp preservation code, use another loop to search for
Zac Medico [Sun, 13 Dec 2009 03:51:26 +0000 (03:51 -0000)]
In movefile() timestamp preservation code, use another loop to search for
another digit of precision. (trunk r15037)

svn path=/main/branches/2.1.7/; revision=15071

15 years agoAdd EAPI to the whitelist to ensure it's always available as early as possible.
Zac Medico [Sun, 13 Dec 2009 03:51:11 +0000 (03:51 -0000)]
Add EAPI to the whitelist to ensure it's always available as early as possible.
(trunk r15036)

svn path=/main/branches/2.1.7/; revision=15070

15 years agoAdd EAPI 3_pre2 to conditinals so the EAPI 4 stuff is disabled. (trunk r15035)
Zac Medico [Sun, 13 Dec 2009 03:50:56 +0000 (03:50 -0000)]
Add EAPI 3_pre2 to conditinals so the EAPI 4 stuff is disabled. (trunk r15035)

svn path=/main/branches/2.1.7/; revision=15069

15 years agoEnable xz unpack for EAPI 3_pre2. (trunk r15034)
Zac Medico [Sun, 13 Dec 2009 03:50:39 +0000 (03:50 -0000)]
Enable xz unpack for EAPI 3_pre2. (trunk r15034)

svn path=/main/branches/2.1.7/; revision=15068

15 years agoAdd support for EAPI 3_pre2. (trunk r15033)
Zac Medico [Sun, 13 Dec 2009 03:50:24 +0000 (03:50 -0000)]
Add support for EAPI 3_pre2. (trunk r15033)

svn path=/main/branches/2.1.7/; revision=15067

15 years agoIn config.environ(), only export ED, EPREFIX, and EROOT to the ebuild
Zac Medico [Sun, 13 Dec 2009 03:50:12 +0000 (03:50 -0000)]
In config.environ(), only export ED, EPREFIX, and EROOT to the ebuild
environment starting with EAPI 3 (so people won't write ebuilds that
are incompatible with older package managers). (trunk r15032)

svn path=/main/branches/2.1.7/; revision=15066

15 years agoDon't filter/interfere with prefix variables unless they are supported by the
Zac Medico [Sun, 13 Dec 2009 03:49:51 +0000 (03:49 -0000)]
Don't filter/interfere with prefix variables unless they are supported by the
current EAPI. (trunk r15031)

svn path=/main/branches/2.1.7/; revision=15065

15 years agoFilter prefix variables ED, EPREFIX, and EROOT inside
Zac Medico [Sun, 13 Dec 2009 03:49:37 +0000 (03:49 -0000)]
Filter prefix variables ED, EPREFIX, and EROOT inside
filter_readonly_variables() but don't mark them readonly for now since some
ebuilds/eclasses try to assign EROOT (such as kde4-base_pkg_setup) which
causes the whole bash shell to exit like this:

>>> Extracting info
 * CPV:  kde-base/oxygen-icons-4.3.4
 * REPO: gentoo
 * USE:  elibc_glibc kernel_linux test userland_GNU x86
/var/tmp/portage/kde-base/oxygen-icons-4.3.4/temp/environment: line 2781: EROOT: readonly variable

Also, add ED to the environment blacklist. (trunk r15030)

svn path=/main/branches/2.1.7/; revision=15064

15 years agoDon't use lazy import for portage.cache.mappings because it's imported anyway.
Zac Medico [Sun, 13 Dec 2009 03:49:17 +0000 (03:49 -0000)]
Don't use lazy import for portage.cache.mappings because it's imported anyway.
(trunk r15029)

svn path=/main/branches/2.1.7/; revision=15063

15 years agoUse collections.OrderedDict when available (python-2.7) and fall back to
Zac Medico [Sun, 13 Dec 2009 03:49:09 +0000 (03:49 -0000)]
Use collections.OrderedDict when available (python-2.7) and fall back to
portage.cache.mappings.OrderedDict for older python. Also, use OrderedDict
inside fetch() so that files are fetched in the order that they appear in
SRC_URI. (trunk r15028)

svn path=/main/branches/2.1.7/; revision=15062

15 years agofix definition regarding slashes for EPREFIX, D, ED and EROOT (trunk r15026)
Zac Medico [Sun, 13 Dec 2009 03:48:53 +0000 (03:48 -0000)]
fix definition regarding slashes for EPREFIX, D, ED and EROOT (trunk r15026)

svn path=/main/branches/2.1.7/; revision=15061