From f3b4ffe4df6850869aee75aae98e2ba7a3817a5e Mon Sep 17 00:00:00 2001 From: Steve Youngs Date: Wed, 16 Jun 2021 09:00:43 +1000 Subject: [PATCH] Add note about dealing with Meson install fails Signed-off-by: Steve Youngs --- etc/pkgusr/handy_funcs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/etc/pkgusr/handy_funcs b/etc/pkgusr/handy_funcs index a73485b..83fc7b4 100644 --- a/etc/pkgusr/handy_funcs +++ b/etc/pkgusr/handy_funcs @@ -66,6 +66,21 @@ of the build script... meson introspect --installed -i | awk '{print \$2}'|tr -d '",'|xargs touch -ch +Meson install FAILS: +=================== +Meson has this nifty trick of spawning pkexec (polkit) to gain escalated +privileges if the install stops because of a permission error. There +are 2 downsides to this in a pkgusr environment. + + 1) The actual error is hidden. + 2) If you do authenticate, the entire package will be installed as + root. + +The easiest way around this is to temporarily rename /usr/bin/pkexec +out of the way. Then you will get an actual error message that you +can deal with. (remember to rename pkexec back once the problem is +fixed) + CMake: ===== *** KEEP THE BUILD TREE *** -- 2.25.1