On Tue, Jun 21, 2022 at 7:34 AM Sérgio Basto <ser...@serjux.com> wrote:
> On Tue, 2022-06-21 at 07:21 -0500, Richard Shaw wrote: > > 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?!?!? > > > you need remove %autosetup > and do : > > %prep > %setup -n %{project}-%{version} > gzip -dc %{SOURCE1} | tar -xf - -C extern/l8w8jwt > gzip -dc %{SOURCE2} | tar -xf - -C nng > %patch0 -p1 > Actually it's more of a head slap than that. %autosetup works, I just forgot to add -p1 to the options. DOH! Thanks, Richard
_______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org 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@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure