Bug#679645: devscripts: debuild does not properly forward coloured output

Martin-Éric Racine martin-eric.racine at iki.fi
Thu Feb 23 12:32:03 UTC 2017


2017-02-23 14:27 GMT+02:00 James McCoy <jamessan at debian.org>:
> On Thu, Feb 23, 2017 at 11:55:04AM +0000, Martin-Éric Racine wrote:
>> Basically, if
>> dpkg-buildpackage finds the terminal and enables colors accordingly,
>> there is no reason for debuild to fail at finding the terminal and
>> asking dpkg to run in colorized mode.
>
> debuild isn't failing at that.  It's attaching file descriptors to
> dpkg-buildpackage's stdout/stderr to be able to tee dpkg-buildpackage's
> output into the build log.  Therefore, dpkg-buildpackage doesn't detect
> that it's being run in a terminal.

We obviously don't want VT color escape codes in the log, so we have
to sacrifice visual feedback in the process.  Oh well...

Could this be better documented, perhaps in debuild's man page?

Cheers!
Martin-Éric



More information about the devscripts-devel mailing list