gitlab: Collect metadata about binary distributions
Here we teach out CI infrastructure to collect various metadata about the binary distributions that it produces (addressing #22686 (closed)). Specifically:
- record the contents of the global package database (addressing #21996)
- details about the operating system and compiler that the bindist was built with
- which native dependencies the binaries depend dynamically upon (e.g.
glibc
,gmp
,ncurses
) - On Linux: which packages provided those dependencies
- the output of
ghc --info
To do
- Figure out how to get package versions on Alpine (
apk
); sadly this seems to be quite hard - Do the same one Windows (
pacman
)