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

June 30th, 2012 - 09:00 am ET by Ralf Jung | Report spam
Package: devscripts
Version: 2.11.9
Severity: minor

Dear Maintainer,

tools that usually produce output with colours do not do so when run by
debuild. Examples are the cmake build system (noticeably, colours work fine
when using dpkg-buildpackage) and linitan with the --color option.
As colours are very useful to quicker see what's going on, it's desirable for
debuild not to loose that information.

Kind regards,
Ralf




/etc/devscripts.conf

~/.devscripts
DEBUILD_DPKG_BUILDPACKAGE_OPTS="-us -uc -tc -j2"
DEBUILD_LINTIAN_OPTS="--info --display-info"

Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing'), (100, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 2.6.39-rc2 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii dpkg-dev 1.16.4.3
ii libc6 2.13-33
ii perl 5.14.2-12
ii python 2.7.3~rc2-1
ii python2.7 2.7.3~rc2-2.1

Versions of packages devscripts recommends:
ii at 3.1.13-2
ii curl 7.26.0-1
ii dctrl-tools 2.22.2
ii debian-keyring 2012.06.01
ii dput 0.9.6.3
ii equivs 2.0.9
ii fakeroot 1.18.4-2
ii gnupg 1.4.12-4+b1
ii libcrypt-ssleay-perl 0.58-1
ii libdistro-info-perl 0.10
ii libjson-perl 2.53-1
ii libparse-debcontrol-perl 2.005-3
ii libsoap-lite-perl 0.714-1
ii liburi-perl 1.60-1
ii libwww-perl 6.04-1
ii lintian 2.5.8
ii man-db 2.6.2-1
ii patch 2.6.1-3
ii patchutils 0.3.2-1.1
ii python-debian 0.1.21
ii python-magic 5.11-1
ii sensible-utils 0.0.7
ii strace 4.5.20-2.3
ii unzip 6.0-6
ii wdiff 1.1.2-1
ii wget 1.13.4-3
ii xz-utils 5.1.1alpha+20120614-1

Versions of packages devscripts suggests:
ii build-essential 11.5
pn cvs-buildpackage <none>
pn devscripts-el <none>
pn gnuplot <none>
ii heirloom-mailx [mailx] 12.5-2
pn libauthen-sasl-perl <none>
ii libfile-desktopentry-perl 0.04-3
pn libnet-smtp-ssl-perl <none>
pn libterm-size-perl <none>
ii libtimedate-perl 1.2000-1
ii libyaml-syck-perl 1.20-1
pn mutt <none>
ii openssh-client [ssh-client] 1:6.0p1-2
pn svn-buildpackage <none>
ii w3m 0.5.3-8




To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 James McCoy
June 30th, 2012 - 09:10 am ET | Report spam

On Sat, Jun 30, 2012 at 02:48:55PM +0200, Ralf Jung wrote:
tools that usually produce output with colours do not do so when run by
debuild. Examples are the cmake build system (noticeably, colours work fine
when using dpkg-buildpackage) and linitan with the --color option.
As colours are very useful to quicker see what's going on, it's desirable for
debuild not to loose that information.



That's likely because they're not being run with a controlling tty.
It's pretty common for tools that used colored output to only do so when
isatty(3) returns 1.

Providing a pty for the build process (for other reasons) is something
that has been requested on IRC, too.

It's something we can look into.

Cheers,
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy






To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics