[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 King Kang Kong changed: What|Removed |Added CC||r2b2x3+kde...@gmail.com -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #19 from mirh --- (In reply to Elvis Angelaccio from comment #18) > (In reply to mirh from comment #17) > > Not really fixed as you can see in the last comments of the MR. > > Which comments? https://invent.kde.org/utilities/ark/-/merge_requests/22#note_176062 -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #18 from Elvis Angelaccio --- (In reply to mirh from comment #17) > Not really fixed as you can see in the last comments of the MR. Which comments? -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #17 from mirh --- Not really fixed as you can see in the last comments of the MR. -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 Elvis Angelaccio changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED --- Comment #16 from Elvis Angelaccio --- (In reply to o.hase3 from comment #14) > I have created a merge request with this patch. > See https://invent.kde.org/utilities/ark/-/merge_requests/22. Merged, thanks. -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 Justin Zobel changed: What|Removed |Added CC||justin.zo...@gmail.com Status|REOPENED|ASSIGNED --- Comment #15 from Justin Zobel --- (In reply to o.hase3 from comment #14) > I have created a merge request with this patch. > See https://invent.kde.org/utilities/ark/-/merge_requests/22. Thank you for the patch. If you mention in the description of the MR "BUG 416092" it will automatically update the bug you mention. :) -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #14 from o.ha...@gmail.com --- I have created a merge request with this patch. See https://invent.kde.org/utilities/ark/-/merge_requests/22. -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #13 from Elvis Angelaccio --- (In reply to o.hase3 from comment #12) > (In reply to Elvis Angelaccio from comment #11) > > Does it work if you use this instead? > > > > > > It does not. It fails with the same log output I posted in comment #9 (minus > the custom mimetype of course). This was one of the first things I tried, > but I forgot to mention it. > > I have however found a fix that is working for me. I have created custom > application/x-*-compressed-alpm-package mimetypes that inherit from both > application/x-alpm-package and application/x-*-compressed-tar and have > patched Ark to change these lines > (mimeFromExtension == db.mimeTypeForName(QStringLiteral("...")) && > into these lines > (mimeFromExtension.inherits(QStringLiteral("...")) && > in > https://github.com/KDE/ark/blob/108ade3b57f1eca792a54843e9c646eb1322a7ef/ > kerfuffle/mimetypes.cpp#L96. > > Software/OS Versions: > Linux Version: Manjaro 20.1.2 > KDE Plasma Version: 5.19.5 > KDE Frameworks Version: 5.74.0 > Qt Version: 5.15.1 > Ark Version: 20.08.1 Feel free to submit a Merge Request with this patch and we'll see if it makes sense to merge upstream. -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #12 from o.ha...@gmail.com --- (In reply to Elvis Angelaccio from comment #11) > Does it work if you use this instead? > > It does not. It fails with the same log output I posted in comment #9 (minus the custom mimetype of course). This was one of the first things I tried, but I forgot to mention it. I have however found a fix that is working for me. I have created custom application/x-*-compressed-alpm-package mimetypes that inherit from both application/x-alpm-package and application/x-*-compressed-tar and have patched Ark to change these lines (mimeFromExtension == db.mimeTypeForName(QStringLiteral("...")) && into these lines (mimeFromExtension.inherits(QStringLiteral("...")) && in https://github.com/KDE/ark/blob/108ade3b57f1eca792a54843e9c646eb1322a7ef/kerfuffle/mimetypes.cpp#L96. Software/OS Versions: Linux Version: Manjaro 20.1.2 KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.74.0 Qt Version: 5.15.1 Ark Version: 20.08.1 -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #11 from Elvis Angelaccio --- Does it work if you use this instead? -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 o.ha...@gmail.com changed: What|Removed |Added Ever confirmed|0 |1 Resolution|DOWNSTREAM |--- Status|RESOLVED|REOPENED --- Comment #10 from o.ha...@gmail.com --- I have looked through the Ark sources and I believe these lines are the reason the solution using custom mimetypes does not work: https://github.com/KDE/ark/blob/108ade3b57f1eca792a54843e9c646eb1322a7ef/kerfuffle/mimetypes.cpp#L96 Would it be possible to change these lines (mimeFromExtension == db.mimeTypeForName(QStringLiteral("...")) && to lines like this? (mimeFromExtension.inherits(db.mimeTypeForName(QStringLiteral("..."))) && Note the use of inherits() instead of operator==(). -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 o.ha...@gmail.com changed: What|Removed |Added CC||o.ha...@gmail.com --- Comment #9 from o.ha...@gmail.com --- (In reply to Elvis Angelaccio from comment #8) > The manjaro-specific mimetype should inherit a supported mimetype, probably > application/x-tar. Then ark should be able to open those files. I have tried this with a custom mimetype defined in ~/.local/share/mime/packages/Override.xml`, but Ark still wouldn’t open my files. I have also created an issue on the Pamac bug tracker for this issue: https://gitlab.manjaro.org/applications/pamac/-/issues/902 LOG $ QT_LOGGING_RULES="ark.*.debug=true" ark .pkg.tar.zst ark.main: Trying to open QUrl("file://.pkg.tar.zst") ark.part: Attempting to open archive ".pkg.tar.zst" ark.kerfuffle: Going to create archive ".pkg.tar.zst" ark.kerfuffle: Validated filename of compressed tar ".pkg.tar.zst" into filename ".pkg.tar.zst" ark.kerfuffle: Mimetype for filename extension ( "application/x-zstd-compressed-alpm-package" ) did not match mimetype for content ( "application/zstd" ). Using content-based mimetype. ark.kerfuffle: Could not find a plugin to handle ".pkg.tar.zst" ark.kerfuffle: Created archive instance with error ark.kerfuffle: Created job instance ark.main: Entering application loop ark.kerfuffle: Job finished, result: false , time: 4 ms MIMETYPE ALPM Package (Zstandard-compressed) -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #8 from Elvis Angelaccio --- The manjaro-specific mimetype should inherit a supported mimetype, probably application/x-tar. Then ark should be able to open those files. -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #7 from mirh --- https://gitlab.manjaro.org/applications/pamac/-/blob/master/data/mime/x-alpm-package.xml Yes this is manjaro specific, made for the GUI package manager to install stuff just with a click. But I'm missing why Ark could not fallback to trying anyway with magic sniffing or extension matching, or ship itself with a supported MIME types xml? https://specifications.freedesktop.org/shared-mime-info-spec/latest/ar01s02.html#idm46096015324960 -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 Elvis Angelaccio changed: What|Removed |Added CC||m...@protonmail.ch --- Comment #6 from Elvis Angelaccio --- *** Bug 419058 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #5 from Elvis Angelaccio --- I don't know, I'm on arch and I don't have that mimetype installed. Do you have some reference link? -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #4 from Bernhard Landauer --- This is not Manjaro specific, since Archlinux has switched to this new package format, all Arch-based distros will have the same issue. -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 Elvis Angelaccio changed: What|Removed |Added Resolution|--- |DOWNSTREAM Status|REPORTED|RESOLVED --- Comment #3 from Elvis Angelaccio --- (In reply to Bernhard Landauer from comment #2) > This gives me: > > ark.kerfuffle: Mimetype for filename extension ( > "application/x-alpm-package" ) This is the problem. Your *.pkg.tar.zst files are being detected with this mimetype, which is not supported by Ark. >From a quick google search, application/x-alpm-package seems to be a Manjaro-specific mimetype installed by their pamac tool. Since they associate this mimetype to multiple glob patterns (no idea why), I don't think we can support it from the Ark side. -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #2 from Bernhard Landauer --- This gives me: ark.kerfuffle: Mimetype for filename extension ( "application/x-alpm-package" ) did not match mimetype for content ( "application/zstd" ). Using content-based mimetype. ark.kerfuffle: Could not find a plugin to handle "foo.pkg.tar.zst" -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 --- Comment #1 from Elvis Angelaccio --- Works for me. Can you run: QT_LOGGING_RULES="ark.*.debug=true" ark and post here the output? -- You are receiving this mail because: You are watching all bug changes.
[ark] [Bug 416092] *.pkg.tar.zst files not recognized as zstd-compressed archives
https://bugs.kde.org/show_bug.cgi?id=416092 Bernhard Landauer changed: What|Removed |Added CC||bernh...@manjaro.org -- You are receiving this mail because: You are watching all bug changes.