zchunk: zstd path

  • Done
  • quality assurance status badge
Details
2 participants
  • Christopher Howard
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Christopher Howard
Severity
normal
C
C
Christopher Howard wrote on 31 Jul 2021 21:26
(name . bug-guix)(address . bug-guix@gnu.org)
9153c17c1422861f21446b94a2b5bb93eee83933.camel@librehacker.com
Hello, I have been experimenting with the new package zchunk. zchunk
comes with a utility zck_gen_zdict, which utilizes the zstd program.
zstd is a propogated input of zck_gen_zdict, but it appears that
zck_gen_zdict hardcodes zstd to /usr/bin:

```
christopher@theoden ~/Scratch$ zck_gen_zdict clonezilla-live-2.6.7-28-
amd64.iso.zck
Unable to find /usr/bin/zstd
Error generating dict
```

My system information:

```
christopher@theoden ~/Scratch$ neofetch --stdout
christopher@theoden
-------------------
OS: Guix System 94ece4f8f7c80133d759d302b11351b69919209c x86_64
Host: OptiPlex 9020 00
Kernel: 5.13.6-gnu
Uptime: 1 hour, 28 mins
Packages: 94 (guix-system), 107 (guix-user)
Shell: bash 5.0.16
Resolution: 1920x1080
DE: GNOME
Theme: Adwaita [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: .gnome-terminal
CPU: Intel i5-4570 (4) @ 3.600GHz
GPU: Intel HD Graphics
GPU: AMD ATI Radeon HD 8490 / R5 235X OEM
Memory: 2232MiB / 7869MiB
```

--
Christopher Howard
Gemini capsule: gemini://gem.librehacker.com
M
M
Maxim Cournoyer wrote on 3 Aug 2021 20:34
(name . Christopher Howard)(address . christopher@librehacker.com)(address . 49795-done@debbugs.gnu.org)
87pmuu9y3k.fsf@gmail.com
Hi,

Christopher Howard <christopher@librehacker.com> writes:

Toggle quote (12 lines)
> Hello, I have been experimenting with the new package zchunk. zchunk
> comes with a utility zck_gen_zdict, which utilizes the zstd program.
> zstd is a propogated input of zck_gen_zdict, but it appears that
> zck_gen_zdict hardcodes zstd to /usr/bin:
>
> ```
> christopher@theoden ~/Scratch$ zck_gen_zdict clonezilla-live-2.6.7-28-
> amd64.iso.zck
> Unable to find /usr/bin/zstd
> Error generating dict
> ```

Fixed with commit 448de3966e:

Toggle snippet (11 lines)
$ zck_gen_zdict netinst.iso.zck
Trying 5 different sets of parameters
k=1998
d=8
f=20
steps=4
split=75
accel=1
Save dictionary of size 112640 into file netinst.iso.zdict

Thanks for the tests!

Closing.

Maxim
Closed
?