head 1.2; access; symbols pkgsrc-2023Q1:1.1.0.14 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.12 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.10 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.8 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.6 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.4 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.2 pkgsrc-2021Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2023.06.07.15.36.40; author wiz; state dead; branches; next 1.1; commitid OerXgYpZf3loT1sE; 1.1 date 2021.06.28.12.38.46; author nia; state Exp; branches; next ; commitid 7ZpLVJ6dUIwyHTYC; desc @@ 1.2 log @polkit: update to 121. ## polkit 121 ### Highlights: - new versioning - duktape added as backend JS engine - autotools build system removed - new translations ### Changes since polkit 0.120: * Simon McVittie * meson and testsuite fixes * Bastien Nocera * add ability to create policyconfig-1.dtd file * Xi Ruoyao * port to newer mozjs-91, jsauthority tweaks * Wu Xiaotian and Gustavo Lima Chaves * Add duktape as javascript engine * Nathan Follens * Dutch translation * Daniel E * duktape fixup * Fabrice Fontaine * fix build without C++ * Dan Nicholson * fixup in group permision checking (backend) * Phaedrus Leeds * typo fix * Adrian Vovk * add option (--keep-cwd) for pkexec * Matt Turner * Allow --version and --help even if not setuid root * Benedikt Ames * fixes in polkitagent * Vincent Mihalkovic * development support @ text @$NetBSD: patch-src_polkitbackend_meson.build,v 1.1 2021/06/28 12:38:46 nia Exp $ Add duktape as javascript engine. https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/35 --- src/polkitbackend/meson.build.orig 2021-05-19 07:47:09.000000000 +0000 +++ src/polkitbackend/meson.build @@@@ -5,7 +5,6 @@@@ sources = files( 'polkitbackendactionpool.c', 'polkitbackendauthority.c', 'polkitbackendinteractiveauthority.c', - 'polkitbackendjsauthority.cpp', ) output = 'initjs.h' @@@@ -21,7 +20,7 @@@@ sources += custom_target( deps = [ expat_dep, libpolkit_gobject_dep, - mozjs_dep, + js_dep, ] c_flags = [ @@@@ -31,6 +30,13 @@@@ c_flags = [ '-DPACKAGE_SYSCONF_DIR="@@0@@"'.format(pk_prefix / pk_sysconfdir), ] +if js_engine == 'duktape' + sources += files('polkitbackendduktapeauthority.c') + deps += libm_dep +elif js_engine == 'mozjs' + sources += files('polkitbackendjsauthority.cpp') +endif + if enable_logind sources += files('polkitbackendsessionmonitor-systemd.c') @ 1.1 log @polkit: Add duktape backend. Disable mozjs dependency. Based on an unmerged merge request by Wu Xiaotian: https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/35 Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @