﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
17025	Allow optionally building polkit with duktape instead of mozjs	ken@…	Tim Tassonis	"This was mentioned in #16807.

The systemd book might move to mozjs-102 when gnome-43 arrives, I leave discussion of that to the editors who use systemd.

Bruce has used '-Djs_engine=mozjs' in polkit-121 which can be changed.

From a reply by 'drfiemost' in blfs-support on 8th August asking if anyone had tried it on LFS (reformatted):

""I've been using it since a while and noticed no problems.
 I'm building duktape-2.7.0 with the following recipe
 (the sed is there to replace -Os with my own CFLAGS,
 you might want to use -O2):
 
 sed -i 's/-Os//' Makefile.sharedlibrary
 make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr
 make -f Makefile.sharedlibrary INSTALL_PREFIX=/usr install
 
Then you can use --with-duktape to build polkit.""

looking at the gentoo ebuild for polkit, -Djs_engine=duktape if using duktape

[https://duktape.org/]
[https://github.com/svaarala/duktape/releases]

Gentoo has a patch against 2.7.0, duktape-2.7.0-respect-tc-env.patch to remove the trailing -Os, for people who do NOT set CFLAGS I agree that -O2 is the way to go, either by sed or patch+CFLAGS=.

The arch (aur) build of 2.7.0 implies no dependencies other than glibc and gcc.

"	enhancement	closed	normal	11.3	BOOK	git	medium	fixed		
