I have a weird problem when building below flatpak.
What does this mean exactly?
Failed to download sources: module gc: Wrong sha256 checksum for gc-8.0.6.tar.gz, expected "315daf18ed0e84859eed5a9816153c78ada1b844a095385978d5d284838f1efc", was "3b4914abc9fa76593596773e4da671d7ed4d5390e3d46fbf2e5f155e121bea11"
3b4914 is indeed the old sha256 checksum. See this old build of another similar app:
$ locate gc-8.0.6.tar.gz
/home/fede/src/flathub.org/org.denemo.Denemo/.flatpak-builder/downloads/3b4914abc9fa76593596773e4da671d7ed4d5390e3d46fbf2e5f155e121bea11/gc-8.0.6.tar.gz
If you use wget to download the tarball, the checksum is indeed 315daf18ed0e84859eed5a9816153c78ada1b844a095385978d5d284838f1efc.
I tried everything to clean the cache but did not help. Eventually as a workaround I copied the tarball in the working dir and used a path instead of the url in the manifest.
Some problem with flatpak-builder download and/or cache? Probably not cache, as it seems the tarball is downloaded again, but it does not help.
Here the full log:
$ flatpak run --command=flathub-build org.flatpak.Builder --install org.frescobaldi.Frescobaldi.yaml
Running: flatpak-builder --verbose --force-clean --sandbox --keep-build-dirs --override-source-date-epoch 1321009871 --user --install-deps-from=flathub --ccache --mirror-screenshots-url=https://dl.flathub.org/media --repo=repo builddir --install org.frescobaldi.Frescobaldi.yaml
[...]
Downloading sources
Downloading https://www.hboehm.info/gc/gc_source/gc-8.0.6.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1141k 100 1141k 0 0 934k 0 0:00:01 0:00:01 --:--:-- 935k
Failed to download sources: module gc: Wrong sha256 checksum for gc-8.0.6.tar.gz, expected "315daf18ed0e84859eed5a9816153c78ada1b844a095385978d5d284838f1efc", was "3b4914abc9fa76593596773e4da671d7ed4d5390e3d46fbf2e5f155e121bea11"