Package: libmailutils-dev Version: 1:3.4-1 Severity: serious Hello,
Invoking mailutils-config with any argument results in: $ mailutils-config --info /usr/bin/mailutils-config: 115: /usr/bin/mailutils-config: mailutils: not found This script is in fact a wrapper around the 'mailutils' tool, but the tool itself is included in another packet, mailutils. Now, installing mailutils doesn't make the situation any better: $ mailutils-config --info mailutils: don't know what info is This is because the mailutils tool is a dispatcher command that calls one of the specific standalone binaries from the pkglibexecdir to perform the requested action (see the commit 444d20f3, http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=444d20f3c). Now, none of these binaries is included in the package (nor in any other sub-package of mailutils, for that matter). The script mailutils-config is used by the AM_MAILUTILS macro, defined in /usr/share/aclocal/mailutils.m4. This means that this bug makes it impossible to build any projects that depend on Mailutils and use this macro in configure.ac to detect its presence. Therefore I qualified it as serious. To fix this, I would suggest to move usr/bin/mailutils from package 'mailutils' to 'libmailutils-dev' and to add all mailutils-* binaries from the pkglibexecdir directory. The proposed patch is attached. The patch fixes the reported bug, yet reveals another (minor) one. Please note the 'usr/lib/mailutils/mailutils/' path in the resulting libmailutils-dev.install file. This is because /usr/share/cdbs/1/class/autotools-vars.mk from cdbs sets the DEB_CONFIGURE_LIBEXECDIR variable to "\$${prefix}/lib/$(DEB_SOURCE_PACKAGE)", thereby defeating the purpose of libexecdir, for which GNU standards say that this is [t]he directory for installing executable programs to be run by other programs rather than by users. [...] The definition of 'libexecdir' is the same for all packages This looks like yet another instance of the bug fixed long ago in debhelper: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=541458. Perhaps it's worth reporting to cdbs hackers. Anyway, adding DEB_CONFIGURE_LIBEXECDIR = \$${prefix}/lib to the debian/rules will fix this as well (obviously the paths in the attached file should be changed accordingly). Best regards, Sergey
diff -pur debian-orig/libmailutils-dev.install debian/libmailutils-dev.install --- debian-orig/libmailutils-dev.install 2018-07-23 13:54:47.755922366 +0000 +++ debian/libmailutils-dev.install 2018-07-23 13:58:06.908660263 +0000 @@ -1,4 +1,6 @@ usr/bin/mailutils-config +usr/bin/mailutils +usr/lib/mailutils/mailutils/mailutils-* usr/include/mailutils/* usr/lib/*/lib*.so usr/share/aclocal/mailutils.m4 diff -pur debian-orig/mailutils.install debian/mailutils.install --- debian-orig/mailutils.install 2018-07-23 13:54:47.758922443 +0000 +++ debian/mailutils.install 2018-07-23 13:58:44.483808011 +0000 @@ -1,7 +1,6 @@ usr/bin/dotlock.mailutils usr/bin/frm.mailutils usr/bin/from.mailutils -usr/bin/mailutils usr/bin/mail.mailutils usr/bin/messages.mailutils usr/bin/mimeview