summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* LinkageMapELF: remove unused importsv2.2.0_alpha32Zac Medico2011-05-083-5/+3
|
* PreservedLibsRegistry: normalize counter as strZac Medico2011-05-081-4/+22
|
* Add back cpv_exists check from previous commit.Zac Medico2011-05-081-0/+2
|
* Remove obsolete others_in_slot plibs code.Zac Medico2011-05-081-12/+2
| | | | | | | | | This code dates back to commit 79a2ade5a6cb5a6c2d7ace838a39a634265c5522 and the preserve-libs logic was different back then. At that time, the dblink._preserve_libs() method would earlier register preserved libs for the new package currently being merged, while the vardb entry was still a -MERGING- node. Current code does not register preserve_paths until later, so this others_in_slot code is obsolete.
* treewalk: always initialize "needed"Zac Medico2011-05-081-3/+3
|
* merge_wait_queue: use deque.clear()Zac Medico2011-05-081-1/+1
|
* resume_depgraph: don't call break_refs in loopZac Medico2011-05-081-2/+1
| | | | | | | | | | The break_refs call was unnecessary and it broke the state of the frozen_config instance, causing the following error: File "pym/_emerge/depgraph.py", line 1290, in _wrapped_add_pkg_dep_string inst_pkgs = vardb.match_pkgs(atom) AttributeError: 'vardbapi' object has no attribute 'match_pkgs'
* Fix typos in unmerge function.David James2011-05-081-5/+5
| | | | | | | BUG=none TEST=Try unmerging some packages. Change-Id: Ib643ec95b8da14b49a6b519e445fe57f8995c52c
* linkmap: use exclude_pkgs for the registry tooZac Medico2011-05-081-2/+9
|
* Use new vardbapi lock function in FakeVartree.David James2011-05-071-11/+6
| | | | | | | BUG=none TEST=Merged some packages with new code. Ran test suite. Change-Id: Ibb9380122631bf6c79e39691233cfd641931b75a
* Be careful with system pkgs + parallel-install.Zac Medico2011-05-071-10/+18
| | | | | This should prevent FEATURES=parallel-install from interfering with the fixes from bug #256616 and bug #259954.
* linkmap: check for access before locking vardbapiZac Medico2011-05-071-2/+5
|
* Use EROOT with VDB_PATH in recent changes.Zac Medico2011-05-072-5/+4
|
* Scheduler: add queue for ebuild-locksZac Medico2011-05-071-2/+11
| | | | | | | | Use a separate queue for ebuild-locks when the merge queue allows more than 1 job (due to parallel-install), since the portage.locks module does not behave as desired if we try to lock the same file multiple times concurrently from the same process.
* Add FEATURES=parallel-install for finer locks.Zac Medico2011-05-074-3/+20
|
* vardbapi: acquire lock during counter_tick_coreZac Medico2011-05-071-9/+17
|
* Add vardbapi reentrant lock/unlock methods.Zac Medico2011-05-071-16/+38
|
* Rename FEATURES=no-ebuild-locks to ebuild-locks.Zac Medico2011-05-074-8/+15
|
* Use finer grained locks for install.David James2011-05-075-79/+132
| | | | | | | | | | | | | | | | | | | | | | | | | Narrow scope of merge locks to improve performance. Instead of locking the DB for the entire package merge, just lock it when we actually need to do so. Also add locks around conf_mem_file updating and pkg_* phases. Locking in pkg_* phases can be turned off with FEATURES="no-ebuild-locks" if you use ebuilds that are careful not to mess with each other during theses phases. The default is to leave this locking enabled. Given this new locking, I've improved the scheduler to run merge jobs in parallel. Time required for merging 348 packages with --usepkgonly: - Before patch: 29m50s - After patch: 10m2s - After patch w/o locks: 7m9s Change-Id: I63588c4cc59fa6fe2f8327ea1e4a9e71b241d4fe Review URL: http://gerrit.chromium.org/gerrit/498
* doebuild: use EbuildBuildDir for lockingZac Medico2011-05-072-3/+14
| | | | | | | | EbuildBuildDir also performs safe removal of the category when it is empty, so ebuild.sh/dyn_clean doesn't need to do it anymore. This fixes a race condition if one process is trying to remove the category directory while another one is trying to create it for PORTAGE_BUILDDIR.
* PreserveLibsRegistry: add lock/unlock assertionsZac Medico2011-05-071-1/+12
| | | | | Also, add comments to store() about unobvious interaction with locking due to atomic replacement of the inode.
* Remove redundant pruneNonExisting() call.Zac Medico2011-05-061-1/+0
| | | | | | Since commit f36b9fa38b5268c2a5579db62acec026625f84a9, the PreservedLibsRegistry automatically prunes itself each time that it is loaded.
* preserve-libs: fix linkmap logic for new plibsZac Medico2011-05-062-11/+40
| | | | | Together with commit f36b9fa38b5268c2a5579db62acec026625f84a9, hopefully this solves bug #366061.
* Cleanup preserved lib locking in portage.David James2011-05-063-124/+114
| | | | | | | | | | | | This change makes preserved lib modification atomic, and prepares us for narrowing the scope of the merge lock. BUG=chromium-os:14983 TEST=Ran test suite and some example emerges. Change-Id: I39abb6a5ec72be3274e508ef807ac1d9e69db1a8 Review URL: http://gerrit.chromium.org/gerrit/417
* depgraph: simplify break_refsv2.2.0_alpha31Zac Medico2011-05-052-21/+23
|
* emerge: fix misspell suggestion with categoryZac Medico2011-05-051-3/+2
| | | | A name collision in the "cp" variable caused it to malfunction.
* Update timestamps in headers of modified files.Zac Medico2011-05-052-2/+2
|
* repoman: make virtual.oldstyle a warning for nowZac Medico2011-05-051-0/+1
| | | | | This will give third-party repoman users some time to migrate their repos away old-style virtuals.
* add_pkg_deps: removal action discard DEPEND earlyZac Medico2011-05-041-0/+3
|
* add_pkg_deps: use dep priority to ignore blockersZac Medico2011-05-041-12/+10
|
* test_rebuild: test --rebuild-if-new-rev moreDavid James2011-05-041-0/+15
|
* add_pkg_dep_string: respect traverse_ignored_depsZac Medico2011-05-041-3/+6
| | | | | I don't think this makes any difference now, but it clarifies how traverse_ignored_deps should behave.
* emerge: replace --rebuild with finer grained optsDavid James2011-05-046-24/+157
| | | | | | | | | | | | | | | | | | | | | | Replace --rebuild option with --rebuild-if-* options. --rebuild-if-new-rev [ y | n ] Rebuild packages when dependencies that are used at both build-time and run-time are built, if the dependency is not already installed with the same version and revision. --rebuild-if-new-ver [ y | n ] Rebuild packages when dependencies that are used at both build-time and run-time are built, if the dependency is not already installed with the same version. Revision numbers are ignored. --rebuild-if-unbuilt [ y | n ] Rebuild packages when dependencies that are used at both build-time and run-time are built. Change-Id: Ia50c1702bfe1b98a8d1891740e7bbb045921a905 Review URL: http://gerrit.chromium.org/gerrit/280
* doins: add reference to bug #239529Zac Medico2011-05-041-1/+4
| | | | | | The reasoning for the code from commit 55b3150af635a418ba3f1424132359c894db7ec4 is not really obvious, so it's helpful to reference the corresponding bug report.
* Fix Manifest.updateAllHashes()Mike Gilbert2011-05-031-1/+1
|
* Add --rebuild-ignore flag.David James2011-05-035-1/+48
| | | | | | | | | A space separated list of package names or slot atoms. Emerge will not rebuild packages that depend on matching packages due to \fB\-\-rebuild\fR. Change-Id: Ia58fe632ed06c97a22413da0341d7f8da2d65ba8 Review URL: http://gerrit.chromium.org/gerrit/209
* rebuild_config: propagate runtime deps to parentsDavid James2011-05-032-6/+15
| | | | | | | | | | | | | Update rebuild option to propagate runtime deps to parents. Suggested by SebastianLuther@gmx.de BUG=chromium-os:14858 TEST=Added unit test. Ran unit tests. Change-Id: I7228a8558eddd1956c590de39430172476c66228 Review URL: http://gerrit.chromium.org/gerrit/202
* cpv_expand: avoid old-style virtual codeZac Medico2011-05-021-14/+10
| | | | | This allows portageq calls to avoid loading vdb_metadata.pickle in most cases, which greatly improves performance.
* Avoid evaluation of values of variables in set_unless_changed().Arfrever Frehtes Taifersar Arahesis2011-05-021-1/+1
|
* emerge: skip misspell suggestion if cp existsZac Medico2011-05-021-0/+8
|
* depgraph: autounmask account for optional depsZac Medico2011-05-021-0/+14
|
* emerge: rename --no*-atoms to --*-excludeZac Medico2011-05-025-21/+21
|
* ebuild.sh: make INHERITED independent of phaseZac Medico2011-05-021-3/+11
| | | | | | | When EBUILD_PHASE != depend, INHERITED comes pre-initialized from cache. In order to make INHERITED content independent of EBUILD_PHASE during inherit() calls, we unset INHERITED after we make a backup copy for QA checks.
* Update timestamps in headers of modified files.Zac Medico2011-05-0113-11/+16
|
* depgraph: queue ignored deps for later traversalZac Medico2011-05-011-13/+28
| | | | | | This will fix an issue with some build-time deps being ignored by --complete-graph in cases when --with-bdeps is not enabled. It should help --rebuild to find more rebuilds in this case.
* depgraph: account for new-style virtual/libcZac Medico2011-05-011-71/+93
| | | | This will fix bug #364681.
* trigger_rebuilds: handle circular depsZac Medico2011-05-011-1/+27
|
* depgraph: traverse bdeps in complete modeZac Medico2011-05-012-2/+9
| | | | | This makes the graph as complete as possible, and can help --rebuild to find more rebuilds.
* depgraph: ignore unwanted virtualsZac Medico2011-05-011-2/+3
| | | | | This fixes an unwanted side-effect from commit 470871eeafa89a05486d4eb6f3f7626c1f813e4d.
* emerge: add --rebuild and --norebuild-atoms optsDavid James2011-05-0113-26/+325
| | | | | | | | | | | | | | | | | | | | | | | Rebuild when build-time/run-time deps are upgraded. If pkgA has been updated, and pkgB depends on pkgA at both build-time and run-time, pkgB needs to be rebuilt. This feature ensures that all packages are consistent when dependencies that are used at both runtime and build time are changed. This feature only rebuilds packages one layer deep. That means that if you upgrade libcros, for example, packages that depend directly on libcros will be rebuilt and reinstalled, but indirect dependencies will not be rebuilt. BUG=chromium-os:14296 TEST=Test whether packages rebuilding a bunch of packages. Change-Id: Idbc0532b4b1de28fd9e5a0abe3b7dbe1a3abd2c8 Review URL: http://codereview.chromium.org/6905107