Source: animals
Version: 201207131226-2.2
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`,
animals failed to rebuild.

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

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


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

Format: 3.0 (quilt)
Source: animals
Binary: animals
Architecture: any
Version: 201207131226-2.2
Maintainer: Alberto Fuentes <paj...@gmail.com>
Homepage: http://software.keep-cool.org/animals.html
Standards-Version: 3.9.3
Build-Depends: debhelper (>= 9), libdb5.3++-dev
Package-List:
 animals deb games optional arch=any
Checksums-Sha1:
 b30d8b88490d8001c15a9df09470d974d68ac6d2 17967
animals_201207131226.orig.tar.gz
 8507c12b394e13bf98ce8bc15fd527a58f2394a5 4868
animals_201207131226-2.2.debian.tar.xz
Checksums-Sha256:
 d992beb5ca4e4d795ce1133001de507d480b14fdc5a27a514c176ef99eaff21e 17967
animals_201207131226.orig.tar.gz
 98983e54ca5ae6a4a0325f0f54a400c65e20254c753b953d197033eeb7d88657 4868
animals_201207131226-2.2.debian.tar.xz
Files:
 abe0ea176ad59979c1338ebac552189d 17967 animals_201207131226.orig.tar.gz
 438d5063ad341bdb81fdde9fa2b6d7e4 4868
animals_201207131226-2.2.debian.tar.xz


gpgv: Signature made Wed Oct 25 22:59:15 2023 UTC
gpgv:                using RSA key 406220C8B8552802378CCE411F5C7A8B45564314
gpgv:                issuer "b...@debian.org"
gpgv: Can't check signature: No public key
dpkg-source: warning: cannot verify inline signature for ./
animals_201207131226-2.2.dsc: no acceptable signature found
dpkg-source: info: extracting animals in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking animals_201207131226.orig.tar.gz
dpkg-source: info: unpacking animals_201207131226-2.2.debian.tar.xz

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 animals
dpkg-buildpackage: info: source version 201207131226-2.2
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Bastian Germann <b...@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
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 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f animals test test-str-cvt *.o *~ core
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
dh_clean: warning: Compatibility levels before 10 are deprecated (level
9 in use)
 debian/rules binary
dh binary
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[1]: Entering directory '/<<PKGBUILDDIR>>'
g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-fstack-clash-protection -Wformat -Werror=format-security -mbranch-
protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DDbName=\"/
var/games/animals/animals.db\"  -c -o main.o main.cc
In file included from main.cc:20:
Record.h: In member function ‘virtual const char*
Record::FormNewDataCString() const’:
Record.h:54:5: warning: no return statement in function returning non-
void [-Wreturn-type]
   54 |     }
      |     ^
g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-fstack-clash-protection -Wformat -Werror=format-security -mbranch-
protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DDbName=\"/
var/games/animals/animals.db\"  -c -o db4++-stuff.o db4++-stuff.cc
g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-fstack-clash-protection -Wformat -Werror=format-security -mbranch-
protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DDbName=\"/
var/games/animals/animals.db\"  -c -o str-conversions.o str-conversions.cc
g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-fstack-clash-protection -Wformat -Werror=format-security -mbranch-
protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DDbName=\"/
var/games/animals/animals.db\"  -c -o util.o util.cc
g++ -Wl,-z,relro -O2 -g -Wall -Wextra -o animals main.o db4++-stuff.o
str-conversions.o util.o -ldb_cxx
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test
dh_auto_test: warning: Compatibility levels before 10 are deprecated
(level 9 in use)
        make -j1 test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
g++ -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong
-fstack-clash-protection -Wformat -Werror=format-security -mbranch-
protection=standard -Wdate-time -D_FORTIFY_SOURCE=2 -O2 -g -DDbName=\"/
var/games/animals/animals.db\"  -c -o test.o test.cc
In file included from test.cc:23:
Record.h: In member function ‘virtual const char*
Record::FormNewDataCString() const’:
Record.h:54:5: warning: no return statement in function returning non-
void [-Wreturn-type]
   54 |     }
      |     ^
g++ -Wl,-z,relro -O2 -g -Wall -Wextra -o test test.o db4++-stuff.o str-
conversions.o -ldb_cxx
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_prep
   dh_auto_install --destdir=debian/animals/
dh_auto_install: warning: Compatibility levels before 10 are deprecated
(level 9 in use)
        make -j1 install DESTDIR=/<<PKGBUILDDIR>>/debian/animals
AM_UPDATE_INFO_DIR=no
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p /<<PKGBUILDDIR>>/debian/animals/usr/games
mkdir -p /<<PKGBUILDDIR>>/debian/animals/var/games/animals
mkdir -p /<<PKGBUILDDIR>>/debian/animals/usr/share/man/man6
cp animals /<<PKGBUILDDIR>>/debian/animals/usr/games/animals
cp animals.6 /<<PKGBUILDDIR>>/debian/animals/usr/share/man/man6
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_installdocs
dh_installdocs: warning: Compatibility levels before 10 are deprecated
(level 9 in use)
   dh_installchangelogs
dh_installchangelogs: warning: Compatibility levels before 10 are
deprecated (level 9 in use)
   dh_installman
dh_installman: warning: Compatibility levels before 10 are deprecated
(level 9 in use)
   dh_lintian
dh_lintian: warning: Compatibility levels before 10 are deprecated
(level 9 in use)
   dh_perl
   dh_link
dh_link: warning: Compatibility levels before 10 are deprecated (level 9
in use)
   dh_strip_nondeterminism
   dh_compress
dh_compress: warning: Compatibility levels before 10 are deprecated
(level 9 in use)
   debian/rules override_dh_fixperms
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_fixperms
chown games:games /<<PKGBUILDDIR>>/debian/animals/var/games/animals
chown: changing ownership of '/<<PKGBUILDDIR>>/debian/animals/var/games/
animals': Operation not permitted
make[1]: *** [debian/rules:13: override_dh_fixperms] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-15T18:42:56Z

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


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

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