Source: mesaflash Version: 3.4.6-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`, mesaflash failed to rebuild. Log Summary: ------------------------------------------------------------------------------- [...] 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 "INSTALL=install --strip-program=true" make[1]: Entering directory '/<<PKGBUILDDIR>>'gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c common.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c lbp.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c lbp16.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c bitfile.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c hostmot2.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c eeprom.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c anyio.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c eth_boards.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c epp_boards.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c usb_boards.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c pci_boards.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c sserial_module.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c encoder_module.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c eeprom_local.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c eeprom_remote.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c spi_boards.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c serial_boards.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c mesaflash.c
rm -f libanyio.a mesaflashar rcs libanyio.a common.o lbp.o lbp16.o bitfile.o hostmot2.o eeprom.o anyio.o eth_boards.o epp_boards.o usb_boards.o pci_boards.o sserial_module.o encoder_module.o eeprom_local.o eeprom_remote.o spi_boards.o serial_boards.o
ranlib libanyio.agcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -o mesaflash mesaflash.o libanyio.a -lm -lpci -lmd gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c examples/pci_encoder_read.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -c examples/pci_analog_write.c gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -o pci_analog_write pci_analog_write.o libanyio.a -lm -lpci -lmd gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -std=c99 -D_GNU_SOURCE -I/usr/include/aarch64-linux-gnu -D_FILE_OFFSET_BITS=64 -DMESAFLASH_IO=0 -o pci_encoder_read pci_encoder_read.o libanyio.a -lm -lpci -lmd make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test create-stamp debian/debhelper-build-stamp dh_prep debian/rules override_dh_auto_install make[1]: Entering directory '/<<PKGBUILDDIR>>' /usr/bin/make DESTDIR=$(pwd)/debian/mesaflash/usr install make[2]: Entering directory '/<<PKGBUILDDIR>>'install -p -D --mode=0755 --owner root --group root mesaflash /<<PKGBUILDDIR>>/debian/mesaflash/usr/bin/mesaflash install: cannot change ownership of '/<<PKGBUILDDIR>>/debian/mesaflash/usr/bin/mesaflash': Operation not permitted
make[2]: *** [Makefile:226: 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 2dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
-------------------------------------------------------------------------------- Build finished at 2024-11-17T12:04:19Z ------------------------------------------------------------------------------- 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/1022679.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.
OpenPGP_signature.asc
Description: OpenPGP digital signature