diff --git a/srcpkgs/polkit/template b/srcpkgs/polkit/template
index 1d009247956..6da8cf80edb 100644
--- a/srcpkgs/polkit/template
+++ b/srcpkgs/polkit/template
@@ -15,6 +15,11 @@ checksum=02ae544547211b687818c97bcbf19bf6b8b5be7fda93000525a8765c7bed1ea1
 hostmakedepends="pkg-config intltool libxslt docbook-xsl gobject-introspection"
 makedepends="glib-devel expat-devel pam-devel systemd-devel js-devel shadow"
 
+pre_configure() {
+	# Drop requirement of /sys/fs/cgroup/systemd test in configure... WTF.
+	sed -e 's,/sys/fs/cgroup/systemd/,/sys/fs/cgroup,g' -i configure
+}
+
 post_install() {
 	vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
 	vinstall ${FILESDIR}/polkit.tmpfiles 644 usr/lib/tmpfiles.d polkit.conf