]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Add BuildRequires gcc, make, elfutils-libelf-devel
authorTony Hutter <hutter2@llnl.gov>
Wed, 7 Nov 2018 23:48:24 +0000 (15:48 -0800)
committerTony Hutter <hutter2@llnl.gov>
Thu, 8 Nov 2018 22:38:28 +0000 (14:38 -0800)
This adds a BuildRequires for gcc, make, and elfutils-libelf-devel
into our spec files.  gcc has been a packaging requirement for
awhile now:

https://fedoraproject.org/wiki/Packaging:C_and_C%2B%2B

These additional BuildRequires allow us to mock build in
Fedora 29.

Reviewed-by: Neal Gompa <ngompa@datto.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #8095
Closes #8102

rpm/generic/zfs-kmod.spec.in
rpm/generic/zfs.spec.in

index d4746f5bb65ca6d469e2bdfd71a9e6c8449e4ddc..ecf14ecef374ad80fe97911652067770693efcc0 100644 (file)
@@ -52,6 +52,10 @@ URL:            http://zfsonlinux.org/
 Source0:        %{module}-%{version}.tar.gz
 Source10:       kmodtool
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id} -u -n)
+%if 0%{?rhel}%{?fedora}
+BuildRequires:  gcc, make
+BuildRequires:  elfutils-libelf-devel
+%endif
 
 # The developments headers will conflict with the dkms packages.
 Conflicts:      %{module}-dkms
index fa6f157143515008576481dbe0faf9d8795d46db..c1b8f2c8e12f451553a495fc969c1127393d1a86 100644 (file)
@@ -91,6 +91,7 @@ Provides:       %{name}-kmod-common = %{version}
 Conflicts:      zfs-fuse
 
 %if 0%{?rhel}%{?fedora}%{?suse_version}
+BuildRequires:  gcc, make
 BuildRequires:  zlib-devel
 BuildRequires:  libuuid-devel
 BuildRequires:  libblkid-devel