Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 630132 - sys-apps/portage-2.3.8: BINPKG_COMPRESS="zstd" does not work
Summary: sys-apps/portage-2.3.8: BINPKG_COMPRESS="zstd" does not work
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 631448
  Show dependency tree
 
Reported: 2017-09-07 05:56 UTC by Martin Väth
Modified: 2018-02-01 23:53 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Väth 2017-09-07 05:56:02 UTC
BINPKG_COMPRESS="zstd" does not work:
It produces a tbz2 file, but atttempting to emerge the corresponding binary package results in "random" errors, usually in the message that this is not a zstd archive.

I conjecture that a reason is that portage does not strip the extra bytes before passing the archive to unzstd: It is a feature of unzstd that subsequent data is considered as a concatenation of a further archive which might result in the corresponding error message (and explains why sometimes also strange messages like "not enough memory for the table" are output, depending on the extra data).

Maybe other archive formats have similar issues; I have not tried any further.
Comment 1 Zac Medico gentoo-dev 2017-09-07 06:57:08 UTC
Maybe we'll have to pipe the file through 'head' in order to strip the xpak trailer, or something like that.
Comment 2 Zac Medico gentoo-dev 2017-10-04 01:34:49 UTC
This is in the master branch:

https://github.com/gentoo/portage/commit/b4b0e6b0aaa1feb405823277b82ebb2e4820e0b8