Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148920355
D35825.1789166749.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
6 KB
Referenced Files
None
Subscribers
None
D35825.1789166749.diff
View Options
diff --git a/sysutils/polkit/Makefile b/sysutils/polkit/Makefile
--- a/sysutils/polkit/Makefile
+++ b/sysutils/polkit/Makefile
@@ -1,15 +1,8 @@
-# Created by: Koop Mast<kwm@FreeBSD.org>
-
PORTNAME= polkit
-PORTVERSION= 0.120
-PORTREVISION= 2
+PORTVERSION= 121
CATEGORIES= sysutils gnome
MASTER_SITES= https://www.freedesktop.org/software/polkit/releases/
-PATCH_SITES= https://gitlab.freedesktop.org/${PORTNAME}/${PORTNAME}/-/commit/
-PATCHFILES+= e7f3d9e8341d.patch:-p1 # https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/99
-PATCHFILES+= a2bf5c9c83b6.patch:-p1 # https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/104 (CVE-2021-4034)
-
MAINTAINER= desktop@FreeBSD.org
COMMENT= Framework for controlling access to system-wide components
@@ -17,19 +10,20 @@
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libexpat.so:textproc/expat2 \
- libdbus-1.so:devel/dbus \
- libmozjs-91.so:lang/spidermonkey91
+ libdbus-1.so:devel/dbus
USERS= polkitd
GROUPS= polkitd
-USES= compiler:c++11-lib cpe gettext gnome libtool localbase meson \
+USES= compiler:c++17-lang cpe gettext gnome libtool localbase meson \
pathfix pkgconfig shebangfix
USE_GNOME= glib20 intltool introspection:build
SHEBANG_FILES= ${WRKSRC}/src/polkitbackend/toarray.pl
USE_LDCONFIG= yes
CPE_VENDOR= polkit_project
+WRKSRC= ${WRKDIR}/${PORTNAME}-v.${PORTVERSION}
+
MESON_ARGS= -Dpam_include=system \
-Dpolkitd_user=${USERS} \
-Dexamples=false \
@@ -39,9 +33,21 @@
-Dlocalstatedir=/var \
-Dgtk_doc=false
-INSTALL_TARGET= install-strip
-
OPTIONS_DEFINE= MANPAGES
+OPTIONS_DEFAULT= SPIDERMONKEY
+
+OPTIONS_SINGLE= JS
+OPTIONS_SINGLE_JS= DUKTAPE SPIDERMONKEY
+
+JS_DESC= JavaScript engines
+DUKTAPE_DESC= Duktape JavaScript backend
+SPIDERMONKEY_DESC= SpiderMonkey JavaScript backend
+
+DUKTAPE_LIB_DEPENDS= libduktape.so:lang/duktape-lib
+DUKTAPE_MESON_ON= -Djs_engine='duktape'
+
+SPIDERMONKEY_LIB_DEPENDS= libmozjs-91.so:lang/spidermonkey91
+SPIDERMONKEY_MESON_ON= -Djs_engine='mozjs'
MANPAGES_BUILD_DEPENDS= docbook-sgml>=4.5:textproc/docbook-sgml \
docbook-xsl>=1.76:textproc/docbook-xsl
diff --git a/sysutils/polkit/distinfo b/sysutils/polkit/distinfo
--- a/sysutils/polkit/distinfo
+++ b/sysutils/polkit/distinfo
@@ -1,7 +1,5 @@
-TIMESTAMP = 1656189343
-SHA256 (polkit-0.120.tar.gz) = ee7a599a853117bf273548725719fa92fabd2f136915c7a4906cee98567aee03
-SIZE (polkit-0.120.tar.gz) = 1626659
-SHA256 (e7f3d9e8341d.patch) = 9a84b59d38b3f86c70c5fc3a28cbfe8d7a22cf190eb20ff433f7f53f5ff73a9a
-SIZE (e7f3d9e8341d.patch) = 1201
-SHA256 (a2bf5c9c83b6.patch) = 5930a48bf4262a7c89f8737a1a5a648bd41cfdb6476dcca1140cba6555b67d2c
-SIZE (a2bf5c9c83b6.patch) = 2070
+TIMESTAMP = 1657804482
+SHA256 (polkit-121.tar.gz) = 9dc7ae341a797c994a5a36da21963f0c5c8e3e5a1780ccc2a5f52e7be01affaa
+SIZE (polkit-121.tar.gz) = 743287
+SHA256 (b57deee81781.patch) = f210c62604203e9ae20cc4ce7c65c08ed2b5904ba64aa9fd7a339bccdb2240de
+SIZE (b57deee81781.patch) = 8871
diff --git a/sysutils/polkit/files/patch-meson.build b/sysutils/polkit/files/patch-meson.build
--- a/sysutils/polkit/files/patch-meson.build
+++ b/sysutils/polkit/files/patch-meson.build
@@ -1,11 +1,11 @@
---- meson.build.orig 2021-09-29 19:16:29 UTC
+--- meson.build.orig 2022-07-11 08:46:06 UTC
+++ meson.build
-@@ -133,10 +133,10 @@ assert(cc.has_function('XML_ParserCreate', dependencie
- assert(cc.has_header('expat.h', dependencies: expat_dep), 'Can\'t find expat.h. Please install expat.')
- assert(cc.has_function('XML_ParserCreate', dependencies: expat_dep), 'Can\'t find expat library. Please install expat.')
-
--mozjs_dep = dependency('mozjs-78')
-+mozjs_dep = dependency('mozjs-91')
+@@ -148,10 +148,11 @@ if js_engine == 'duktape'
+ config_h.set('HAVE_' + func.to_upper(), cc.has_function(func, prefix : '#include <pthread.h>'))
+ elif js_engine == 'mozjs'
+ js_dep = dependency('mozjs-91')
++ config_h.set('__BSD_VISIBLE', 1)
+ endif
dbus_dep = dependency('dbus-1', required: false)
-dbus_policydir = pk_prefix / pk_datadir / 'dbus-1/system.d'
@@ -13,7 +13,7 @@
if dbus_dep.found()
dbus_system_bus_services_dir = dbus_dep.get_pkgconfig_variable('system_bus_services_dir', define_variable: ['datadir', pk_prefix / pk_datadir])
else
-@@ -329,15 +329,6 @@ configure_file(
+@@ -344,15 +345,6 @@ endif
configure_file(
output: 'config.h',
configuration: config_h,
diff --git a/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendjsauthority.cpp b/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendjsauthority.cpp
deleted file mode 100644
--- a/sysutils/polkit/files/patch-src_polkitbackend_polkitbackendjsauthority.cpp
+++ /dev/null
@@ -1,33 +0,0 @@
---- src/polkitbackend/polkitbackendjsauthority.cpp.orig 2022-06-25 20:41:05 UTC
-+++ src/polkitbackend/polkitbackendjsauthority.cpp
-@@ -75,6 +75,13 @@
-
- /* ---------------------------------------------------------------------------------------------------- */
-
-+static class JsInitHelperType
-+{
-+public:
-+ JsInitHelperType() { JS_Init(); }
-+ ~JsInitHelperType() { JS_ShutDown(); }
-+} JsInitHelper;
-+
- struct _PolkitBackendJsAuthorityPrivate
- {
- gchar **rules_dirs;
-@@ -589,7 +596,6 @@ polkit_backend_js_authority_finalize (GObject *object)
- delete authority->priv->js_polkit;
-
- JS_DestroyContext (authority->priv->cx);
-- /* JS_ShutDown (); */
-
- G_OBJECT_CLASS (polkit_backend_js_authority_parent_class)->finalize (object);
- }
-@@ -665,8 +671,6 @@ polkit_backend_js_authority_class_init (PolkitBackendJ
-
-
- g_type_class_add_private (klass, sizeof (PolkitBackendJsAuthorityPrivate));
--
-- JS_Init ();
- }
-
- /* ---------------------------------------------------------------------------------------------------- */
diff --git a/sysutils/polkit/pkg-plist b/sysutils/polkit/pkg-plist
--- a/sysutils/polkit/pkg-plist
+++ b/sysutils/polkit/pkg-plist
@@ -63,6 +63,7 @@
share/locale/hu/LC_MESSAGES/polkit-1.mo
share/locale/id/LC_MESSAGES/polkit-1.mo
share/locale/it/LC_MESSAGES/polkit-1.mo
+share/locale/nl/LC_MESSAGES/polkit-1.mo
share/locale/nn/LC_MESSAGES/polkit-1.mo
share/locale/pl/LC_MESSAGES/polkit-1.mo
share/locale/pt/LC_MESSAGES/polkit-1.mo
@@ -75,6 +76,7 @@
share/locale/zh_CN/LC_MESSAGES/polkit-1.mo
share/locale/zh_TW/LC_MESSAGES/polkit-1.mo
share/polkit-1/actions/org.freedesktop.policykit.policy
+share/polkit-1/policyconfig-1.dtd
@dir(polkitd,,700) etc/polkit-1/rules.d
@dir(polkitd,,700) share/polkit-1/rules.d
@dir etc/polkit-1/localauthority/90-mandatory.d
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Sep 11, 10:45 PM (1 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29562787
Default Alt Text
D35825.1789166749.diff (6 KB)
Attached To
Mode
D35825: sysutils/polkit: Update to 121
Attached
Detach File
Event Timeline
Log In to Comment