[ovs-dev] [PATCH] fedora.spec: Disable rpmbuild unpackaged files check.
William Tu
u9012063 at gmail.com
Tue Aug 2 21:41:42 UTC 2016
Starting with RPM 4.1, rpmbuild will exit if all files in the $RPM_BUILD_ROOT
directory are not found in the %files section, resulting errors below:
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/include/ovn/actions.h
/usr/include/ovn/expr.h
/usr/include/ovn/lex.h
The patch disables it and tested with rpmbuild 4.13.0 under Fedora 23.
Signed-off-by: William Tu <u9012063 at gmail.com>
---
rhel/openvswitch-fedora.spec.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
index 088afcb..f1edd58 100644
--- a/rhel/openvswitch-fedora.spec.in
+++ b/rhel/openvswitch-fedora.spec.in
@@ -13,6 +13,10 @@
#%define kernel 2.6.40.4-5.fc15.x86_64
+# Starting with RPM 4.1, rpmbuild will exit if all files in the $RPM_BUILD_ROOT
+# directory are not found in the %files. Disable it here.
+%define _unpackaged_files_terminate_build 0
+
# If libcap-ng isn't available and there is no need for running OVS
# as regular user, specify the '--without libcapng'
%bcond_without libcapng
--
2.5.0
More information about the dev
mailing list