[Bug 276552] sysutils/polkit: Does not configure with Spidermonkey option.

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 23 Jan 2024 10:18:33 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276552

            Bug ID: 276552
           Summary: sysutils/polkit: Does not configure with Spidermonkey
                    option.
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: desktop@FreeBSD.org
          Reporter: robbak@gmail.com
             Flags: maintainer-feedback?(desktop@FreeBSD.org)
          Assignee: desktop@FreeBSD.org

Created attachment 247880
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247880&action=edit
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.