PackageKit has this in configure.ac: # try and guess this if nothing is listed if test x$with_security_framework = x; then if test -f /usr/bin/pkaction ; then with_security_framework=polkit else AC_MSG_ERROR([--with-security-framework explicitly required when not using PolicyKit or RBAC]) fi fi which fails if pkaction is not in /usr/bin but somewhere else in the PATH.
Created attachment 69820 [details] [review] build: simplify check for polkit So the old logic was approximately like this: if security framework not explicitly specified: if (broken check) polkit installed: use it else: fail if using polkit: pkg-config polkit, possibly failing In other words (assuming the broken check was working) the logic is that if you don't specify an explicit security framework and polkit is not installed, the build will fail. There's a much more direct way of doing that: just go ahead and assume that we should use polkit if nobody explicitly specified another option. The build will fail just as well when we hit the pkgconfig check if polkit is not installed.
Pushed to master, thanks.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.