polkit-org / polkit

polkit (formerly PolicyKit) is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to speak to privileged processes.
Other
48 stars 27 forks source link

How about the ACTUAL instructions to compile polkit with meson? #420

Closed Jibun-no-Kage closed 2 months ago

Jibun-no-Kage commented 6 months ago

How about the ACTUAL instructions to compile polkit with meson? Sorry but the following is means nothing (to me)...

$ meson setup [[-D option]...] target_directory
$ meson compile -C target_directory
...
# meson install -C target_directory

Yes I can git clone the sources but then what? Expecting something like...

# git clone https://gitlab.gnome.org/GNOME/glib.git
# cd glib
# /usr/local/bin/meson setup _build
# /usr/local/bin/meson compile -C _build
# /usr/local/bin/meson install -C _build

At least those that created the latest glib library provided the actual steps to create the library.

Jibun-no-Kage commented 6 months ago

Well I think I got polkit compiled but the project that needs it cannot find it... trying to create gdm-settings application, but it fails to find polkit even though I think I was able to compile and install it?

# cd polkit
# /usr/local/bin/meson setup _build
# /usr/local/bin/meson compile -C _build
# /usr/local/bin/meson install -C _build

But I guess not?

jrybar-rh commented 5 months ago

Hello,

If I may suggest, the documentation to meson build system is extensive and well-structured, I'd start with that.
If you need inspiration, you can observe our CI file that calls meson for testing purposes.

trying to create gdm-settings application, but it fails to find polkit even though I think I was able to compile and install it?

Is polkit daemon running? Are the configuration files in the expected directories (adjustable in the configuration phase of polkit build. Defaults should be ok, but that depends on your linux distro)? Why don't you use the package distributed with your linux distro? That sets everything as it should be and starts the daemon automatically.

Good luck, have fun!