gentoo/musl

sys-auth/polkit-0.120-r1::musl fails to compile if duktape is not installed

yemouu opened this issue · 1 comments

This failure occurs when the duktape useflag is not enabled

  * Package:    sys-auth/polkit-0.120-r1
 * Repository: musl
 * Maintainer: freedesktop-bugs@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_musl introspection kernel_linux pam userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking polkit-0.120.tar.gz to /var/tmp/portage/sys-auth/polkit-0.120-r1/work
>>> Unpacking polkit-0.120-duktape-1.patch to /var/tmp/portage/sys-auth/polkit-0.120-r1/work
unpack polkit-0.120-duktape-1.patch: file format not recognized. Ignoring.
>>> Source unpacked in /var/tmp/portage/sys-auth/polkit-0.120-r1/work
>>> Preparing source in /var/tmp/portage/sys-auth/polkit-0.120-r1/work/polkit-0.120 ...
 * Applying polkit-0.120-duktape-1.patch ...
 [ ok ]
 * Applying polkit-0.118-make-netgroup-support-optional.patch ...
patching file configure.ac
Hunk #1 succeeded at 117 with fuzz 2 (offset 17 lines).
patching file src/polkit/polkitidentity.c
patching file src/polkit/polkitunixnetgroup.c
patching file src/polkitbackend/polkitbackendinteractiveauthority.c
patching file src/polkitbackend/polkitbackendjsauthority.cpp
Hunk #1 succeeded at 1291 (offset -228 lines).
Hunk #2 succeeded at 1306 (offset -228 lines).
patching file test/polkit/polkitidentitytest.c
patching file test/polkit/polkitunixnetgrouptest.c
patching file test/polkitbackend/test-polkitbackendjsauthority.c
 [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-auth/polkit-0.120-r1/work/polkit-0.120 ...
/var/tmp/portage/sys-auth/polkit-0.120-r1/temp/environment: line 2604: type: locale: not found
meson setup --libdir lib --localstatedir /var/lib --prefix /usr --sysconfdir /etc --wrap-mode nodownload --build.pkg-config-path /usr/share/pkgconfig --pkg-config-path /usr/share/pkgconfig --native-file /var/tmp/portage/sys-auth/polkit-0.120-r1/temp/meson.x86_64-gentoo-linux-musl.amd64.ini --buildtype plain --localstatedir=/var -Dauthfw=pam -Dexamples=false -Dgtk_doc=false -Dman=true -Dos_type=gentoo -Dsession_tracking=libelogind -Dsystemdsystemunitdir=/lib/systemd/system -Dintrospection=true -Dtests=false -Dpam_module_dir=/lib/security /var/tmp/portage/sys-auth/polkit-0.120-r1/work/polkit-0.120 /var/tmp/portage/sys-auth/polkit-0.120-r1/work/polkit-0.120-build
The Meson build system
Version: 0.60.3
Source dir: /var/tmp/portage/sys-auth/polkit-0.120-r1/work/polkit-0.120
Build dir: /var/tmp/portage/sys-auth/polkit-0.120-r1/work/polkit-0.120-build
Build type: native build
Project name: polkit
Project version: 0.120
C compiler for the host machine: clang (clang 13.0.0 "clang version 13.0.0")
C linker for the host machine: clang ld.lld 13.0.0
C++ compiler for the host machine: clang++ (clang 13.0.0 "clang version 13.0.0")
C++ linker for the host machine: clang++ ld.lld 13.0.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Checking for function "clearenv" : YES 
Checking for function "fdatasync" : YES 
meson.build:123: WARNING: Consider using the built-in option for language standard version instead of using "-std=c99".
Found pkg-config: /usr/bin/x86_64-gentoo-linux-musl-pkg-config (1.8.0)
Run-time dependency gio-2.0 found: YES 2.70.2
Run-time dependency gio-unix-2.0 found: YES 2.70.2
Run-time dependency glib-2.0 found: YES 2.70.2
Run-time dependency gobject-2.0 found: YES 2.70.2
Run-time dependency expat found: YES 2.4.2
Has header "expat.h" with dependency expat: YES 
Checking for function "XML_ParserCreate" with dependency expat: YES 
Found CMake: /usr/bin/cmake (3.22.1)
Run-time dependency duktape found: NO (tried pkgconfig and cmake)

meson.build:140:2: ERROR: Dependency "duktape" not found, tried pkgconfig and cmake

A full log can be found at /var/tmp/portage/sys-auth/polkit-0.120-r1/work/polkit-0.120-build/meson-logs/meson-log.txt
 * ERROR: sys-auth/polkit-0.120-r1::musl failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_configure
 *   environment, line 3008:  Called meson_src_configure
 *   environment, line 2165:  Called die
 * The specific snippet of code:
 *       "${mesonargs[@]}" ) || die
 * 
 * If you need support, post the output of `emerge --info '=sys-auth/polkit-0.120-r1::musl'`,
 * the complete build log and the output of `emerge -pqv '=sys-auth/polkit-0.120-r1::musl'`.
 * The complete build log is located at '/var/log/portage/sys-auth:polkit-0.120-r1:20220116-010104.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-auth/polkit-0.120-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-auth/polkit-0.120-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-auth/polkit-0.120-r1/work/polkit-0.120'
 * S: '/var/tmp/portage/sys-auth/polkit-0.120-r1/work/polkit-0.120'

I looked into this some more today and it looks like the meson option that the duktape patch added isn't included at all in the ebuild so duktape is being forced.