New comment by r-ricci on void-packages repository https://github.com/void-linux/void-packages/pull/37940#issuecomment-1184404593 Comment: > For whatever reason, the patch does not apply when I try to build. There is indeed a warning about the file being read-only, but the patch should still be applied. I don't know why this warning doesn't appear on CI: ``` => 7zip-22.00_1: running do-patch hook: 00-patches ... => 7zip-22.00_1: patching: build_flags.patch. File CPP/7zip/7zip_gcc.mak is read-only; trying to patch anyway ``` I recall I had your same problem the first day I worked on this package. The line `=> 7zip-22.00_1: running do-patch hook: 00-patches ...` and the subsequent ones were entirely missing in my build log. It happened only with the musl masterdir. After I re-created the masterdir it didn't happen anymore. I don't know whether it was due to a corrupted masterdir, a bug in `xbps-src`, a problem in this package or some other thing.