Source: rungetty
Version: 1.2-16.2
Severity: important
Tags: ftbfs
Justification: FTBFS
X-Debbugs-Cc: [email protected]
User: [email protected]
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`,
rungetty failed to rebuild.

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

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


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

Format: 3.0 (quilt)
Source: rungetty
Binary: rungetty
Architecture: any
Version: 1.2-16.2
Maintainer: Rhonda D'Vine <[email protected]>
Standards-Version: 3.9.6
Build-Depends: debhelper (>= 9~)
Package-List:
 rungetty deb admin optional arch=any
Checksums-Sha1:
 7c771f050f503b409999bedc3d6640ada0e3687b 15618 rungetty_1.2.orig.tar.gz
 df7fb9062ed5b34ab36925d26fbf5d1890b39673 6600
rungetty_1.2-16.2.debian.tar.xz
Checksums-Sha256:
 906c959e2e056128ce6c7d0b81724e58837c3907e3f86514741aef78be3b5a65 15618
rungetty_1.2.orig.tar.gz
 113f269bab2ee934b84981e60199f5d2de217cb30af4eb22df7e45c419d3aad8 6600
rungetty_1.2-16.2.debian.tar.xz
Files:
 acca2a8a6a06b1474e199c30cf556b9c 15618 rungetty_1.2.orig.tar.gz
 c073a810b8bb62d816a5ccefe5515459 6600 rungetty_1.2-16.2.debian.tar.xz


gpgv: Signature made Mon Jan  8 13:19:00 2024 UTC
gpgv:                using RSA key 7D1ACFFAD9E0806C9C4CD3925C13D6DB93052E03
gpgv: Can't check signature: No public key
dpkg-source: warning: cannot verify inline signature for ./
rungetty_1.2-16.2.dsc: no acceptable signature found
dpkg-source: info: extracting rungetty in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking rungetty_1.2.orig.tar.gz
dpkg-source: info: unpacking rungetty_1.2-16.2.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying 01_make-install-fix
dpkg-source: info: applying 02_manpage-fix
dpkg-source: info: applying 03_nogroup-fix
dpkg-source: info: applying 04_disable-path
dpkg-source: info: applying 05_getc-fix
dpkg-source: info: applying 06_initgroups
dpkg-source: info: applying 07_clear-not-reset
dpkg-source: info: applying 08_autologin-on-all-ttys
dpkg-source: info: applying glibc-2.32.patch

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 rungetty
dpkg-buildpackage: info: source version 1.2-16.2
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Chris Hofstaedtler
<[email protected]>
 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 *.o rungetty
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>>'
gcc  -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -Wdate-time -
D_FORTIFY_SOURCE=2  -c -o rungetty.o rungetty.c
rungetty.c: In function ‘main’:
rungetty.c:597:5: warning: ‘logname’ may be used uninitialized [-Wmaybe-
uninitialized]
  597 |     mingetty_login (logname, tty);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rungetty.c:526:9: note: ‘logname’ was declared here
  526 |   char *logname, *s;
      |         ^~~~~~~
gcc -Wl,-warn-common -s  rungetty.o   -o rungetty
size rungetty
   text    data     bss     dec     hex filename
  12180    1360     608   14148    3744 rungetty
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test
dh_auto_test: warning: Compatibility levels before 10 are deprecated
(level 9 in use)
   dh_prep
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make install ROOT=debian/rungetty
make[2]: Entering directory '/<<PKGBUILDDIR>>'
size rungetty
   text    data     bss     dec     hex filename
  12180    1360     608   14148    3744 rungetty
mkdir -p debian/rungetty/usr/sbin
mkdir -p debian/rungetty/usr/share/man/man8
install -m 0755 -o root -g root rungetty debian/rungetty/usr/sbin/
install: cannot change ownership of 'debian/rungetty/usr/sbin/rungetty':
Operation not permitted
make[2]: *** [Makefile:11: install] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:8: override_dh_auto_install] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:5: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-18T13:05:41Z

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


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