Source: setserial
Version: 2.17-56
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`,
setserial failed to rebuild.

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

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


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

Format: 3.0 (quilt)
Source: setserial
Binary: setserial
Architecture: any
Version: 2.17-56
Maintainer: Thorsten Alteholz <deb...@alteholz.de>
Standards-Version: 4.6.2
Vcs-Browser: https://salsa.debian.org/alteholz/setserial
Vcs-Git: https://salsa.debian.org/alteholz/setserial.git
Build-Depends: debhelper-compat (= 13), po-debconf
Package-List:
 setserial deb comm optional arch=any
Checksums-Sha1:
 68824494a0b5700f7e999564a59358bf34f79eb1 52437 setserial_2.17.orig.tar.gz
 aa459d75941af0bae51f6b6354fe5f1f026be885 56428
setserial_2.17-56.debian.tar.xz
Checksums-Sha256:
 7e4487d320ac31558563424189435d396ddf77953bb23111a17a3d1487b5794a 52437
setserial_2.17.orig.tar.gz
 67ba5b199ddb61f8d806250a2e21cb78f342c2f818b7d78b591d0e9ece9c305a 56428
setserial_2.17-56.debian.tar.xz
Files:
 c4867d72c41564318e0107745eb7a0f2 52437 setserial_2.17.orig.tar.gz
 fff442088ac8f996d17578d24673a142 56428 setserial_2.17-56.debian.tar.xz


gpgv: Signature made Wed Nov  6 23:27:49 2024 UTC
gpgv:                using RSA key 6201FBFFDBBDE07822EABB9696FCAC0D387B5847
gpgv:                issuer "deb...@alteholz.de"
gpgv: Can't check signature: No public key
dpkg-source: warning: cannot verify inline signature for ./
setserial_2.17-56.dsc: no acceptable signature found
dpkg-source: info: extracting setserial in /<<PKGBUILDDIR>>
dpkg-source: info: unpacking setserial_2.17.orig.tar.gz
dpkg-source: info: unpacking setserial_2.17-56.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying 01_makefile.patch
dpkg-source: info: applying 04_pcmcia_readme.patch
dpkg-source: info: applying 05_pcmcia_cardctl.patch
dpkg-source: info: applying 06_pcmcia_cardctl_out.patch
dpkg-source: info: applying 07_pcmcia_var_run_stab.patch
dpkg-source: info: applying 08_pcmcia_c.patch
dpkg-source: info: applying 09_pcmcia_repair.patch
dpkg-source: info: applying 10_rc_etc_setserial.patch
dpkg-source: info: applying 11_rc_serial.patch
dpkg-source: info: applying 12_rc_serial_m68k.patch
dpkg-source: info: applying 13_rc_serial_upstream.patch
dpkg-source: info: applying 14_safety_h.patch
dpkg-source: info: applying 15_serial_conf.patch
dpkg-source: info: applying 16_serial_conf_sparc.patch
dpkg-source: info: applying 17_setserial_8_in.patch
dpkg-source: info: applying 18_setserial_c.patch
dpkg-source: info: applying 19_version_h.patch
dpkg-source: info: applying 20_implicit.patch
dpkg-source: info: applying 21_path-of-setserial.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 setserial
dpkg-buildpackage: info: source version 2.17-56
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Thorsten Alteholz
<deb...@alteholz.de>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture arm64
 debian/rules clean
dh_testdir
dh_testroot
rm -f config.sub config.guess
[ ! -f Makefile ] || /usr/bin/make distclean
rm -f gorhack.h setserial.8
dh_autoreconf_clean
dh_clean stamp-build
 debian/rules binary
dh_testdir
cp -f /usr/share/misc/config.sub config.sub
cp -f /usr/share/misc/config.guess config.guess
autoupdate
autoupdate: warning: autoconf input should be named 'configure.ac', not
'configure.in'
dh_autoreconf
autoreconf: warning: autoconf input should be named 'configure.ac', not
'configure.in'
aclocal: warning: autoconf input should be named 'configure.ac', not
'configure.in'
dh_auto_configure
        ./configure --build=aarch64-linux-gnu --prefix=/usr --includedir=\
${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/
share/info --sysconfdir=/etc --localstatedir=/var --disable-option-
checking --disable-silent-rules --libdir=\${prefix}/lib/aarch64-linux-
gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-
tracking
Generating configuration file for setserial version 2.17
Release date is January, 2000
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... checking whether we are cross
compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for strip... strip
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for asm/ioctls.h... yes
checking for linux/hayesesp.h... no
configure: creating ./config.status
config.status: creating setserial.8
config.status: creating Makefile
# make both m68k 2.2 and 2.4+ kernels work effectively
#
rm -f gorhack.h
if test -r /usr/include/linux/m68kserial.h ; then \
  touch gorhack.h; \
else \
  echo "#undef __mc68000__" > gorhack.h ; \
fi
/usr/bin/make setserial CFLAGS="-O2 -g -O2 -Werror=implicit-function-
declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-
strong -fstack-clash-protection -Wformat -Werror=format-security -
mbranch-protection=standard" LDFLAGS="-Wl,-z,relro" CPPFLAGS="-Wdate-
time -D_FORTIFY_SOURCE=2" CXXFLAGS="-g -O2 -ffile-prefix-map=/
<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -
Wformat -Werror=format-security -mbranch-protection=standard"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
gcc -O2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/
<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -
Wformat -Werror=format-security -mbranch-protection=standard -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 -Wl,-z,relro -
DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -
DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -
DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -
DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -
DHAVE_ASM_IOCTLS_H=1 -I. setserial.c -o setserial
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
touch stamp-build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
install -g root -m 755 -o root setserial   /<<PKGBUILDDIR>>/debian/
setserial/usr/bin
install: cannot change ownership of '/<<PKGBUILDDIR>>/debian/setserial/
usr/bin/setserial': Operation not permitted
make: *** [debian/rules:57: binary-arch] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess returned exit
status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-18T14:37:40Z

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


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