[Bug 1859010] Re: MAILPROG binary '/usr/sbin/sendmail' does not exist or is not executable
Colin Watson
1859010 at bugs.launchpad.net
Tue Oct 27 13:58:07 UTC 2020
This seems to be partially non-deterministic, which explains why Brian
couldn't reproduce it. Firstly, you'll need to have $mailto set in
.sbuildrc. After that, Sbuild::ConfBase::read generates an
initialisation script that sets keys in the order returned by
$conf->get_keys(), which is keys(%{$self->{'KEYS'}}) so depends on hash
iteration order. You'll only hit this if MAILTO is set before MAILPROG.
libsbuild-perl now only declares "Suggests: default-mta | mail-
transport-agent" while it used to declare "Recommends: exim4 | mail-
transport-agent", so I think the intent is for this to be optional
unless you've set $mailto, which doesn't seem entirely unreasonable.
The main bug here seems to be the non-determinism, which makes the
behaviour extremely confusing.
** Changed in: sbuild (Ubuntu)
Status: Expired => Triaged
** Changed in: sbuild (Ubuntu Focal)
Status: Expired => Triaged
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sbuild in Ubuntu.
https://bugs.launchpad.net/bugs/1859010
Title:
MAILPROG binary '/usr/sbin/sendmail' does not exist or is not
executable
Status in sbuild package in Ubuntu:
Triaged
Status in sbuild source package in Focal:
Triaged
Bug description:
[Release info]
sb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Focal Fossa (development branch)
Release: 20.04
Codename: focal
[Issue/BUG?]
While build anything in a schroot, sbuild fails because sendmail is not installed
[Scenario]
I'm having this issue in Focal when trying to build anything in a schroot env.
Even if I try to see sbuild version the error happens:
sbuild --version
Error reading configuration: MAILPROG binary '/usr/sbin/sendmail' does not exist or is not executable at /usr/share/perl5/Sbuild/ConfBase.pm line 59.
Here is while trying to build pkg:
sbuild command is: /usr/bin/sbuild --chroot-setup-commands /tmp/umt-gcedvijf --no-apt-update --no-apt-upgrade --no-apt-distupgrade -d precise-esm-amd64 -A --build-dep-resolver=aptitude php5_5.3.10-1ubuntu3.41.dsc
Error reading configuration: MAILPROG binary '/usr/sbin/sendmail' does not exist or is not executable at /usr/share/perl5/Sbuild/ConfBase.pm line 59.
[Fix/Workround]
Problem can be fixed/workrounded installing sendmail in the host machine, but it's weirdo that sbuild needs sendmail, and if so, why?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sbuild/+bug/1859010/+subscriptions
More information about the foundations-bugs
mailing list