This started happening a few days ago and I have no idea what's going on but all of a sudden the patch I created always fails[1].
I even deleted the patch and started over:
quilt setup emqx-nanomq.spec cd nanomq-0.8.0 quilt new nanomq-cmake.patch quilt edit CMakeLists.txt quilt edit nanolib/CMakeLists.txt quilt refresh cp patches/nanomq-cmake.patch ../
I turn around and try to build the package with the patch: rpkg srpm mock -r fedora-rawhide-x86_64 --resultdir ./ /path/to/the/srpm/in/tmp
And then I get something like this[2]: + cd nanomq-0.8.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/nanomq-cmake.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f 1 out of 1 hunk FAILED -- saving rejects to file CMakeLists.txt.rej error: Bad exit status from /var/tmp/rpm-tmp.Lk7GGo (%prep)
I even expanded the archive and applied the patch manually and it worked fine.
WTF?!?!?
Thanks, Richard
[1] https://copr.fedorainfracloud.org/coprs/hobbes1069/IIoT/build/4550663/ [2] https://download.copr.fedorainfracloud.org/results/hobbes1069/IIoT/fedora-ra...