[buildd-tools-devel] [GIT] sbuild branch master updated. release/sbuild-0.71.0-10-g4a51997
Johannes Schauer
josch at moszumanska.debian.org
Sat Sep 24 06:13:09 UTC 2016
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "sbuild".
The branch, master has been updated
via 4a5199712e749ba975657f41ebdb8a8e85f7f7e3 (commit)
from d8239652bbb6e0f4ba7c17bd932c289e12af4194 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 4a5199712e749ba975657f41ebdb8a8e85f7f7e3
Author: Johannes 'josch' Schauer <josch at mister-muffin.de>
Date: Sat Sep 24 08:05:45 2016 +0200
Stop depending on newlines being produced by the build to detect timeouts
Before this commit, sbuild would read the combined output of
dpkg-buildpackage line-by line. Only when a new line was encountered
would it reset the timeout to kill the build for inactivity. This means,
that processes that produce data on standard output or standard error
but do not include a newline will still get killed after a timeout as no
reset happens despite data being written.
This commit fixes this behaviour. Instead of reading the output of
dpkg-buildpackage line-by-line, we use sysread to acquire data once it
is available. This will reset the timeout every time data is produced by
the build process and not require a newline character to be produced.
As a side-effect, this also allows us to special-case the \r character
as it is used in progress meters for example. If an \r character is
produced, sbuild will now treat it as a line terminator and thus
effectively replace it by a \n in the build log.
-----------------------------------------------------------------------
Summary of changes:
lib/Sbuild/Build.pm | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 56 insertions(+), 2 deletions(-)
hooks/post-receive
--
sbuild
More information about the Buildd-tools-devel
mailing list