-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated builds from tar archives are not working #91
Comments
Here is how the arch package is build: https://gitlab.archlinux.org/archlinux/packaging/packages/file/-/blob/main/PKGBUILD#L33 Here is how the alpine package is build: https://git.alpinelinux.org/aports/tree/main/file/APKBUILD#n25 |
I tested this fix and it did not resolve the problem. |
I made an upstream issue: https://gitlab.alpinelinux.org/alpine/aports/-/issues/15047 |
This was resolved upstream now in Alpine 3.18. I'll test it out |
This has been resolved now thanks to the upstream fix. |
Summary
It turns out that the file command is broken, which is used by the makepkg command. This makes makepkg think that tar.gz files are gzip archives, making it use gzip to extract it. The result is that tar files are not extracted fully, causing failures.
Details
The
makepkg
command uses the followingfile
command:The
file
variable is set to the archive name.Here is an example in what that results in on alpine:
On Arch and Debian 12 (which use the same version of file) this results in the following with the same file:
This is not fixed on alpine edge.
Possible solutions
At the moment I see the following options:
I don't think there are many other ways around this one.
The text was updated successfully, but these errors were encountered: