Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 elogind (246.10-2.0antix1) unstable; urgency=medium
 .
   * antiX build without polkit support
Author: anticapitalista <antix@operamail.com>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2021-03-29

--- elogind-246.10.orig/meson.build
+++ elogind-246.10/meson.build
@@ -1155,6 +1155,15 @@ if want_polkit != 'false' and not skip_d
                 message('Old polkit detected, will install pkla files')
                 install_polkit_pkla = true
         endif
+#if 1 /// Disable polkit completely if libpolkit is not there. See elogind issue #167
+        if not libpolkit.found()
+                if want_polkit != 'auto'
+                        error('Polkit requested but libpolkit was not found.')
+                endif
+                install_polkit = false
+                want_polkit    = false
+        endif
+#endif // 1
 endif
 conf.set10('ENABLE_POLKIT', install_polkit)
 
