Source: nullmailer
Version: 1:2.2+10~g7ed88a0-6
Severity: important
Tags: ftbfs
Justification: FTBFS
X-Debbugs-Cc: ni...@thykier.net
User: ni...@thykier.net
Usertags: rrr-no-as-default-issue

Dear maintainer,

During a test rebuild for building packages with
`Rules-Requires-Root: no` as the default in `dpkg`,
nullmailer failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
sed -e 's,[@]SRCDIR[@],/<<PKGBUILDDIR>>,g; s,[@]BUILDDIR[@],/<<PKGBUILDDIR>>,g;' < functions.in > functions g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -fno-rtti -fno-exceptions -W -Wall -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -o clitest1 clitest1-clitest.o ../lib/libnullmailer.a ../lib/cli++/libcli++.a g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -fno-rtti -fno-exceptions -W -Wall -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -o clitest0 clitest0-clitest.o ../lib/libnullmailer.a ../lib/cli++/libcli++.a g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -fno-rtti -fno-exceptions -W -Wall -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -o argparse-test argparse-test.o ../lib/libnullmailer.a g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -fno-rtti -fno-exceptions -W -Wall -Wl,-z,relro -Wl,-z,now -Wl,-z,defs -Wl,--as-needed -o address-test address-test.o ../lib/libnullmailer.a make[3]: Leaving directory '/<<PKGBUILDDIR>>/test'
make[3]: Entering directory '/<<PKGBUILDDIR>>'
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
test suite disabled due to archive wide breakage 2024/04/11
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   create-stamp debian/debhelper-build-stamp
   debian/rules override_dh_prep
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_prep
debconf-updatepo
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_installdirs
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_install
make -j8 install DESTDIR=/<<BUILDDIR>>/nullmailer-2.2\+10\~g7ed88a0/debian/nullmailer AM_UPDATE_INFO_DIR=no
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making install in doc
make[3]: Entering directory '/<<PKGBUILDDIR>>/doc'
make[4]: Entering directory '/<<PKGBUILDDIR>>/doc'
make[4]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/nullmailer/usr/share/man/man1'
 /usr/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/nullmailer/usr/share/man/man7'
 /usr/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/nullmailer/usr/share/man/man8'
/usr/bin/install -c -m 644 nullmailer-dsn.1 nullmailer-inject.1 sendmail.1 '/<<PKGBUILDDIR>>/debian/nullmailer/usr/share/man/man1' /usr/bin/install -c -m 644 nullmailer.7 '/<<PKGBUILDDIR>>/debian/nullmailer/usr/share/man/man7' /usr/bin/install -c -m 644 nullmailer-queue.8 nullmailer-send.8 '/<<PKGBUILDDIR>>/debian/nullmailer/usr/share/man/man8'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/doc'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/doc'
Making install in lib
make[3]: Entering directory '/<<PKGBUILDDIR>>/lib'
Making install in cli++
make[4]: Entering directory '/<<PKGBUILDDIR>>/lib/cli++'
make[5]: Entering directory '/<<PKGBUILDDIR>>/lib/cli++'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/<<PKGBUILDDIR>>/lib/cli++'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/lib/cli++'
Making install in fdbuf
make[4]: Entering directory '/<<PKGBUILDDIR>>/lib/fdbuf'
make[5]: Entering directory '/<<PKGBUILDDIR>>/lib/fdbuf'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/<<PKGBUILDDIR>>/lib/fdbuf'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/lib/fdbuf'
Making install in mystring
make[4]: Entering directory '/<<PKGBUILDDIR>>/lib/mystring'
make[5]: Entering directory '/<<PKGBUILDDIR>>/lib/mystring'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/<<PKGBUILDDIR>>/lib/mystring'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/lib/mystring'
make[4]: Entering directory '/<<PKGBUILDDIR>>/lib'
make[5]: Entering directory '/<<PKGBUILDDIR>>/lib'
make[5]: Nothing to be done for 'install-exec-am'.
make[5]: Nothing to be done for 'install-data-am'.
make[5]: Leaving directory '/<<PKGBUILDDIR>>/lib'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/lib'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/lib'
Making install in protocols
make[3]: Entering directory '/<<PKGBUILDDIR>>/protocols'
make[4]: Entering directory '/<<PKGBUILDDIR>>/protocols'
make[4]: Nothing to be done for 'install-data-am'.
 /usr/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/nullmailer/usr/lib/nullmailer'
/usr/bin/install -c smtp qmqp '/<<PKGBUILDDIR>>/debian/nullmailer/usr/lib/nullmailer'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/protocols'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/protocols'
Making install in src
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
make[4]: Entering directory '/<<PKGBUILDDIR>>/src'
make[4]: Nothing to be done for 'install-data-am'.
 /usr/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/nullmailer/usr/bin'
 /usr/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/nullmailer/usr/sbin'
/usr/bin/install -c mailq nullmailer-dsn nullmailer-inject nullmailer-smtpd '/<<PKGBUILDDIR>>/debian/nullmailer/usr/bin' /usr/bin/install -c nullmailer-queue nullmailer-send sendmail '/<<PKGBUILDDIR>>/debian/nullmailer/usr/sbin'
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
Making install in test
make[3]: Entering directory '/<<PKGBUILDDIR>>/test'
make[4]: Entering directory '/<<PKGBUILDDIR>>/test'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/<<PKGBUILDDIR>>/test'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/test'
make[3]: Entering directory '/<<PKGBUILDDIR>>'
make[4]: Entering directory '/<<PKGBUILDDIR>>'
make[4]: Nothing to be done for 'install-exec-am'.
/bin/bash /<<PKGBUILDDIR>>/install-sh -d /<<PKGBUILDDIR>>/debian/nullmailer/var/spool/nullmailer/failed
chmod 700 /<<PKGBUILDDIR>>/debian/nullmailer/var/spool/nullmailer/failed
/bin/bash /<<PKGBUILDDIR>>/install-sh -d /<<PKGBUILDDIR>>/debian/nullmailer/var/spool/nullmailer/queue
chmod 700 /<<PKGBUILDDIR>>/debian/nullmailer/var/spool/nullmailer/queue
/bin/bash /<<PKGBUILDDIR>>/install-sh -d /<<PKGBUILDDIR>>/debian/nullmailer/var/spool/nullmailer/tmp
chmod 700 /<<PKGBUILDDIR>>/debian/nullmailer/var/spool/nullmailer/tmp
/bin/bash /<<PKGBUILDDIR>>/install-sh -d /<<PKGBUILDDIR>>/debian/nullmailer/etc/nullmailer /usr/bin/rm -f /<<PKGBUILDDIR>>/debian/nullmailer/var/spool/nullmailer/trigger
mkfifo /<<PKGBUILDDIR>>/debian/nullmailer/var/spool/nullmailer/trigger
chmod 600 /<<PKGBUILDDIR>>/debian/nullmailer/var/spool/nullmailer/trigger
make[4]: Leaving directory '/<<PKGBUILDDIR>>'
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
rm -f /<<PKGBUILDDIR>>/debian/nullmailer/var/spool/nullmailer/trigger
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_install
   dh_installdocs
   debian/rules override_dh_installchangelogs
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_installchangelogs -k NEWS
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_installman
   dh_installdebconf
   dh_systemd_enable
   dh_installinit
   debian/rules override_dh_systemd_start
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_systemd_start --no-restart-after-upgrade
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_lintian
   dh_perl
   dh_link
   dh_strip_nondeterminism
   dh_compress
   debian/rules override_dh_fixperms
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_fixperms
chown mail /<<PKGBUILDDIR>>/debian/nullmailer/usr/sbin/nullmailer-queue /<<PKGBUILDDIR>>/debian/nullmailer/usr/bin/mailq chown: changing ownership of '/<<PKGBUILDDIR>>/debian/nullmailer/usr/sbin/nullmailer-queue': Operation not permitted chown: changing ownership of '/<<PKGBUILDDIR>>/debian/nullmailer/usr/bin/mailq': Operation not permitted
make[1]: *** [debian/rules:45: override_dh_fixperms] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:11: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-17T15:06:08Z

-------------------------------------------------------------------------------


The above is just how the build ends and not necessarily the most
relevant part. If required, the full build log is available here:

https://people.debian.org/~nthykier/rrr-no-as-default/logs/1025203.gz

You can find common solutions at
https://people.debian.org/~nthykier/rrr-no-as-default/docs/solutions.md

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

If this package is listed in
https://people.debian.org/~nthykier/rrr-no-as-default/docs/static-ownership.list,
then please just set `Rules-Requires-Root: binary-targets` to the source
stanza of `debian/control` as a fix to this bug.

If this package is listed in
https://people.debian.org/~nthykier/rrr-no-as-default/docs/maybe-misbuilds.list,
then the package was deemed at risk for misbuilding (having wrong
ownership) but had a FTBFS problem we tested it. Please test whether the
package works with `Rules-Requires-Root: no` validating that the
resulting deb has the correct ownership for all paths in the deb.

The goal is to have the default changed in `dpkg` either in `Trixie` or
`Forky`, depending on progress and feasibility with the release schedule
for Trixie.

For more information on this bug filing, please see:
https://lists.debian.org/debian-dpkg/2024/11/msg00016.html

Thanks,


PS: The builds were performed in mid-November. If you fixed the problem
between between then and this bug being filed, then please just close
the bug with the version it was fixed in.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to