[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Not installing to hard-coded locations vs polkit's fixed location

From: Mike Fleetwood
Subject: Not installing to hard-coded locations vs polkit's fixed location
Date: Mon, 21 Aug 2017 11:12:53 +0100


I'm working on adding installation of a polkit action file into
GParted's build and install system, however the polkit daemon only
recongises action files installed into the single location of

Currently the contains this line:
(larger fragment of the below)
    polkit_actiondir = $(datadir)/polkit-1/actions

This allows 'make distcheck' to work and when GParted is built with
'./configure --prefix=/usr' for the polkit action file to be installed
into the required location.  However when prefix is left defaulted to
/usr/local the polkit action file is obviously installed into
/usr/local/share/polkit-1/action/ which is ignored by the polkit daemon.

Are there any resolutions to this?
I could:
1) Leave things as they are and document it as the builders
   responsibility, that when prefix defaults to /usr/local, or anything
   other than /usr, that the polkit action file will need manually
   installing into the correct location under a unique name so as not to
   overright any distro package provided copy.
2) Set polkit_actiondir to /usr/share/polkit-1/action but that is
   against automake guidance and breaks 'make distcheck'.
Are there any other solutions which are reasonable?


Larger fragments of

polkit_action_in_in_FILES =
polkit_action_in_FILES =
polkit_action_FILES = $(
polkit_actiondir = /usr/share/polkit-1/actions
  polkit_action_DATA = $(polkit_action_FILES)

CLEANFILES = $(polkit_action_in_FILES) ...

EXTRA_DIST = $(polkit_action_in_in_FILES) ...

DISTCLEANFILES = $(polkit_action_DATA) ...

do_subst = sed -e 's,address@hidden@],$(sbindir),g' \
        -e 's,address@hidden@],$(bindir),g' \
        -e 's,address@hidden@],$(GKSUPROG),g' \
        -e 's,address@hidden@],$(ENABLE_XHOST_ROOT),g' Makefile
        $(do_subst) < $(srcdir)/ >

reply via email to

[Prev in Thread] Current Thread [Next in Thread]