portage.git
13 years ago_LockProcess: remove redundant scheduler attrib
Zac Medico [Fri, 27 May 2011 00:38:45 +0000 (17:38 -0700)]
_LockProcess: remove redundant scheduler attrib

13 years agounmerge: remove redundant builddir_locked var
Zac Medico [Fri, 27 May 2011 00:00:22 +0000 (17:00 -0700)]
unmerge: remove redundant builddir_locked var

13 years agoAsynchronousLock: check type in _poll and _cancel
Zac Medico [Thu, 26 May 2011 22:14:07 +0000 (15:14 -0700)]
AsynchronousLock: check type in _poll and _cancel

13 years agoman/emerge.1: refer to ebuild(5) for atom syntax
Zac Medico [Thu, 26 May 2011 18:32:26 +0000 (11:32 -0700)]
man/emerge.1: refer to ebuild(5) for atom syntax

13 years agounmerge: pass through writemsg_level param
Zac Medico [Thu, 26 May 2011 13:02:11 +0000 (06:02 -0700)]
unmerge: pass through writemsg_level param

13 years agodiscardBlocker: fix bug in slot match code
Zac Medico [Thu, 26 May 2011 12:22:18 +0000 (05:22 -0700)]
discardBlocker: fix bug in slot match code

13 years agodiscardBlocker: fix cpv match so it works
Zac Medico [Thu, 26 May 2011 12:00:01 +0000 (05:00 -0700)]
discardBlocker: fix cpv match so it works

13 years agodepgraph: always check for autounmask breakage
Zac Medico [Thu, 26 May 2011 06:40:47 +0000 (23:40 -0700)]
depgraph: always check for autounmask breakage

The 2.1.9 branch already does the same thing since commit
65736474c0d70cb10ff1290b3787b61d8a502aed.

13 years agoUpdate timestamps in headers of modified files.
Zac Medico [Thu, 26 May 2011 06:27:41 +0000 (23:27 -0700)]
Update timestamps in headers of modified files.

13 years agodblink.unmerge: always initialize myebuildpath
Zac Medico [Thu, 26 May 2011 02:32:42 +0000 (19:32 -0700)]
dblink.unmerge: always initialize myebuildpath

This is required for the doebuild_environment() call. Also, set
builddir_locked = True when appropriate.

13 years agocounter_tick: respect incrementing param always
Zac Medico [Thu, 26 May 2011 01:37:55 +0000 (18:37 -0700)]
counter_tick: respect incrementing param always

Every package install must have a unique counter, since a slotmove
update can move two packages into the same SLOT and in that case it's
important that both packages have different COUNTER metadata.

13 years agoFakeVartree: use live meta if installed EAPI ok
Zac Medico [Thu, 26 May 2011 01:04:33 +0000 (18:04 -0700)]
FakeVartree: use live meta if installed EAPI ok

This will fix bug #368725.

13 years agounmerge: fix logging for unsupported EAPI
Zac Medico [Thu, 26 May 2011 00:57:05 +0000 (17:57 -0700)]
unmerge: fix logging for unsupported EAPI

13 years agorebuilt-binaries: prefer newer unbuilt
Zac Medico [Thu, 26 May 2011 00:30:36 +0000 (17:30 -0700)]
rebuilt-binaries: prefer newer unbuilt

13 years agoFakeVartree: tweak _aux_get_wrapper repo handling v2.2.0_alpha36
Zac Medico [Wed, 25 May 2011 06:33:12 +0000 (23:33 -0700)]
FakeVartree: tweak _aux_get_wrapper repo handling

13 years agoFakeVartree: tweak _aux_get_wrapper EAPI handling
Zac Medico [Wed, 25 May 2011 06:25:27 +0000 (23:25 -0700)]
FakeVartree: tweak _aux_get_wrapper EAPI handling

13 years agowritedict: use write_atomic for exceptions
Zac Medico [Wed, 25 May 2011 05:42:24 +0000 (22:42 -0700)]
writedict: use write_atomic for exceptions

Also, fix calling code to handle InvalidLocation exceptions.

13 years agotreewalk: reset cloned config instances
Zac Medico [Wed, 25 May 2011 05:09:43 +0000 (22:09 -0700)]
treewalk: reset cloned config instances

13 years agodblink: use config._init_dirs() when necessary
Zac Medico [Wed, 25 May 2011 05:01:35 +0000 (22:01 -0700)]
dblink: use config._init_dirs() when necessary

13 years agowritedict: raise any exceptions
Zac Medico [Wed, 25 May 2011 04:55:59 +0000 (21:55 -0700)]
writedict: raise any exceptions

We don't have any code that checks the writedict return value, so we'd
better raise an exception if it fails.

13 years agoatomic_ofstream: suppress redundant open error
Zac Medico [Wed, 25 May 2011 04:52:40 +0000 (21:52 -0700)]
atomic_ofstream: suppress redundant open error

13 years agovardbapi: use config._init_dirs() when necessary
Zac Medico [Wed, 25 May 2011 04:36:36 +0000 (21:36 -0700)]
vardbapi: use config._init_dirs() when necessary

13 years agocleanrm: handle UnsupportedAPIException
Zac Medico [Wed, 25 May 2011 04:07:31 +0000 (21:07 -0700)]
cleanrm: handle UnsupportedAPIException

13 years agoFakeVartree: preserve EAPI of installed package
Zac Medico [Wed, 25 May 2011 03:57:33 +0000 (20:57 -0700)]
FakeVartree: preserve EAPI of installed package

If the corresponding unbuilt ebuild has a different EAPI than the
installed instance, then we want to preserve the EAPI meatadata from
the installed instance.

13 years agoFix a typo in last commit's debug message.
Zac Medico [Wed, 25 May 2011 03:10:56 +0000 (20:10 -0700)]
Fix a typo in last commit's debug message.

13 years agodepgraph: detect deps broken by autounmask
Zac Medico [Wed, 25 May 2011 02:52:17 +0000 (19:52 -0700)]
depgraph: detect deps broken by autounmask

This will fix bug #368429.

13 years agoPackageUninstall: return early if pkg is missing
Zac Medico [Wed, 25 May 2011 00:45:06 +0000 (17:45 -0700)]
PackageUninstall: return early if pkg is missing

13 years agoPackageUninstall: remove extra cat/pf var init
Zac Medico [Wed, 25 May 2011 00:29:27 +0000 (17:29 -0700)]
PackageUninstall: remove extra cat/pf var init

Also, add to comments about ebuild-locks.

13 years agotest_merge_order: test asap PDEPEND (bug #180045)
Zac Medico [Tue, 24 May 2011 23:59:13 +0000 (16:59 -0700)]
test_merge_order: test asap PDEPEND (bug #180045)

13 years agotreewalk: fix PORTAGE_BUILDIR_LOCKED state
Zac Medico [Tue, 24 May 2011 10:40:23 +0000 (03:40 -0700)]
treewalk: fix PORTAGE_BUILDIR_LOCKED state

This fixes breakage from commit
f0f1bbe8fa9d3f698cbe529d2a11eec1ce437119.

13 years agoPackageUninstall: log more output
Zac Medico [Tue, 24 May 2011 05:54:57 +0000 (22:54 -0700)]
PackageUninstall: log more output

13 years agoPackageUninstall: make async with MergeProcess
Zac Medico [Tue, 24 May 2011 05:31:20 +0000 (22:31 -0700)]
PackageUninstall: make async with MergeProcess

This fixes another ebuild-locks issue like the one fixed in commit
a81460175a441897282b0540cefff8060f2b92dc, but this time we use a
subprocess to ensure that the ebuild-locks for pkg_prerm and
pkg_postrm do not interfere with pkg_setup ebuild-locks held by
the main process.

13 years agodoebuild_environment: move EAPI code later
Zac Medico [Tue, 24 May 2011 03:02:30 +0000 (20:02 -0700)]
doebuild_environment: move EAPI code later

All EAPI dependent code comes last, so that essential
variables like PORTAGE_BUILDDIR are still initialized even in
cases when UnsupportedAPIException needs to be raised, which
can be useful when uninstalling a package that has corrupt
EAPI metadata.

13 years agoMergeProcess: remove unnecessary dblink attribute
Zac Medico [Tue, 24 May 2011 00:33:15 +0000 (17:33 -0700)]
MergeProcess: remove unnecessary dblink attribute

13 years agoPackageUninstall: use _unmerge_display()
Zac Medico [Mon, 23 May 2011 22:12:24 +0000 (15:12 -0700)]
PackageUninstall: use _unmerge_display()

This is preparation for asynchronous support.

13 years agounmerge: split out _unmerge_display() function
Zac Medico [Mon, 23 May 2011 21:21:43 +0000 (14:21 -0700)]
unmerge: split out _unmerge_display() function

This will be useful for adding asynchronous support to the
PackageUninstall class, since it will be able to call
_unmerge_display() for the display portion, and then do the
actual unmerge asynchronously.

13 years agorepoman: pass type_name to Package constructor v2.2.0_alpha35
Zac Medico [Mon, 23 May 2011 07:05:05 +0000 (00:05 -0700)]
repoman: pass type_name to Package constructor

13 years agotest_merge_order: add more asap libc deps
Zac Medico [Mon, 23 May 2011 05:59:16 +0000 (22:59 -0700)]
test_merge_order: add more asap libc deps

13 years ago_serialize_tasks: prefer unsatisfied asap child
Zac Medico [Mon, 23 May 2011 05:39:57 +0000 (22:39 -0700)]
_serialize_tasks: prefer unsatisfied asap child

Optimally, satisfied deps are always merged after the asap nodes that
depend on them.

13 years agotest_depth: use merge_order_assertions
Zac Medico [Mon, 23 May 2011 00:44:49 +0000 (17:44 -0700)]
test_depth: use merge_order_assertions

13 years ago_add_pkg_dep_string: handle satisfied virt_dep
Zac Medico [Sun, 22 May 2011 23:48:42 +0000 (16:48 -0700)]
_add_pkg_dep_string: handle satisfied virt_dep

This fixes a problem with the asap LIBC_PACKAGE_ATOM test case for
bug #303567.

13 years agotest_merge_order: test asap LIBC_PACKAGE_ATOM
Zac Medico [Sun, 22 May 2011 22:01:21 +0000 (15:01 -0700)]
test_merge_order: test asap LIBC_PACKAGE_ATOM

13 years ago_validate_blockers: reference bug 128809
Zac Medico [Sun, 22 May 2011 21:20:56 +0000 (14:20 -0700)]
_validate_blockers: reference bug 128809

13 years agotest_merge_order: test asap PORTAGE_PACKAGE_ATOM
Zac Medico [Sun, 22 May 2011 21:01:18 +0000 (14:01 -0700)]
test_merge_order: test asap PORTAGE_PACKAGE_ATOM

13 years agotest_merge_order: test case for bug 250286
Zac Medico [Sun, 22 May 2011 20:36:18 +0000 (13:36 -0700)]
test_merge_order: test case for bug 250286

13 years agotest_merge_order: test hard block resolution
Zac Medico [Sun, 22 May 2011 20:02:26 +0000 (13:02 -0700)]
test_merge_order: test hard block resolution

13 years agotest_merge_order: test many-to-one blocks
Zac Medico [Sun, 22 May 2011 19:43:03 +0000 (12:43 -0700)]
test_merge_order: test many-to-one blocks

13 years agoPackage: add new _gen_hash_key method
Zac Medico [Sun, 22 May 2011 18:53:41 +0000 (11:53 -0700)]
Package: add new _gen_hash_key method

13 years agotest_depth: use ambiguous_merge_order
Zac Medico [Sun, 22 May 2011 17:03:05 +0000 (10:03 -0700)]
test_depth: use ambiguous_merge_order

13 years agoambiguous_merge_order: set match = False more
Zac Medico [Sun, 22 May 2011 09:05:15 +0000 (02:05 -0700)]
ambiguous_merge_order: set match = False more

13 years agoFix spelling of "ambiguous".
Zac Medico [Sun, 22 May 2011 09:03:04 +0000 (02:03 -0700)]
Fix spelling of "ambiguous".

13 years agoDepPriority: remove "rebuild" attribute
Zac Medico [Sun, 22 May 2011 00:46:11 +0000 (17:46 -0700)]
DepPriority: remove "rebuild" attribute

Since the addition of DepPriorityNormalRange and
DepPrioritySatisfiedRange in commit
bd369956b2a2fbc019a655a372628998499156c0, which solves most cases of
bug 199856, the Depriority.rebuild attribute doesn't appear to make any
difference. The edges that this attribute differentiates are already
naturally differentiated by the fact that the child node of a satisfied
buildtime dependency that's not being rebuilt will naturally be
identified as a leaf node earlier and removed from the graph, thereby
eliminating the edge before there's an opportunity to compare it with
a higher priority rebuild edge. The addition of the "optional"
attribute (in commit 15476805a156acd11fdaaa19212691e8ee09b309) also
plays a role here, since it converts some satisfied buildtime edges to
optional edges, thereby reducing their priority.

13 years agotest_merge_order: fix bugs in previous commit
Zac Medico [Sat, 21 May 2011 22:36:41 +0000 (15:36 -0700)]
test_merge_order: fix bugs in previous commit

13 years agotest_merge_order: test solve blocker no-overlap
Zac Medico [Sat, 21 May 2011 22:15:42 +0000 (15:15 -0700)]
test_merge_order: test solve blocker no-overlap

13 years agotreewalk: force AUTOCLEAN=yes if libs preserved
Zac Medico [Sat, 21 May 2011 14:22:00 +0000 (07:22 -0700)]
treewalk: force AUTOCLEAN=yes if libs preserved

13 years ago_prune_plib_registry: correct _match_contents use
Zac Medico [Sat, 21 May 2011 13:09:46 +0000 (06:09 -0700)]
_prune_plib_registry: correct _match_contents use

13 years agomerge_order_assertions: fix string format error
Zac Medico [Sat, 21 May 2011 10:34:30 +0000 (03:34 -0700)]
merge_order_assertions: fix string format error

13 years agotest_merge_order: test satisfied circular DEPEND
Zac Medico [Sat, 21 May 2011 10:30:05 +0000 (03:30 -0700)]
test_merge_order: test satisfied circular DEPEND

13 years agotest_merge_order: test unsolvable buildtime cycle
Zac Medico [Sat, 21 May 2011 09:20:55 +0000 (02:20 -0700)]
test_merge_order: test unsolvable buildtime cycle

13 years agotest_merge_order: test circular RDEPEND + DEPEND
Zac Medico [Sat, 21 May 2011 09:10:57 +0000 (02:10 -0700)]
test_merge_order: test circular RDEPEND + DEPEND

13 years agotest_merge_order: make cycles indirect
Zac Medico [Sat, 21 May 2011 08:47:13 +0000 (01:47 -0700)]
test_merge_order: make cycles indirect

13 years agoTask.__eq__: allow _hash_key as input
Zac Medico [Sat, 21 May 2011 08:40:30 +0000 (01:40 -0700)]
Task.__eq__: allow _hash_key as input

This is used by depgraph._pkg() for lookups.

13 years agoambigous_merge_order: handle more failure modes
Zac Medico [Sat, 21 May 2011 04:14:49 +0000 (21:14 -0700)]
ambigous_merge_order: handle more failure modes

13 years agotest_merge_order: test hard buildtime blockers
Zac Medico [Sat, 21 May 2011 04:01:31 +0000 (21:01 -0700)]
test_merge_order: test hard buildtime blockers

13 years agotest_merge_order: test hard blocker resolution
Zac Medico [Sat, 21 May 2011 03:49:08 +0000 (20:49 -0700)]
test_merge_order: test hard blocker resolution

13 years agotest_merge_order: test blocker resolution
Zac Medico [Sat, 21 May 2011 03:30:30 +0000 (20:30 -0700)]
test_merge_order: test blocker resolution

13 years agotest_merge_order: remove uneeded ambigous flag
Zac Medico [Sat, 21 May 2011 01:16:46 +0000 (18:16 -0700)]
test_merge_order: remove uneeded ambigous flag

13 years agotest_merge_order: fix ambigous_merge_order bug
Zac Medico [Sat, 21 May 2011 01:11:56 +0000 (18:11 -0700)]
test_merge_order: fix ambigous_merge_order bug

13 years agotest_merge_order: test circular RDEPEND + PDEPEND
Zac Medico [Sat, 21 May 2011 01:00:02 +0000 (18:00 -0700)]
test_merge_order: test circular RDEPEND + PDEPEND

13 years agoResolverPlayground: support ambigous_merge_order
Zac Medico [Sat, 21 May 2011 00:51:09 +0000 (17:51 -0700)]
ResolverPlayground: support ambigous_merge_order

13 years agoFix grammar in previous commit.
Zac Medico [Fri, 20 May 2011 22:01:21 +0000 (15:01 -0700)]
Fix grammar in previous commit.

13 years agodepclean: adjust failure message wrt --with-bdeps
Zac Medico [Fri, 20 May 2011 21:56:08 +0000 (14:56 -0700)]
depclean: adjust failure message wrt --with-bdeps

We need to be more explicit about using --with-bdeps=y, since this
subtlety often leads to confusion.

13 years agoTask: optimize == and != _hash_key comparison
Zac Medico [Fri, 20 May 2011 20:40:13 +0000 (13:40 -0700)]
Task: optimize == and != _hash_key comparison

13 years agoAdd FEATURES=distcc-pump support.
MATSUU Takuto [Fri, 20 May 2011 19:20:58 +0000 (12:20 -0700)]
Add FEATURES=distcc-pump support.

This will fix bug #288597.

13 years agoTask: precalculate _hash_value
Zac Medico [Fri, 20 May 2011 06:31:55 +0000 (23:31 -0700)]
Task: precalculate _hash_value

13 years agoTask: remove unnecessary _get_hash_key() method
Zac Medico [Fri, 20 May 2011 06:23:51 +0000 (23:23 -0700)]
Task: remove unnecessary _get_hash_key() method

13 years agoPackage: precalculate _hash_key
Marat Radchenko [Fri, 20 May 2011 04:25:17 +0000 (08:25 +0400)]
Package: precalculate _hash_key

This eliminates an expensive getattr call in _get_hash_key(), which
greatly improves depgraph performance on a weak ARM cpu.

13 years agoFix typos in comments.
Arfrever Frehtes Taifersar Arahesis [Wed, 18 May 2011 19:46:09 +0000 (21:46 +0200)]
Fix typos in comments.

13 years ago_find_libs_to_preserve: always return set v2.2.0_alpha34
Zac Medico [Wed, 18 May 2011 05:38:07 +0000 (22:38 -0700)]
_find_libs_to_preserve: always return set

13 years agopreserve-libs: check for broken linkmap more
Zac Medico [Wed, 18 May 2011 05:27:07 +0000 (22:27 -0700)]
preserve-libs: check for broken linkmap more

13 years ago_pkg_visibility_check: if in graph then visible
Zac Medico [Wed, 18 May 2011 04:37:08 +0000 (21:37 -0700)]
_pkg_visibility_check: if in graph then visible

13 years ago_LockProcess.unlock: assert successful returncode
Zac Medico [Wed, 18 May 2011 04:00:39 +0000 (21:00 -0700)]
_LockProcess.unlock: assert successful returncode

13 years agoetc-update: clear term when appropriate
Zac Medico [Wed, 18 May 2011 03:46:36 +0000 (20:46 -0700)]
etc-update: clear term when appropriate

This solves an issue like bug #142508, but involving etc-update instead
of dispatch-conf. This is also relevant to bug #70668, which is the
same issue, though the reporter suggested to use colors to delimit the
output instead of using clear.

13 years ago--autounmask-write: use CONFIGROOT more
Zac Medico [Wed, 18 May 2011 02:15:58 +0000 (19:15 -0700)]
--autounmask-write: use CONFIGROOT more

13 years agoFix a typo in a comment.
Zac Medico [Wed, 18 May 2011 01:49:57 +0000 (18:49 -0700)]
Fix a typo in a comment.

13 years agodigraph: implement __bool__
Zac Medico [Wed, 18 May 2011 01:43:32 +0000 (18:43 -0700)]
digraph: implement __bool__

13 years agodepgraph._resolve: use temp set for autounmask
Zac Medico [Wed, 18 May 2011 01:31:15 +0000 (18:31 -0700)]
depgraph._resolve: use temp set for autounmask

13 years agodisplay_autounmask: optimize check_if_latest
Zac Medico [Wed, 18 May 2011 00:54:34 +0000 (17:54 -0700)]
display_autounmask: optimize check_if_latest

13 years agotest_asynchronous_lock: simulate SIGINT from tty
Zac Medico [Tue, 17 May 2011 22:19:20 +0000 (15:19 -0700)]
test_asynchronous_lock: simulate SIGINT from tty

13 years agoAsynchronousTask: tweak poll() logic
Zac Medico [Tue, 17 May 2011 21:32:33 +0000 (14:32 -0700)]
AsynchronousTask: tweak poll() logic

13 years agoAsynchronousLock: implement _poll() and test
Zac Medico [Tue, 17 May 2011 21:25:47 +0000 (14:25 -0700)]
AsynchronousLock: implement _poll() and test

13 years agotest_asynchronous_lock: test returncode more
Zac Medico [Tue, 17 May 2011 21:14:20 +0000 (14:14 -0700)]
test_asynchronous_lock: test returncode more

13 years agotest_asynchronous_lock: test wait and cancel
Zac Medico [Tue, 17 May 2011 21:02:12 +0000 (14:02 -0700)]
test_asynchronous_lock: test wait and cancel

13 years agotest_asynchronous_lock: test waiting
Zac Medico [Tue, 17 May 2011 20:56:15 +0000 (13:56 -0700)]
test_asynchronous_lock: test waiting

13 years agotest_autounmask: test missing keyword
Zac Medico [Tue, 17 May 2011 20:33:10 +0000 (13:33 -0700)]
test_autounmask: test missing keyword

13 years agoUpdate timestamps in headers of modified files.
Zac Medico [Tue, 17 May 2011 19:50:38 +0000 (12:50 -0700)]
Update timestamps in headers of modified files.

13 years ago--autounmask-write: don't write hidden files
Zac Medico [Tue, 17 May 2011 19:43:48 +0000 (12:43 -0700)]
--autounmask-write: don't write hidden files

13 years ago--autounmask-write: use CONFIGROOT and EROOT
Zac Medico [Tue, 17 May 2011 07:10:21 +0000 (00:10 -0700)]
--autounmask-write: use CONFIGROOT and EROOT

13 years ago--autounmask-write: handle non-existent file
Zac Medico [Tue, 17 May 2011 06:54:52 +0000 (23:54 -0700)]
--autounmask-write: handle non-existent file

13 years ago--autounmask-write: only prompt when necessary
Zac Medico [Tue, 17 May 2011 06:29:21 +0000 (23:29 -0700)]
--autounmask-write: only prompt when necessary