[SSSD] [PATCH] SPEC: Use libnl3 for epel6

Jakub Hrozek jhrozek at redhat.com
Mon Jan 19 22:14:58 UTC 2015


On Mon, Jan 19, 2015 at 04:42:15PM +0100, Lukas Slebodnik wrote:
> ehlo,
> 
> RHEL/CentoOS 6.6 already contains libnl3.
> 
> LS

> From c1ba55900dacc47424348ad7aa57bdaa8b3f7bff Mon Sep 17 00:00:00 2001
> From: Lukas Slebodnik <lslebodn at redhat.com>
> Date: Mon, 19 Jan 2015 15:58:44 +0100
> Subject: [PATCH] SPEC: Use libnl3 for epel6
> 
> RHEL6.6 contains libnl3.
> ---
>  contrib/sssd.spec.in | 4 ----
>  1 file changed, 4 deletions(-)
> 
> diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
> index bea68f1bbceac232f4ca019111b6262dca3380eb..37d1b963dc2745a22efb3f93d78e7b505343e132 100644
> --- a/contrib/sssd.spec.in
> +++ b/contrib/sssd.spec.in
> @@ -118,11 +118,7 @@ BuildRequires: libcmocka-devel
>  BuildRequires: uid_wrapper
>  BuildRequires: nss_wrapper
>  %endif
> -%if (0%{?fedora} || 0%{?rhel} >= 7)
>  BuildRequires: libnl3-devel
> -%else
> -BuildRequires: libnl-devel
> -%endif
>  %if (0%{?use_systemd} == 1)
>  BuildRequires: systemd-devel
>  %endif
> -- 
> 2.1.0
> 

Mock passes with or without the patch. With the patch the requires look
like this:
$ rpm -qp --requires /var/lib/mock/epel-6-x86_64/result/sssd-common-1.12.90-0.el6.x86_64.rpm | grep libnl
libnl-3.so.200()(64bit)
libnl-route-3.so.200()(64bit)

Before they were:
$ rpm -qp --requires /var/lib/mock/epel-6-x86_64/result/sssd-common-1.12.90-0.el6.x86_64.rpm | grep libnl
libnl.so.1()(64bit)

ACK



More information about the sssd-devel mailing list