portage.git
15 years agoFix "arguments" spelling. (trunk r13608) v2.1.6.13
Zac Medico [Sun, 3 May 2009 20:46:54 +0000 (20:46 -0000)]
Fix "arguments" spelling. (trunk r13608)

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

15 years agoRemove EAPI 3 helpers PATH code, unused in this branch.
Zac Medico [Sun, 3 May 2009 20:33:09 +0000 (20:33 -0000)]
Remove EAPI 3 helpers PATH code, unused in this branch.

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

15 years agoBug #268398 - Document econf's automatic die behavior. (trunk r13600)
Zac Medico [Sun, 3 May 2009 20:28:51 +0000 (20:28 -0000)]
Bug #268398 - Document econf's automatic die behavior. (trunk r13600)

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

15 years agoSimplify DepPriority.__int__() and make it consistent with __str__().
Zac Medico [Sun, 3 May 2009 20:28:40 +0000 (20:28 -0000)]
Simplify DepPriority.__int__() and make it consistent with __str__().
(trunk r13599)

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

15 years agoMake useq() die if called during the "depend" phase in newer EAPIs.
Zac Medico [Sun, 3 May 2009 20:28:16 +0000 (20:28 -0000)]
Make useq() die if called during the "depend" phase in newer EAPIs.
(trunk r13598)

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

15 years agoSkip useq() IUSE QA Notices during the "depend" phase because lots of
Zac Medico [Sun, 3 May 2009 20:27:48 +0000 (20:27 -0000)]
Skip useq() IUSE QA Notices during the "depend" phase because lots of
ebuilds/eclasses have stuff in global scope that really belongs somewhere
like pkg_setup or src_configure. Thanks to Arfrever for reporting.
(trunk r13597)

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

15 years agoFix inverted logic in superuser logic for bug #267104. (trunk r13596)
Zac Medico [Sun, 3 May 2009 20:27:35 +0000 (20:27 -0000)]
Fix inverted logic in superuser logic for bug #267104. (trunk r13596)

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

15 years agoFix DepPriority.__int__() to return distinguishable values, for use when
Zac Medico [Sun, 3 May 2009 20:27:06 +0000 (20:27 -0000)]
Fix DepPriority.__int__() to return distinguishable values, for use when
measuring hardness for the circular dependency display. This fixes a problem
visible in bug #268038, comment #0, where buildtime dependencies are
incorrectly displayed as runtime dependencies. (trunk r13589)

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

15 years agoUpdate header for 2.1.6 branch. v2.1.6.12
Zac Medico [Fri, 1 May 2009 22:44:01 +0000 (22:44 -0000)]
Update header for 2.1.6 branch.

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

15 years agoBug #267175 - Instead of "poor code kills airplanes", say "install aborted
Zac Medico [Fri, 1 May 2009 21:59:54 +0000 (21:59 -0000)]
Bug #267175 - Instead of "poor code kills airplanes", say "install aborted
due to poor programming practices shown above" in order to help the user
link the die message to the related "poor programming practices" messages.
Thanks to Jeremy Olexa <darkside@g.o> for the suggestion. (trunk r13584)

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

15 years agoMake elog functions use read -r when splitting lines, so that backslashes
Zac Medico [Fri, 1 May 2009 21:43:50 +0000 (21:43 -0000)]
Make elog functions use read -r when splitting lines, so that backslashes
intended for display will not be eaten. (trunk r13582)

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

15 years agoOnly generate KV when setting up the environment for a real ebuild phase. This
Zac Medico [Fri, 1 May 2009 19:11:50 +0000 (19:11 -0000)]
Only generate KV when setting up the environment for a real ebuild phase. This
should preven "Permission Denied: /usr/src/linux/.config" errors reported
by repoman users (repoman may trigger the error when it calls the fetch phase).
(trunk r13580)

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

15 years agoFix logic error which prevents repos.conf [DEFAULT] section from applying
Zac Medico [Fri, 1 May 2009 18:35:59 +0000 (18:35 -0000)]
Fix logic error which prevents repos.conf [DEFAULT] section from applying
to repos that don't have their own section. Thanks to Markos Chandras
<hwoarang@g.o> for reporting. (trunk r13578)

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

15 years agoDisable ACCEPT_LICENSE license group expansion and related code since license
Zac Medico [Thu, 30 Apr 2009 22:47:50 +0000 (22:47 -0000)]
Disable ACCEPT_LICENSE license group expansion and related code since license
masking isn't supported in the 2.1.6 branch and we don't want it to interfere
with check_license() behavior.

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

15 years agoRemove unnecessary doebuild_environment() call from EbuildFetchonly.execute()
Zac Medico [Thu, 30 Apr 2009 22:00:48 +0000 (22:00 -0000)]
Remove unnecessary doebuild_environment() call from EbuildFetchonly.execute()
since PORTAGE_RESTRICT is calculated by config.setcpv() now. (trunk r13575)

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

15 years agoIn config.setcpv() reuse split USE from built packages instead of splitting
Zac Medico [Thu, 30 Apr 2009 21:45:55 +0000 (21:45 -0000)]
In config.setcpv() reuse split USE from built packages instead of splitting
them again. (trunk r13573)

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

15 years agoEnable use() qa checks via PORTAGE_IUSE for all ebuild phases and for binary
Zac Medico [Thu, 30 Apr 2009 21:15:37 +0000 (21:15 -0000)]
Enable use() qa checks via PORTAGE_IUSE for all ebuild phases and for  binary
packages since it should work fine now. (trunk r13570)

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

15 years agoMove PORTAGE_RESTRICT calculation to config.setcpv() (lazy evaluation) and
Zac Medico [Thu, 30 Apr 2009 21:15:25 +0000 (21:15 -0000)]
Move PORTAGE_RESTRICT calculation to config.setcpv() (lazy evaluation) and
fix it to work correctly for pre-built packages. (trunk r13569)

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

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