
Dear Peter,
In message CALeDE9NJiqCaE3zhdrS80Fe_P4bfxCG2naW8YhzrHM+WqSHWfw@mail.gmail.com you wrote:
I tried to find a way to download a file with wget or a similar tool, which would be used by a distribution builder (like Yocto, Buildroot, OpenWrt, ...).
Why would any build environment use tarballs? can you not just reference the git repository? This is much more efficient, IMHO.
Open Build Service uses tarballs, too. We usually specify full URLs in the RPM .spec file [1] both for documentation of origin and so that the mirrored tarball can be verified via gpg or checksum where available. As the actual build is intentionally done offline, at some point a tarball is needed. The URL could happily be a redirect to some mirror.
This is the same in Fedora, the builds are done in a constrained environment without connectivity to the general internet.
This is normal. It's the same in any Yocto based environment. And probably in any other buil environment that alloes to reliably reproduce a specific build. But you can still use git to fetch your sources - instead of storing a tarball locally, you store a clone of the git repo.
Best regards,
Wolfgang Denk