portage.git
15 years agoBug #267104 - When appropriate, advise the user that they may set FEATURES=
Zac Medico [Thu, 30 Apr 2009 19:48:31 +0000 (19:48 -0000)]
Bug #267104 - When appropriate, advise the user that they may set FEATURES=
-userfetch in order to use remaining space. (trunk r13567)

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

15 years agoFix _lazy_accept_license to discard || from the set of licenses. (trunk r13565)
Zac Medico [Thu, 30 Apr 2009 16:45:32 +0000 (16:45 -0000)]
Fix _lazy_accept_license to discard || from the set of licenses. (trunk r13565)

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

15 years agoAdd note about repos.conf eclass overrides. (trunk r13561:13563)
Zac Medico [Thu, 30 Apr 2009 08:46:51 +0000 (08:46 -0000)]
Add note about repos.conf eclass overrides. (trunk r13561:13563)

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

15 years agoFix ACCEPT_LICENSE handling for binary packages, so that the build-time USE
Zac Medico [Thu, 30 Apr 2009 08:40:39 +0000 (08:40 -0000)]
Fix ACCEPT_LICENSE handling for binary packages, so that the build-time USE
settings are used calculate an appropriate ACCEPT_LICENSE value. (trunk r13560)

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

15 years agoFix error in calculations from bug #267104. (trunk r13419)
Zac Medico [Thu, 30 Apr 2009 07:32:00 +0000 (07:32 -0000)]
Fix error in calculations from bug #267104. (trunk r13419)

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

15 years agoIn config.setcpv(), move the code that makes sure "pkg" values override "env"
Zac Medico [Thu, 30 Apr 2009 07:31:50 +0000 (07:31 -0000)]
In config.setcpv(), move the code that makes sure "pkg" values override "env"
values _after_ the reset() call. (trunk r13418)

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

15 years agoGenerate a pruned version of ACCEPT_LICENSE, by intersection with
Zac Medico [Thu, 30 Apr 2009 07:31:39 +0000 (07:31 -0000)]
Generate a pruned version of ACCEPT_LICENSE, by intersection with
LICENSE. This is required since otherwise ACCEPT_LICENSE might be too
big (bigger than ARG_MAX), causing execve() calls to fail with E2BIG
errors as in bug #262647. (trunk r13417)

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

15 years agoIn config.regenerate(), explicitly include self.backupenv when processing
Zac Medico [Thu, 30 Apr 2009 07:31:19 +0000 (07:31 -0000)]
In config.regenerate(), explicitly include self.backupenv when processing
incrementals, since it's no longer included in self.configlist. (trunk r13416)

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

15 years agoExclude 'backupenv' from config.configlist and lookuplist since it doesn't
Zac Medico [Thu, 30 Apr 2009 07:31:09 +0000 (07:31 -0000)]
Exclude 'backupenv' from config.configlist and lookuplist since it doesn't
make size to have it in there when configdict['env'] already serves that
purpose. This allows values to be temporarily removed from configdict['env']
and have them not appear in the environment until reset() is called to restore
those values from the backupenv. (trunk r13415)

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

15 years agoClarify RESTRICT=bindist docs by referring to 'built' packages. Thanks to
Zac Medico [Thu, 30 Apr 2009 07:30:56 +0000 (07:30 -0000)]
Clarify RESTRICT=bindist docs by referring to 'built' packages. Thanks to
Thomas Sachau <tommy@g.o> for reporting. (trunk r13414)

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

15 years agoWarn about sed and epatch calls which should be moved from src_unpack to
Zac Medico [Thu, 30 Apr 2009 07:30:47 +0000 (07:30 -0000)]
Warn about sed and epatch calls which should be moved from src_unpack to
src_prepare. Thanks to Markus Meier <maekke@g.o> for the initial patch.
(trunk r13413)

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

15 years agoMove the here-document code from the EbuildWhitespace check to the
Zac Medico [Thu, 30 Apr 2009 07:30:32 +0000 (07:30 -0000)]
Move the here-document code from the EbuildWhitespace check to the
run_checks() function, so that all checks ignore the content of
here-documents. (trunk r13412)

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

15 years agoMake EbuildWhitespace ignore here-documents. Thanks to Diego Pettenò
Zac Medico [Thu, 30 Apr 2009 07:30:22 +0000 (07:30 -0000)]
Make EbuildWhitespace ignore here-documents. Thanks to Diego Pettenò
<flameeyes@g.o> for reporting. (trunk r13411)

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

15 years agoMake xtermTitle() use a global variable to cache the result of the TERM check.
Zac Medico [Thu, 30 Apr 2009 07:30:14 +0000 (07:30 -0000)]
Make xtermTitle() use a global variable to cache the result of the TERM check.
(trunk r13410)

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

15 years agoBug #267860 - Make JobStatusDisplay respect FEATURES=notitles. (trunk r13409)
Zac Medico [Thu, 30 Apr 2009 07:30:03 +0000 (07:30 -0000)]
Bug #267860 - Make JobStatusDisplay respect FEATURES=notitles. (trunk r13409)

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

15 years agoFix the code from bug #267104 to account non-root users. (trunk r13408)
Zac Medico [Thu, 30 Apr 2009 07:29:53 +0000 (07:29 -0000)]
Fix the code from bug #267104 to account non-root users. (trunk r13408)

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

15 years agoBug #267810 - Don't sort C/CXX/LDFLAGS in emerge --info output since these
Zac Medico [Thu, 30 Apr 2009 07:29:39 +0000 (07:29 -0000)]
Bug #267810 - Don't sort C/CXX/LDFLAGS in emerge --info output since these
variables aren't really sortable in that way. (trunk r13407)

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

15 years agoBug #267104 - If the statvfs f_bavail field shows insufficient free space and
Zac Medico [Thu, 30 Apr 2009 07:29:25 +0000 (07:29 -0000)]
Bug #267104 - If the statvfs f_bavail field shows insufficient free space and
userfetch is not enabled, recalculate using the f_bfree field. (trunk r13406)

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

15 years agoPut ebuild helpers at the absolute front of the PATH. (trunk r13404)
Zac Medico [Thu, 30 Apr 2009 07:28:57 +0000 (07:28 -0000)]
Put ebuild helpers at the absolute front of the PATH. (trunk r13404)

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

15 years agoBug #71646 - Don't allow the HISTFILE variable into the ebuild environment
Zac Medico [Thu, 30 Apr 2009 07:28:45 +0000 (07:28 -0000)]
Bug #71646 - Don't allow the HISTFILE variable into the ebuild environment
since it triggers sandbox violations. (trunk r13403)

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

15 years agofix e-mail munging and add see also section (trunk r13402)
Zac Medico [Thu, 30 Apr 2009 07:27:08 +0000 (07:27 -0000)]
fix e-mail munging and add see also section (trunk r13402)

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

15 years agoAdd a new EAPI.definition check for cases in which EAPI is defined after an
Zac Medico [Thu, 30 Apr 2009 07:26:00 +0000 (07:26 -0000)]
Add a new EAPI.definition check for cases in which EAPI is defined after an
inherit call. Thanks to Markus Meier <maekke@g.o> for the initial patch.
(trunk r13401)

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

15 years agoAdd dohard and doset helper which die for EAPI 3. TODO: Make the die
Zac Medico [Thu, 30 Apr 2009 07:24:48 +0000 (07:24 -0000)]
Add dohard and doset helper which die for EAPI 3. TODO: Make the die
helper use pipe or socket IPC instead of a signal, to avoid a potential
race condition in signal delivery. Thanks to to Tiziano Müller <dev-zero@g.o>
for the initial patch. (trunk r13389)

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

15 years agoSet executable. (trunk r13388)
Zac Medico [Thu, 30 Apr 2009 07:24:19 +0000 (07:24 -0000)]
Set executable. (trunk r13388)

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

15 years agoAutomatically define errno.ESTALE if it doesn't exist (like on interix).
Zac Medico [Thu, 30 Apr 2009 07:24:09 +0000 (07:24 -0000)]
Automatically define errno.ESTALE if it doesn't exist (like on interix).
Thanks to Markus Duft <mduft@g.o> for reporting. (trunk r13387)

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

15 years agoFix breakage in PREROOTPATH logic from the EAPI 3 code. (trunk r13386)
Zac Medico [Thu, 30 Apr 2009 07:23:50 +0000 (07:23 -0000)]
Fix breakage in PREROOTPATH logic from the EAPI 3 code. (trunk r13386)

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

15 years agoRemove ccache and distcc remove_path_entry code since PATH is always
Zac Medico [Thu, 30 Apr 2009 07:23:35 +0000 (07:23 -0000)]
Remove ccache and distcc remove_path_entry code since PATH is always
initialized from scratch so there's no danger of accumulation. (trunk r13385)

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

15 years agoUse declare -F to check existence of function definitions, instead of
Zac Medico [Thu, 30 Apr 2009 07:23:25 +0000 (07:23 -0000)]
Use declare -F to check existence of function definitions, instead of
type -t, in order to avoid use of subshells. (trunk r13384)

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

15 years agoUse ret|=1 instead of ++ret, to avoid possible overflow. (trunk r13383)
Zac Medico [Thu, 30 Apr 2009 07:23:16 +0000 (07:23 -0000)]
Use ret|=1 instead of ++ret, to avoid possible overflow. (trunk r13383)

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

15 years agoAdd new dodoc implementation for EAPI 3. Thanks to to Tiziano Müller
Zac Medico [Thu, 30 Apr 2009 07:22:59 +0000 (07:22 -0000)]
Add new dodoc implementation for EAPI 3. Thanks to to Tiziano Müller
<dev-zero@g.o> for this patch. (trunk r13382)

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

15 years agoIn ebuild_main(), unset ebuild_helpers_path when finished with it, since
Zac Medico [Thu, 30 Apr 2009 07:22:48 +0000 (07:22 -0000)]
In ebuild_main(), unset ebuild_helpers_path when finished with it, since
bash exposes local variables to 'children'. (trunk r13381)

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

15 years agoAdd ${PORTAGE_BIN_PATH}/ebuild-helpers/3 directory to PATH for EAPI 3. Thanks
Zac Medico [Thu, 30 Apr 2009 07:22:35 +0000 (07:22 -0000)]
Add ${PORTAGE_BIN_PATH}/ebuild-helpers/3 directory to PATH for EAPI 3. Thanks
to Tiziano Müller <dev-zero@g.o> for this patch. (trunk r13380)

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

15 years agoExit unsuccessfully when in commit mode and nothing is found to commit. Thanks
Zac Medico [Thu, 30 Apr 2009 07:22:19 +0000 (07:22 -0000)]
Exit unsuccessfully when in commit mode and nothing is found to commit. Thanks
to Jeremy Olexa <darkside@g.o> for the suggestion. (trunk r13379)

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

15 years agoClarify language in repos.conf reference to repoman and egencache.
Zac Medico [Thu, 30 Apr 2009 07:22:04 +0000 (07:22 -0000)]
Clarify language in repos.conf reference to repoman and egencache.
(trunk r13378)

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

15 years agoWhen in --nodeps mode, make depgraph._serialize_tasks() preserve the package
Zac Medico [Thu, 30 Apr 2009 07:21:45 +0000 (07:21 -0000)]
When in --nodeps mode, make depgraph._serialize_tasks() preserve the package
order given on the command line. Thanks to Markus Duft <mduft@g.o> for
reporting. (trunk r13377)

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

15 years agoAdd note about 'use' in the Atom.intersects() docstring. (trunk r13375)
Zac Medico [Thu, 30 Apr 2009 07:21:28 +0000 (07:21 -0000)]
Add note about 'use' in the Atom.intersects() docstring. (trunk r13375)

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

15 years agoDrop from --ask to --pretend for uninstall all actions. (trunk r13374)
Zac Medico [Thu, 30 Apr 2009 07:21:14 +0000 (07:21 -0000)]
Drop from --ask to --pretend for uninstall all actions. (trunk r13374)

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

15 years agoAdd missing del when cleansing cache in action_metadata(). (trunk r13373)
Zac Medico [Thu, 30 Apr 2009 07:20:59 +0000 (07:20 -0000)]
Add missing del when cleansing cache in action_metadata(). (trunk r13373)

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

15 years agoTweak _eclasses_ logic inside action_metadata(). (trunk r13372)
Zac Medico [Thu, 30 Apr 2009 07:20:44 +0000 (07:20 -0000)]
Tweak _eclasses_ logic inside action_metadata(). (trunk r13372)

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

15 years agoEmphasize precedence of repos.conf over layout.conf. (trunk r13371)
Zac Medico [Thu, 30 Apr 2009 07:20:32 +0000 (07:20 -0000)]
Emphasize precedence of repos.conf over layout.conf. (trunk r13371)

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

15 years agoAdd notes about eclass precedence for metadata/layout.conf. (trunk r13370)
Zac Medico [Thu, 30 Apr 2009 07:20:17 +0000 (07:20 -0000)]
Add notes about eclass precedence for metadata/layout.conf. (trunk r13370)

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

15 years agoIn action_deselect(), use the installed packages to expand atoms into slot
Zac Medico [Thu, 30 Apr 2009 07:19:43 +0000 (07:19 -0000)]
In action_deselect(), use the installed packages to expand atoms into slot
atoms. (trunk r13366)

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

15 years agoAdd --ask support to action_deselect(). (trunk r13365)
Zac Medico [Thu, 30 Apr 2009 07:19:32 +0000 (07:19 -0000)]
Add --ask support to action_deselect(). (trunk r13365)

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

15 years agoFix bugs in action_deselect() and add --pretend support. (trunk r13364)
Zac Medico [Thu, 30 Apr 2009 07:19:22 +0000 (07:19 -0000)]
Fix bugs in action_deselect() and add --pretend support. (trunk r13364)

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

15 years agoAdd a new --deselect action which removes atoms from the world file. This
Zac Medico [Thu, 30 Apr 2009 07:19:02 +0000 (07:19 -0000)]
Add a new --deselect action which removes atoms from the world file. This
action is implied by uninstall actions, including --depclean, --prune and
--unmerge. Use --deselect=n in order to prevent uninstall actions from
removing atoms from the world file. This solves bug #259994 and bug #265206.
(trunk r13363)

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

15 years agoFix default master code so that it doesn't trigger when PORTDIR is empty.
Zac Medico [Thu, 30 Apr 2009 07:18:51 +0000 (07:18 -0000)]
Fix default master code so that it doesn't trigger when PORTDIR is empty.
(trunk r13362)

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

15 years agoIf a repo doesn't have metadata/layout.conf then use either missing eclass
Zac Medico [Thu, 30 Apr 2009 07:18:41 +0000 (07:18 -0000)]
If a repo doesn't have metadata/layout.conf then use either missing eclass
directory or missing profiles/profiles.desc to trigger assignment of a default
master. (trunk r13361)

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

15 years agoHandle IOError from codecs.open(). (trunk r13360)
Zac Medico [Thu, 30 Apr 2009 07:18:20 +0000 (07:18 -0000)]
Handle IOError from codecs.open(). (trunk r13360)

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

15 years agoSupport profiles.desc from overlays. (trunk r13359)
Zac Medico [Thu, 30 Apr 2009 07:18:07 +0000 (07:18 -0000)]
Support profiles.desc from overlays. (trunk r13359)

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

15 years agoSupport use.desc from overlays. (trunk r13358)
Zac Medico [Thu, 30 Apr 2009 07:17:50 +0000 (07:17 -0000)]
Support use.desc from overlays. (trunk r13358)

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

15 years agoUse a new ProfileDesc class to handle the data for each profile listed in
Zac Medico [Thu, 30 Apr 2009 07:17:28 +0000 (07:17 -0000)]
Use a new ProfileDesc class to handle the data for each profile listed in
profiles.desc. (trunk r13357)

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

15 years agoAdd support to emerge --metadata for transfering cache from overlays that
Zac Medico [Thu, 30 Apr 2009 07:17:13 +0000 (07:17 -0000)]
Add support to emerge --metadata for transfering cache from overlays that
have a metadata/cache directory. (trunk r13356)

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

15 years agoFix lockfile() docstring to correctly document the wantnewlockfile behavior.
Zac Medico [Thu, 30 Apr 2009 07:16:56 +0000 (07:16 -0000)]
Fix lockfile() docstring to correctly document the wantnewlockfile behavior.
Thanks to Arfrever for reporting. (trunk r13355)

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

15 years agoSimplify pkgcmp(). Thanks to Douglas Anderson <dja@gendja.com> for this patch
Zac Medico [Thu, 30 Apr 2009 07:16:44 +0000 (07:16 -0000)]
Simplify pkgcmp(). Thanks to Douglas Anderson <dja@gendja.com> for this patch
from bug #266493. (trunk r13354)

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

15 years agoBug #266493 - Never return a long from vercmp() since that can trigger an
Zac Medico [Thu, 30 Apr 2009 07:16:36 +0000 (07:16 -0000)]
Bug #266493 - Never return a long from vercmp() since that can trigger an
OverflowError if it's returned by a __cmp__ implementation. Thanks to
Douglas Anderson <dja@gendja.com> for the initial patch. I've modified it
to use the (a > b) - (a < b) construct as suggested in the py3k docs, since
cmp() is no longer supported in py3k. (trunk r13353)

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

15 years agoAdd support for repos.conf 'aliases' attribute which allows alias
Zac Medico [Thu, 30 Apr 2009 07:13:58 +0000 (07:13 -0000)]
Add support for repos.conf 'aliases' attribute which allows alias
substitution in metadata/layout.conf repository references. (trunk r13352)

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

15 years agoFix typo from previous commit. (trunk r13351)
Zac Medico [Thu, 30 Apr 2009 07:13:40 +0000 (07:13 -0000)]
Fix typo from previous commit. (trunk r13351)

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

15 years agoAdd support in repos.conf to override the "masters" setting from layout.conf.
Zac Medico [Thu, 30 Apr 2009 07:13:29 +0000 (07:13 -0000)]
Add support in repos.conf to override the "masters" setting from layout.conf.
(trunk r13350)

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

15 years agoCall realpath(repodir) so it's conistent with the value that pordbapi uses.
Zac Medico [Thu, 30 Apr 2009 07:13:20 +0000 (07:13 -0000)]
Call realpath(repodir) so it's conistent with the value that pordbapi uses.
Thanks to Fabian Groffen <grobian@g.o> for reporting. (trunk r13349)

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

15 years agoBug #265909 - Make emerge display a warning message if any overlays are
Zac Medico [Thu, 30 Apr 2009 07:12:58 +0000 (07:12 -0000)]
Bug #265909 - Make emerge display a warning message if any overlays are
ignored due to duplicate profiles/repo_name entries. The warning can be
disabled by setting PORTAGE_REPO_DUPLICATE_WARN=0 in /etc/make.conf.
(trunk r13348)

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

15 years agoBug #266211 - Handle ESTALE like ENOENT in fetch and locking code. Thanks to
Zac Medico [Thu, 30 Apr 2009 07:12:41 +0000 (07:12 -0000)]
Bug #266211 - Handle ESTALE like ENOENT in fetch and locking code. Thanks to
Krzysztof Olędzki <ole+gentoo@ans.pl> for the initial patch. (trunk r13347)

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

15 years agoAdd support in action_uninstall() for file -> package lookup. (trunk r13345)
Zac Medico [Thu, 30 Apr 2009 07:12:10 +0000 (07:12 -0000)]
Add support in action_uninstall() for file -> package lookup. (trunk r13345)

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

15 years agoSplit out an action_uninstall() function to handle argument validation for
Zac Medico [Thu, 30 Apr 2009 07:11:29 +0000 (07:11 -0000)]
Split out an action_uninstall() function to handle argument validation for
clean, depclean, prune, and unmerge actions. (trunk r13344)

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

15 years agoConvert portage.bsd_chflags into a class with chflags() and lchflags() class
Zac Medico [Thu, 30 Apr 2009 07:10:58 +0000 (07:10 -0000)]
Convert portage.bsd_chflags into a class with chflags() and lchflags() class
methods. (trunk r13343)

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

15 years agoMake portage.bsd_chflags correspond to FEATURES=chflags so that it can be
Zac Medico [Thu, 30 Apr 2009 07:10:46 +0000 (07:10 -0000)]
Make portage.bsd_chflags correspond to FEATURES=chflags so that it can be
used for related conditionals in shell code. (trunk r13342)

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

15 years agoCreate the myreporoot variable from portdir_overlay before doing
Zac Medico [Thu, 30 Apr 2009 07:10:29 +0000 (07:10 -0000)]
Create the myreporoot variable from portdir_overlay before doing
realpath(portdir_overlay) since otherwise symlinks break the
assumptions. Thanks to Thomas Sachau <tommy@g.o> for reporting and
troubleshooting. (trunk r13340)

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

15 years agoEnsure that the correct PORTDIR setting is passed into the profile-specific
Zac Medico [Thu, 30 Apr 2009 07:09:55 +0000 (07:09 -0000)]
Ensure that the correct PORTDIR setting is passed into the profile-specific
config constructors. (trunk r13335)

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

15 years agoBug #265768 - Handle CacheError when deleting currupt cache inside
Zac Medico [Thu, 30 Apr 2009 07:09:07 +0000 (07:09 -0000)]
Bug #265768 - Handle CacheError when deleting currupt cache inside
portdbapi._pull_valid_cache(). (trunk r13331)

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

15 years agoAdd a note about egencache to the --regen docs. (trunk r13330)
Zac Medico [Thu, 30 Apr 2009 07:08:33 +0000 (07:08 -0000)]
Add a note about egencache to the --regen docs. (trunk r13330)

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

15 years agoBug #265768 - If the user happens to be using the metadata_overlay module
Zac Medico [Thu, 30 Apr 2009 07:08:16 +0000 (07:08 -0000)]
Bug #265768 - If the user happens to be using the metadata_overlay module
then initialize it's eclass cache with an appropriate instance inside the
portdbapi constructor. (trunk r13329)

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

15 years agoBug #265768 - When initializing the eclass cache, use the correct location.
Zac Medico [Thu, 30 Apr 2009 07:08:01 +0000 (07:08 -0000)]
Bug #265768 - When initializing the eclass cache, use the correct location.
(trunk r13328)

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

15 years agoInside the portdbapi constructor, handle repositories with the same repo_name
Zac Medico [Thu, 30 Apr 2009 07:07:31 +0000 (07:07 -0000)]
Inside the portdbapi constructor, handle repositories with the same repo_name
by discarding the ones that were encountered earlier. (trunk r13327)

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

15 years agoPass the correct PORTDIR_OVERLAY value into the profile-specific config
Zac Medico [Thu, 30 Apr 2009 07:07:16 +0000 (07:07 -0000)]
Pass the correct PORTDIR_OVERLAY value into the profile-specific config
constructor calls. (trunk r13326)

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

15 years agoBug #265747 - Add a new /etc/portage/repos.conf config file which can be used
Zac Medico [Thu, 30 Apr 2009 07:06:46 +0000 (07:06 -0000)]
Bug #265747 - Add a new /etc/portage/repos.conf config file which can be used
to configure site-specific eclass override behavior. Note that configuration
settings which are specified here do not apply to tools such as repoman(1)
and egencache(1) since their operations are inherently not site-specific.
Beware that use of eclass-overrides is generally not recommended and that it
may trigger performance issues under some circumstances (see bug #124041).

Example:

# make all repositories inherit eclasses from the java-overlay and
# java-experimental repositories, with eclasses from java-experimental
# taking precedence over those from java-overlay
[DEFAULT]
eclass-overrides = java-overlay java-experimental

# disable all eclass overrides for the gentoo repository
[gentoo]
eclass-overrides = (trunk r13325)

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

15 years agoMove the /etc/portage categories and mirrors docs into alphabetical order.
Zac Medico [Thu, 30 Apr 2009 07:06:14 +0000 (07:06 -0000)]
Move the /etc/portage categories and mirrors docs into alphabetical order.
(trunk r13324)

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

15 years agoSet local_config=False in config constructor calls, since egencache is similar
Zac Medico [Thu, 30 Apr 2009 07:05:34 +0000 (07:05 -0000)]
Set local_config=False in config constructor calls, since egencache is similar
to repoman in the way that it's used to distribute something to other users
and thus site-specific local configuration is irrelevant. (trunk r13323)

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

15 years agoAvoid leaking some variables from ebuild_main() into the environment (local
Zac Medico [Thu, 30 Apr 2009 07:04:31 +0000 (07:04 -0000)]
Avoid leaking some variables from ebuild_main() into the environment (local
variables are exposed to 'children'). (trunk r13316)

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

15 years agoShow an error message when deletion of stale cache fails. (trunk r13315)
Zac Medico [Thu, 30 Apr 2009 07:04:19 +0000 (07:04 -0000)]
Show an error message when deletion of stale cache fails. (trunk r13315)

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

15 years agoFilter virtuals when expanding atoms if it helps to avoid an ambiguity.
Zac Medico [Thu, 30 Apr 2009 07:04:09 +0000 (07:04 -0000)]
Filter virtuals when expanding atoms if it helps to avoid an ambiguity.
(trunk r13314)

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

15 years agoFix broken logic from previous commit. (trunk r13313)
Zac Medico [Thu, 30 Apr 2009 07:03:56 +0000 (07:03 -0000)]
Fix broken logic from previous commit. (trunk r13313)

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

15 years agoBug #265034 - In depgraph.loadResumeCommand(), tolerate missing packages
Zac Medico [Thu, 30 Apr 2009 07:03:46 +0000 (07:03 -0000)]
Bug #265034 - In depgraph.loadResumeCommand(), tolerate missing packages
since it's possible that the resume list is still partially valid.
(trunk r13312)

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

15 years agoUse _doebuild_exit_status_check() for unsuccessful return codes (no just
Zac Medico [Thu, 30 Apr 2009 07:03:30 +0000 (07:03 -0000)]
Use _doebuild_exit_status_check() for unsuccessful return codes (no just
successful ones), since we want to be sure to produce an informative warning
message whenever the shell exits unexpectedly (whether it's successful or
unsuccessful). This is important since it can be makes these kinds of issues
easier to diagnose (otherwise the user might blame portage, when it's really
the ebuild/eclasses that is at fault). (trunk r13311)

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

15 years agoIn config.setcpv(), don't add empty values to self.configdict['pkg'] for
Zac Medico [Thu, 30 Apr 2009 07:03:06 +0000 (07:03 -0000)]
In config.setcpv(), don't add empty values to self.configdict['pkg'] for
keys that don't exist in the given dict. (trunk r13310)

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

15 years agoFix typo in docstring. (trunk r13309)
Zac Medico [Thu, 30 Apr 2009 07:02:47 +0000 (07:02 -0000)]
Fix typo in docstring. (trunk r13309)

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

15 years agoRemove --nocolor since it's been replaced by --color=n and the support code
Zac Medico [Thu, 30 Apr 2009 07:02:38 +0000 (07:02 -0000)]
Remove --nocolor since it's been replaced by --color=n and the support code
no longer exists. (trunk r13308)

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

15 years agoInitialize self._trg_cache.ec inside the GenCache constructor. (trunk r13307)
Zac Medico [Thu, 30 Apr 2009 07:02:27 +0000 (07:02 -0000)]
Initialize self._trg_cache.ec inside the GenCache constructor. (trunk r13307)

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

15 years agoBug #264435 - Handle EAGAIN errors when writing to stdout, due to poorly
Zac Medico [Thu, 30 Apr 2009 07:02:06 +0000 (07:02 -0000)]
Bug #264435 - Handle EAGAIN errors when writing to stdout, due to poorly
behaved subprocesses that set O_NONBLOCK mode on inherited file descriptors.
TODO: When possible, avoid having child processes inherit stdio file
descriptors from portage (maybe it can't be avoided with
PROPERTIES=interactive). (trunk r13306)

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

15 years agoDon't try to execut the pkg_info phase if DEFINED_PHASES is available and
Zac Medico [Thu, 30 Apr 2009 07:01:38 +0000 (07:01 -0000)]
Don't try to execut the pkg_info phase if DEFINED_PHASES is available and
it shows that the phase is undefined. (trunk r13305)

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

15 years agoReorganize emerge --info <atom> display, and make sure that the "cpv was
Zac Medico [Thu, 30 Apr 2009 07:01:26 +0000 (07:01 -0000)]
Reorganize emerge --info <atom> display, and make sure that the "cpv was
built with the following" line is shown for every package. (trunk r13304)

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

15 years agoAdd UseFlagDisplay.sort_combined and sort_separated attributes that can be
Zac Medico [Thu, 30 Apr 2009 07:01:14 +0000 (07:01 -0000)]
Add UseFlagDisplay.sort_combined and sort_separated attributes that can be
passed directly as key parameters to list.sort(). (trunk r13303)

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

15 years agoBug #265111 - Make current options override older options for --resume.
Zac Medico [Thu, 30 Apr 2009 07:01:03 +0000 (07:01 -0000)]
Bug #265111 - Make current options override older options for --resume.
(trunk r13302)

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

15 years agoCall _ebuild_phase_funcs() from ebuild_main() since it needs to be called for
Zac Medico [Thu, 30 Apr 2009 07:00:47 +0000 (07:00 -0000)]
Call _ebuild_phase_funcs() from ebuild_main() since it needs to be called for
every phase (for EAPI 2 default() phase function setup). (trunk r13301)

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

15 years ago- Move DEFINED_PHASES code into _source_ebuild() and add it to the list of
Zac Medico [Thu, 30 Apr 2009 07:00:35 +0000 (07:00 -0000)]
- Move DEFINED_PHASES code into _source_ebuild() and add it to the list of
  readonly variables.
- Save DEFINED_PHASES in the vdb entries, as requested by lxnay. (trunk r13300)

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

15 years agoMove the ebuild sourcing code into a new _source_ebuild() function.
Zac Medico [Thu, 30 Apr 2009 07:00:23 +0000 (07:00 -0000)]
Move the ebuild sourcing code into a new _source_ebuild() function.
(trunk r13299)

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

15 years agoMake RecursiveFileLoader skip hidden directories, and only use a single stat
Zac Medico [Thu, 30 Apr 2009 07:00:12 +0000 (07:00 -0000)]
Make RecursiveFileLoader skip hidden directories, and only use a single stat
call to check for existence and file type. (trunk r13298)

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

15 years agoMake emerge --info <atom> display USE similarly to how they are displayed
Zac Medico [Thu, 30 Apr 2009 06:59:53 +0000 (06:59 -0000)]
Make emerge --info <atom> display USE similarly to how they are displayed
in the merge list. (trunk r13297)

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

15 years agoFix some _doebuild_exit_status_check() calls so that they only happen when
Zac Medico [Thu, 30 Apr 2009 06:59:41 +0000 (06:59 -0000)]
Fix some _doebuild_exit_status_check() calls so that they only happen when
the bash process exits successfully (for consistency with usage elsewhere).
When calling this functions, we're mainly concerned about false success, and
we always want to allow things like using bashrc die hooks to clean up
$PORTAGE_BUILDDIR for users that are building in tmpfs (in which case the
exit status file may be removed before bash exits). (trunk r13296)

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

15 years agoAdd support to repoman for using layout.conf to control which repositories
Zac Medico [Thu, 30 Apr 2009 06:59:20 +0000 (06:59 -0000)]
Add support to repoman for using layout.conf to control which repositories
are used to satisfy dependencies. Thanks to Alistair Bush <ali_bush@g.o>
for the initial patch. See the "QA Overlay Layout support" thread on the
gentoo-dev mailing list for more information:

http://archives.gentoo.org/gentoo-dev/msg_33c61550b4ed2b7b25dd5a4110e1ec81.xml
(trunk r13295)

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

15 years agoReplace references to portdbapi.eclassdb with appropriate references for the
Zac Medico [Thu, 30 Apr 2009 06:59:02 +0000 (06:59 -0000)]
Replace references to portdbapi.eclassdb with appropriate references for the
specific repo. (trunk r13294)

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

15 years agoFix code in the portdbapi constructor to cache eclass_cache.cache instances
Zac Medico [Thu, 30 Apr 2009 06:58:53 +0000 (06:58 -0000)]
Fix code in the portdbapi constructor to cache eclass_cache.cache instances
where appropriate. (trunk r13293)

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