Abuild-tar strips necessary data on aarch64 (qemu) in some cases
I tried to port package using arm64v8/alpine Docker image and aarch64-static with binfmt configured.
Overall build process was fine except from created .apk file for main
package who had 6
KiB size and only one broken symlink inside (-dev,-libs are OK).
Investigated it a bit and apparently abuild-tar
is the problem here,
tarring main package yields 27.5 MiB file and passing it through
abuild-tar --hash
reduces it to 6 KiB (again it works fine for *-dev
and
*-libs).
Passing the same input to abuild-tar --hash
on x86_64 and armhf image
gives correct result
Because of the size I’m putting affected example here:
https://github.com/mati865/abuild-tar-bug
(from redmine: issue id 8713, created on 2018-03-23, closed on 2019-02-25)