Bug 276552 - sysutils/polkit: Does not configure with Spidermonkey option.
Summary: sysutils/polkit: Does not configure with Spidermonkey option.
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-desktop (Team)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-23 10:18 UTC by robbak
Modified: 2024-01-23 10:31 UTC (History)
1 user (show)

See Also:
arrowd: maintainer-feedback+


Attachments
Meson build log file (22.48 KB, text/plain)
2024-01-23 10:18 UTC, robbak
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description robbak 2024-01-23 10:18:33 UTC
Created attachment 247880 [details]
Meson build log file

This port does not build when the SpiderMonkey javascript backend is selected. Apparent reason is that it is looking for mozjs version 1.15, but there isn't a port for that version.

Build using the default Duktape javascript backend works fine.

Build log:

$sudo make clean build
===>  Cleaning for polkit-124_1
===>  License LGPL20+ accepted by the user
===>   polkit-124_1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by polkit-124_1 for building
===>  Extracting for polkit-124_1
=> SHA256 Checksum OK for polkit-124.tar.bz2.
===>  Patching for polkit-124_1
===>  Applying FreeBSD patches for polkit-124_1 from /usr/ports/sysutils/polkit/files
===>   polkit-124_1 depends on package: gettext-runtime>=0.22_1 - found
===>   polkit-124_1 depends on executable: msgfmt - found
===>   polkit-124_1 depends on file: /usr/local/bin/intltool-extract - found
===>   polkit-124_1 depends on executable: g-ir-scanner - found
===>   polkit-124_1 depends on executable: meson - found
===>   polkit-124_1 depends on executable: ninja - found
===>   polkit-124_1 depends on package: pkgconf>=1.3.0_1 - found
===>   polkit-124_1 depends on file: /usr/local/bin/ccache - found
===>   polkit-124_1 depends on shared library: libexpat.so - found (/usr/local/lib/libexpat.so)
===>   polkit-124_1 depends on shared library: libdbus-1.so - found (/usr/local/lib/libdbus-1.so)
===>   polkit-124_1 depends on shared library: libmozjs-102.so - found (/usr/local/lib/libmozjs-102.so)
===>   polkit-124_1 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===>   polkit-124_1 depends on shared library: libglib-2.0.so - found (/usr/local/lib/libglib-2.0.so)
===>   polkit-124_1 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so)
===>  Configuring for polkit-124_1
WARNING: Recommend using either -Dbuildtype or -Doptimization + -Ddebug. Using both is redundant since they override each other. See: https://mesonbuild.com/Builtin-options.html#build-type-options
The Meson build system
Version: 1.3.1
Source dir: /usr/home/obj/ports/usr/ports/sysutils/polkit/work/polkit-124
Build dir: /usr/home/obj/ports/usr/ports/sysutils/polkit/work/polkit-124/_build
Build type: native build
Project name: polkit
Project version: 124
C compiler for the host machine: cc (clang 17.0.6 "FreeBSD clang version 17.0.6 (https://github.com/llvm/llvm-project.git llvmorg-17.0.6-0-g6009708b4367)")
C linker for the host machine: cc ld.lld 17.0.6
Host machine cpu family: x86_64
Host machine cpu: x86_64
Checking for function "clearenv" : YES 
Checking for function "fdatasync" : YES 
Checking for function "setnetgrent" : YES 
meson.build:124: WARNING: Consider using the built-in option for language standard version instead of using "-std=c99".
Found pkg-config: YES (/usr/local/bin/pkgconf) 2.0.3
Run-time dependency gio-2.0 found: YES 2.78.3
Run-time dependency gio-unix-2.0 found: YES 2.78.3
Run-time dependency glib-2.0 found: YES 2.78.3
Run-time dependency gobject-2.0 found: YES 2.78.3
Run-time dependency expat found: YES 2.5.0
Has header "expat.h" with dependency expat: YES 
Checking for function "XML_ParserCreate" with dependency expat: YES 
Found CMake: /usr/local/bin/cmake (3.28.1)
Run-time dependency mozjs-115 found: NO (tried pkgconfig and cmake)

meson.build:156:11: ERROR: Dependency "mozjs-115" not found, tried pkgconfig and cmake

A full log can be found at /usr/home/obj/ports/usr/ports/sysutils/polkit/work/polkit-124/_build/meson-logs/meson-log.txt
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
===>  Script "configure" failed unexpectedly.
Comment 1 Gleb Popov freebsd_committer freebsd_triage 2024-01-23 10:31:54 UTC
Yes, this is a known problem. A port for Spidermonkey 115 is pending review here https://reviews.freebsd.org/D43221

For now this option is broken, unfortunately.