* [ISSUE] How to select level compression zstd in xbps.-src?
@ 2022-09-11 15:58 johna23-lab
2022-09-11 16:42 ` classabbyamp
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: johna23-lab @ 2022-09-11 15:58 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 400 bytes --]
New issue by johna23-lab on void-packages repository
https://github.com/void-linux/void-packages/issues/39232
Description:
It is possible to select the level compression in xbps-src? in this case (and more) we can save more than the 50%
48M cross-x86_64-linux-musl-0.34_3.x86_64.tar.zst (using zstd --ultra -22 parameters)
110M cross-x86_64-linux-musl-0.34_3.x86_64.xbps (the original file)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to select level compression zstd in xbps.-src?
2022-09-11 15:58 [ISSUE] How to select level compression zstd in xbps.-src? johna23-lab
@ 2022-09-11 16:42 ` classabbyamp
2022-09-11 21:14 ` johna23-lab
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: classabbyamp @ 2022-09-11 16:42 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 277 bytes --]
New comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/issues/39232#issuecomment-1243000858
Comment:
it's not possible because it's [hardcoded in xbps](https://github.com/void-linux/xbps/blob/master/bin/xbps-create/main.c#L1046)
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to select level compression zstd in xbps.-src?
2022-09-11 15:58 [ISSUE] How to select level compression zstd in xbps.-src? johna23-lab
2022-09-11 16:42 ` classabbyamp
@ 2022-09-11 21:14 ` johna23-lab
2022-10-03 21:38 ` Chocimier
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: johna23-lab @ 2022-09-11 21:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 759 bytes --]
New comment by johna23-lab on void-packages repository
https://github.com/void-linux/void-packages/issues/39232#issuecomment-1243044412
Comment:
Thanks for the tip i modified the file
xbps-create/main.c
And changed this section
if (compression == NULL || strcmp(compression, "zstd") == 0) {
archive_write_add_filter_zstd(ar);
archive_write_set_options(ar, "compression-level=22");
-
But if i make the package using the "xbps-create" it uses the level 22 and i get much better compression, but if i make the package using the xbps-src and the template i get the "normal" (low) compression.
The idea is that you can choose the level of compression (as a new option) with the xbps-src, e.g:
xbps-src -lc (level compression) 22 pkg template
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to select level compression zstd in xbps.-src?
2022-09-11 15:58 [ISSUE] How to select level compression zstd in xbps.-src? johna23-lab
2022-09-11 16:42 ` classabbyamp
2022-09-11 21:14 ` johna23-lab
@ 2022-10-03 21:38 ` Chocimier
2023-01-02 1:57 ` github-actions
2023-01-16 1:59 ` [ISSUE] [CLOSED] " github-actions
4 siblings, 0 replies; 6+ messages in thread
From: Chocimier @ 2022-10-03 21:38 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 412 bytes --]
New comment by Chocimier on void-packages repository
https://github.com/void-linux/void-packages/issues/39232#issuecomment-1266082350
Comment:
> if i make the package using the xbps-src and the template i get the "normal" (low) compression.
xbps-src uses xbps installed inside masterdir, not the system one. You need to drop patch into srcpkgs/xbps/patches, build xbps with xbps-src and recreate masterdir.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to select level compression zstd in xbps.-src?
2022-09-11 15:58 [ISSUE] How to select level compression zstd in xbps.-src? johna23-lab
` (2 preceding siblings ...)
2022-10-03 21:38 ` Chocimier
@ 2023-01-02 1:57 ` github-actions
2023-01-16 1:59 ` [ISSUE] [CLOSED] " github-actions
4 siblings, 0 replies; 6+ messages in thread
From: github-actions @ 2023-01-02 1:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/issues/39232#issuecomment-1368603592
Comment:
Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ISSUE] [CLOSED] How to select level compression zstd in xbps.-src?
2022-09-11 15:58 [ISSUE] How to select level compression zstd in xbps.-src? johna23-lab
` (3 preceding siblings ...)
2023-01-02 1:57 ` github-actions
@ 2023-01-16 1:59 ` github-actions
4 siblings, 0 replies; 6+ messages in thread
From: github-actions @ 2023-01-16 1:59 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
Closed issue by johna23-lab on void-packages repository
https://github.com/void-linux/void-packages/issues/39232
Description:
It is possible to select the level compression in xbps-src? in this case (and more) we can save more than the 50%
48M cross-x86_64-linux-musl-0.34_3.x86_64.tar.zst (using zstd --ultra -22 parameters)
110M cross-x86_64-linux-musl-0.34_3.x86_64.xbps (the original file)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-01-16 1:59 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-11 15:58 [ISSUE] How to select level compression zstd in xbps.-src? johna23-lab
2022-09-11 16:42 ` classabbyamp
2022-09-11 21:14 ` johna23-lab
2022-10-03 21:38 ` Chocimier
2023-01-02 1:57 ` github-actions
2023-01-16 1:59 ` [ISSUE] [CLOSED] " github-actions
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).