[Freeipa-devel] [PATCH][SSSD] Fix sssd.spec

Simo Sorce ssorce at redhat.com
Mon Jul 20 18:28:57 UTC 2009


On Mon, 2009-07-20 at 14:14 -0400, Stephen Gallagher wrote:
> Explicitly use /var/lib in the sssd.spec
> 
> The source code currently hardcodes the path to /var/lib, but the
> sssd.spec relies on the value of %{_sharedstatedir}. This is
> broken on systems like RHEL5 where %{_sharedstatedir} resolves to
> /usr/com
> 
Nack,
please define a new variable and assign it differently depending on the
platfrom, either by checking directly for disttags or release names, or
by using a define

Something like:
%if 0%{fedora} > 11
%define sssd_var_lib %{_sharedstatedir}
%else
%define sssd_var_lib /var/lib
%endif

Then always use %{sssd_var_lib}

Simo.

-- 
Simo Sorce * Red Hat, Inc * New York




More information about the Freeipa-devel mailing list