Opened 3 years ago
Closed 3 years ago
#17025 closed enhancement (fixed)
Allow optionally building polkit with duktape instead of mozjs
Reported by: | Owned by: | Tim Tassonis | |
---|---|---|---|
Priority: | normal | Milestone: | 11.3 |
Component: | BOOK | Version: | git |
Severity: | normal | Keywords: | |
Cc: |
Description ¶
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.
Change History (4)
comment:1 by , 3 years ago
comment:2 by , 3 years ago
Summary: | On sysv, replace mozjs-91 with duktape → Allow optionally building polkit with duktape instead of mozjs |
---|
comment:3 by , 3 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in commit f401faa609
This is my first new blfs page, I hope I've done everything as expected.
Why "on sysv"? Both sysv and systemd have GNOME now.