From a18ceab67875bb1e86d9e6f2b502026acab2861f Mon Sep 17 00:00:00 2001 From: Tomas Hozza Date: Jun 11 2014 07:59:12 +0000 Subject: Fix FTBFS (#1106781) - Use kernel-headers instead of kernel-devel for building Signed-off-by: Tomas Hozza --- diff --git a/hyperv-daemons.spec b/hyperv-daemons.spec index 4cdafe9..d308cb0 100644 --- a/hyperv-daemons.spec +++ b/hyperv-daemons.spec @@ -9,7 +9,7 @@ Name: hyperv-daemons Version: 0 -Release: 0.6%{?snapver}%{?dist} +Release: 0.7%{?snapver}%{?dist} Summary: HyperV daemons suite Group: System Environment/Daemons @@ -41,24 +41,14 @@ Source101: hypervvssd.service # HYPERV KVP DAEMON # Correct paths to external scripts ("/usr/libexec/hypervkvpd"). Patch0: hypervkvpd-0-corrected_paths_to_external_scripts.patch -# use quoted include for linux/hyperv.h because we use gcc option -# -iquote for include PATH where it is located. This is because -# some headers in system include PATH are also in kernel-devel -# package. -Patch1: hypervkvpd-0-include_fix.patch # rhbz#872566 -Patch2: hypervkvpd-0-long_file_names_from_readdir.patch +Patch1: hypervkvpd-0-long_file_names_from_readdir.patch # Remove daemon() call and let systemd handle it -Patch3: hypervkvpd-0-dont_call_deamon.patch +Patch2: hypervkvpd-0-dont_call_deamon.patch # HYPERV VSS DAEMON -# use quoted include for linux/hyperv.h because we use gcc option -# -iquote for include PATH where it is located. This is because -# some headers in system include PATH are also in kernel-devel -# package. -Patch100: hypervvssd-0-fix_includes.patch # Remove daemon() call and let systemd handle it -Patch101: hypervvssd-0-dont_call_daemon.patch +Patch100: hypervvssd-0-dont_call_daemon.patch # HyperV is available only on x86 architectures # The base empty (a.k.a. virtual) package can not be noarch @@ -77,7 +67,7 @@ is running on Windows Host with HyperV. Summary: HyperV key value pair (KVP) daemon Group: System Environment/Daemons Requires: %{name}-license = %{version}-%{release} -BuildRequires: systemd, kernel-devel +BuildRequires: systemd, kernel-headers Requires(post): systemd Requires(preun): systemd Requires(postun): systemd @@ -94,7 +84,7 @@ IP injection functionality on the Guest. Summary: HyperV VSS daemon Group: System Environment/Daemons Requires: %{name}-license = %{version}-%{release} -BuildRequires: systemd, kernel-devel +BuildRequires: systemd, kernel-headers Requires(post): systemd Requires(preun): systemd Requires(postun): systemd @@ -131,22 +121,16 @@ cp -pvL %{SOURCE100} hv_vss_daemon.c cp -pvL %{SOURCE101} hypervvssd.service %patch0 -p1 -b .external_scripts -%patch1 -p1 -b .include -%patch2 -p1 -b .long_names -%patch3 -p1 -b .daemon +%patch1 -p1 -b .long_names +%patch2 -p1 -b .daemon -%patch100 -p1 -b .include -%patch101 -p1 -b .daemon +%patch100 -p1 -b .daemon %build -# kernel-devel version -%{!?kversion: %global kversion `ls %{_usrsrc}/kernels | sort -dr | head -n 1`} - # HYPERV KVP DAEMON gcc \ $RPM_OPT_FLAGS \ - -iquote %{_usrsrc}/kernels/%{kversion}/include \ -c hv_kvp_daemon.c gcc \ @@ -157,7 +141,6 @@ gcc \ # HYPERV VSS DAEMON gcc \ $RPM_OPT_FLAGS \ - -iquote %{_usrsrc}/kernels/%{kversion}/include \ -c hv_vss_daemon.c gcc \ @@ -227,6 +210,10 @@ fi %doc COPYING %changelog +* Wed Jun 11 2014 Tomas Hozza - 0-0.7.20140219git +- Fix FTBFS (#1106781) +- Use kernel-headers instead of kernel-devel for building + * Sat Jun 07 2014 Fedora Release Engineering - 0-0.6.20140219git - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild diff --git a/hypervkvpd-0-include_fix.patch b/hypervkvpd-0-include_fix.patch deleted file mode 100644 index a838235..0000000 --- a/hypervkvpd-0-include_fix.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up hypervkvpd-0/hv_kvp_daemon.c.include hypervkvpd-0/hv_kvp_daemon.c ---- hypervkvpd-0/hv_kvp_daemon.c.include 2013-03-20 14:47:30.812899613 +0100 -+++ hypervkvpd-0/hv_kvp_daemon.c 2013-03-20 14:47:42.337896971 +0100 -@@ -35,7 +35,7 @@ - #include - #include - #include --#include -+#include "linux/hyperv.h" - #include - #include - #include diff --git a/hypervvssd-0-fix_includes.patch b/hypervvssd-0-fix_includes.patch deleted file mode 100644 index c65dcaf..0000000 --- a/hypervvssd-0-fix_includes.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up ./hv_vss_daemon.c.include ./hv_vss_daemon.c ---- ./hv_vss_daemon.c.include 2013-06-26 10:36:36.444910963 +0200 -+++ ./hv_vss_daemon.c 2013-06-26 10:37:22.115951240 +0200 -@@ -34,7 +34,7 @@ - #include - #include - #include --#include -+#include "linux/hyperv.h" - #include - #include -