Source: astronomical-almanac
Version: 5.6-7
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`,
astronomical-almanac failed to rebuild.

Log Summary:
-------------------------------------------------------------------------------
[...]
dpkg-source: info: applying mer404.c.patch
dpkg-source: info: applying mlat404.c.patch
dpkg-source: info: applying mlr404.c.patch
dpkg-source: info: applying moonrise.c.patch
dpkg-source: info: applying nep404.c.patch
dpkg-source: info: applying plantbl.h.patch
dpkg-source: info: applying plu404.c.patch
dpkg-source: info: applying rplanet.c.patch
dpkg-source: info: applying sat404.c.patch
dpkg-source: info: applying ura404.c.patch
dpkg-source: info: applying ven404.c.patch
dpkg-source: info: applying dms.c-2.patch
dpkg-source: info: applying deltat.c.patch
dpkg-source: info: applying altaz.c.patch
dpkg-source: info: applying trnsit.c.patch
dpkg-source: info: applying gcc10.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 astronomical-almanac
dpkg-buildpackage: info: source version 5.6-7
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 build-stamp configure-stamp
# clean up after the build process.
rm -f *.o aa moonrise conjunct
dh_clean
 debian/rules binary
dh_testdir
# Add here commands to configure the package.
touch configure-stamp
dh_testdir
# compile the package.
dh_auto_build -- moonrise conjunct aa
        make -j8 "INSTALL=install --strip-program=true" moonrise conjunct aa
make[1]: Entering directory '/<<PKGBUILDDIR>>'
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o moonrise.o moonrise.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o altaz.o altaz.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o angles.o angles.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o annuab.o annuab.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o constel.o constel.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o deflec.o deflec.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o deltat.o deltat.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o diurab.o diurab.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o diurpx.o diurpx.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o dms.o dms.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o epsiln.o epsiln.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o fk4fk5.o fk4fk5.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o kepler.o kepler.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o kfiles.o kfiles.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o lightt.o lightt.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o lonlat.o lonlat.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o nutate.o nutate.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o precess.o precess.c
kfiles.c: In function ‘kinit’:
kfiles.c:90:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   90 |         fgets( s, 80, f );
      |         ^~~~~~~~~~~~~~~~~
kfiles.c:92:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   92 |         fgets( s, 80, f );
      |         ^~~~~~~~~~~~~~~~~
kfiles.c:94:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   94 |         fgets( s, 80, f );
      |         ^~~~~~~~~~~~~~~~~
kfiles.c:134:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  134 |         fgets( s, 80, f );
      |         ^~~~~~~~~~~~~~~~~
kfiles.c:137:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  137 |         fgets( s, 80, f );
      |         ^~~~~~~~~~~~~~~~~
kfiles.c:140:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  140 |         fgets( s, 80, f );
      |         ^~~~~~~~~~~~~~~~~
kfiles.c:153:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  153 |         fgets( s, 80, f );
      |         ^~~~~~~~~~~~~~~~~
kfiles.c: In function ‘fincat’:
kfiles.c:341:9: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  341 |         fgets( str1, 126, f );
      |         ^~~~~~~~~~~~~~~~~~~~~
kfiles.c:346:17: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  346 |                 fgets( str2, 126, f );
      |                 ^~~~~~~~~~~~~~~~~~~~~
kfiles.c:352:7: warning: pointer ‘f’ used after ‘fclose’ [-Wuse-after-free]
  352 | return( f );
      |       ^
kfiles.c:351:1: note: call to ‘fclose’ here
  351 | fclose(f);
      | ^~~~~~~~~
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o refrac.o refrac.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o rplanet.o rplanet.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o rstar.o rstar.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o sidrlt.o sidrlt.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o sun.o sun.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o domoon.o domoon.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o trnsit.o trnsit.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o vearth.o vearth.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o zatan2.o zatan2.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o gplan.o gplan.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o mer404.o mer404.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ven404.o ven404.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ear404.o ear404.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o mar404.o mar404.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o jup404.o jup404.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o sat404.o sat404.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o ura404.o ura404.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o nep404.o nep404.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o plu404.o plu404.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o mlr404.o mlr404.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o mlat404.o mlat404.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o conjunct.o conjunct.c
gcc -O2 -Wall -Wdate-time -D_FORTIFY_SOURCE=2  -c -o aa.o aa.c
gcc -o moonrise moonrise.o altaz.o angles.o annuab.o constel.o deflec.o deltat.o diurab.o diurpx.o dms.o epsiln.o fk4fk5.o kepler.o kfiles.o lightt.o lonlat.o nutate.o precess.o refrac.o rplanet.o rstar.o sidrlt.o sun.o domoon.o trnsit.o vearth.o zatan2.o gplan.o mer404.o ven404.o ear404.o mar404.o jup404.o sat404.o ura404.o nep404.o plu404.o mlr404.o mlat404.o -lm gcc -o conjunct conjunct.o altaz.o angles.o annuab.o constel.o deflec.o deltat.o diurab.o diurpx.o dms.o epsiln.o fk4fk5.o kepler.o kfiles.o lightt.o lonlat.o nutate.o precess.o refrac.o rplanet.o rstar.o sidrlt.o sun.o domoon.o trnsit.o vearth.o zatan2.o gplan.o mer404.o ven404.o ear404.o mar404.o jup404.o sat404.o ura404.o nep404.o plu404.o mlr404.o mlat404.o -lm gcc -o aa aa.o altaz.o angles.o annuab.o constel.o deflec.o deltat.o diurab.o diurpx.o dms.o epsiln.o fk4fk5.o kepler.o kfiles.o lightt.o lonlat.o nutate.o precess.o refrac.o rplanet.o rstar.o sidrlt.o sun.o domoon.o trnsit.o vearth.o zatan2.o gplan.o mer404.o ven404.o ear404.o mar404.o jup404.o sat404.o ura404.o nep404.o plu404.o mlr404.o mlat404.o -lm
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
touch build-stamp
dh_testdir
dh_testroot
dh_prep
dh_installdirs
# install the package into debian/astronomical-almanac.
# /usr/bin/make install DESTDIR=/<<PKGBUILDDIR>>/debian/astronomical-almanac
# moonrise
for f in aa conjunct; do \
install -p -o root -g root -m 755 $f /<<PKGBUILDDIR>>/debian/astronomical-almanac/usr/bin/$f; done install: cannot change ownership of '/<<PKGBUILDDIR>>/debian/astronomical-almanac/usr/bin/aa': Operation not permitted install: cannot change ownership of '/<<PKGBUILDDIR>>/debian/astronomical-almanac/usr/bin/conjunct': Operation not permitted
make: *** [debian/rules:70: install] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2024-11-15T19:30:34Z

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


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