New comment by foopub on void-packages repository https://github.com/void-linux/void-packages/issues/33915#issuecomment-962002531 Comment: Forgot to mention above, the command was `./xbps-src pkg -o ~dbus,~wayland -j 24 firefox` on after a fresh pull and binary-bootstrap. Even if the patches weren't previously applied, when repeating the failed build, this fails on the first patch (which previously worked) as it's not been applied: ``` => firefox-94.0_1: running do-patch hook: 00-patches ... => firefox-94.0_1: patching: avoid-redefinition.patch. Reversed (or previously applied) patch detected! Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file dom/media/webrtc/transport/third_party/nICEr/src/stun/addrs-netlink.c.rej => ERROR: firefox-94.0_1: do-patch_00-patches: 'patch -s ${_args} -i ${_patch} 2> /dev/null' exited with 1 => ERROR: in _process_patch() at common/hooks/do-patch/00-patches.sh:34 => ERROR: in hook() at common/hooks/do-patch/00-patches.sh:51 => ERROR: in run_func() at common/xbps-src/shutils/common.sh:21 => ERROR: in run_pkg_hooks() at common/xbps-src/shutils/common.sh:245 => ERROR: in run_step() at common/xbps-src/shutils/common.sh:71 => ERROR: in main() at common/xbps-src/libexec/xbps-src-dopatch.sh:33 ``` One solution is to add `|& grep "Skipping patch"` or some other version of that to ignore errors cases where the patch has already been applied?