Add note about dealing with Meson install fails
authorSteve Youngs <steve@steveyoungs.com>
Tue, 15 Jun 2021 23:00:43 +0000 (09:00 +1000)
committerSteve Youngs <steve@steveyoungs.com>
Tue, 15 Jun 2021 23:00:43 +0000 (09:00 +1000)
Signed-off-by: Steve Youngs <steve@steveyoungs.com>
etc/pkgusr/handy_funcs

index a73485b..83fc7b4 100644 (file)
@@ -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 ***