]> git.proxmox.com Git - zfsonlinux.git/blame - zfs-patches/0027-Fix-libaio-devel-requirement-for-Debian-based-distri.patch
bump version to 0.7.11-pve1~bpo1
[zfsonlinux.git] / zfs-patches / 0027-Fix-libaio-devel-requirement-for-Debian-based-distri.patch
CommitLineData
a010b409
SI
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: LOLi <loli10K@users.noreply.github.com>
3Date: Sun, 26 Aug 2018 21:43:27 +0200
4Subject: [PATCH] Fix libaio-devel requirement for Debian-based distributions
5
6BuildRequires tags for "-devel" packages in the RPM spec file do not
7work when building on Debian-based distributions.
8
9Fix this issue by making this requirement conditional to RPM-based
10distributions.
11
12Reviewed-by: George Melikov <mail@gmelikov.ru>
13Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
14Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
15Closes #7829
16Closes #7831
17
18Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
19---
20 rpm/generic/zfs.spec.in | 2 ++
21 1 file changed, 2 insertions(+)
22
23diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in
24index 16c5780b..22565725 100644
25--- a/rpm/generic/zfs.spec.in
26+++ b/rpm/generic/zfs.spec.in
27@@ -197,7 +197,9 @@ Requires: sudo
28 Requires: sysstat
29 Requires: rng-tools
30 Requires: libaio
31+%if 0%{?rhel}%{?fedora}%{?suse_version}
32 BuildRequires: libaio-devel
33+%endif
34 AutoReqProv: no
35
36 %description test