[Spice-devel] [PATCH][spice-gtk] build-sys: make path to polkit consider prefix.

Marc-André Lureau mlureau at redhat.com
Mon Dec 8 11:28:00 PST 2014


Hi

----- Original Message -----
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index b55f3a0..c150e2f 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -449,7 +449,7 @@ if test "x$have_usbredir" = "xyes" && test
> "x$enable_polkit" != "xno"; then
>      AC_DEFINE([USE_POLKIT], [1], [Define if supporting polkit])
>    fi
>    AM_CONDITIONAL([WITH_POLKIT], [test "x$have_polkit" = "xyes"])
> -  POLICYDIR=`${PKG_CONFIG} polkit-gobject-1 --variable=policydir`
> +  POLICYDIR="${prefix}/`${PKG_CONFIG} polkit-gobject-1
> --variable=policydir`"

Hmm, is this going to work?
$ pkg-config polkit-gobject-1 --variable=policydir
/usr/share/polkit-1/actions/

Prepending /usr isn't good.

If you want to install out of prefix, you should consider DESTDIR=/tmp/foo make install

>    AC_SUBST(POLICYDIR)
>    # Check for polkit_authority_get_sync()
>    AC_CHECK_LIB([polkit-gobject-1], [polkit_authority_get_sync],
>    ac_have_pk_auth_get_sync="1", ac_have_pk_auth_get_sync="0")
> --
> 2.1.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list