Package: src:opendmarc
Version: 1.3.2~Beta0+dfsg-2
Severity: serious

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep  --with quilt, --with autoreconf --parallel
   dh_testdir -i -O--parallel
   dh_update_autotools_config -i -O--parallel
   dh_quilt_patch -i -O--parallel
Applying patch fix-python-interpreter.diff
patching file contrib/rddmarc/dmarcfail.py

Applying patch ticket153.patch
patching file reports/opendmarc-reports.in

Applying patch ticket166.patch
patching file reports/opendmarc-reports.in

[... snipped ...]

make[3]: Leaving directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/reports'
make[2]: Leaving directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/reports'
Making install in opendmarc
make[2]: Entering directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/opendmarc'
Making install in tests
make[3]: Entering directory 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/opendmarc/tests'
make[4]: Entering directory 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/opendmarc/tests'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/opendmarc/tests'
make[3]: Leaving directory 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/opendmarc/tests'
make[3]: Entering directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/opendmarc'
make[4]: Entering directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/opendmarc'
 /bin/mkdir -p '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/sbin'
  /bin/sh ../libtool   --mode=install /usr/bin/install -c opendmarc 
opendmarc-check '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/sbin'
libtool: warning: '../libopendmarc/libopendmarc.la' has not been installed in 
'/usr/lib'
libtool: install: /usr/bin/install -c .libs/opendmarc 
/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/sbin/opendmarc
libtool: warning: '../libopendmarc/libopendmarc.la' has not been installed in 
'/usr/lib'
libtool: install: /usr/bin/install -c .libs/opendmarc-check 
/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/sbin/opendmarc-check
 /bin/mkdir -p 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/share/doc/opendmarc'
 /usr/bin/install -c -m 644 opendmarc.conf.sample 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/share/doc/opendmarc'
 /bin/mkdir -p 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/share/man/man5'
 /usr/bin/install -c -m 644 opendmarc.conf.5 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/share/man/man5'
 /bin/mkdir -p 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/share/man/man8'
 /usr/bin/install -c -m 644 opendmarc.8 opendmarc-check.8 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/share/man/man8'
make[4]: Leaving directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/opendmarc'
make[3]: Leaving directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/opendmarc'
make[2]: Leaving directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/opendmarc'
make[2]: Entering directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg'
make[3]: Entering directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg'
make[3]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/share/doc/opendmarc'
 /usr/bin/install -c -m 644 LICENSE LICENSE.Sendmail 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/tmp/usr/share/doc/opendmarc'
make[3]: Leaving directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg'
make[2]: Leaving directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg'
make[1]: Leaving directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg'
   debian/rules override_dh_install
make[1]: Entering directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg'
dh_install
chmod +x 
/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/opendmarc/lib/opendmarc/opendmarc.service.generate
chmod: cannot access 
'/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg/debian/opendmarc/lib/opendmarc/opendmarc.service.generate':
 No such file or directory
debian/rules:25: recipe for target 'override_dh_install' failed
make[1]: *** [override_dh_install] Error 1
make[1]: Leaving directory '/<<BUILDDIR>>/opendmarc-1.3.2~Beta0+dfsg'
debian/rules:4: recipe for target 'binary-indep' failed
make: *** [binary-indep] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary-indep gave error exit 
status 2
--------------------------------------------------------------------------------

This happens because we are creating arch-independent packages only,
so debian/opendmarc/[...] does not exist and chmod fails.

The trivial fix is to do the chmod only when creating arch-dependent packages.

The patch below might work, but I've not actually tested.

Please consider uploading in source-only form, so that this kind of bugs
do not propagate to testing.

Thanks.

--- a/debian/rules
+++ b/debian/rules
@@ -21,8 +21,8 @@ override_dh_auto_configure:
                --with-spf2-lib=\$${prefix}/lib \
                --with-sql-backend
 
-override_dh_install:
-       dh_install
+override_dh_fixperms-arch:
+       dh_fixperms
        chmod +x 
$(CURDIR)/debian/opendmarc/lib/opendmarc/opendmarc.service.generate
 
 override_dh_installchangelogs:

Reply via email to