There is an updated pull request by Chocimier against master on the void-packages repository https://github.com/gt7-void/void-packages do_clean https://github.com/void-linux/void-packages/pull/23015 xbps-src: fix do_clean It has to be run _before_ remove_pkg_statedir. Fixes the following bug: ``` $ ./xbps-src extract zfs ... $ ./xbps-src clean zfs => zfs-0.8.4_2: cleaning build directory... => zfs-0.8.4_2: running do_clean ... mkfifo: cannot create fifo '/builddir/.xbps-zfs/zfs__0DLLrI5V.logpipe': No such file or directory => ERROR: zfs-0.8.4_2: do_clean: 'mkfifo "$logpipe"' exited with 1 => ERROR: in run_func() at common/xbps-src/shutils/common.sh:17 => ERROR: in main() at xbps-src:760 ``` A patch file from https://github.com/void-linux/void-packages/pull/23015.patch is attached