]> git.proxmox.com Git - zfsonlinux.git/blame - zfs-patches/0019-Add-BuildRequires-gcc-make-elfutils-libelf-devel.patch
update/rebase to zfs-0.7.12 with patches from ZOL
[zfsonlinux.git] / zfs-patches / 0019-Add-BuildRequires-gcc-make-elfutils-libelf-devel.patch
CommitLineData
04a710dd
SI
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Tony Hutter <hutter2@llnl.gov>
3Date: Wed, 7 Nov 2018 15:48:24 -0800
4Subject: [PATCH] Add BuildRequires gcc, make, elfutils-libelf-devel
5
6This adds a BuildRequires for gcc, make, and elfutils-libelf-devel
7into our spec files. gcc has been a packaging requirement for
8awhile now:
9
10https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B
11
12These additional BuildRequires allow us to mock build in
13Fedora 29.
14
15Reviewed-by: Neal Gompa <ngompa@datto.com>
16Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
17Signed-off-by: Tony Hutter <hutter2@llnl.gov>
18Closes #8095
19Closes #8102
20---
21 rpm/generic/zfs-kmod.spec.in | 4 ++++
22 rpm/generic/zfs.spec.in | 1 +
23 2 files changed, 5 insertions(+)
24
25diff --git a/rpm/generic/zfs-kmod.spec.in b/rpm/generic/zfs-kmod.spec.in
26index d4746f5b..ecf14ece 100644
27--- a/rpm/generic/zfs-kmod.spec.in
28+++ b/rpm/generic/zfs-kmod.spec.in
29@@ -52,6 +52,10 @@ URL: http://zfsonlinux.org/
30 Source0: %{module}-%{version}.tar.gz
31 Source10: kmodtool
32 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id} -u -n)
33+%if 0%{?rhel}%{?fedora}
34+BuildRequires: gcc, make
35+BuildRequires: elfutils-libelf-devel
36+%endif
37
38 # The developments headers will conflict with the dkms packages.
39 Conflicts: %{module}-dkms
40diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
41index fa6f1571..c1b8f2c8 100644
42--- a/rpm/generic/zfs.spec.in
43+++ b/rpm/generic/zfs.spec.in
44@@ -91,6 +91,7 @@ Provides: %{name}-kmod-common = %{version}
45 Conflicts: zfs-fuse
46
47 %if 0%{?rhel}%{?fedora}%{?suse_version}
48+BuildRequires: gcc, make
49 BuildRequires: zlib-devel
50 BuildRequires: libuuid-devel
51 BuildRequires: libblkid-devel