portage.git
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.

14 years agoStop using the myroot arguments to the dblink constructor, merge(),
Zac Medico [Fri, 20 Aug 2010 16:09:39 +0000 (09:09 -0700)]
Stop using the myroot arguments to the dblink constructor, merge(),
and unmerge(). Use settings['ROOT'] instead. This helps avoid confusion
given support for EROOT.

14 years ago* Fix EROOT handling in various places in vartree.py. It should be
Zac Medico [Fri, 20 Aug 2010 15:21:16 +0000 (08:21 -0700)]
* Fix EROOT handling in various places in vartree.py. It should be
  all fixed now, but needs testing.
* Remove unused root parameter in calls to dblink.isowner() and
  _match_contents().
* Make doebuild_environment() and prepare_build_dirs() take keyword
  arguments, and ignore unused parameters. Especially don't use
  myroot parameters since they are confusing given EROOT support.

14 years agoFix LinkageMap to use vardbapi._eroot instead of _root.
Zac Medico [Fri, 20 Aug 2010 14:04:13 +0000 (07:04 -0700)]
Fix LinkageMap to use vardbapi._eroot instead of _root.

14 years agoDon't pass the myroot parameter to *counter_tick* methods since it's
Zac Medico [Fri, 20 Aug 2010 14:02:32 +0000 (07:02 -0700)]
Don't pass the myroot parameter to *counter_tick* methods since it's
ignored anyway.

14 years agoMake the portagetree.root attribute a property that generates a
Zac Medico [Fri, 20 Aug 2010 13:43:16 +0000 (06:43 -0700)]
Make the portagetree.root attribute a property that generates a
DeprecationWarning on access.

14 years agoRemove unused clone paramter from vartree constructor (support and
Zac Medico [Fri, 20 Aug 2010 13:22:42 +0000 (06:22 -0700)]
Remove unused clone paramter from vartree constructor (support and
deprecation warning were already removed in commit
c0ee69585bf87e09c237668531127e79e0cd1c46).

14 years agoFix typo in comment.
Zac Medico [Fri, 20 Aug 2010 12:50:45 +0000 (05:50 -0700)]
Fix typo in comment.

14 years ago--autounmask: If we can't do a change because of REQUIRED_USE, give at least a good...
Sebastian Luther [Fri, 20 Aug 2010 10:54:05 +0000 (12:54 +0200)]
--autounmask: If we can't do a change because of REQUIRED_USE, give at least a good error message

14 years ago--autounmask: Don't do use changes if they violate REQUIRED_USE
Sebastian Luther [Fri, 20 Aug 2010 10:17:19 +0000 (12:17 +0200)]
--autounmask: Don't do use changes if they violate REQUIRED_USE

This also fixes some pkg.use.enabled / _pkg_use_enabled(pkg) bugs

14 years agoslot collision handler: Drop solutions that violate REQUIRED_USE
Sebastian Luther [Fri, 20 Aug 2010 08:34:05 +0000 (10:34 +0200)]
slot collision handler: Drop solutions that violate REQUIRED_USE

14 years agoslot collision handler: Work correctly with --autounmask
Sebastian Luther [Fri, 20 Aug 2010 07:54:19 +0000 (09:54 +0200)]
slot collision handler: Work correctly with --autounmask

14 years agocircular dependency handler: Add support for REQUIRED_USE
Sebastian Luther [Fri, 20 Aug 2010 07:24:46 +0000 (09:24 +0200)]
circular dependency handler: Add support for REQUIRED_USE

14 years agoAdd portage.dep.get_required_use_flags to extract the use flags used in a REQUIRED_US...
Sebastian Luther [Fri, 20 Aug 2010 07:19:17 +0000 (09:19 +0200)]
Add portage.dep.get_required_use_flags to extract the use flags used in a REQUIRED_USE string

14 years agocircular dependency handler: Small code clean ups
Sebastian Luther [Fri, 20 Aug 2010 06:24:05 +0000 (08:24 +0200)]
circular dependency handler: Small code clean ups

14 years agoMake the make.globals path relative to EPREFIX, and add comments possible
Zac Medico [Fri, 20 Aug 2010 05:56:26 +0000 (22:56 -0700)]
Make the make.globals path relative to EPREFIX, and add comments possible
alternative behavior for target systems.

14 years agoFix BinTestCase instances to stop leaving orphan temp dirs.
Zac Medico [Fri, 20 Aug 2010 04:52:58 +0000 (21:52 -0700)]
Fix BinTestCase instances to stop leaving orphan temp dirs.

14 years agoAdd experimental EPREFIX/EROOT support to the config and vartree
Zac Medico [Fri, 20 Aug 2010 04:28:10 +0000 (21:28 -0700)]
Add experimental EPREFIX/EROOT support to the config and vartree
classes, and use it in ResolverPlayground to emulate a prefix-like
environment. This fixes ResolverPlayground so that it doesn't have
to abuse the --root and --root-deps options in order to create a
testing environment. Instead it simply creates a temporary EPREFIX.
WARNING: EPREFIX/EROOT support is experimental and may be incomplete
for cases in which EPREFIX is non-empty.

14 years agoStop trying to read /etc/make.globals because it's been a symlink to
Zac Medico [Fri, 20 Aug 2010 01:46:12 +0000 (18:46 -0700)]
Stop trying to read /etc/make.globals because it's been a symlink to
/usr/share/portage/config/make.globals since portage-2.1.6.

14 years agoUpdate docs, comments, and messages to refer to make.globals in
Zac Medico [Fri, 20 Aug 2010 01:42:24 +0000 (18:42 -0700)]
Update docs, comments, and messages to refer to make.globals in
/usr/share/portage/config/ instead of /etc/make.globals.

14 years agoRename the bdeps_root variable to depend_root, since it's used to control
Zac Medico [Fri, 20 Aug 2010 00:05:53 +0000 (17:05 -0700)]
Rename the bdeps_root variable to depend_root, since it's used to control
DEPEND and in the future we may have separate build-time dep types for
host and target.

14 years agoEliminate the bdeps_optional variables inside depgraph._add_pkg_deps(),
Zac Medico [Fri, 20 Aug 2010 00:01:16 +0000 (17:01 -0700)]
Eliminate the bdeps_optional variables inside depgraph._add_pkg_deps(),
and use the pkg.built attribute instead.

14 years agoTests: Properly test the circular dep handler
Sebastian Luther [Thu, 19 Aug 2010 22:56:27 +0000 (00:56 +0200)]
Tests: Properly test the circular dep handler

14 years agoTests: ResolverPlayground: Support checking the suggestions given by the circular...
Sebastian Luther [Thu, 19 Aug 2010 22:55:46 +0000 (00:55 +0200)]
Tests: ResolverPlayground: Support checking the suggestions given by the circular dep handler.

14 years agoMove the clever parts of depgraph._show_circular_deps into its own module.
Sebastian Luther [Thu, 19 Aug 2010 22:54:34 +0000 (00:54 +0200)]
Move the clever parts of depgraph._show_circular_deps into its own module.

This also fixes some bugs related to autounmask.

14 years agocycle-finder: Don't try to change flags that are in use.{make,focrce}
Sebastian Luther [Thu, 19 Aug 2010 13:10:40 +0000 (15:10 +0200)]
cycle-finder: Don't try to change flags that are in use.{make,focrce}

14 years agoMove code from EbuildProcess to EbuildPhase.
Zac Medico [Thu, 19 Aug 2010 08:58:27 +0000 (01:58 -0700)]
Move code from EbuildProcess to EbuildPhase.

14 years agoRaise ValueError if fromlist contains an extra comma.
Zac Medico [Thu, 19 Aug 2010 08:54:16 +0000 (01:54 -0700)]
Raise ValueError if fromlist contains an extra comma.

14 years agoRemove duplicate attributes from __slots__.
Zac Medico [Thu, 19 Aug 2010 07:34:36 +0000 (00:34 -0700)]
Remove duplicate attributes from __slots__.

14 years ago* In helpers_die arguments, display ${0##*/} instead of $0 since $0
Zac Medico [Thu, 19 Aug 2010 06:31:49 +0000 (23:31 -0700)]
* In helpers_die arguments, display ${0##*/} instead of $0 since $0
  is needlessly long.
* When calling helpers_die from a function, use ${FUNCNAME[0]} in
  arguments instead of $0.

14 years agoUse doebuild_environment() to ensure proper environment initialization
Zac Medico [Thu, 19 Aug 2010 00:52:10 +0000 (17:52 -0700)]
Use doebuild_environment() to ensure proper environment initialization
for clean/cleanrm phases, and use the simpler _spawn_phase() function
instead of doebuild to spawn the phases.

14 years agoUse simpler _spawn_phase() instead of doebuild() since
Zac Medico [Thu, 19 Aug 2010 00:26:23 +0000 (17:26 -0700)]
Use simpler _spawn_phase() instead of doebuild() since
doebuild_environment() already done the env setup.

14 years agoMove the code from _prepare_env_file() to a new BinpkgEnvExtractor
Zac Medico [Thu, 19 Aug 2010 00:08:59 +0000 (17:08 -0700)]
Move the code from _prepare_env_file() to a new BinpkgEnvExtractor
class.

14 years agoRemove unnecessary call to _prepare_env_file(), since it only makes
Zac Medico [Wed, 18 Aug 2010 22:42:58 +0000 (15:42 -0700)]
Remove unnecessary call to _prepare_env_file(), since it only makes
sense for binary or installed packages.

14 years agoMove environment sanity check to the Scheduler and do it if there
Zac Medico [Wed, 18 Aug 2010 22:31:29 +0000 (15:31 -0700)]
Move environment sanity check to the Scheduler and do it if there
are any source packages in the merge list.

14 years agoWhen suggesting solutions inside _show_circular_deps(), ignore solutions
Zac Medico [Wed, 18 Aug 2010 21:53:44 +0000 (14:53 -0700)]
When suggesting solutions inside _show_circular_deps(), ignore solutions
that involve changes to use.mask or use.force settings.

14 years agoFix get_cycles() to handle None return value from shortest_path().
Zac Medico [Wed, 18 Aug 2010 20:49:52 +0000 (13:49 -0700)]
Fix get_cycles() to handle None return value from shortest_path().

14 years agoFix deprecation warnings from paren_reduce.
Zac Medico [Wed, 18 Aug 2010 20:45:19 +0000 (13:45 -0700)]
Fix deprecation warnings from paren_reduce.

14 years agoFix small bug in _show_circular_deps and add some tests
Sebastian Luther [Wed, 18 Aug 2010 20:08:58 +0000 (22:08 +0200)]
Fix small bug in _show_circular_deps and add some tests

14 years agoportage.util.digraph: Raise KeyError in newly added functions. Add tests.
Sebastian Luther [Wed, 18 Aug 2010 19:40:26 +0000 (21:40 +0200)]
portage.util.digraph: Raise KeyError in newly added functions. Add tests.

14 years agoextract_affecting_use: Fix the same bug as in use_reduce
Sebastian Luther [Wed, 18 Aug 2010 17:42:11 +0000 (19:42 +0200)]
extract_affecting_use: Fix the same bug as in use_reduce

14 years ago_show_circular_deps: Ignore solution that violate use dpendencies specified by parent...
Sebastian Luther [Mon, 14 Jun 2010 12:37:59 +0000 (14:37 +0200)]
_show_circular_deps: Ignore solution that violate use dpendencies specified by parents. Warn the user if there are many cycles.

14 years ago_show_circular_deps: Stop prunning the graph to show (other) parents of the involved...
Sebastian Luther [Mon, 14 Jun 2010 09:53:38 +0000 (11:53 +0200)]
_show_circular_deps: Stop prunning the graph to show (other) parents of the involved packages in the merge list

14 years ago_show_circular_deps: Fix handling of 'None' returned by extract_affecting_use and...
Sebastian Luther [Mon, 14 Jun 2010 09:51:44 +0000 (11:51 +0200)]
_show_circular_deps: Fix handling of 'None' returned by extract_affecting_use and remove debug output

14 years ago_emerge.depgraph._show_circular_deps(): Find suggestions if an atom occures more...
Sebastian Luther [Fri, 11 Jun 2010 09:26:43 +0000 (11:26 +0200)]
_emerge.depgraph._show_circular_deps(): Find suggestions if an atom occures more than once in a dep string

14 years agoPrint suggestions for circular dependencies
Sebastian Luther [Tue, 8 Jun 2010 18:29:15 +0000 (20:29 +0200)]
Print suggestions for circular dependencies

14 years ago_emerge.depgraph._show_circular_deps(): Display only the smallest cycle
Sebastian Luther [Tue, 8 Jun 2010 12:00:38 +0000 (14:00 +0200)]
_emerge.depgraph._show_circular_deps(): Display only the smallest cycle

14 years agoportage.util.digraph: Add get_cycles() and its helpers shortest_path() and bfs()
Sebastian Luther [Tue, 8 Jun 2010 11:59:41 +0000 (13:59 +0200)]
portage.util.digraph: Add get_cycles() and its helpers shortest_path() and bfs()

14 years agoTests: Make sure the ResolverPlayground doesn't ignore DEPEND
Sebastian Luther [Wed, 18 Aug 2010 16:44:08 +0000 (18:44 +0200)]
Tests: Make sure the ResolverPlayground doesn't ignore DEPEND

14 years agoTests: ResolverPlaygound: change --root-deps parameter to include build time deps
Sebastian Luther [Wed, 18 Aug 2010 16:43:20 +0000 (18:43 +0200)]
Tests: ResolverPlaygound: change --root-deps parameter to include build time deps

14 years agoUse _prepare_env_file() to extract the binary package environment.bz2
Zac Medico [Wed, 18 Aug 2010 20:01:54 +0000 (13:01 -0700)]
Use _prepare_env_file() to extract the binary package environment.bz2
prior to the pkg_setup phase. This fixes a regression since EbuildPhase
no longer calls doebuild(), and therefore _prepare_env_file() needs
to be called now.

14 years agoUse _prepare_env_file() to extract environment.bz2 prior to the
Zac Medico [Wed, 18 Aug 2010 19:26:19 +0000 (12:26 -0700)]
Use _prepare_env_file() to extract environment.bz2 prior to the
pkg_prerm phase. This fixes a regression since EbuildPhase no
longer calls doebuild(), and therefore _prepare_env_file() needs
to be called now.

14 years agoBug #324075 - If the vcs doesn't preserve mtimes then disable the
Zac Medico [Wed, 18 Aug 2010 14:37:28 +0000 (07:37 -0700)]
Bug #324075 - If the vcs doesn't preserve mtimes then disable the
copyright date check unless the ebuild has just been added or
modified.

14 years agocheck_required_use: Fix the same bug as in use_reduce
Sebastian Luther [Wed, 18 Aug 2010 13:50:53 +0000 (15:50 +0200)]
check_required_use: Fix the same bug as in use_reduce

14 years agoparen_reduce: Fix the same bug as in use_reduce
Sebastian Luther [Wed, 18 Aug 2010 13:33:55 +0000 (15:33 +0200)]
paren_reduce: Fix the same bug as in use_reduce

14 years agoRevert "Tests: Remove paren_reduce tests"
Sebastian Luther [Wed, 18 Aug 2010 13:19:24 +0000 (15:19 +0200)]
Revert "Tests: Remove paren_reduce tests"

This reverts commit 67f3bef9efeff7061765edc9515a97143c2f2e55.

14 years ago* Replace config._iuse_implicit_re with a callable _iuse_implicit_match
Zac Medico [Wed, 18 Aug 2010 13:36:21 +0000 (06:36 -0700)]
* Replace config._iuse_implicit_re with a callable _iuse_implicit_match
  object that simply returns boolean, and update consumers.
* Make check_required_use() take a callable for the iuse parameter,
  and pass in Package.use.is_valid_flag or iuse.__contains__ as
   appropriate.

14 years agouse_reduce: code cleanup
Sebastian Luther [Wed, 18 Aug 2010 12:58:19 +0000 (14:58 +0200)]
use_reduce: code cleanup

14 years agoBug #312085 - Make config.setcpv() treat USE_EXPAND_HIDDEN flags as if
Zac Medico [Wed, 18 Aug 2010 12:21:28 +0000 (05:21 -0700)]
Bug #312085 - Make config.setcpv() treat USE_EXPAND_HIDDEN flags as if
they are in IUSE. This helps for the embedded profile which does not have
typical use.force/use.mask settings. The flags are matched with a regular
expression and match results are memoized in order to optimize performance.

14 years agoBug #308933 - Export os.path.realpath(PORTAGE_TMPDIR), to make sandbox
Zac Medico [Wed, 18 Aug 2010 12:07:12 +0000 (05:07 -0700)]
Bug #308933 - Export os.path.realpath(PORTAGE_TMPDIR), to make sandbox
happy.

14 years agoRemove unused iuse_implicit attribute.
Zac Medico [Wed, 18 Aug 2010 11:24:01 +0000 (04:24 -0700)]
Remove unused iuse_implicit attribute.

14 years agoAdd opconvert test for "|| ( ( A B ) C )".
Zac Medico [Wed, 18 Aug 2010 10:48:06 +0000 (03:48 -0700)]
Add opconvert test for "|| ( ( A B ) C )".

14 years agoFix use_reduce() to correctly handle "|| ( ( A B ) C )", and also
Zac Medico [Wed, 18 Aug 2010 10:24:13 +0000 (03:24 -0700)]
Fix use_reduce() to correctly handle "|| ( ( A B ) C )", and also
fix some test cases that had erroneous expected_result values.

14 years agoAdd commented test case for a known regression.
Zac Medico [Wed, 18 Aug 2010 07:29:05 +0000 (00:29 -0700)]
Add commented test case for a known regression.

14 years agoTemporarily disable portage.dep deprecation warnings for external api
Zac Medico [Tue, 17 Aug 2010 20:22:35 +0000 (13:22 -0700)]
Temporarily disable portage.dep deprecation warnings for external api
consumers. Once the relevant api changes are in a portage release with
stable keywords, make these warnings unconditional.

14 years agoUse binarytree._ensure_dir() to create the binpkg parent dir.
Zac Medico [Tue, 17 Aug 2010 18:55:13 +0000 (11:55 -0700)]
Use binarytree._ensure_dir() to create the binpkg parent dir.

14 years agoUse binarytree._ensure_dir() to create the binpkg parent dir.
Zac Medico [Tue, 17 Aug 2010 18:41:34 +0000 (11:41 -0700)]
Use binarytree._ensure_dir() to create the binpkg parent dir.

14 years agoFix breakage in REPLACING_VERSIONS support for emerge.
Zac Medico [Tue, 17 Aug 2010 18:24:15 +0000 (11:24 -0700)]
Fix breakage in REPLACING_VERSIONS support for emerge.

14 years agoAdd pretend to actionmap_deps.
Zac Medico [Tue, 17 Aug 2010 18:00:15 +0000 (11:00 -0700)]
Add pretend to actionmap_deps.

14 years agoFix the REPLACING_VERSIONS code to work in cases when the pretend/setup
Zac Medico [Tue, 17 Aug 2010 17:55:21 +0000 (10:55 -0700)]
Fix the REPLACING_VERSIONS code to work in cases when the pretend/setup
phases are pulled in as dependencies of other phases.

14 years agoDiscard REPLACING_VERSIONS and REPLACED_BY_VERSION when they are no
Zac Medico [Tue, 17 Aug 2010 17:30:12 +0000 (10:30 -0700)]
Discard REPLACING_VERSIONS and REPLACED_BY_VERSION when they are no
longer needed.

14 years agoUse EbuildPhase instead of EbuildProcess, for things like die_hooks
Zac Medico [Tue, 17 Aug 2010 16:42:20 +0000 (09:42 -0700)]
Use EbuildPhase instead of EbuildProcess, for things like die_hooks
support.

14 years agoMake EbuildBinpkg inherit from CompositeTask since the EbuildPhase
Zac Medico [Tue, 17 Aug 2010 16:35:41 +0000 (09:35 -0700)]
Make EbuildBinpkg inherit from CompositeTask since the EbuildPhase
class is capable of executing the 'package' phase.

14 years agoRemove no longer needed code.
Arfrever Frehtes Taifersar Arahesis [Tue, 17 Aug 2010 15:50:56 +0000 (17:50 +0200)]
Remove no longer needed code.

14 years agoTweak the EbuildSpawnProcess test and add comments.
Zac Medico [Tue, 17 Aug 2010 14:38:13 +0000 (07:38 -0700)]
Tweak the EbuildSpawnProcess test and add comments.

14 years agoMake EbuildBinpkg inherit from EbuildProcess since the 'package'
Zac Medico [Tue, 17 Aug 2010 14:18:30 +0000 (07:18 -0700)]
Make EbuildBinpkg inherit from EbuildProcess since the 'package'
phase is already a member of actionmap.

14 years agoPass actionmap keyword argument as keyword, rather than positional.
Zac Medico [Tue, 17 Aug 2010 14:03:23 +0000 (07:03 -0700)]
Pass actionmap keyword argument as keyword, rather than positional.

14 years agoWrite compiled bytecodes to /dev/null, rather than write and unlink
Zac Medico [Tue, 17 Aug 2010 13:54:42 +0000 (06:54 -0700)]
Write compiled bytecodes to /dev/null, rather than write and unlink
them.

14 years agoFix _spawn_phase() to pass actionmap to EbuildPhase.
Zac Medico [Tue, 17 Aug 2010 13:43:31 +0000 (06:43 -0700)]
Fix _spawn_phase() to pass actionmap to EbuildPhase.

14 years agoUnify ebuild spawing some more. All proper ebuild phases which execute
Zac Medico [Tue, 17 Aug 2010 13:39:17 +0000 (06:39 -0700)]
Unify ebuild spawing some more. All proper ebuild phases which execute
ebuild.sh are spawned via _doebuild_spawn() now. No exceptions.

14 years agoFix _spawn_phase() to spawn phases without sandbox when necessary.
Zac Medico [Tue, 17 Aug 2010 08:22:58 +0000 (01:22 -0700)]
Fix _spawn_phase() to spawn phases without sandbox when necessary.

14 years agoSource isolated-functions.sh for helpers_die function.
Zac Medico [Tue, 17 Aug 2010 07:58:44 +0000 (00:58 -0700)]
Source isolated-functions.sh for helpers_die function.

14 years agoMake doebuild() use EbuildPhase to execute all phase (unless returnpid
Zac Medico [Tue, 17 Aug 2010 07:48:23 +0000 (00:48 -0700)]
Make doebuild() use EbuildPhase to execute all phase (unless returnpid
is True, which is only for the "depend" phase now).

14 years agoMake sure doebuild() doesn't erroneously unlink a logfile when returnpid
Zac Medico [Tue, 17 Aug 2010 07:23:36 +0000 (00:23 -0700)]
Make sure doebuild() doesn't erroneously unlink a logfile when returnpid
is True.

14 years agoMake EbuildBuild check the manifest before beginning, since with
Zac Medico [Tue, 17 Aug 2010 05:38:49 +0000 (22:38 -0700)]
Make EbuildBuild check the manifest before beginning, since with
--keep-going mode it's currently possible to get this far with a
broken manifest.

14 years agoFor ebuilds from $ROOT/var/db/pkg, don't give /var/db/pkg with the
Zac Medico [Tue, 17 Aug 2010 04:52:31 +0000 (21:52 -0700)]
For ebuilds from $ROOT/var/db/pkg, don't give /var/db/pkg with the
"Appending /var/db/pkg to PORTDIR_OVERLAY..." treatment.

14 years agoUse EbuildPhase to eliminate duplicate phase conditionals from doebuild().
Zac Medico [Tue, 17 Aug 2010 04:40:25 +0000 (21:40 -0700)]
Use EbuildPhase to eliminate duplicate phase conditionals from doebuild().

14 years agoUse EbuildPhase to execute preinst/postinst and eliminate duplicate code.
Zac Medico [Tue, 17 Aug 2010 04:30:41 +0000 (21:30 -0700)]
Use EbuildPhase to execute preinst/postinst and eliminate duplicate code.

14 years agoUse MiscFunctionsProcess to eliminate the _spawn_misc_sh() function.
Zac Medico [Tue, 17 Aug 2010 04:19:26 +0000 (21:19 -0700)]
Use MiscFunctionsProcess to eliminate the _spawn_misc_sh() function.

14 years agoMake spawnebuild() use EbuildPhase to eliminate duplicate code.
Zac Medico [Tue, 17 Aug 2010 03:59:24 +0000 (20:59 -0700)]
Make spawnebuild() use EbuildPhase to eliminate duplicate code.

14 years agoReuse a single TaskScheduler instance.
Zac Medico [Tue, 17 Aug 2010 01:42:06 +0000 (18:42 -0700)]
Reuse a single TaskScheduler instance.

14 years agoFix broken reference to 'myprovide' variable.
Zac Medico [Tue, 17 Aug 2010 01:32:30 +0000 (18:32 -0700)]
Fix broken reference to 'myprovide' variable.

14 years agoPass token_class=portage.dep.Atom when parsing PROVIDE.
Zac Medico [Tue, 17 Aug 2010 01:29:18 +0000 (18:29 -0700)]
Pass token_class=portage.dep.Atom when parsing PROVIDE.

14 years agoAdd a MiscFunctionsProcess test.
Zac Medico [Tue, 17 Aug 2010 01:16:56 +0000 (18:16 -0700)]
Add a MiscFunctionsProcess test.

14 years agoPass token_class parameter if possible to use_reduce
Sebastian Luther [Mon, 16 Aug 2010 19:41:02 +0000 (21:41 +0200)]
Pass token_class parameter if possible to use_reduce

14 years agoportage.dep.use_reduce: Add token_class parameter
Sebastian Luther [Mon, 16 Aug 2010 13:52:38 +0000 (15:52 +0200)]
portage.dep.use_reduce: Add token_class parameter

All non operator token will be converted to this class