summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/EbuildPhase.py
Commit message (Collapse)AuthorAgeFilesLines
* test-fail-continue: mark complete, bug #452030Zac Medico2013-01-151-1/+8
|
* EbuildPhase: fix WORKDIR owner after unpackZac Medico2012-09-111-1/+4
| | | | See bug #332217, comment #24.
* EbuildPhase: simplify utime argsZac Medico2012-09-081-3/+1
|
* EbuildPhase: bump WORKDIR timestamp after unpackZac Medico2012-09-081-2/+9
| | | | This will fix bug #332217.
* Move post_src_install metadata code to one func.Zac Medico2012-06-111-2/+2
|
* Handle more import exceptions involving xml.Zac Medico2012-06-041-2/+11
| | | | See http://bugs.python.org/issue14988
* add support for compressing debug sections to save spaceMike Frysinger2012-01-141-2/+4
| | | | | | | | | | | Since binutils/gdb can compress the .debug* sections with zlib into .zdebug*, we should be able to save quite a bit of space -- on my system, I saw /usr/lib/debug/ go from ~20GB to ~7.5GB. This requires binutils/gdb to be built with USE=zlib which is why this defaults to off. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-251-2/+5
|
* Remove unneeded _unicode_decode for io.StringIO.Zac Medico2011-07-121-9/+4
| | | | | | | Since StringIO.StringIO fallback was removed in commit 5df96179611ce0e98727945b1800b43daccedfc2, we can rely on io.StringIO.getoutput() to return unicode, so there's no need to call _unicode_decode on the result.
* Remove python-2.6 StringIO.StringIO fallback.Zac Medico2011-07-121-5/+5
| | | | | | | | Since the io module in python-2.6 was broken when threading was disabled, we needed to fall back from io.StringIO to StringIO.StringIO in this case (typically just for Gentoo's stage1 and stage2 tarballs). Now that python-2.7 is stable in stages and we rely on io.open() being available, we can also rely on io.StringIO being available.
* Log maintainer info for pretend and nofetch.Zac Medico2011-07-111-4/+11
| | | | | | Also, suppress this maintainer info from going to stdout since it's intended for the log and it doesn't necessarily need to be visible elsewhere. This will fix bug #374809.
* Detect/create missing soname symlinks for libs.Zac Medico2011-06-291-0/+10
| | | | | | | This will allow us to safely use the ldconfig -X option for all ldconfig calls, an thereby avoid having ldconfig override our own soname symlink policy which allows preserve-libs to work correctly when libraries are downgraded as discussed in bug 373341.
* Add FEATURES=distcc-pump support.MATSUU Takuto2011-05-201-1/+1
| | | | This will fix bug #288597.
* EbuildPhase: fix locking for setup phaseZac Medico2011-05-151-1/+1
|
* EbuildPhase: AsynchronousLock for ebuild-locksZac Medico2011-05-151-9/+21
|
* EbuildPhase: extract binpkg env for pkg_pretendZac Medico2011-05-111-1/+1
| | | | This will fix bug #366939.
* Use EROOT with VDB_PATH in recent changes.Zac Medico2011-05-071-2/+2
|
* Rename FEATURES=no-ebuild-locks to ebuild-locks.Zac Medico2011-05-071-5/+8
|
* Use finer grained locks for install.David James2011-05-071-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* Move preinst/postinst_bsdflags from bash to pyDavid James2011-04-281-1/+6
| | | | | | | | | | | | | 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
* Update header timestamps for modified files.Zac Medico2011-03-251-1/+1
|
* MergeProcess: Fix PORTAGE_BACKGROUND/LOG_FILE useZac Medico2011-03-241-11/+18
| | | | | | | | In this subprocess we don't want PORTAGE_BACKGROUND to suppress stdout/stderr output since they are pipes. We also don't want to open PORTAGE_LOG_FILE, since it will already be opened by the parent process, so we set the PORTAGE_BACKGROUND="subprocess" value for use in conditional logging code involving PORTAGE_LOG_FILE.
* EbuildPhase: Display upstream info before setup.Michał Górny2010-12-291-0/+5
| | | | | Display upstream maintainers and bugtrackers along with Gentoo maintainers when emerging a package.
* Display relevant FEATURES before setup phaseZac Medico2010-12-211-1/+15
| | | | Thanks to Christian Ruppert <idl0r@gentoo.org> for the suggestion.
* Fix readonly variable assignment for PORTAGE_BINPKG_TMPFILE whenZac Medico2010-09-301-0/+6
| | | | ebuild(1) calls the 'package' phase.
* In EbuildPhase, don't display Repository if the value is not available.Zac Medico2010-09-251-1/+2
|
* Make EbuildPhase display "Package" and "Repository" instead of "CPV"Zac Medico2010-09-161-2/+2
| | | | and "REPO" the the start of the build log.
* Since pkg_nofetch is no longer called from fetch(), add a newZac Medico2010-09-101-1/+8
| | | | | spawn_nofetch() support for doebuild() and other fetch() callers to use.
* Move the stale elog cleanup code from AbstractEbuildProcess toZac Medico2010-09-071-0/+16
| | | | EbuildPhase.
* Replace the settings and herdstree parameters for the MetaDataXMLZac Medico2010-09-061-1/+3
| | | | | constructor with a single herds parameter that can be either a path to a herds.xml, or a pre-parsed ElementTree.
* Use metadata.xml to print maintainer information in build.logSebastian Luther2010-09-061-0/+12
|
* Make EbuildPhase._elog() use the NOCOLOR variable from self.settings,Zac Medico2010-09-051-2/+8
| | | | so presence of color in the log file is consistent.
* Take the code which displays ebuild information before pkg_setup,Zac Medico2010-09-051-0/+26
| | | | | and move it from ebuild.sh to EbuildPhase. This way we can easily use python to extend it for bug #336019.
* Remove reference to nonexistent _unlock_builddir() method inv2.2_rc73Zac Medico2010-09-011-1/+0
| | | | EbuildPhase._env_extractor_exit().
* Bug #334253 - Fix breakage in FEATURES=test-fail-continue logic.Zac Medico2010-08-241-1/+5
|
* During the post src_install QA checks, log to a temporary fileZac Medico2010-08-221-3/+48
| | | | | | 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.
* Bug #324191 - Add support for FEATURES=compress-build-logs. The causesZac Medico2010-08-211-27/+7
| | | | | | | 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.
* Move code from EbuildProcess to EbuildPhase.Zac Medico2010-08-191-3/+23
|
* Remove duplicate attributes from __slots__.Zac Medico2010-08-191-2/+1
|
* Move the code from _prepare_env_file() to a new BinpkgEnvExtractorZac Medico2010-08-181-1/+23
| | | | class.
* Make spawnebuild() use EbuildPhase to eliminate duplicate code.Zac Medico2010-08-161-5/+8
|
* Remove unused attributes from classes.Zac Medico2010-08-161-10/+8
|
* Fix output handling for FEATURES="lafilefixing".Zac Medico2010-07-121-11/+14
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Split doebuild and related code to the portage.package.ebuild module.Zac Medico2010-02-251-6/+7
| | | | svn path=/main/trunk/; revision=15448
* Bug #295715 - Implement a register_success_hook function to complementZac Medico2009-12-061-11/+22
| | | | | | | register_die_hook, and also add code to ensure the die hooks are called even when the failure is on the python side (like for file collisions). svn path=/main/trunk/; revision=14936
* Always append QA Notices resulting from the build log search to the end ofZac Medico2009-12-051-4/+11
| | | | | | the log. Thanks to Diego E. Pettenò for reporting. svn path=/main/trunk/; revision=14927
* Bug #287950 - Add support for FEATURES=fail-clean which is useful for cleaningZac Medico2009-10-071-0/+25
| | | | | | up temp files on tmpfs after build failures with --keep-going. svn path=/main/trunk/; revision=14517
* Use _encodings where appropriate.Zac Medico2009-08-191-4/+8
| | | | svn path=/main/trunk/; revision=14101
* Rename and log installed files that don't conform to portage._merge_encodingZac Medico2009-08-141-1/+10
| | | | | | (equal to sys.getfilesystemencoding()). svn path=/main/trunk/; revision=14029