From: Jan Stancek <jstancek@xxxxxxxxxx> redhat/kernel.spec.template: fix standalone tools build Building only tools: rpmbuild --rebuild --without doc --without cross_headers \ --without kabidw_base --without debuginfo --without debug \ --without up --without zfcpdump --without trace \ --without bpftool --without selftests --without pae kernel.src.rpm at the moment fails with: find: '/root/rpmbuild/BUILDROOT/kernel-5.18.0-0.rc6.47.test.el9.x86_64/lib/modules/': No such file or directory xz: Compressed data cannot be written to a terminal xz: Try `xz --help' for more information. error: Bad exit status from /var/tmp/rpm-tmp.EaolzQ (%install) Add "-r" to xargs to skip compression if no modules are built. Signed-off-by: Jerome Marchand <jmarchan@xxxxxxxxxx> Signed-off-by: Jan Stancek <jstancek@xxxxxxxxxx> diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100755 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -2348,7 +2348,7 @@ find Documentation -type d | xargs chmod u+w fi \ fi \ if [ "%{zipmodules}" -eq "1" ]; then \ - find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs -P${RPM_BUILD_NCPUS} xz; \ + find $RPM_BUILD_ROOT/lib/modules/ -type f -name '*.ko' | xargs -P${RPM_BUILD_NCPUS} -r xz; \ fi \ %{nil} -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1775 _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-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/kernel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure