Source: restartd
Version: 0.2.3-1.1
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`,
restartd failed to rebuild.

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

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


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

Format: 3.0 (quilt)
Source: restartd
Binary: restartd
Architecture: any
Version: 0.2.3-1.1
Maintainer: Alexandre Raymond <alexandre.j.raym...@gmail.com>
Homepage: https://github.com/ajraymond/restartd
Standards-Version: 3.9.3
Build-Depends: debhelper (>= 8.0.0)
Package-List:
 restartd deb utils extra arch=any
Checksums-Sha1:
 60ca149f8e33794a4b964ce1d87153708df01350 11024 restartd_0.2.3.orig.tar.gz
 086f19d2d007d2add82b4ef3dfb54f4f3b3d3065 3812
restartd_0.2.3-1.1.debian.tar.xz
Checksums-Sha256:
 38535f76d3e9af7c9effa5c8a5392cf3457f3ad6c8da289759f650785df70b2e 11024
restartd_0.2.3.orig.tar.gz
 fc94f7fb41dfe52d4be8f7be5fec5a8a3ed173a286efa7409de463a965a827c5 3812
restartd_0.2.3-1.1.debian.tar.xz
Files:
 c525a1736133aeaa4f6e0e3ff06cf56d 11024 restartd_0.2.3.orig.tar.gz
 426136e1edfd0dbd9a6d23d534a01651 3812 restartd_0.2.3-1.1.debian.tar.xz


gpgv: Signature made Mon Aug 10 18:45:14 2020 UTC
gpgv:                using RSA key B8340990283D8D9BC1949AC74799A35146D12B35
gpgv: Can't check signature: No public key
dpkg-source: warning: cannot verify inline signature for ./
restartd_0.2.3-1.1.dsc: no acceptable signature found
dpkg-source: info: extracting restartd in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking restartd_0.2.3.orig.tar.gz
dpkg-source: info: unpacking restartd_0.2.3-1.1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying fix_ftbfs.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 restartd
dpkg-buildpackage: info: source version 0.2.3-1.1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Sudip Mukherjee
<sudipm.mukher...@gmail.com>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
dh clean
dh: warning: Compatibility levels before 10 are deprecated (level 7 in use)
   dh_auto_clean
dh_auto_clean: warning: Compatibility levels before 10 are deprecated
(level 7 in use)
        make -j1 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f *.o restartd
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
dh_clean: warning: Compatibility levels before 10 are deprecated (level
7 in use)
 debian/rules binary
dh binary
dh: warning: Compatibility levels before 10 are deprecated (level 7 in use)
   dh_update_autotools_config
   dh_auto_configure
dh_auto_configure: warning: Compatibility levels before 10 are
deprecated (level 7 in use)
   dh_auto_build
dh_auto_build: warning: Compatibility levels before 10 are deprecated
(level 7 in use)
        make -j1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
gcc -Wall -O2 -DVERSION='"0.2.3"' -c main.c
main.c: In function ‘main’:
main.c:221:70: warning: ‘%s’ directive writing up to 255 bytes into a
region of size between 0 and 255 [-Wformat-overflow=]
  221 |                             sprintf(config_process[i].processes,
"%s %s",
      |
                                                                     ^~
main.c:221:29: note: ‘sprintf’ output between 2 and 512 bytes into a
destination of size 256
  221 |                             sprintf(config_process[i].processes,
"%s %s",
      |
                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  222 |                                     config_process[i].processes,
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  223 |                                     procdir_dirent->d_name);
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~
main.c:221:29: warning: ‘sprintf’ argument 3 overlaps destination object
‘config_process’ [-Wrestrict]
main.c:42:29: note: destination object referenced by ‘restrict’-
qualified argument 1 was declared here
   42 | struct config_process_type *config_process;
      |                             ^~~~~~~~~~~~~~
gcc -Wall -O2 -DVERSION='"0.2.3"' -c config.c
gcc -o restartd -DVERSION='"0.2.3"' main.o config.o
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test
dh_auto_test: warning: Compatibility levels before 10 are deprecated
(level 7 in use)
   dh_prep
   dh_installdirs
dh_installdirs: warning: Compatibility levels before 10 are deprecated
(level 7 in use)
   dh_auto_install --destdir=debian/restartd/
dh_auto_install: warning: Compatibility levels before 10 are deprecated
(level 7 in use)
        make -j1 install DESTDIR=/<<PKGBUILDDIR>>/debian/restartd
AM_UPDATE_INFO_DIR=no
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/install -o root -g root -m 0640 restartd.conf /<<PKGBUILDDIR>>/
debian/restartd/etc
/usr/bin/install: cannot change ownership of '/<<PKGBUILDDIR>>/debian/
restartd/etc/restartd.conf': Operation not permitted
make[1]: *** [Makefile:10: install] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_install: error: make -j1 install DESTDIR=/<<PKGBUILDDIR>>/
debian/restartd AM_UPDATE_INFO_DIR=no returned exit code 2
make: *** [debian/rules:14: binary] Error 255
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-18T10:37:52Z

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


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