portage.git
14 years agoBug #334365 - Fix depgraph._wrapped_select_pkg_highest_available_imp()
Zac Medico [Thu, 26 Aug 2010 04:50:51 +0000 (21:50 -0700)]
Bug #334365 - Fix depgraph._wrapped_select_pkg_highest_available_imp()
to avoid invalid or masked installed packages when necessary. This is
especially important for invalid packages since they need be replaced
so that their dependencies can be parsed for --depclean operations.

14 years agoMake Package._validate_deps() check USE conditionals in SRC_URI.
Zac Medico [Thu, 26 Aug 2010 03:56:45 +0000 (20:56 -0700)]
Make Package._validate_deps() check USE conditionals in SRC_URI.

14 years agoBug #334365 - Mask packages with invalid metadata as early as possible,
Zac Medico [Thu, 26 Aug 2010 03:12:13 +0000 (20:12 -0700)]
Bug #334365 - Mask packages with invalid metadata as early as possible,
so that the depgraph won't select them unless they are already installed
and there is no other choice. This should trigger automatic reinstallation
of installed packages that have invalid metadata.

14 years agoAdd ebuild(1) support for FEATURES=digest.
Zac Medico [Thu, 26 Aug 2010 01:49:33 +0000 (18:49 -0700)]
Add ebuild(1) support for FEATURES=digest.

14 years agoUse a PORTAGE_SIGPIPE_STATUS variable to export 128 + SIGPIPE to the
Zac Medico [Thu, 26 Aug 2010 01:26:15 +0000 (18:26 -0700)]
Use a PORTAGE_SIGPIPE_STATUS variable to export 128 + SIGPIPE to the
ebuild environment. SIGPIPE is typically 13, but its better not to
assume that.

14 years agoMake save_ebuild_env() filter assert_sigpipe_ok().
Zac Medico [Thu, 26 Aug 2010 00:59:05 +0000 (17:59 -0700)]
Make save_ebuild_env() filter assert_sigpipe_ok().

14 years agoBug #334365 - When parsing dependencies of installed packages in
Zac Medico [Thu, 26 Aug 2010 00:05:01 +0000 (17:05 -0700)]
Bug #334365 - When parsing dependencies of installed packages in
depgraph._add_pkg_deps(), ignore invalid USE conditionals, since
these are a common problem and it's practical to ignore them for
installed packages.

TODO: For installed package, save any InvalidDependString info in
dynamic_config and wait until display_problems() to show it. For
packages that aren't installed, we should validate and mask them
before they are selected.

14 years agoshow_invalid_depstring_notice: Don't repeat the dep string
Sebastian Luther [Wed, 25 Aug 2010 16:36:48 +0000 (18:36 +0200)]
show_invalid_depstring_notice: Don't repeat the dep string

14 years agoFix repoman to support FEATURES=digest (reportedly it used to work
Zac Medico [Wed, 25 Aug 2010 18:27:16 +0000 (11:27 -0700)]
Fix repoman to support FEATURES=digest (reportedly it used to work
but has stopped working since recent changes).

14 years agoMention repoman support in the FEATURES=digest docs.
Zac Medico [Wed, 25 Aug 2010 18:21:07 +0000 (11:21 -0700)]
Mention repoman support in the FEATURES=digest docs.

14 years agoRemove portage.usedefaults since it's broken by the previous commit.
Zac Medico [Wed, 25 Aug 2010 09:05:14 +0000 (02:05 -0700)]
Remove portage.usedefaults since it's broken by the previous commit.

14 years agoconfig: Move handling of USE related config files into UseManager
Sebastian Luther [Wed, 25 Aug 2010 08:46:03 +0000 (10:46 +0200)]
config: Move handling of USE related config files into UseManager

14 years agoFix fragile sets config file path handling for for ResolverPlayground
Zac Medico [Wed, 25 Aug 2010 08:22:31 +0000 (01:22 -0700)]
Fix fragile sets config file path handling for for ResolverPlayground
and remove unecessary setconfig_fallback() usage.

14 years agoFix WorldSelectedSet.singleBuilder() to use EROOT.
Zac Medico [Wed, 25 Aug 2010 08:04:16 +0000 (01:04 -0700)]
Fix WorldSelectedSet.singleBuilder() to use EROOT.

14 years agoAdd EROOT support to setconfig_fallback().
Zac Medico [Wed, 25 Aug 2010 08:01:28 +0000 (01:01 -0700)]
Add EROOT support to setconfig_fallback().

14 years agoAdd EROOT support to the @module-rebuild package set.
Zac Medico [Wed, 25 Aug 2010 07:55:06 +0000 (00:55 -0700)]
Add EROOT support to the @module-rebuild package set.

14 years agoAdd EROOT support to regenworld.
Zac Medico [Wed, 25 Aug 2010 07:46:29 +0000 (00:46 -0700)]
Add EROOT support to regenworld.

14 years agoMake regenworld write changes to a temporary file, and tell the user
Zac Medico [Wed, 25 Aug 2010 07:35:47 +0000 (00:35 -0700)]
Make regenworld write changes to a temporary file, and tell the user
to update the file manually if desired.

14 years agoWhen parsing package.env, pass the same tolerant and allow_sourcing
Zac Medico [Wed, 25 Aug 2010 06:31:57 +0000 (23:31 -0700)]
When parsing package.env, pass the same tolerant and allow_sourcing
arguments to getconfig() that are used when parsing make.conf.

14 years agoUse deepcopy for LicenseManger, since I remove clone support from the v2.2_rc69
Zac Medico [Tue, 24 Aug 2010 18:42:59 +0000 (11:42 -0700)]
Use deepcopy for LicenseManger, since I remove clone support from the
constructor.

14 years agoUse open() instead of file(), for python3.
Zac Medico [Tue, 24 Aug 2010 18:42:30 +0000 (11:42 -0700)]
Use open() instead of file(), for python3.

14 years agoTests: Add LicenseManager tests
Sebastian Luther [Tue, 24 Aug 2010 18:31:15 +0000 (20:31 +0200)]
Tests: Add LicenseManager tests

14 years agoExtendedAtomDict: Add __eq__
Sebastian Luther [Tue, 24 Aug 2010 18:30:12 +0000 (20:30 +0200)]
ExtendedAtomDict: Add __eq__

14 years agoResolverPlayground: Add ability to create config files and sets
Sebastian Luther [Tue, 24 Aug 2010 14:42:33 +0000 (16:42 +0200)]
ResolverPlayground: Add ability to create config files and sets

14 years agoRemove LicenseManager.__deepcopy__() since the default implementation
Zac Medico [Tue, 24 Aug 2010 18:24:28 +0000 (11:24 -0700)]
Remove LicenseManager.__deepcopy__() since the default implementation
seems to work fine.

14 years agoImplement LicenseManager.__deepcopy__().
Zac Medico [Tue, 24 Aug 2010 18:18:36 +0000 (11:18 -0700)]
Implement LicenseManager.__deepcopy__().

14 years agoFix imports in _config submodules.
Zac Medico [Tue, 24 Aug 2010 18:05:59 +0000 (11:05 -0700)]
Fix imports in _config submodules.

14 years agoBug #334319 - Don't call config.backup_changes("FEATURES") because it's
Zac Medico [Tue, 24 Aug 2010 17:35:22 +0000 (10:35 -0700)]
Bug #334319 - Don't call config.backup_changes("FEATURES") because it's
no longer needed and it causes problems with environment overrides
of FEATURES.

14 years ago* Make dblink instantiate the ConfigProtect object on demand instead of
Zac Medico [Tue, 24 Aug 2010 17:10:36 +0000 (10:10 -0700)]
* Make dblink instantiate the ConfigProtect object on demand instead of
  in the constructor, since it triggers lots of stat calls and it's
  wasteful for iter_owners.
* Fix dblink ConfigProtect construction to use EROOT.

14 years agoBug #334265 - Fix AttributeError triggered by empty herd element in
Zac Medico [Tue, 24 Aug 2010 15:15:00 +0000 (08:15 -0700)]
Bug #334265 - Fix AttributeError triggered by empty herd element in
check_metadata_herds().

14 years agoMore _pkg_use_enabled fixes
Sebastian Luther [Tue, 24 Aug 2010 12:14:43 +0000 (14:14 +0200)]
More _pkg_use_enabled fixes

14 years agoAtom.violated_conditionals: Always treat deps as violated if the flag is not in IUSE
Sebastian Luther [Tue, 24 Aug 2010 10:00:22 +0000 (12:00 +0200)]
Atom.violated_conditionals: Always treat deps as violated if the flag is not in IUSE

14 years agoBug #334253 - Fix breakage in FEATURES=test-fail-continue logic.
Zac Medico [Tue, 24 Aug 2010 13:37:40 +0000 (06:37 -0700)]
Bug #334253 - Fix breakage in FEATURES=test-fail-continue logic.

14 years agoconfig: Move _prune_incremental to helper
Sebastian Luther [Tue, 24 Aug 2010 08:49:48 +0000 (10:49 +0200)]
config: Move _prune_incremental to helper

14 years agoconfig: Move features_set into its own file
Sebastian Luther [Tue, 24 Aug 2010 08:26:54 +0000 (10:26 +0200)]
config: Move features_set into its own file

14 years agoconfig: Split out LicenseManager and helper
Sebastian Luther [Tue, 24 Aug 2010 08:21:07 +0000 (10:21 +0200)]
config: Split out LicenseManager and helper

14 years agoExtendedAtomDict: Add __delitem__
Sebastian Luther [Tue, 24 Aug 2010 08:19:17 +0000 (10:19 +0200)]
ExtendedAtomDict: Add __delitem__

14 years agoUse Package.iuse.is_valid_flag() to account for implicit IUSE.
Zac Medico [Tue, 24 Aug 2010 13:09:41 +0000 (06:09 -0700)]
Use Package.iuse.is_valid_flag() to account for implicit IUSE.

14 years agorepoman: Let repoman check for flags missing from IUSE
Sebastian Luther [Tue, 24 Aug 2010 09:04:25 +0000 (11:04 +0200)]
repoman: Let repoman check for flags missing from IUSE

14 years agoMake config.setcpv() trigger regenerate() if the package from the
Zac Medico [Tue, 24 Aug 2010 01:37:59 +0000 (18:37 -0700)]
Make config.setcpv() trigger regenerate() if the package from the
previous setcpv  call had package.env settings which modified
FEATURES. This ensures that self.features is accurate (hopefully
solving the issue in bug #44796, comment #77).

14 years agoHandle SIGPIPE when unpack() extracts tar files through a pipe (bug #309001).
Zac Medico [Tue, 24 Aug 2010 00:57:48 +0000 (17:57 -0700)]
Handle SIGPIPE when unpack() extracts tar files through a pipe (bug #309001).

When checking ${PIPESTATUS[@]} for extraction of tar files in unpack(),
use a new assert_sigpipe_ok() function which behaves the same as the
existing assert() function except that it tolerates pipe writers being
killed by SIGPIPE.

14 years ago* Use iterators instead of keys() when possible.
Zac Medico [Mon, 23 Aug 2010 18:34:46 +0000 (11:34 -0700)]
* Use iterators instead of keys() when possible.
* Use iterators instead of sets for set.intersection() calls.
* Use digraph.__iter__ and __contains__ as shortcuts to digraph.nodes
  access.

14 years agoIn depgraph._select_pkg_highest_available_imp(), make sure
Zac Medico [Mon, 23 Aug 2010 18:22:03 +0000 (11:22 -0700)]
In depgraph._select_pkg_highest_available_imp(), make sure
allow_unstable_keywords is True before adding a package to
_needed_unstable_keywords.

14 years agoPass a keyword hint from getmaskingstatus() to the autounmask code.
Zac Medico [Mon, 23 Aug 2010 17:38:49 +0000 (10:38 -0700)]
Pass a keyword hint from getmaskingstatus() to the autounmask code.

14 years agouse_reduce: Give a hint to IUSE in the 'use flag '%s' is not referencable in conditio...
Sebastian Luther [Mon, 23 Aug 2010 16:24:10 +0000 (18:24 +0200)]
use_reduce: Give a hint to IUSE in the 'use flag '%s' is not referencable in conditional' error

14 years agoAdd 'candy' to SUPPORTED_FEATURES.
Zac Medico [Mon, 23 Aug 2010 14:46:07 +0000 (07:46 -0700)]
Add 'candy' to SUPPORTED_FEATURES.

14 years agoMake recursive grablines() ignore the same directories as
Zac Medico [Mon, 23 Aug 2010 07:23:15 +0000 (00:23 -0700)]
Make recursive grablines() ignore the same directories as
portage.listdir(), and do the same for update_config_files().

14 years agoBug #318241 - Include LICENSE file in release tarballs. v2.2_rc68
Zac Medico [Mon, 23 Aug 2010 04:51:49 +0000 (21:51 -0700)]
Bug #318241 - Include LICENSE file in release tarballs.

14 years agoBug #309907 - Update more config files for package moves:
Zac Medico [Mon, 23 Aug 2010 04:36:10 +0000 (21:36 -0700)]
Bug #309907 - Update more config files for package moves:
package.accept_keywords, package.env, and package.properties.

14 years agoFix spelling in zlib.error message.
Zac Medico [Mon, 23 Aug 2010 01:41:47 +0000 (18:41 -0700)]
Fix spelling in zlib.error message.

14 years agoHandle zlib.error when reading compressed build logs via GzipFile.
Zac Medico [Mon, 23 Aug 2010 01:28:08 +0000 (18:28 -0700)]
Handle zlib.error when reading compressed build logs via GzipFile.

14 years agoAllow more time for natural exit of the ebuild process after it has
Zac Medico [Mon, 23 Aug 2010 00:52:50 +0000 (17:52 -0700)]
Allow more time for natural exit of the ebuild process after it has
called the exit command via IPC.

14 years agoDon't copy the src directory because it doesn't exist anymore.
Zac Medico [Sun, 22 Aug 2010 23:58:27 +0000 (16:58 -0700)]
Don't copy the src directory because it doesn't exist anymore.

14 years agoRemove the python-missingos module since apparently nobody has needed
Zac Medico [Sun, 22 Aug 2010 23:56:24 +0000 (16:56 -0700)]
Remove the python-missingos module since apparently nobody has needed
it for a long time.

14 years agoRemove support for the missingos module since apparently nobody has needed
Zac Medico [Sun, 22 Aug 2010 23:54:31 +0000 (16:54 -0700)]
Remove support for the missingos module since apparently nobody has needed
it for a long time.

14 years agoRemove the bsd-chflags module since it hasn't been used for some time
Zac Medico [Sun, 22 Aug 2010 23:46:10 +0000 (16:46 -0700)]
Remove the bsd-chflags module since it hasn't been used for some time
(python as read support and we spawn binaries for any necessary
modifications).

14 years agoRemove unused tbz2tool.c file. The latest stable ebuild doesn't
Zac Medico [Sun, 22 Aug 2010 23:39:25 +0000 (16:39 -0700)]
Remove unused tbz2tool.c file. The latest stable ebuild doesn't
build/install it.

14 years agoAdd notes about package.env and package.accept_keywords.
Zac Medico [Sun, 22 Aug 2010 23:18:33 +0000 (16:18 -0700)]
Add notes about package.env and package.accept_keywords.

14 years agoRemove deprecated destroot argument from dblink.isowner() call.
Zac Medico [Sun, 22 Aug 2010 22:46:06 +0000 (15:46 -0700)]
Remove deprecated destroot argument from dblink.isowner() call.

14 years agoRemove python-oriented checks from install_qa_check() since I'm unsure
Zac Medico [Sun, 22 Aug 2010 22:32:43 +0000 (15:32 -0700)]
Remove python-oriented checks from install_qa_check() since I'm unsure
about these policy decisions being included in portage. Besides, these
kinds of things could go in the python eclass.

14 years agoDuring the post src_install QA checks, log to a temporary file
Zac Medico [Sun, 22 Aug 2010 22:25:17 +0000 (15:25 -0700)]
During the post src_install QA checks, log to a temporary file
since the code we are running reads PORTAGE_LOG_FILE, and we
want to avoid annoying "gzip: unexpected end of file" messages
when FEATURES=compress-build-logs is enabled.

14 years agoMake Binpkg call prepare_build_dirs() before trying to clean the old
Zac Medico [Sun, 22 Aug 2010 21:15:04 +0000 (14:15 -0700)]
Make Binpkg call prepare_build_dirs() before trying to clean the old
log, so PORTAGE_LOG_FILE is initialized.

14 years agoAdd missing scheduler attribute to BinpkgVerifier (broken since the
Zac Medico [Sun, 22 Aug 2010 20:52:39 +0000 (13:52 -0700)]
Add missing scheduler attribute to BinpkgVerifier (broken since the
the addition of FEATURES=compress-build-logs support).

14 years agoMake EOutput.write() use writemsg() for special unicode handling.
Zac Medico [Sun, 22 Aug 2010 20:51:35 +0000 (13:51 -0700)]
Make EOutput.write() use writemsg() for special unicode handling.

14 years ago_use_dep.{evaluate_conditionals,_eval_qa_conditionals,violated_conditionals}: Be...
Sebastian Luther [Sun, 22 Aug 2010 20:18:43 +0000 (22:18 +0200)]
_use_dep.{evaluate_conditionals,_eval_qa_conditionals,violated_conditionals}: Be faster and preserve token order

14 years agoFix broken logic in InheritDeprecated.
Zac Medico [Sun, 22 Aug 2010 20:16:21 +0000 (13:16 -0700)]
Fix broken logic in InheritDeprecated.

14 years agoMake InheritDeprecated detect indirect inherits of deprecated eclasses,
Zac Medico [Sun, 22 Aug 2010 20:08:04 +0000 (13:08 -0700)]
Make InheritDeprecated detect indirect inherits of deprecated eclasses,
and indicate the indirect nature in the error message.

14 years agoMake InheritDeprecated check for direct inherits, and give line numbers
Zac Medico [Sun, 22 Aug 2010 19:43:09 +0000 (12:43 -0700)]
Make InheritDeprecated check for direct inherits, and give line numbers
in error messages.

14 years agorepoman: check for deprecated eclasses
wired [Sat, 14 Aug 2010 22:56:40 +0000 (01:56 +0300)]
repoman: check for deprecated eclasses

compare the inherited eclasses to a list of deprecated eclasses.
print QA warnings for each deprecated eclass found and suggest an
alternative for those that have one.

14 years agoAdd back _conditionals_class.values() method in order to fix breakage
Zac Medico [Sun, 22 Aug 2010 18:41:54 +0000 (11:41 -0700)]
Add back _conditionals_class.values() method in order to fix breakage
in circular_dependency_handler._find_suggestions().

14 years agoportage.dep._use_dep: Rewrite the parser for better readability and speed
Sebastian Luther [Sun, 22 Aug 2010 13:22:08 +0000 (15:22 +0200)]
portage.dep._use_dep: Rewrite the parser for better readability and speed

Using a regex leads to better readability, but no speed change.
Replacing slot_dict_class with a simple dict results in ~1/3 run time decrease in my tests.

14 years agoFix erroneoud reference to self.aux_get in bintree.move_ent().
Zac Medico [Sun, 22 Aug 2010 18:28:45 +0000 (11:28 -0700)]
Fix erroneoud reference to self.aux_get in bintree.move_ent().

14 years agoFix AttributeError for MetadataRegen._sched_iface.
Zac Medico [Sun, 22 Aug 2010 08:40:34 +0000 (01:40 -0700)]
Fix AttributeError for MetadataRegen._sched_iface.

14 years ago* By default, disable the calc_prelink parameter to perform_md5() for
Zac Medico [Sat, 21 Aug 2010 23:05:51 +0000 (16:05 -0700)]
* By default, disable the calc_prelink parameter to perform_md5() for
  merge and unmerge.
* Add FEATURES=prelink-checksums in order to trigger the old behavior.

14 years agoFix UnboundLocalError for catdir inside dblink.unmerge().
Zac Medico [Sat, 21 Aug 2010 22:16:10 +0000 (15:16 -0700)]
Fix UnboundLocalError for catdir inside dblink.unmerge().

14 years agoBug #292083 - Support package.accept_keywords in profiles.
Zac Medico [Sat, 21 Aug 2010 21:19:54 +0000 (14:19 -0700)]
Bug #292083 - Support package.accept_keywords in profiles.

14 years agoAdd EPREFIX support to load_default_config().
Zac Medico [Sat, 21 Aug 2010 20:43:49 +0000 (13:43 -0700)]
Add EPREFIX support to load_default_config().

14 years agoFix broken writemsg call in depgraph._resolve() that triggers this error:
Zac Medico [Sat, 21 Aug 2010 20:05:24 +0000 (13:05 -0700)]
Fix broken writemsg call in depgraph._resolve() that triggers this error:
TypeError: writemsg() got an unexpected keyword argument 'file'

14 years agoOmit non-existent files from the config._pkeywords_list
Zac Medico [Sat, 21 Aug 2010 19:58:50 +0000 (12:58 -0700)]
Omit non-existent files from the config._pkeywords_list
stack (stores data for profile package.keywords). This isn't
feasible for package.use (among other package.* files such
as package.use.mask) since it is stacked in layers with
make.defaults USE, and the layer indices need to align.

14 years agoMove default ACCEPT_KEYWORDS handling for package.keywords out of
Zac Medico [Sat, 21 Aug 2010 19:27:05 +0000 (12:27 -0700)]
Move default ACCEPT_KEYWORDS handling for package.keywords out of
an unnecessary loop.

14 years agoRevert back to using ROOT for env_update(), since that's how the
Zac Medico [Sat, 21 Aug 2010 19:00:04 +0000 (12:00 -0700)]
Revert back to using ROOT for env_update(), since that's how the
prefix branch does it.

14 years agoFix env_update() calls to use EROOT.
Zac Medico [Sat, 21 Aug 2010 18:37:50 +0000 (11:37 -0700)]
Fix env_update() calls to use EROOT.

14 years agoBug #324191 - Add support for FEATURES=compress-build-logs. The causes
Zac Medico [Sat, 21 Aug 2010 18:18:40 +0000 (11:18 -0700)]
Bug #324191 - Add support for FEATURES=compress-build-logs. The causes
all build logs to be compressed while they are being written. Log file
names have an extension that is appropriate for the compression type.
Currently, only gzip(1) compression is supported, so build logs will
have a '.gz' extension when this feature is enabled.

14 years agoWhen accessing pkgsettings.features inside Scheduler._generate_digests(),
Zac Medico [Sat, 21 Aug 2010 14:18:47 +0000 (07:18 -0700)]
When accessing pkgsettings.features inside Scheduler._generate_digests(),
ensure that we are using global features settings rather than those
from package.env.

14 years agoAdd a deprecation warning to FetchlistDict.has_key().
Zac Medico [Sat, 21 Aug 2010 13:46:56 +0000 (06:46 -0700)]
Add a deprecation warning to FetchlistDict.has_key().

14 years agoAdd a deprecation warning for the unused justmanifest parameter of
Zac Medico [Sat, 21 Aug 2010 13:38:59 +0000 (06:38 -0700)]
Add a deprecation warning for the unused justmanifest parameter of
digestcheck().

14 years agoQuote arrays in QA_PREBUILT handling.
Zac Medico [Sat, 21 Aug 2010 13:31:18 +0000 (06:31 -0700)]
Quote arrays in QA_PREBUILT handling.

14 years agoAdd support for a QA_PREBUILT variable should contain a list of
Zac Medico [Sat, 21 Aug 2010 13:24:50 +0000 (06:24 -0700)]
Add support for a QA_PREBUILT variable should contain a list of
pre-built binaries. Paths listed here will be appended to each of
the other QA_* variables. Thanks to Diego Pettenò <flameeyes@g.o>
for the suggestion.

14 years agoAdd upstream.workaround warning for addpredict calls. Thanks to
Zac Medico [Sat, 21 Aug 2010 11:30:29 +0000 (04:30 -0700)]
Add upstream.workaround warning for addpredict calls. Thanks to
Diego Pettenò <flameeyes@g.o> for the suggestion.

14 years agoFix broken reference to portage._validate_cache_for_unsupported_eapis.
Zac Medico [Sat, 21 Aug 2010 11:20:22 +0000 (04:20 -0700)]
Fix broken reference to portage._validate_cache_for_unsupported_eapis.

14 years agoAdd a wrapper around config.features that provides the following
Zac Medico [Sat, 21 Aug 2010 11:13:09 +0000 (04:13 -0700)]
Add a wrapper around config.features that provides the following
enhancements:

* The FEATURES variable is automatically synchronized upon modification.

* Modifications result in a permanent override that will cause the change
  to propagate to the incremental stacking mechanism in config.regenerate().
  This eliminates the need to call config.backup_changes() when FEATURES
  is modified, since any overrides are guaranteed to persist despite calls
  to config.reset().

This allows cleanup of all code that overrides FEATURES, and also allows
config.regenerate() to stack FEATURES such that special cases are not
needed for package.env handling inside config.setcpv().

14 years agoWhen stacking incrementals in config.regenerate(), use a set to avoid
Zac Medico [Sat, 21 Aug 2010 09:24:47 +0000 (02:24 -0700)]
When stacking incrementals in config.regenerate(), use a set to avoid
relatively inefficient __contains__ and remove operations on a list.

14 years agoFix config.setcpv() so it only calls _grab_pkg_env when there are
Zac Medico [Sat, 21 Aug 2010 01:21:00 +0000 (18:21 -0700)]
Fix config.setcpv() so it only calls _grab_pkg_env when there are
relevant package.env settings.

14 years agoRemove duplicate realpath call for PORTAGE_TMPDIR.
Zac Medico [Sat, 21 Aug 2010 00:44:56 +0000 (17:44 -0700)]
Remove duplicate realpath call for PORTAGE_TMPDIR.

14 years agoAt some point we may want to stop exporting FEATURES to the ebuild
Zac Medico [Sat, 21 Aug 2010 00:31:08 +0000 (17:31 -0700)]
At some point we may want to stop exporting FEATURES to the ebuild
environment, in order to prevent ebuilds from abusing it. In
preparation for that, export it as PORTAGE_FEATURES so that bashrc
users will be able to migrate any FEATURES conditional code to
use this alternative variable.

14 years agoBug #44796 - Add support for /etc/portage/package.env. As documented in
Zac Medico [Sat, 21 Aug 2010 00:11:38 +0000 (17:11 -0700)]
Bug #44796 - Add support for /etc/portage/package.env. As documented in
man/portage.5:

Per-package environment variable settings. Entries refer to environment
files that are placed in the /etc/portage/env/ directory and have the
same format as make.conf(5).
Format:
- comment lines begin with # (no inline comments)
- one DEPEND atom per line followed by name(s) of environment file(s)

Example:
sys-libs/glibc glibc.conf

14 years agoMake varexpand() create a new empty dict for variable expansions in
Zac Medico [Fri, 20 Aug 2010 22:32:13 +0000 (15:32 -0700)]
Make varexpand() create a new empty dict for variable expansions in
case one is not passed in. This will prevent some potentially
confusing behavior.

14 years agoSplit out a _ordered_by_atom_specificity() in order to eliminate
Zac Medico [Fri, 20 Aug 2010 18:23:24 +0000 (11:23 -0700)]
Split out a _ordered_by_atom_specificity() in order to eliminate
duplicate code from the package.* config file handling.

14 years agoMake DEPCACHE_PATH relative to EPREFIX, and comment about similarity
Zac Medico [Fri, 20 Aug 2010 17:20:59 +0000 (10:20 -0700)]
Make DEPCACHE_PATH relative to EPREFIX, and comment about similarity
to make.globals handling.

14 years ago* Make dblink._linkmap_rebuild() return early if preserve-libs is disabled
Zac Medico [Fri, 20 Aug 2010 16:41:21 +0000 (09:41 -0700)]
* Make dblink._linkmap_rebuild() return early if preserve-libs is disabled
  and the preserve-libs registry is empty.
* Make dblink._find_unused_preserved_libs() return early if the
  preserve-libs registry is empty.