summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
...
* ebuild.sh: fix libdir for ccache/distccZac Medico2011-06-091-2/+8
| | | | This will fix bug #355283.
* ebuild.sh: don't hardcode distcc pump pathJeremy Murphy2011-06-091-2/+2
|
* portageq: support --versionZac Medico2011-06-051-4/+9
|
* portdbapi: cleanup when base module is reloadedZac Medico2011-06-031-1/+0
| | | | | | | This prevents memory leaks via portdbapi.portdbapi_instances when the module is reloaded. Also, there's no need for ebuild(1) to call close_portdbapi_caches() since it's now handled automatically during the reload.
* portageq: exclude expand_new_virt from commandsZac Medico2011-06-021-4/+7
| | | | | | This is necessary since portage probes functions in globals() and treats functions it finds as commands. Also, use lazy import to minimize global scope imports.
* portageq: add new expand_virtual functionZac Medico2011-06-021-0/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Something like this was requested in bug #157357. Now that Gentoo has migrated all virtuals to GLEP 37 new-style virtuals, this kind of function may be helpful in order to resolve the currently installed provider of a particular virtual in scripts like bootstrap.sh. Usage: portageq expand_virtual <root> <atom> Returns a \n separated list of atoms expanded from a given virtual atom, excluding blocker atoms. Satisfied virtual atoms are not included in the output, since they are expanded to real atoms which are displayed. Unsatisfied virtual atoms are displayed without any expansion. The "match" command can be used to resolve the returned atoms to specific installed packages. Example input/output: $ portageq expand_virtual / virtual/jre =dev-java/sun-jdk-1.6.0* $ portageq expand_virtual / virtual/jre:1.5 dev-java/gcj-jdk $ portageq expand_virtual / virtual/package-manager sys-apps/portage $ portageq expand_virtual / virtual/libc sys-libs/glibc:2.2 $ portageq expand_virtual / virtual/os-headers sys-kernel/linux-headers:0
* etc-update: add clear_term config for bug #142508Zac Medico2011-05-311-3/+4
|
* Update timestamps in headers of modified files.Zac Medico2011-05-251-1/+1
|
* repoman: pass type_name to Package constructorv2.2.0_alpha35Zac Medico2011-05-231-1/+1
|
* Fix spelling of "ambiguous".Zac Medico2011-05-221-3/+3
|
* Add FEATURES=distcc-pump support.MATSUU Takuto2011-05-201-0/+7
| | | | This will fix bug #288597.
* etc-update: clear term when appropriateZac Medico2011-05-171-1/+5
| | | | | | | 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.
* Fix some typos.Arfrever Frehtes Taifersar Arahesis2011-05-151-2/+2
|
* doebuild: use EbuildBuildDir for lockingZac Medico2011-05-071-1/+1
| | | | | | | | 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.
* 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.
* 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.
* Avoid evaluation of values of variables in set_unless_changed().Arfrever Frehtes Taifersar Arahesis2011-05-021-1/+1
|
* 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.
* repoman: remove most old-style virtual checksZac Medico2011-05-011-45/+0
| | | | | | | | | PROVIDE virtuals have been banned from Gentoo's tree (see bug #365505), so these checks aren't needed anymore. The PROVIDE.syntax check is kept in the Package class since PROVIDE is still supported for backward compatibility, and therefore invalid syntax can still have negative effects. This check can be removed if/when backward compatibilty is completely dropped.
* repoman: Check for PROVIDE.Ulrich Mueller2011-05-011-0/+5
| | | | This will fix bug #365505.
* Support multiple arguments in set_unless_changed() and unset_unless_changed().Arfrever Frehtes Taifersar Arahesis2011-05-011-18/+25
| | | | Use VARIABLE=VALUE syntax for arguments of set_unless_changed().
* Bug #365439: Add set_unless_changed() and unset_unless_changed().Arfrever Frehtes Taifersar Arahesis2011-05-012-2/+30
|
* install_qa_check(): Simplify code and make 'l' a local variable.Arfrever Frehtes Taifersar Arahesis2011-04-301-3/+3
|
* Check for references to ${ROOT} in install_qa_checks.David James2011-04-291-8/+26
| | | | | | | | | | | | | | | | | | | | | | | | When ROOT != /, binaries that reference ROOT will load their dependencies from ROOT first rather than from the system-configured path. This is a problem because the ROOT will be / on the target system. Besides the above, this patch also fixes incorrect parsing of scanelf output, where we would treat the RPATHs returned by scanelf as the names of binaries. TEST=When "stricter" FEATURE is enabled, verify that emerge fails when an ebuild references broken rpaths referencing ROOT. When "stricter" FEATURE is not enabled, verify that such references are automatically fixed. Also verify that ebuilds with non-broken RPATHs (e.g. RPATHs referencing $ORIGIN/../lib) are not touched by the change. BUG=chromium-os:14271 Change-Id: I4f29cc4ea9195a1255f080284da1f676e4a2c26b Review URL: http://codereview.chromium.org/6903153
* Move preinst/postinst_bsdflags from bash to pyDavid James2011-04-281-16/+0
| | | | | | | | | | | | | Moving these commands from shell to Python helps avoid an unnecessary call to misc-functions.sh for the postinst_bsdflags. This improves performance. BUG=none TEST=Run emerge-x86-generic -eg --jobs=16 libchrome Change-Id: I0c2af50b4d2f7644cabac84fde7fe4d682010c69 Review URL: http://codereview.chromium.org/6676107
* Bug #364467 - handle gcc-4.6-style QA warningsRyan Hill2011-04-261-18/+18
|
* ebuild(1): fix env FEATURES overrides bug #364035Zac Medico2011-04-231-4/+2
|
* repoman: cleanup gpgsignv2.2.0_alpha30Zac Medico2011-04-131-12/+23
|
* doins: tweak $DISTDIR symlink handlingZac Medico2011-04-111-2/+3
| | | | | Only match stuff inside $PORTAGE_ACTUAL_DISTDIR/ so that we don't stray from PMS.
* doins: dereference abs symlinks to filesZac Medico2011-04-111-1/+7
| | | | | | | | | Our fake $DISTDIR contains symlinks that should not be reproduced inside $D. In order to ensure that things like dodoc "$DISTDIR"/foo.pdf work as expected, we dereference symlinked files that are referenced by absolute paths. Thanks to James Cloos <cloos@jhcloos.com> for reporting this issue which he observed with the sci-mathematics/minisat ebuild.
* Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portageArfrever Frehtes Taifersar Arahesis2011-04-031-1/+1
|\
| * repoman: fix profiles.desc overlay pathZac Medico2011-04-031-1/+1
| | | | | | | | | | Thanks to Alexey Shvetsov <alexxy@gentoo.org> for reporting this issue and testing the fix.
* | Support PORTAGE_GPG_SIGNING_COMMAND variable.Arfrever Frehtes Taifersar Arahesis2011-04-031-12/+15
|/
* Minor improvements in gpgsign().Arfrever Frehtes Taifersar Arahesis2011-03-311-5/+4
| | | | repoman_settings["PORTAGE_GPG_DIR"] is always set.
* Simplify calculation of repoman_settings["PORTAGE_GPG_DIR"] in gpgsign().Arfrever Frehtes Taifersar Arahesis2011-03-301-5/+2
| | | | os.path.expanduser() works even when HOME environment variable is not set.
* Use os.path.expanduser() to simplify code.Arfrever Frehtes Taifersar Arahesis2011-03-301-4/+1
|
* emerge-webrsync: drop lzma supportZac Medico2011-03-271-4/+2
| | | | | | | | The lzma snapshots have been replaced by xz snapshots, as discussed in the "RFC: Remove .lzma in favor of .xz portage snapshots" thread on the gentoo-dev ml: http://archives.gentoo.org/gentoo-dev/msg_7de1b57ce531fdf33d33b5b070006436.xml
* Optimize ebuild.sh to cache preprocessing output.David James2011-03-231-8/+8
| | | | | | | | | | | | | Right now ebuild.sh runs preprocessing steps multiple times during the same build. It processes the same environment and produces the same output every time. This slows down the build unnecessarily. This optimization cuts build time for 50 binary packages with 16 jobs from 3m22 to 2m33 (33%). Change-Id: I72ac84cce2eb60d17736cc5f5343d4a858ec86f4 Review URL: http://codereview.chromium.org/6733008
* portageq owners: list orphans via stderrZac Medico2011-03-201-5/+21
|
* ebuild-ipc: import errnoZac Medico2011-03-171-0/+1
|
* ebuild-ipc: use non-blocking readZac Medico2011-03-171-13/+41
| | | | | | | | | | | | This makes it possible for the daemon to send a reply without blocking, thereby improving performance and also making it possible for the daemon to do a non-blocking write without a race condition. This reverts part of commit 81fc303212b8379219cf5d463c8717359b972dba, which probably didn't help portability anyway. Now, ebuild-ipc is using non-blocking read with os.read and EAGAIN handling, just like EbuildIpcDaemon since commit 7e5b81da12dd7bd59f6620840dc0d824e3f4d69a (known compatible with FreeBSD).
* ebuild-ipc: use plain file read instead of arrayZac Medico2011-03-101-9/+6
| | | | | Array.fromfile() seems to be more error prone. For example, see bug 337465.
* dodoc: update copyright datev2.2.0_alpha26Zac Medico2011-03-011-1/+1
|
* ebuild(1): fix ebuild modification checkZac Medico2011-03-011-12/+13
| | | | | | This has been broken since the setcpv call (triggering metadata generation) was added before it in commit 0b39d24bb8270e5c89eaddfd1f5a4181cf9e31d3.
* ebuild(1): apply package.env earlierZac Medico2011-02-281-6/+22
| | | | This makes it possible to override PORTAGE_TMPDIR.
* repoman: add back portage.internal checkZac Medico2011-02-251-0/+2
| | | | | | This check got removed for bug #262365, but now that EAPI 4 is released we can add it back. Now it checks for ecompress/ecompressdir too (for bug #218347).
* doins: fix dodoc directory error handlingZac Medico2011-02-251-0/+4
|
* doins: avoid die when called as dodoc with no argZac Medico2011-02-251-11/+11
|
* dodoc: call doins, to reuse recursion codeZac Medico2011-02-252-51/+13
| | | | This will fix broken recursion logic for bug #356461.
* dodoc: quote ${0}Zac Medico2011-02-251-2/+2
|