portage.git
17 years agoFix typo in comment. (trunk r13230)
Zac Medico [Fri, 27 Mar 2009 07:23:22 +0000 (07:23 -0000)]
Fix typo in comment. (trunk r13230)

svn path=/main/branches/2.1.6/; revision=13231

17 years agoIn config.setcpv(), make sure the current args are really identical to the
Zac Medico [Fri, 27 Mar 2009 07:03:13 +0000 (07:03 -0000)]
In config.setcpv(), make sure the current args are really identical to the
previous args before returning early. (trunk r13227)

svn path=/main/branches/2.1.6/; revision=13229

17 years agoInside config.setcpv(), don't clear out self.configdict['pkg'] entirely
Zac Medico [Fri, 27 Mar 2009 07:02:59 +0000 (07:02 -0000)]
Inside config.setcpv(), don't clear out self.configdict['pkg'] entirely
since some values need to be reused sometimes. (trunk r13226)

svn path=/main/branches/2.1.6/; revision=13228

17 years agoIn portdbapi.findname2(), move some of the path joining out of the loop.
Zac Medico [Fri, 27 Mar 2009 06:16:35 +0000 (06:16 -0000)]
In portdbapi.findname2(), move some of the path joining out of the loop.
(trunk r13224)

svn path=/main/branches/2.1.6/; revision=13225

17 years agoIn dyn_unpack(), don't force a new unpack when the ebuild mtime is newer
Zac Medico [Fri, 27 Mar 2009 04:46:46 +0000 (04:46 -0000)]
In dyn_unpack(), don't force a new unpack when the ebuild mtime is newer
than $WORKDIR, since that may be too touchy. The user can easily call
the clean phase explicitly if they really want it. (trunk r13222)

svn path=/main/branches/2.1.6/; revision=13223

17 years agoWhen copying symlink targets to temp files, use a private temp dir inside
Zac Medico [Fri, 27 Mar 2009 04:33:13 +0000 (04:33 -0000)]
When copying symlink targets to temp files, use a private temp dir inside
$T instead of using $T directly. (trunk r13202)

svn path=/main/branches/2.1.6/; revision=13221

17 years agoFor consistency in output with other helpers, check for file existence
Zac Medico [Fri, 27 Mar 2009 04:32:56 +0000 (04:32 -0000)]
For consistency in output with other helpers, check for file existence
before calling install. (trunk r13201)

svn path=/main/branches/2.1.6/; revision=13220

17 years agoMove checks for /usr/lib/distcc/bin and /usr/lib/ccache/bin to the python
Zac Medico [Fri, 27 Mar 2009 04:32:25 +0000 (04:32 -0000)]
Move checks for /usr/lib/distcc/bin and /usr/lib/ccache/bin to the python
side and don't add distcc to CC and CXX when /usr/lib/distcc/bin doesn't exist
since that won't necessarily work. Thanks to Jeroen Roovers <jer@g.o> for
reporting the issue with adding distcc to CC. (trunk r13198)

svn path=/main/branches/2.1.6/; revision=13219

17 years agoIn config.regenerate(), always synchronize self.features with self['FEATURES'].
Zac Medico [Fri, 27 Mar 2009 04:31:36 +0000 (04:31 -0000)]
In config.regenerate(), always synchronize self.features with self['FEATURES'].
(trunk r13189)

svn path=/main/branches/2.1.6/; revision=13218

17 years agoIn config.setcpv(), clear out self.configdict["pkg"] to make sure that no
Zac Medico [Fri, 27 Mar 2009 04:31:09 +0000 (04:31 -0000)]
In config.setcpv(), clear out self.configdict["pkg"] to make sure that no
preexisting metadata leaks through here. (trunk r13188)

svn path=/main/branches/2.1.6/; revision=13217

17 years agoBug #227265 - Make pkgsplit() allow multiple consecutive hyphens in package
Zac Medico [Fri, 27 Mar 2009 04:30:54 +0000 (04:30 -0000)]
Bug #227265 - Make pkgsplit() allow multiple consecutive hyphens in package
names, and add corresponding test cases. (trunk r13187)

svn path=/main/branches/2.1.6/; revision=13216

17 years agoAdd test case for consecutive hyphens. (trunk r13186)
Zac Medico [Fri, 27 Mar 2009 04:30:39 +0000 (04:30 -0000)]
Add test case for consecutive hyphens. (trunk r13186)

svn path=/main/branches/2.1.6/; revision=13215

17 years agoBug #227265 - Make pkgsplit() allow "versiony looking parts" in package names,
Zac Medico [Fri, 27 Mar 2009 04:30:02 +0000 (04:30 -0000)]
Bug #227265 - Make pkgsplit() allow "versiony looking parts" in package names,
for pms compliance. Also, add corresponding test cases. (trunk r13185)

svn path=/main/branches/2.1.6/; revision=13214

17 years agoSource bashrc after PATH tweaks inside ebuild_main(). (trunk r13184)
Zac Medico [Fri, 27 Mar 2009 04:29:33 +0000 (04:29 -0000)]
Source bashrc after PATH tweaks inside ebuild_main(). (trunk r13184)

svn path=/main/branches/2.1.6/; revision=13213

17 years agoMove distcc and ccache PATH setup later, after EAPI is guaranteed to be known,
Zac Medico [Fri, 27 Mar 2009 04:29:21 +0000 (04:29 -0000)]
Move distcc and ccache PATH setup later, after EAPI is guaranteed to be known,
so that it's possible to do indepenent EAPI-specific PATH modifications prior
to the distcc/ccache modifications. (trunk r13183)

svn path=/main/branches/2.1.6/; revision=13212

17 years agoFix domo and doexe to return non-zero if there are any errors. Thanks to
Zac Medico [Fri, 27 Mar 2009 04:29:06 +0000 (04:29 -0000)]
Fix domo and doexe to return non-zero if there are any errors. Thanks to
zong_sharo for reporting. (trunk r13182)

svn path=/main/branches/2.1.6/; revision=13211

17 years agoRemove unused tar_opts variable inside unpack(). Thanks to zong_sharo for
Zac Medico [Fri, 27 Mar 2009 04:28:47 +0000 (04:28 -0000)]
Remove unused tar_opts variable inside unpack(). Thanks to zong_sharo for
reporting. (trunk r13181)

svn path=/main/branches/2.1.6/; revision=13210

17 years agoNote that --noreplace takes precedence over options such as --newuse.
Zac Medico [Fri, 27 Mar 2009 04:28:33 +0000 (04:28 -0000)]
Note that --noreplace takes precedence over options such as --newuse.
(trunk r13180)

svn path=/main/branches/2.1.6/; revision=13209

17 years agoNote that --noreplace takes precedence over options such as --newuse.
Zac Medico [Fri, 27 Mar 2009 04:28:07 +0000 (04:28 -0000)]
Note that --noreplace takes precedence over options such as --newuse.
(trunk r13179)

svn path=/main/branches/2.1.6/; revision=13208

17 years agoUpdate code for removing noauto from FEATURES since config.features is a
Zac Medico [Fri, 27 Mar 2009 04:27:52 +0000 (04:27 -0000)]
Update code for removing noauto from FEATURES since config.features is a
set instead of a list now. (trunk r13178)

svn path=/main/branches/2.1.6/; revision=13207

17 years agoRemove redundant EAPI assingment inside doebuild_environment(). (trunk r13176)
Zac Medico [Fri, 27 Mar 2009 04:26:16 +0000 (04:26 -0000)]
Remove redundant EAPI assingment inside doebuild_environment(). (trunk r13176)

svn path=/main/branches/2.1.6/; revision=13206

17 years agoAdd support for FEATURES=parse-eapi-glep-55. This feature is only intended for
Zac Medico [Fri, 27 Mar 2009 04:25:35 +0000 (04:25 -0000)]
Add support for FEATURES=parse-eapi-glep-55. This feature is only intended for
experimental purposes and should not be enabled under normal circumstances.
(trunk r13175)

svn path=/main/branches/2.1.6/; revision=13205

17 years agoIf a package is masked by EAPI then don't show any other masking reasons.
Zac Medico [Fri, 27 Mar 2009 04:16:04 +0000 (04:16 -0000)]
If a package is masked by EAPI then don't show any other masking reasons.
(trunk r13174)

svn path=/main/branches/2.1.6/; revision=13204

17 years agoAdd support for FEATURES=parse-eapi-ebuild-head, which is similar to GLEP 55
Zac Medico [Fri, 27 Mar 2009 04:14:33 +0000 (04:14 -0000)]
Add support for FEATURES=parse-eapi-ebuild-head, which is similar to GLEP 55
except that the EAPI is parsed from the head of the ebuild (first 30 lines).
This feature is only intended for experimental purposes and should not be
enabled under normal circumstances. (trunk r13173)

svn path=/main/branches/2.1.6/; revision=13203

17 years agoWhen calling doebuild() to spawn the 'depend' phase, just call config.setcpv() v2.1.6.10
Zac Medico [Mon, 23 Mar 2009 05:55:31 +0000 (05:55 -0000)]
When calling doebuild() to spawn the 'depend' phase, just call config.setcpv()
since that should be enough (no need for separate reset or reload calls).
(trunk r13170)

svn path=/main/branches/2.1.6/; revision=13171

17 years agoFix misc typos in comments. (trunk r13168)
Zac Medico [Mon, 23 Mar 2009 05:27:59 +0000 (05:27 -0000)]
Fix misc typos in comments. (trunk r13168)

svn path=/main/branches/2.1.6/; revision=13169

17 years agoOnly check for ebuild/eclass modification when a relevant phase is called.
Zac Medico [Mon, 23 Mar 2009 02:22:50 +0000 (02:22 -0000)]
Only check for ebuild/eclass modification when a relevant phase is called.
(trunk r13150)

svn path=/main/branches/2.1.6/; revision=13167

17 years agoUse a separate if/then to group boolean or'd expressions together, rather
Zac Medico [Mon, 23 Mar 2009 02:22:21 +0000 (02:22 -0000)]
Use a separate if/then to group boolean or'd expressions together, rather
than a subshell. (trunk r13149)

svn path=/main/branches/2.1.6/; revision=13166

17 years agoMake ebuild(1) detect ebuild/eclass changes and automatically source the
Zac Medico [Mon, 23 Mar 2009 02:22:06 +0000 (02:22 -0000)]
Make ebuild(1) detect ebuild/eclass changes and automatically source the
ebuild atain in this case (even though $T/environment may already exist).
This should help avoid confusion by ensuring that the latest changes to
the ebuild/eclasses are reflected in the environment. (trunk r13148)

svn path=/main/branches/2.1.6/; revision=13165

17 years agoAdd "prepare" to the list of phases that trigger a warning about stale
Zac Medico [Mon, 23 Mar 2009 02:21:42 +0000 (02:21 -0000)]
Add "prepare" to the list of phases that trigger a warning about stale
${T}/environment. (trunk r13147)

svn path=/main/branches/2.1.6/; revision=13164

17 years agoWhen triggering a fresh unpack inside dyn_unpack(), remove the
Zac Medico [Mon, 23 Mar 2009 02:21:19 +0000 (02:21 -0000)]
When triggering a fresh unpack inside dyn_unpack(), remove the
.prepared, .configured and .installed files along with the others.
(trunk r13146)

svn path=/main/branches/2.1.6/; revision=13163

17 years agoReplace xrange() usage with normal iteration and enumerate() where
Zac Medico [Mon, 23 Mar 2009 02:21:05 +0000 (02:21 -0000)]
Replace xrange() usage with normal iteration and enumerate() where
appropriate. Thanks to Douglass Anderson <dja@gendja.com> for the
initial patch. (trunk r13145)

svn path=/main/branches/2.1.6/; revision=13162

17 years agoInside spawn(), avoid redundant os.access() and stat() calls on commonly
Zac Medico [Mon, 23 Mar 2009 02:20:42 +0000 (02:20 -0000)]
Inside spawn(), avoid redundant os.access() and stat() calls on commonly
spawned binaries such as BASH_BINARY, SANDBOX_BINARY, and FAKEROOT_BINARY.
Thanks to Piotr Jaroszyński <peper@g.o> for reporting. (trunk r13144)

svn path=/main/branches/2.1.6/; revision=13161

17 years agoInside config.environ(), skip stat call on $T/environment for phases such
Zac Medico [Mon, 23 Mar 2009 02:20:15 +0000 (02:20 -0000)]
Inside config.environ(), skip stat call on $T/environment for phases such
as 'clean' and 'depend' where environment filtering isn't needed. Thanks to
Piotr Jaroszyński <peper@g.o> for reporting. (trunk r13143)

svn path=/main/branches/2.1.6/; revision=13160

17 years agoRemove pointless usage of xrange(). Thanks to Douglass Anderson
Zac Medico [Mon, 23 Mar 2009 02:19:59 +0000 (02:19 -0000)]
Remove pointless usage of xrange(). Thanks to Douglass Anderson
<dja@gendja.com> for this patch. (trunk r13142)

svn path=/main/branches/2.1.6/; revision=13159

17 years agoAdd a temporary workaround for bug #263081 (partially reverts r12757).
Zac Medico [Mon, 23 Mar 2009 02:19:36 +0000 (02:19 -0000)]
Add a temporary workaround for bug #263081 (partially reverts r12757).
(trunk r13141)

svn path=/main/branches/2.1.6/; revision=13158

17 years agoFix argument validation to allow file paths. Thanks to Arfrever for reporting.
Zac Medico [Mon, 23 Mar 2009 02:19:22 +0000 (02:19 -0000)]
Fix argument validation to allow file paths. Thanks to Arfrever for reporting.
(trunk r13140)

svn path=/main/branches/2.1.6/; revision=13157

17 years agoNormalize try/except indentation for compatibility with 2to3. (trunk
Zac Medico [Mon, 23 Mar 2009 02:18:55 +0000 (02:18 -0000)]
Normalize try/except indentation for compatibility with 2to3. (trunk
r13136:13139)

svn path=/main/branches/2.1.6/; revision=13156

17 years agoMake sure mysettings.setcpv() always gets called when necessary inside
Zac Medico [Mon, 23 Mar 2009 02:17:03 +0000 (02:17 -0000)]
Make sure mysettings.setcpv() always gets called when necessary inside
doebuild_environment(). (trunk r13136)

svn path=/main/branches/2.1.6/; revision=13155

17 years agoAdd docstrings for the fd_pipes and returnpid parameters of doebuild().
Zac Medico [Mon, 23 Mar 2009 02:16:34 +0000 (02:16 -0000)]
Add docstrings for the fd_pipes and returnpid parameters of doebuild().
(trunk r13135)

svn path=/main/branches/2.1.6/; revision=13154

17 years agoMake config.features a set instead of a list. (trunk r13134)
Zac Medico [Mon, 23 Mar 2009 02:15:52 +0000 (02:15 -0000)]
Make config.features a set instead of a list. (trunk r13134)

svn path=/main/branches/2.1.6/; revision=13153

17 years agoUpdate copyright headers. (trunk r13131)
Zac Medico [Mon, 23 Mar 2009 02:15:33 +0000 (02:15 -0000)]
Update copyright headers. (trunk r13131)

svn path=/main/branches/2.1.6/; revision=13152

17 years agoIn order to avoid possible duplicate elog messages when using ebuild(1) to
Zac Medico [Mon, 23 Mar 2009 02:14:58 +0000 (02:14 -0000)]
In order to avoid possible duplicate elog messages when using ebuild(1) to
call the same phase multiple times, wipe out elog log files for the current
phase just before executing the phase. Thanks to Mike Frysinger <vapier@g.o>
for reporting. (trunk r13130)

svn path=/main/branches/2.1.6/; revision=13151

17 years agoValidate argument atoms earlier for build actions. (trunk r13126) v2.1.6.9
Zac Medico [Tue, 17 Mar 2009 19:30:58 +0000 (19:30 -0000)]
Validate argument atoms earlier for build actions. (trunk r13126)

svn path=/main/branches/2.1.6/; revision=13127

17 years agoBug #262365 - Punt the prepalldocs check until there is an alternative
Zac Medico [Tue, 17 Mar 2009 19:15:21 +0000 (19:15 -0000)]
Bug #262365 - Punt the prepalldocs check until there is an alternative
available in EAPI 3. (trunk r13117:13119)

svn path=/main/branches/2.1.6/; revision=13125

17 years agoPunt fix-db.py since it's not really needed. It's been broken since 2.1.6
Zac Medico [Tue, 17 Mar 2009 19:13:52 +0000 (19:13 -0000)]
Punt fix-db.py since it's not really needed. It's been broken since 2.1.6
and nobody noticed until bug #262132 was filed. (trunk r13117)

svn path=/main/branches/2.1.6/; revision=13124

17 years agoBug #262485 - Handle InvalidAtom from dep_expand(). (trunk r13116)
Zac Medico [Tue, 17 Mar 2009 19:13:33 +0000 (19:13 -0000)]
Bug #262485 - Handle InvalidAtom from dep_expand(). (trunk r13116)

svn path=/main/branches/2.1.6/; revision=13123

17 years agoDo not create hardlinks when merging CONFIG_PROTECTed files since config
Zac Medico [Tue, 17 Mar 2009 19:13:22 +0000 (19:13 -0000)]
Do not create hardlinks when merging CONFIG_PROTECTed files since config
files shouldn't be hardlinked to eachother (for example, shadow installs
several identical config files inside /etc/pam.d/). Thanks to Caleb Cushing
<xenoterracide@gmail.com> for reporting. (trunk r13115)

svn path=/main/branches/2.1.6/; revision=13122

17 years agoadd m68k diff from kolla (trunk r13114)
Zac Medico [Tue, 17 Mar 2009 19:13:12 +0000 (19:13 -0000)]
add m68k diff from kolla (trunk r13114)

svn path=/main/branches/2.1.6/; revision=13121

17 years agoAdd make.conf for amd64-fbsd submitted by Timothy Redaelli <drizzt@g.o>.
Zac Medico [Tue, 17 Mar 2009 19:13:01 +0000 (19:13 -0000)]
Add make.conf for amd64-fbsd submitted by Timothy Redaelli <drizzt@g.o>.
(trunk r13113)

svn path=/main/branches/2.1.6/; revision=13120

17 years agoBug #262365 - Make the "portage.internal" category (prepalldocs check) a v2.1.6.8
Zac Medico [Fri, 13 Mar 2009 19:49:06 +0000 (19:49 -0000)]
Bug #262365 - Make the "portage.internal" category (prepalldocs check) a
warning instead of fatal. (trunk r13109)

svn path=/main/branches/2.1.6/; revision=13110

17 years agoAdd missing brackets to [:upper:] and [:lower:] in _sb_append_var() tr
Zac Medico [Fri, 13 Mar 2009 00:24:29 +0000 (00:24 -0000)]
Add missing brackets to [:upper:] and [:lower:] in _sb_append_var() tr
arguments. (trunk r13104)

svn path=/main/branches/2.1.6/; revision=13107

17 years agoFilter _sb_append_var in save_ebuild_env(). (trunk r13091)
Zac Medico [Fri, 13 Mar 2009 00:24:11 +0000 (00:24 -0000)]
Filter _sb_append_var in save_ebuild_env(). (trunk r13091)

svn path=/main/branches/2.1.6/; revision=13106

17 years agocleanup sandbox env var handling -- make sure we dont insert empty : sections and...
Zac Medico [Fri, 13 Mar 2009 00:24:00 +0000 (00:24 -0000)]
cleanup sandbox env var handling -- make sure we dont insert empty : sections and avoid unnecessary eval usage
(trunk r13090)

svn path=/main/branches/2.1.6/; revision=13105

17 years agoBug #261670 - Automatically revert the CHOST metadata to the initial value
Zac Medico [Thu, 12 Mar 2009 18:45:35 +0000 (18:45 -0000)]
Bug #261670 - Automatically revert the CHOST metadata to the initial value
after src_install, in case the ebuild has changed it. (trunk r13088)

svn path=/main/branches/2.1.6/; revision=13092

17 years agoDisable EAPI 3_pre1.
Zac Medico [Thu, 12 Mar 2009 05:59:53 +0000 (05:59 -0000)]
Disable EAPI 3_pre1.

svn path=/main/branches/2.1.6/; revision=13087

17 years agoUpdate docstring for EbuildBuildDir.clean_log(). (trunk r13072)
Zac Medico [Thu, 12 Mar 2009 05:57:55 +0000 (05:57 -0000)]
Update docstring for EbuildBuildDir.clean_log(). (trunk r13072)

svn path=/main/branches/2.1.6/; revision=13086

17 years agoBug #261992 - Replace the EbuildBuildDir.clean() method with a clean_log()
Zac Medico [Thu, 12 Mar 2009 05:57:42 +0000 (05:57 -0000)]
Bug #261992 - Replace the EbuildBuildDir.clean() method with a clean_log()
method since log cleanup is all that's currently needed and shutil.rmtree()
can fail with "OSError: [Errno 36] File name too long" due to strange file
names, or on FreeBSD it can fail with EPERM due to file flags in $D.
(trunk r13071)

svn path=/main/branches/2.1.6/; revision=13085

17 years agoBug #261992 - Inside Binpkg._prefetch_exit(), avoid potention issues with
Zac Medico [Thu, 12 Mar 2009 05:57:24 +0000 (05:57 -0000)]
Bug #261992 - Inside Binpkg._prefetch_exit(), avoid potention issues with
shutil.rmtree() by just doing a minimal cleanup. (trunk r13070)

svn path=/main/branches/2.1.6/; revision=13084

17 years agoMake dyn_clean ignore FEATURES=keepwork when [[ $EMERGE_FROM = binary ]]
Zac Medico [Thu, 12 Mar 2009 05:57:07 +0000 (05:57 -0000)]
Make dyn_clean ignore FEATURES=keepwork when [[ $EMERGE_FROM = binary ]]
and remove shutil.rmtree() call from Binpkg._clean_exit() since dyn_clean
is guaranteed to do a full clean now. (trunk r13069)

svn path=/main/branches/2.1.6/; revision=13083

17 years agoWhen translating portage uid/gid to root uid/gid after src_install on
Zac Medico [Thu, 12 Mar 2009 05:56:54 +0000 (05:56 -0000)]
When translating portage uid/gid to root uid/gid after src_install on
FreeBSD, temporarily remove all file flags inside $D in order to avoid
EPERM errors. Thanks to Timothy Redaelli <drizzt@g.o> for reporting.
(trunk r13068)

svn path=/main/branches/2.1.6/; revision=13082

17 years agoUse posix compatible find -perm arguments. Thanks to Timothy Redaelli
Zac Medico [Thu, 12 Mar 2009 05:56:37 +0000 (05:56 -0000)]
Use posix compatible find -perm arguments. Thanks to Timothy Redaelli
<drizzt@g.o> for reporting. (trunk r13067)

svn path=/main/branches/2.1.6/; revision=13081

17 years agoAlso add an einfo binary. (trunk r13066)
Zac Medico [Thu, 12 Mar 2009 05:56:26 +0000 (05:56 -0000)]
Also add an einfo binary. (trunk r13066)

svn path=/main/branches/2.1.6/; revision=13080

17 years agoBug #262096 - Add separate eerror, elog, eqawarn, and ewarn binaries for
Zac Medico [Thu, 12 Mar 2009 05:56:15 +0000 (05:56 -0000)]
Bug #262096 - Add separate eerror, elog, eqawarn, and ewarn binaries for
use by non-bash programs running inside the ebuild environment, such as
sandbox. (trunk r13065)

svn path=/main/branches/2.1.6/; revision=13079

17 years agoUse ${x##*/} instead of calling basename. (trunk r13064)
Zac Medico [Thu, 12 Mar 2009 05:56:01 +0000 (05:56 -0000)]
Use ${x##*/} instead of calling basename. (trunk r13064)

svn path=/main/branches/2.1.6/; revision=13078

17 years agoMove ebuild helpers into an ebuild-helpers subdirectory. (trunk r13063)
Zac Medico [Thu, 12 Mar 2009 05:55:37 +0000 (05:55 -0000)]
Move ebuild helpers into an ebuild-helpers subdirectory. (trunk r13063)

svn path=/main/branches/2.1.6/; revision=13077

17 years agoUse absolute imports instead of relative. (trunk r13062)
Zac Medico [Thu, 12 Mar 2009 05:55:08 +0000 (05:55 -0000)]
Use absolute imports instead of relative. (trunk r13062)

svn path=/main/branches/2.1.6/; revision=13076

17 years agoBug #262211 - Avoid triggering an InvalidAtom exception inside the Package
Zac Medico [Thu, 12 Mar 2009 05:54:56 +0000 (05:54 -0000)]
Bug #262211 - Avoid triggering an InvalidAtom exception inside the Package
constructor when SLOT is empty. (trunk r13061)

svn path=/main/branches/2.1.6/; revision=13075

17 years agoBug #262211 - Make vardbapi.aux_get() translate empty SLOT to 0 since other
Zac Medico [Thu, 12 Mar 2009 05:54:45 +0000 (05:54 -0000)]
Bug #262211 - Make vardbapi.aux_get() translate empty SLOT to 0 since other
code expects non-empty SLOT (for generation package slot atoms). (trunk r13060)

svn path=/main/branches/2.1.6/; revision=13074

17 years agoBug #262012 - Only trigger the slot conflict message about --newuse when
Zac Medico [Thu, 12 Mar 2009 05:54:20 +0000 (05:54 -0000)]
Bug #262012 - Only trigger the slot conflict message about --newuse when
the installed version is the same as the new one. If they are different
versions then there's some other problem. (trunk r13059)

svn path=/main/branches/2.1.6/; revision=13073

17 years agoUpdate header: 2.2 -> 2.1.6
Zac Medico [Wed, 11 Mar 2009 09:11:27 +0000 (09:11 -0000)]
Update header: 2.2 -> 2.1.6

svn path=/main/branches/2.1.6/; revision=13058

17 years agoAdd new xpak.5 man page by Lars Hartmann <lars<at>chaotika<dot>org>.
Zac Medico [Wed, 11 Mar 2009 08:10:22 +0000 (08:10 -0000)]
Add new xpak.5 man page by Lars Hartmann <lars<at>chaotika<dot>org>.
(trunk r13056)

svn path=/main/branches/2.1.6/; revision=13057

17 years agoDon't default env=os.environ directly in the config constructor because
Zac Medico [Wed, 11 Mar 2009 07:48:13 +0000 (07:48 -0000)]
Don't default env=os.environ directly in the config constructor because
that makes it show environment variables in api docs generated by epydoc.
(trunk r12824)

svn path=/main/branches/2.1.6/; revision=13055

17 years agoUse slices instead of startswith inside manifest2AuxfileFilter(). (trunk r12823)
Zac Medico [Wed, 11 Mar 2009 07:48:02 +0000 (07:48 -0000)]
Use slices instead of startswith inside manifest2AuxfileFilter(). (trunk r12823)

svn path=/main/branches/2.1.6/; revision=13054

17 years agoUse protocol=2 for pickle.dump() calls, so that pickles written by py3k will
Zac Medico [Wed, 11 Mar 2009 07:47:29 +0000 (07:47 -0000)]
Use protocol=2 for pickle.dump() calls, so that pickles written by py3k will
be backward compatible. (trunk r12821)

svn path=/main/branches/2.1.6/; revision=13053

17 years agoMake _src_uri_validate() identify the || operator as invalid and add a
Zac Medico [Wed, 11 Mar 2009 07:45:33 +0000 (07:45 -0000)]
Make _src_uri_validate() identify the || operator as invalid and add a
corresponding test case. (trunk r12820)

svn path=/main/branches/2.1.6/; revision=13052

17 years agoRemove redundant conditional inside _src_uri_validate(). (trunk r12819)
Zac Medico [Wed, 11 Mar 2009 07:45:21 +0000 (07:45 -0000)]
Remove redundant conditional inside _src_uri_validate(). (trunk r12819)

svn path=/main/branches/2.1.6/; revision=13051

17 years agoFix incorrect slice inside _src_uri_validate() and add new test case.
Zac Medico [Wed, 11 Mar 2009 07:45:11 +0000 (07:45 -0000)]
Fix incorrect slice inside _src_uri_validate() and add new test case.
(trunk r12818)

svn path=/main/branches/2.1.6/; revision=13050

17 years agoSimplify cmp_sort_key._cmp_key.__lt__(). (trunk r12817)
Zac Medico [Wed, 11 Mar 2009 07:44:52 +0000 (07:44 -0000)]
Simplify cmp_sort_key._cmp_key.__lt__(). (trunk r12817)

svn path=/main/branches/2.1.6/; revision=13049

17 years agoInitialize UserDict.data in the constructor. (trunk r12816)
Zac Medico [Wed, 11 Mar 2009 07:44:41 +0000 (07:44 -0000)]
Initialize UserDict.data in the constructor. (trunk r12816)

svn path=/main/branches/2.1.6/; revision=13048

17 years agoOptimize dbapi._cpv_sort_ascending() by calling vercmp directly instead of
Zac Medico [Wed, 11 Mar 2009 07:44:27 +0000 (07:44 -0000)]
Optimize dbapi._cpv_sort_ascending() by calling vercmp directly instead of
calling pkgcmp. (trunk r12815)

svn path=/main/branches/2.1.6/; revision=13047

17 years agoBug #261852 - If an unexpected exception is raise from emerge_main() then
Zac Medico [Wed, 11 Mar 2009 07:44:10 +0000 (07:44 -0000)]
Bug #261852 - If an unexpected exception is raise from emerge_main() then
show the traceback after the mod_echo output to that the traceback isn't
obscured by mod_echo flooding. (trunk r12814)

svn path=/main/branches/2.1.6/; revision=13046

17 years agoWhen the config_incrementals parameter is unspecified in the config
Zac Medico [Wed, 11 Mar 2009 07:43:47 +0000 (07:43 -0000)]
When the config_incrementals parameter is unspecified in the config
constructor, don't warn because it's ridiculous to require this parameter
when it's always the same anyway. (trunk r12813)

svn path=/main/branches/2.1.6/; revision=13045

17 years agoSimplify environment cleansing that's done for the ROOT=/ config instance
Zac Medico [Wed, 11 Mar 2009 07:41:27 +0000 (07:41 -0000)]
Simplify environment cleansing that's done for the ROOT=/ config instance
when ROOT!=/. A new "env" config constructor parameter is used to allow
the caller to avoid having the config instance polluted by os.environ.
(trunk r12812)

svn path=/main/branches/2.1.6/; revision=13044

17 years agoInside create_trees(), when cleansing the environment for the ROOT=/ config
Zac Medico [Wed, 11 Mar 2009 07:41:09 +0000 (07:41 -0000)]
Inside create_trees(), when cleansing the environment for the ROOT=/ config
instance, call config.reset() so that configdict['env'] is cleared as was
originally intended here. This prevents thinks like CHOST overrides from the
calling environment from inappropriately being applied to ROOT=/. (trunk r12811)

svn path=/main/branches/2.1.6/; revision=13043

17 years agoBug #261670 - Generate a QA Notice if CHOST (from dyn_install) has a value
Zac Medico [Wed, 11 Mar 2009 07:40:25 +0000 (07:40 -0000)]
Bug #261670 - Generate a QA Notice if CHOST (from dyn_install) has a value
which differs from the initial setting. (trunk r12810)

svn path=/main/branches/2.1.6/; revision=13042

17 years agoOnly execute src_test pre/post hooks when src_test is actually executed.
Zac Medico [Wed, 11 Mar 2009 07:40:10 +0000 (07:40 -0000)]
Only execute src_test pre/post hooks when src_test is actually executed.
(trunk r12809)

svn path=/main/branches/2.1.6/; revision=13041

17 years agoAdd more QA warnings for econf calls during unexpected phases. Thanks to
Zac Medico [Wed, 11 Mar 2009 07:39:58 +0000 (07:39 -0000)]
Add more QA warnings for econf calls during unexpected phases. Thanks to
Diego Elio Pettenò <flameeyes@g.o> for the suggestion. (trunk r12808)

svn path=/main/branches/2.1.6/; revision=13040

17 years agoUse the ebuild_phase helper function to calls phase hooks and fix broken
Zac Medico [Wed, 11 Mar 2009 07:39:06 +0000 (07:39 -0000)]
Use the ebuild_phase helper function to calls phase hooks and fix broken
trap calls that try to unset multiple signal handlers at once without
passing - as the first argument. (trunk r12805)

svn path=/main/branches/2.1.6/; revision=13039

17 years agoInside dyn_unpack(), only call pre/post phase hooks when src_unpack is
Zac Medico [Wed, 11 Mar 2009 07:38:51 +0000 (07:38 -0000)]
Inside dyn_unpack(), only call pre/post phase hooks when src_unpack is
called (when .unpacked does not already exist). (trunk r12804)

svn path=/main/branches/2.1.6/; revision=13038

17 years agoFix _setitem() to account for the change to serialize_eclasses = False.
Zac Medico [Wed, 11 Mar 2009 07:37:00 +0000 (07:37 -0000)]
Fix _setitem() to account for the change to serialize_eclasses = False.
(trunk r12803)

svn path=/main/branches/2.1.6/; revision=13037

17 years agoMake manifest mode with --force option cause existing digests to be replaced
Zac Medico [Wed, 11 Mar 2009 07:36:49 +0000 (07:36 -0000)]
Make manifest mode with --force option cause existing digests to be replaced
for any files that exist in ${DISTDIR}. This provides an alternative to
ebuild --force manifest for updating existing distfiles digests. Digests
are assumed to be corect for files that do not exist in ${DISTDIR} since
the user could simply remove the whole Manifest if they wanted to regenerate
digests for all files (and it's safer to regenerate as few as possible
because it's less probably that a valid digest will get replaced by an
invalid one). (trunk r12802)

svn path=/main/branches/2.1.6/; revision=13036

17 years agoReorganize code for --digests and FEATURES=digest. (trunk r12801)
Zac Medico [Wed, 11 Mar 2009 07:35:55 +0000 (07:35 -0000)]
Reorganize code for --digests and FEATURES=digest. (trunk r12801)

svn path=/main/branches/2.1.6/; revision=13035

17 years agoNever call digestgen() inside doebuild() which only 'fetch' has been
Zac Medico [Wed, 11 Mar 2009 07:34:56 +0000 (07:34 -0000)]
Never call digestgen() inside doebuild() which only 'fetch' has been
requested since it's not needed in this case. (trunk r12800)

svn path=/main/branches/2.1.6/; revision=13034

17 years agoBug #261675 - Generate manifests in advance when FEATURES=digest is enabled.
Zac Medico [Wed, 11 Mar 2009 06:57:32 +0000 (06:57 -0000)]
Bug #261675 - Generate manifests in advance when FEATURES=digest is enabled.
(trunk r12799)

svn path=/main/branches/2.1.6/; revision=13033

17 years agoBug #261675 - Also don't call digestgen() from parallel-fetch processes.
Zac Medico [Wed, 11 Mar 2009 06:57:07 +0000 (06:57 -0000)]
Bug #261675 - Also don't call digestgen() from parallel-fetch processes.
(trunk r12798)

svn path=/main/branches/2.1.6/; revision=13032

17 years agoBug #261675 - When doebuild() is called by emerge, don't call digestgen()
Zac Medico [Wed, 11 Mar 2009 06:56:44 +0000 (06:56 -0000)]
Bug #261675 - When doebuild() is called by emerge, don't call digestgen()
for FEATURES=digest because it's redundant and it can cause interference
with parallel-fetch and parallel builds. (trunk r12797)

svn path=/main/branches/2.1.6/; revision=13031

17 years agoMake the --digest warning message show for FEATURES=digest. (trunk r12796)
Zac Medico [Wed, 11 Mar 2009 06:56:24 +0000 (06:56 -0000)]
Make the --digest warning message show for FEATURES=digest. (trunk r12796)

svn path=/main/branches/2.1.6/; revision=13030

17 years agoReplace things like [[ $PORTAGE_BUILDDIR/.prepared -nt $WORKDIR ]] with
Zac Medico [Wed, 11 Mar 2009 06:56:01 +0000 (06:56 -0000)]
Replace things like [[ $PORTAGE_BUILDDIR/.prepared -nt $WORKDIR ]] with
simply [[ -e $PORTAGE_BUILDDIR/.prepared ]] since the timestamp of
$WORKDIR is practically always newer due to the other hidden files that are
created there as each phase is executed. Thanks to Alfredo Tupone <tupone@g.o>
for reporting. (trunk r12795)

svn path=/main/branches/2.1.6/; revision=13029

17 years agoGenerate a QA Notice when EXPORT_FUNCTIONS is called before inherit, since
Zac Medico [Wed, 11 Mar 2009 06:55:38 +0000 (06:55 -0000)]
Generate a QA Notice when EXPORT_FUNCTIONS is called before inherit, since
it's incompatible with <=portage-2.1.6.7. (trunk r12794)

svn path=/main/branches/2.1.6/; revision=13028