Source: gcc-defaults
Version: 1.220
Severity: normal
User: reproducible-bui...@lists.alioth.debian.org
Usertag: apt-cache
Hi,
gcc-defaults' debian/rules uses `apt-cache show` to find the
gfortran version. For this to work, APT has to have a valid cache,
filled with the current package list from the archive.
MOD_VER := $(shell apt-cache show gfortran-$(PV_GFORT) \
| sed -n '/^Provides/s/.*\(gfortran-mod-[0-9]*\).*/\1/p' \
| head -1)
The result of not having a full APT cache is a silent change in
gfortran_14.2.0-1_<arch>.deb:
-Provides: fortran-compiler, gfortran-mod-15
+Provides: fortran-compiler
One possible workaround is to list the required package in
Build-Depends:, because then `apt-cache show` can use the dpkg
database to fulfill the request.
I'm not sure putting gfortran-15 into Build-Depends can work for
gcc-defaults.
This problem was found on reproduce.debian.net, where rebuilds run
without a filled apt cache.
Best,
Chris