Re: HELP: Brand new patch always fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Thanks,
Richard

[1] https://copr.fedorainfracloud.org/coprs/hobbes1069/IIoT/build/4550663/
[2] https://download.copr.fedorainfracloud.org/results/hobbes1069/IIoT/fedora-rawhide-x86_64/04550663-emqx-nanomq/builder-live.log.gz
_______________________________________________
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

-- 
Sérgio M. B.
_______________________________________________
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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux