[buildd-tools-devel] Bug#823788: Bug#823788: Bug#823788: sbuild: non-error on stderr: "There are no foreign architectures configured"

Johannes Schauer josch at debian.org
Tue May 10 06:07:37 UTC 2016


Control: tag -1 + pending

Hi,

Quoting Adam Borowski (2016-05-09 22:52:37)
> Correction: turns out this happens with sbuild-update but _not_ sbuild
> itself.  I have no idea how I got the impression it's the case, sorry for
> wasting your time with this part.

I now also know the reason for it: sbuild-update doesn't use the logger that
sbuild does. So the same function executed by sbuild has a different effect
concerning stderr than when that function is executed by sbuild-update.

> Nope, nothing of these goes to stderr:

Right, everything goes through the logger and thus to stdout and the log file.

> FTBFS ("attempted"):
> [/tmp]$ sbuild debdry >/dev/null; echo $?
> 2
> 
> In the last case sbuild is even too unchatty.

I also fixed this in git.

> It'd be nice if you could prefix "There are no foreign architectures configured"
> with an "I: ", it currently sounds like a warning of some kind.

That would still let it be output during sbuild-update. I demoted it even
further to debug level to make sure it doesn't get printed during an
sbuild-update run.

> Neither sbuild nor sbuild-update put information to stderr, except for this
> new message in sbuild-update.

I can see that now.

> In my case, crontab with:
> 
> 5 3,15 * * *    sbuild-update -udcar jessie stretch unstable >/dev/null
> 
> I'd think a good part of sbuild users run sbuild-update from cron like this,
> at least this seems a natural thing to do.

There is now also a new script /usr/share/doc/sbuild/examples/sbuild-update-all
which you might want to try out in cron.

> sbuild-update -udcar unstable >/dev/null
> which should say nothing unless there's an error, but currently emits this
> line.

I fixed this in git and will soon apply that as a patch to sbuild in unstable.
Thanks!

> Meow!

cheers!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20160510/3b3b5092/attachment.sig>


More information about the Buildd-tools-devel mailing list