From 5753e7a7c503d7f903048163b370efa750209ee2 Mon Sep 17 00:00:00 2001 From: ColMelvin Date: Tue, 25 Jan 2022 15:14:43 -0600 Subject: [PATCH] RPM: Add missing BuildRequires for PAM component When the optional PAM binaries are included in a build, ./configure will look for security/pam_modules.h and - if it doesn't find it - recommend the user install `libpam0g-dev`. On Red Hat systems, `pam-devel` is the package that supplies this requirement; `libpam0g-dev` does not exist. By encoding this requirement in the spec file, we give packagers more appropriate (and timely) recommendations for completing the build. Reviewed-by: Tony Hutter Reviewed-by: Brian Behlendorf Signed-off-by: Chris Lindee Closes #13001 --- rpm/generic/zfs.spec.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpm/generic/zfs.spec.in b/rpm/generic/zfs.spec.in index 25beadce7c..0e9cdcc31f 100644 --- a/rpm/generic/zfs.spec.in +++ b/rpm/generic/zfs.spec.in @@ -148,10 +148,15 @@ BuildRequires: ncompress BuildRequires: libtirpc-devel %endif +%if %{with pam} +BuildRequires: pam-devel +%endif + Requires: openssl %if 0%{?_systemd} BuildRequires: systemd %endif + %endif %if 0%{?_systemd}