Use xargs --no-run-if-empty to avoid error

Recent Boost releases seem to have no executable headers,
so the find command returns no results.
This commit is contained in:
Jonathan Wakely 2022-12-14 17:47:54 +00:00
parent e938c8d9b3
commit 1c4335a6e0

View File

@ -673,7 +673,7 @@ a number of significant features and is now developed independently.
%prep
%setup -q -n %{toplev_dirname}
find ./boost -name '*.hpp' -perm /111 | xargs chmod a-x
find ./boost -name '*.hpp' -perm /111 | xargs --no-run-if-empty chmod a-x
%patch15 -p0
%patch51 -p1