Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916999 - [Future EAPI] Support for zstd compression in unpack
Summary: [Future EAPI] Support for zstd compression in unpack
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: PMS/EAPI (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Package Manager Specification
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-07 11:25 UTC by Aidan Harris
Modified: 2024-01-19 19:36 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Unpack zstd files (portage-unpack-zstd.diff,3.00 KB, patch)
2023-11-07 11:29 UTC, Aidan Harris
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Aidan Harris 2023-11-07 11:25:09 UTC
I vendored go modules for an ebuild as .tar.zst and to my surprise Portage cannot unpack these.

Reproducible: Always
Comment 1 Aidan Harris 2023-11-07 11:29:05 UTC
Created attachment 874234 [details, diff]
Unpack zstd files

I mostly plagarised the existing xz unpacking but had to alter the __unpack_tar function to resolve symlinks because for some reason this fails with an error that tar doesn't recognise the zstd format if I don't do this.
Comment 2 Florian Schmaus gentoo-dev 2023-11-07 13:47:48 UTC
You want to use unpacker.eclass if you really need zstd compression.
Comment 3 Mike Gilbert gentoo-dev 2023-11-07 16:06:44 UTC
Comment on attachment 874234 [details, diff]
Unpack zstd files

This patch cannot be applied using git-am, so I am marking it as obsolete.
Comment 4 Mike Gilbert gentoo-dev 2023-11-07 16:08:14 UTC
Support for new formats in unpack should be requested via a PMS update.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-11-07 16:13:38 UTC
For this to land in PMS, large enough number of packages must actually need it.  Right now, I see two packages using '.zst' in ::gentoo, and none in ::guru.  In other words, zstd as a compressor used for file distribution is nowhere near popular right now.