Source: petris
Version: 1.0.1-11
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`,
petris failed to rebuild.

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

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


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

Format: 3.0 (quilt)
Source: petris
Binary: petris
Architecture: any
Version: 1.0.1-11
Maintainer: Andree Leidenfrost <and...@debian.org>
Standards-Version: 4.6.0
Build-Depends: debhelper (>= 10), libncurses5-dev
Package-List:
 petris deb games optional arch=any
Checksums-Sha1:
 3aa056d4827d71efa035f46231390e16771ccd98 11400 petris_1.0.1.orig.tar.gz
840ea23fb51bad8029b4ac1c62205480e1bd0dad 6772 petris_1.0.1-11.debian.tar.xz
Checksums-Sha256:
 33f6f0e929262314e0ab1ed81f0ad85224285398238eadcada0d5d9faa8d4dde 11400
petris_1.0.1.orig.tar.gz
 adac85873f4054c1aadd3db9de5d449258eb9bd8b9c993e46201a56c8f65879b 6772
petris_1.0.1-11.debian.tar.xz
Files:
 36ce4098c5305606ebbb66641eb9cea3 11400 petris_1.0.1.orig.tar.gz
 353625ac40810f06dddbd61a1492a8d6 6772 petris_1.0.1-11.debian.tar.xz


gpgv: Signature made Sun Nov  7 22:01:45 2021 UTC
gpgv:                using RSA key 418EE169FC4B17E2A06DBD229C0B90A8C51C3C58
gpgv:                issuer "and...@debian.org"
gpgv: Can't check signature: No public key
dpkg-source: warning: cannot verify inline signature for ./
petris_1.0.1-11.dsc: no acceptable signature found
dpkg-source: info: extracting petris in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking petris_1.0.1.orig.tar.gz
dpkg-source: info: unpacking petris_1.0.1-11.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying use-variables-in-Makefile.patch
dpkg-source: info: applying fix-highscore-location.patch
dpkg-source: info: applying fix-highscore-string-handling.patch
dpkg-source: info: applying fix-initialisation-and-error-handling.patch
dpkg-source: info: applying fix-format-security-error.patch
dpkg-source: info: applying fix-termianl-typo.patch

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

Sufficient free space for build

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

APT_CONFIG=/var/lib/sbuild/apt.conf
HOME=/sbuild-nonexistent
LANG=en_US.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 petris
dpkg-buildpackage: info: source version 1.0.1-11
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Andree Leidenfrost
<and...@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
dh clean    dh_auto_clean
        make -j8 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f main.o game.o highscore.o
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules binary
dh binary    dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   dh_auto_build
        make -j8
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/
<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -
Wformat -Werror=format-security -mbranch-protection=standard -Wall -c main.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/
<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -
Wformat -Werror=format-security -mbranch-protection=standard -Wall -c game.c
cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/
<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -
Wformat -Werror=format-security -mbranch-protection=standard -Wall -c
highscore.c
cc -o petris main.o game.o highscore.o -lncurses
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test
   create-stamp debian/debhelper-build-stamp
   dh_prep
   dh_installdirs
   dh_auto_install --destdir=debian/petris/
   dh_install
   dh_installdocs
   dh_installchangelogs
   dh_installman
   dh_icons
   dh_perl
   dh_link
   dh_strip_nondeterminism
   dh_compress
   debian/rules override_dh_fixperms
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_fixperms
chgrp games /<<PKGBUILDDIR>>/debian/petris/usr/games/petris
chgrp: changing group of '/<<PKGBUILDDIR>>/debian/petris/usr/games/
petris': Operation not permitted
make[1]: *** [debian/rules:16: override_dh_fixperms] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:10: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-17T19:20:31Z

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


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