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

Stephen Gallagher sgallagh at redhat.com
Mon Jul 20 18:40:52 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/20/2009 02:28 PM, Simo Sorce wrote:
> 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.
> 

I disagree. This doesn't make any sense. That statement parses to:
If the sharedstatedir == /var/lib, use sharedstatedir, otherwise, use
/var/lib. It seems incongruous to use another variable there.

If we're going to nack it, I'd rather we just state outright that we
need to fix the code to always create the pipes in sharedstatedir,
rather than hard-coding /var/lib.

This fix was just meant to hold us over until we get around to doing that.

- -- 
Stephen Gallagher
RHCE 804006346421761

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkpkui4ACgkQeiVVYja6o6NcdgCbBWWl2SUvWAw71zxreSYshHXB
XR8An07IMbWMyGKykFOZiP4kaVA+pNNa
=4iU7
-----END PGP SIGNATURE-----




More information about the Freeipa-devel mailing list