summaryrefslogtreecommitdiffstats
path: root/pym/portage/package/ebuild/prepare_build_dirs.py
Commit message (Collapse)AuthorAgeFilesLines
* Use unicode_literals more.Zac Medico2013-01-181-3/+5
| | | | | This helps to ensure consistent results, regardless of whether we're using Python 2 or Python 3.
* Add ${T}/build.log symlink to PORT_LOGDIR.Zac Medico2012-04-221-2/+20
| | | | | | This will fix bug #412865. This makes it easier on people who `emerge foo`, do stuff, `emerge foo`, do stuff, etc... to have the same path to the log in between runs.
* Use portage.shutil for safer unicode handling.Zac Medico2011-12-101-2/+1
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-251-0/+4
|
* python3.2 fixes: ResourceWarning: unclosed fileZac Medico2011-08-241-1/+1
|
* Fix log uid for logrotate-3.8 compat (bug 378451)Zac Medico2011-08-121-1/+16
| | | | | | | | | | | If PORT_LOGDIR is writable by the portage group but its uid is not portage_uid, then set the uid to portage_uid if we have privileges to do so, and also copy the uid to the logfile. This fixes logrotate chown failures during the compression phase, when it attempts to copy the uid from the logfile to a temp file. With the "su portage portage" directive and logrotate-3.8.0, logrotate's chown call during the compression phase will only succeed if the log file's uid is portage_uid.
* elog/mod_save: fix permissions for logrotateZac Medico2011-07-111-0/+5
| | | | | These permissions should be compatible with our default logrotate config as discussed in bug 374287.
* elog/mod_save: use _ensure_log_subdirsZac Medico2011-07-111-1/+1
| | | | | This fixes permission issues with category subdirectories created for FEATURES=split-elog.
* prepare_build_dirs: copy logdir group permissionsZac Medico2011-07-111-10/+33
| | | | | The gid of PORT_LOGDIR is copied to all subdirectories, along with 0x2070 mode bits if present.
* prepare_build_dirs: warn for logdir permissionZac Medico2011-07-111-2/+13
| | | | | | If there is insufficient permission to use PORT_LOGDIR or the required subdirectory, warn instead of raising an exception. Also, fall back to using $T/build.log as a last resort.
* prepare_features_dirs: fix ccache/distcc libdirZac Medico2011-06-241-2/+10
| | | | This will fix bug #355283.
* prepare_build_dirs: skip FEATURES dirs moreZac Medico2011-06-161-1/+1
| | | | | We don't need to prepare ccache/distcc FEATURES dirs for pkg_info or pkg_pretend phases. This will fix bug #371909.
* prepare_build_dirs: tolerate permission issuesZac Medico2010-10-221-2/+6
|
* Bug #324191 - Add support for FEATURES=compress-build-logs. The causesZac Medico2010-08-211-10/+19
| | | | | | | 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.
* Add a wrapper around config.features that provides the followingZac Medico2010-08-211-1/+0
| | | | | | | | | | | | | | | | enhancements: * The FEATURES variable is automatically synchronized upon modification. * Modifications result in a permanent override that will cause the change to propagate to the incremental stacking mechanism in config.regenerate(). This eliminates the need to call config.backup_changes() when FEATURES is modified, since any overrides are guaranteed to persist despite calls to config.reset(). This allows cleanup of all code that overrides FEATURES, and also allows config.regenerate() to stack FEATURES such that special cases are not needed for package.env handling inside config.setcpv().
* * Fix EROOT handling in various places in vartree.py. It should beZac Medico2010-08-201-1/+9
| | | | | | | | | 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.
* Disable EbuildIpcDaemon for now, since it seems to be triggeringZac Medico2010-08-141-19/+0
| | | | | intermittent build failures in my stage builds. For testing purposes set PORTAGE_IPC_DAEMON_ENABLE=1 to enable EbuildIpcDaemon.
* Set o-r on ipc fifos since the are sensitive to reading.Zac Medico2010-08-131-1/+1
|
* Use EbuildIpcDaemon to replace the functionality ofZac Medico2010-08-131-0/+19
| | | | EBUILD_EXIT_STATUS_FILE.
* Make prepare_build_dirs() respect FEATURES=keeptemp.Zac Medico2010-07-151-1/+1
|
* 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-0/+304
svn path=/main/trunk/; revision=15448