aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2020-06-23 10:55:53 -0700
committerZac Medico <zmedico@gentoo.org>2020-06-23 11:00:24 -0700
commit0418f10fdfc25c27d0b15ebca52a0bbe8119b55b (patch)
tree081753db28438e19dfb2acac48ead3d520c5abcc /lib/_emerge
parentrepoman: Update for a repoman-2.3.23 release (diff)
downloadportage-0418f10fdfc25c27d0b15ebca52a0bbe8119b55b.tar.gz
portage-0418f10fdfc25c27d0b15ebca52a0bbe8119b55b.tar.bz2
portage-0418f10fdfc25c27d0b15ebca52a0bbe8119b55b.zip
EbuildPhase._elog: _set_nonblocking(build_logger.stdin.fileno())
Fixes: dd69ce742c62 ("Support PORTAGE_LOG_FILTER_FILE_CMD (bug 709746)") Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/_emerge')
-rw-r--r--lib/_emerge/EbuildPhase.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/_emerge/EbuildPhase.py b/lib/_emerge/EbuildPhase.py
index ddb3dc719..92335b6c0 100644
--- a/lib/_emerge/EbuildPhase.py
+++ b/lib/_emerge/EbuildPhase.py
@@ -47,7 +47,8 @@ portage.proxy.lazyimport.lazyimport(globals(),
'_post_src_install_soname_symlinks,' + \
'_post_src_install_uid_fix,_postinst_bsdflags,' + \
'_post_src_install_write_metadata,' + \
- '_preinst_bsdflags'
+ '_preinst_bsdflags',
+ 'portage.util.futures.unix_events:_set_nonblocking',
)
from portage import os
from portage import _encodings
@@ -433,6 +434,7 @@ class EbuildPhase(CompositeTask):
log_filter_file=self.settings.get('PORTAGE_LOG_FILTER_FILE_CMD'),
scheduler=self.scheduler)
build_logger.start()
+ _set_nonblocking(build_logger.stdin.fileno())
log_file = build_logger.stdin
yield self.scheduler.async_output(msg, log_file=log_file,