Hi,

On 07/08/17 at 14:32 -0400, Yaroslav Halchenko wrote:
> severity 871371 important
> tags 871371 + unreproducible
> thanks
> 
> Ran rebuild which succeeded just fine on up to date sid for both amd64
> and i386 (binary only)
> 
> Would need to be able to reproduce to figure out WTF

I could reproduce it using sbuild (on a different setup).

The root cause is that you use help2man to generate manpages, but
help2man expects both --help and --version to work. And
'run-singularity --version' doesn't work:
$ run-singularity --version
ERROR: Unknown option: --version

That shows in the manpage for run-singularity, that contains garbage as
version number (see man run-singularity | tail -1). This garbage comes
from a call to tput to colorize the error message.

For some reason, this triggers a build failure in sbuild, but not when I
run debian/generate_manpages manually. help2man does some magic with the
output of 'command --version', which I did not fully understand due to
my limited perl-fu. The relevant code is:

# Call program with given option and return results.
sub get_option_value
{
    my ($prog, $opt) = @_;
    my $stderr = $discard_stderr ? '/dev/null' : '&1';
    my $value = join '',
        map { s/ +$//; expand $_ }
        map { dec $_ }
        `$prog $opt 2>$stderr`;

    unless ($value)
    {
        my $err = N_("%s: can't get `%s' info from %s%s");
        my $extra = $discard_stderr
            ? "\n" . N_("Try `--no-discard-stderr' if option outputs to stderr")
            : '';

        kark $err, $this_program, $opt, $prog, $extra;
    }

    $value;
}

- Lucas

Reply via email to