Source: statnews
Version: 2.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`,
statnews failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]

+------------------------------------------------------------------------------+
| Build
                                                                       |
+------------------------------------------------------------------------------+


Unpack source
-------------

Format: 3.0 (native)
Source: statnews
Binary: statnews
Architecture: all
Version: 2.6
Maintainer: Davide G. M. Salvetti <sa...@debian.org>
Homepage: https://savannah.nongnu.org/projects/statnews
Standards-Version: 3.9.8
Build-Depends-Indep: debhelper (>= 9), eperl, perl
Package-List:
 statnews deb news optional arch=all
Checksums-Sha1:
 94837d90471a8c1b325866050a523fdd0db77d40 20636 statnews_2.6.tar.xz
Checksums-Sha256:
 0d605586f68a30a7a9dcc238a3b25afec269dbb45056f03dc30adf75b94a9704 20636
statnews_2.6.tar.xz
Files:
 ba2ace6dd86e04cc257c8b654016255a 20636 statnews_2.6.tar.xz


gpgv: Signature made Sun Jan 15 21:35:02 2017 UTC
gpgv:                using RSA key 8DE38CCA640823EB343C96B52EC615B2E8D3A535
gpgv: Can't check signature: No public key
dpkg-source: warning: cannot verify inline signature for ./
statnews_2.6.dsc: no acceptable signature found
dpkg-source: info: extracting statnews in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking statnews_2.6.tar.xz

Check disk space
----------------

Sufficient free space for build

User Environment
----------------

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=C.UTF-8
LC_ALL=C.UTF-8
LOGNAME=debusine-worker
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
SHELL=/bin/sh
USER=debusine-worker

dpkg-buildpackage
-----------------

Command: dpkg-buildpackage -us -uc -b -rfakeroot
dpkg-buildpackage: info: source package statnews
dpkg-buildpackage: info: source version 2.6
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Davide G. M. Salvetti
<sa...@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
/bin/bash: line 1: git: command not found
dh clean
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_auto_clean
dh_auto_clean: warning: Compatibility levels before 10 are deprecated
(level 9 in use)
        make -j1 distclean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f statnews.1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
dh_clean: warning: Compatibility levels before 10 are deprecated (level
9 in use)
 debian/rules binary
/bin/bash: line 1: git: command not found
dh binary
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   debian/rules build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/bin/bash: line 1: git: command not found
eperl -P -o debian/README.Debian debian/README.Debian.eperl
echo debian/README.Debian \
        debian/clean > debian/clean
dh build
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
   dh_update_autotools_config
   dh_auto_configure
dh_auto_configure: warning: Compatibility levels before 10 are
deprecated (level 9 in use)
   dh_auto_build
dh_auto_build: warning: Compatibility levels before 10 are deprecated
(level 9 in use)
        make -j1
make[2]: Entering directory '/<<PKGBUILDDIR>>'
pod2man --section 1 --center "Debian GNU/Linux Manual" \
        --release "Debian Project" statnews.pl > statnews.1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test
dh_auto_test: warning: Compatibility levels before 10 are deprecated
(level 9 in use)
        make -j1 check
make[2]: Entering directory '/<<PKGBUILDDIR>>'
test -f statnews.1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_prep
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/bin/bash: line 1: git: command not found
dh_auto_install -- prefix=/usr
dh_auto_install: warning: Compatibility levels before 10 are deprecated
(level 9 in use)
        make -j1 install DESTDIR=/<<PKGBUILDDIR>>/debian/statnews
AM_UPDATE_INFO_DIR=no prefix=/usr
make[2]: Entering directory '/<<PKGBUILDDIR>>'
test -d /<<PKGBUILDDIR>>/debian/statnews/usr/bin \
        || install -o root -g root -d /<<PKGBUILDDIR>>/debian/statnews/usr/bin
install: cannot change owner and permissions of ‘/<<PKGBUILDDIR>>/
debian/statnews/usr/bin’: Operation not permitted
make[2]: *** [Makefile:45: installdirs] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_install: error: make -j1 install DESTDIR=/<<PKGBUILDDIR>>/
debian/statnews AM_UPDATE_INFO_DIR=no prefix=/usr returned exit code 2
make[1]: *** [debian/rules:45: override_dh_auto_install] Error 255
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:41: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-18T16:04:22Z

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


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/1046423.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