-
Notifications
You must be signed in to change notification settings - Fork 27
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
Extraction("Failed to set file flags") on libalpm's file db #85
Comments
Is it possible for you to provide a test tarball? First, I intend to improve the error reporting for this case, then see if we can handle it. |
Sure, those come directly from an arch linux repository mirror: http://archlinux.iskon.hr/extra/os/x86_64/extra.files (would've uploaded on github myself but it doesn't allow me). If you are on an Arch system it's also possible to generate such files with the stated pacman command. Do mind that I read somewhere that it might be a problem related to libarchive and the filesystem in use, so I'm not entirely sure that you might experience this problem. But if that were the case, I'll also add that I've tried creating an archive myself with:
and the error persisted with testarchive.tgz |
Correction: Seems like using this other repo (http://archlinux.de-labrusse.fr), this weird error doesn't happen. The repo that distributes the erroring files is this http://archlinux.iskon.hr/extra/os/x86_64/extra.files I'll edit my last comment to use this repo: http://archlinux.iskon.hr |
Could you create an automated test showing the error? so I can pick the PR and look at how to fix it. |
Sorry if I took so long, been busy (in the meantime I temporarily fixed my program by calling the bsdtar program) PR: #86 |
Fixes: #85. Signed-off-by: Otavio Salvador <[email protected]>
Extraction("Failed to set file flags")
gets returned whenever I try to extract Arch an linux's libalpm file db withuncompress_archive
Tried both
Ownership::Ignore
andOwnership::Preserve
(desired behaviour is ignore).This only happens specifically with .tar.gzip files.
Output of the file command on one of the target files:
gzip compressed data, from Unix, original size modulo 2^32
.Files are generated with
pacman -Fyb /target/dir/
and are located in/target/dir/sync/
.Tried to extract
/target/dir/sync/*
to/target/dir/extracted/*
(of course without the*
, it's just to represent the individual file names).Filesystem in use: ext4 + luks;
Package manager libarchive version:
3.6.1-1
;OS: EndeavourOS (based on Arch Linux);
Both GNU
tar
andbsdtar
don't present this problem but GNUtar
presents an error regarding an unknown keywordSCHILY.fflags
(Perhaps this is problem?)The text was updated successfully, but these errors were encountered: