Skip to content
Snippets Groups Projects
Commit 0e16d5c9 authored by Jan Alexander Steffens (heftig)'s avatar Jan Alexander Steffens (heftig)
Browse files

0.120-4: CVE-2021-4034

parent 8ede506d
No related branches found
Tags 0.120-4
No related merge requests found
......@@ -3,7 +3,7 @@
pkgname=polkit
pkgver=0.120
pkgrel=3
pkgrel=4
pkgdesc="Application development toolkit for controlling system-wide privileges"
arch=(x86_64)
license=(LGPL)
......@@ -13,14 +13,26 @@ makedepends=(meson gtk-doc gobject-introspection git)
checkdepends=(python-dbusmock)
backup=(etc/pam.d/polkit-1)
_commit=92b910ce2273daf6a76038f6bd764fa6958d4e8e # tags/0.120
source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit")
sha256sums=('SKIP')
source=("git+https://gitlab.freedesktop.org/polkit/polkit.git#commit=$_commit"
meson-0.61.diff)
sha256sums=('SKIP'
'45d08bbb76e1e22ca8e698df04652b7aceaded34f9b76ce6b68152fb26b0de8d')
pkgver() {
cd polkit
git describe --tags | sed 's/-/+/g'
}
prepare() {
cd polkit
# CVE-2021-4034
git cherry-pick -n a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
# Fix build with Meson 0.61.0
git apply -3 ../meson-0.61.diff
}
build() {
arch-meson polkit build \
-D session_tracking=libsystemd-login \
......
diff --git i/actions/meson.build w/actions/meson.build
index 2abaaf3..1e3f370 100644
--- i/actions/meson.build
+++ w/actions/meson.build
@@ -1,7 +1,6 @@
policy = 'org.freedesktop.policykit.policy'
i18n.merge_file(
- policy,
input: policy + '.in',
output: '@BASENAME@',
po_dir: po_dir,
diff --git i/src/examples/meson.build w/src/examples/meson.build
index c6305ab..8c18de5 100644
--- i/src/examples/meson.build
+++ w/src/examples/meson.build
@@ -1,7 +1,6 @@
policy = 'org.freedesktop.policykit.examples.pkexec.policy'
i18n.merge_file(
- policy,
input: policy + '.in',
output: '@BASENAME@',
po_dir: po_dir,
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment