Source: gap-nq
Version: 2.5.11-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`,
gap-nq failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
      |                         ^~~~
gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wcast-qual -Wshadow -Wwrite-strings -W -Wc++-compat -Wold-style-definition -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-unused-parameter -Wno-long-long -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c -o src/nq-presentation.o `test -f 'src/presentation.c' || echo './'`src/presentation.c gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wcast-qual -Wshadow -Wwrite-strings -W -Wc++-compat -Wold-style-definition -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-unused-parameter -Wno-long-long -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c -o src/nq-relations.o `test -f 'src/relations.c' || echo './'`src/relations.c gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wcast-qual -Wshadow -Wwrite-strings -W -Wc++-compat -Wold-style-definition -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-unused-parameter -Wno-long-long -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c -o src/nq-system.o `test -f 'src/system.c' || echo './'`src/system.c gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wcast-qual -Wshadow -Wwrite-strings -W -Wc++-compat -Wold-style-definition -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-unused-parameter -Wno-long-long -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c -o src/nq-tails.o `test -f 'src/tails.c' || echo './'`src/tails.c gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wcast-qual -Wshadow -Wwrite-strings -W -Wc++-compat -Wold-style-definition -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-unused-parameter -Wno-long-long -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c -o src/nq-time.o `test -f 'src/time.c' || echo './'`src/time.c gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wcast-qual -Wshadow -Wwrite-strings -W -Wc++-compat -Wold-style-definition -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-unused-parameter -Wno-long-long -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c -o src/nq-trmetab.o `test -f 'src/trmetab.c' || echo './'`src/trmetab.c gcc -DHAVE_CONFIG_H -I. -I./src -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wcast-qual -Wshadow -Wwrite-strings -W -Wc++-compat -Wold-style-definition -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-unused-parameter -Wno-long-long -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c -o src/nq-word.o `test -f 'src/word.c' || echo './'`src/word.c gcc -Wall -Wpointer-arith -Wcast-qual -Wshadow -Wwrite-strings -W -Wc++-compat -Wold-style-definition -Wmissing-prototypes -Wstrict-prototypes -pedantic -Wno-unused-parameter -Wno-long-long -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -Wl,-z,relro -o nq src/nq-addgen.o src/nq-collect.o src/nq-combicol.o src/nq-consistency.o src/nq-eliminate.o src/nq-engel.o src/nq-gap.o src/nq-glimt.o src/nq-instances.o src/nq-mem.o src/nq-nq.o src/nq-pc.o src/nq-pcarith.o src/nq-presentation.o src/nq-relations.o src/nq-system.o src/nq-tails.o src/nq-time.o src/nq-trmetab.o src/nq-word.o -lgmp /usr/bin/mkdir -p ./bin/aarch64-unknown-linux-gnu-default64-kv9
rm -f /<<PKGBUILDDIR>>/bin/aarch64-unknown-linux-gnu-default64-kv9/nq
cp nq /<<PKGBUILDDIR>>/bin/aarch64-unknown-linux-gnu-default64-kv9
SUCCESS!
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules execute_after_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
mkdir -p debian/gaproot/pkg
ln -s ../../.. debian/gaproot/pkg/nq
make -C doc && touch doc
make[2]: Entering directory '/<<PKGBUILDDIR>>/doc'
cd ..; echo 'PushOptions(rec(relativePath:="../../..")); \
               Read("makedoc.g");' | \
        gap -q -l 'debian/gaproot;/usr/share/gap';
Generating documentation in Directory("/<<PKGBUILDDIR>>/doc/\
")
#I Composing XML document . . .
#I Parsing XML document . . .
#I Checking XML structure . . .
#I Text version (also produces labels for hyperlinks):
#I First run, collecting cross references, index, toc, bib and so on . . .
#I Table of contents complete.
#I Producing the index . . .
#I Reading bibliography data files . . . #I   BibXMLext format: nqbib.xml
#I Writing bibliography . . .
#I Second run through document . . .
#I Producing simplified search strings and labels for hyperlinks . . .
#I Constructing LaTeX version and calling pdflatex:
#I Writing LaTeX file, 4 x pdflatex with bibtex and makeindex, #W WARNING: Something wrong, don't find log file /<<BUILDDIR>>/gap-nq-2\
.5.11/doc/nq.log

#I ERROR: no .pdf file produced (writing incomplete .six file)
#I Finally the HTML version . . .
#I First run, collecting cross references, index, toc, bib and so on . . .
#I Table of contents complete.
#I Producing the index . . .
#I Writing bibliography . . .
#I Second run through document . . .
#I - also HTML version for MathJax . . .
#I First run, collecting cross references, index, toc, bib and so on . . .
#I Table of contents complete.
#I Producing the index . . .
#I Writing bibliography . . .
#I Second run through document . . .
#I  File: /<<PKGBUILDDIR>>/doc/manual.lab written.
ronn --roff -o ../ ../debian/anu-nq.ronn
roff: ../anu-nq.1 make[2]: Leaving directory '/<<PKGBUILDDIR>>/doc'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_test
        make -j4 test "TESTSUITEFLAGS=-j4 --verbose" VERBOSE=1
make[1]: Entering directory '/<<PKGBUILDDIR>>'
(cd examples; make)
make[2]: Entering directory '/<<PKGBUILDDIR>>/examples'
make[2]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
Testing example: G1 ok.
Testing example: G2 ok.
Testing example: G3 ok.
Testing example: G4 ok.
Testing example: G5 ok.
make[2]: Leaving directory '/<<PKGBUILDDIR>>/examples'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   create-stamp debian/debhelper-build-stamp
   dh_prep
   dh_auto_install --destdir=debian/gap-nq/
make -j4 install DESTDIR=/<<PKGBUILDDIR>>/debian/gap-nq AM_UPDATE_INFO_DIR=no
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/mkdir -p ./bin/aarch64-unknown-linux-gnu-default64-kv9
rm -f /<<PKGBUILDDIR>>/bin/aarch64-unknown-linux-gnu-default64-kv9/nq
cp nq /<<PKGBUILDDIR>>/bin/aarch64-unknown-linux-gnu-default64-kv9
SUCCESS!
make[2]: Entering directory '/<<PKGBUILDDIR>>'
make[2]: Nothing to be done for 'install-data-am'.
 /usr/bin/mkdir -p '/<<PKGBUILDDIR>>/debian/gap-nq/usr/bin'
  /usr/bin/install -c nq '/<<PKGBUILDDIR>>/debian/gap-nq/usr/bin/./anu-nq'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_install *.g examples gap tst usr/share/gap/pkg/nq
make -C doc install DESTDIR=../debian/gap-nq
make[2]: Entering directory '/<<PKGBUILDDIR>>/doc'
test -d ../debian/gap-nq/usr/share/gap/pkg/nq/doc/. || install -d ../debian/gap-nq/usr/share/gap/pkg/nq/doc/.
set -e; for man in .; do \
install -o root -g root -m 0644 $man/manual.pdf ../debian/gap-nq/usr/share/gap/pkg/nq/doc/$man;\
done
install: cannot stat './manual.pdf': No such file or directory
make[2]: *** [Makefile:22: install-pdf] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>/doc'
make[1]: *** [debian/rules:28: override_dh_install] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:48: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-16T06:28:47Z

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


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