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)
+ /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
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure