Description of problem: Currently scm_apply_git looks like this: %__scm_apply_git(qp:m:)\ %{__git} apply %{-p:-p%{-p*}} -\ %{__git} commit %{-q} -a -m %{-m*} --author "%{__scm_author}" Which means that any file additions will not be committed and in case the patch contains *only* file addition the macro can fail completely (empty commit). I'd suggest changing the above definition to: %__scm_apply_git(qp:m:)\ %{__git} apply --index %{-p:-p%{-p*}} -\ %{__git} commit %{-q} -m %{-m*} --author "%{__scm_author}" That means adding the patch directly to index and then there is no need to add '-a' switch for git commit. Version-Release number of selected component (if applicable): rpm-4.11.1-7.fc20.x86_64 How reproducible: always
Right, the %autosetup stuff has seen fairly little real-world testing up to now, its entirely possible or even likely I haven't happened to test a patch that adds new files or at least one that *only* adds new files. Thanks for the report and education :) Applied upstream now: http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=3f698977435bb8730e0865322f8a4856b0bb16af I'll pull this into 4.11.2 which will find its way to F20 via updates in nearish future.
Created attachment 857859 [details] Try git am before git apply I have improved this a bit by doing git am before git apply. The patch is created against master and seems to work fine for me at least.
rpm-4.11.2-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/rpm-4.11.2-1.fc20
rpm-4.11.2-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/rpm-4.11.2-1.fc19
Package rpm-4.11.2-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing rpm-4.11.2-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-2467/rpm-4.11.2-1.fc20 then log in and leave karma (feedback).
rpm-4.11.2-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
rpm-4.11.2-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.