Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900875 - dev-libs/gjs-1.75.90: installed-tests/js/meson.build:206:3: ERROR: Unknown variable "have_gtk4"
Summary: dev-libs/gjs-1.75.90: installed-tests/js/meson.build:206:3: ERROR: Unknown va...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-03-11 16:27 UTC by Johannes Penßel
Modified: 2023-03-19 03:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
have_gtk4 failed patch (gjs-1.75.90-have_gtk4.patch,1.22 KB, patch)
2023-03-16 23:17 UTC, Vladislav Mikhailikov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Penßel 2023-03-11 16:27:59 UTC
dev-libs/gjs-1.75.90 USE="-test" fails at the configure stage due to the variable have_gtk4 only being defined if skip_gtk_tests=false is set. The issue is already reported upstream, with a fix pending. Seems to work fine.

https://gitlab.gnome.org/GNOME/gjs/-/issues/532
https://gitlab.gnome.org/GNOME/gjs/-/merge_requests/830


>>> Emerging (1 of 1) dev-libs/gjs-1.75.90::gentoo
 * gjs-1.75.90.tar.xz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                      [ ok ]
>>> Unpacking source...
>>> Unpacking gjs-1.75.90.tar.xz to /var/tmp/portage/dev-libs/gjs-1.75.90/work
>>> Source unpacked in /var/tmp/portage/dev-libs/gjs-1.75.90/work
>>> Preparing source in /var/tmp/portage/dev-libs/gjs-1.75.90/work/gjs-1.75.90 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/gjs-1.75.90/work/gjs-1.75.90 ...
meson setup --libdir lib64 --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/dev-libs/gjs-1.75.90/temp/meson.x86_64-pc-linux-gnu.amd64.ini -Db_pch=false -Dwerror=false --buildtype plain -Dcairo=enabled -Dreadline=enabled -Dprofiler=enabled -Dinstalled_tests=false -Dskip_dbus_tests=true -Dskip_gtk_tests=true -Db_pch=True /var/tmp/portage/dev-libs/gjs-1.75.90/work/gjs-1.75.90 /var/tmp/portage/dev-libs/gjs-1.75.90/work/gjs-1.75.90-build
The Meson build system
Version: 1.0.1
Source dir: /var/tmp/portage/dev-libs/gjs-1.75.90/work/gjs-1.75.90
Build dir: /var/tmp/portage/dev-libs/gjs-1.75.90/work/gjs-1.75.90-build
Build type: native build
Project name: gjs
Project version: 1.75.90
C compiler for the host machine: x86_64-pc-linux-gnu-gcc (gcc 12.2.1 "x86_64-pc-linux-gnu-gcc (Gentoo Hardened 12.2.1_p20230304 p13) 12.2.1 20230304")
C linker for the host machine: x86_64-pc-linux-gnu-gcc ld.bfd 2.40
C++ compiler for the host machine: x86_64-pc-linux-gnu-g++ (gcc 12.2.1 "x86_64-pc-linux-gnu-g++ (Gentoo Hardened 12.2.1_p20230304 p13) 12.2.1 20230304")
C++ linker for the host machine: x86_64-pc-linux-gnu-g++ ld.bfd 2.40
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C++ supports arguments -fno-strict-aliasing: YES 
Compiler for C++ supports arguments -Wno-variadic-macros: YES 
Compiler for C++ supports arguments -Wno-missing-field-initializers: YES 
Compiler for C++ supports arguments -Wno-dangling-pointer: YES 
Compiler for C supports arguments -Wno-typedef-redefinition: NO 
Compiler for C++ supports link arguments -Bsymbolic-functions: YES 
Compiler for C supports arguments -fno-semantic-interposition: YES 
Compiler for C++ supports arguments -fno-semantic-interposition: YES 
Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (1.8.1)
Run-time dependency glib-2.0 found: YES 2.76.0
Run-time dependency gthread-2.0 found: YES 2.76.0
Run-time dependency gobject-2.0 found: YES 2.76.0
Run-time dependency gio-2.0 found: YES 2.76.0
Run-time dependency libffi found: YES 3.4.4
Run-time dependency gobject-introspection-1.0 found: YES 1.75.6
Run-time dependency mozjs-102 found: YES 102.8.0
Run-time dependency cairo found: YES 1.17.8
Run-time dependency cairo-gobject found: YES 1.17.8
Run-time dependency cairo-xlib found: YES 1.17.8
Run-time dependency sysprof-capture-4 found: YES 3.46.0
Library readline found: YES
Checking if "64-bit atomics built-in" : links: YES 
Checking for function "timer_settime" : YES 
Checking if "SpiderMonkey is a non-debug build" with dependency mozjs-102 compiles: YES 
Checking if "SpiderMonkey sanity check" with dependency mozjs-102 runs: YES
Checking if "printf() supports %I alternative int syntax" compiles: YES 
Program dtrace found: YES (/usr/bin/dtrace)
Program dbus-run-session found: YES (/usr/bin/dbus-run-session)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Check usable header "readline/readline.h" : YES 
Check usable header "sys/syscall.h" : YES 
Check usable header "unistd.h" : YES 
Check usable header "signal.h" : YES 
Configuring config.h using configuration
Configuring gjs.stp using configuration
Found pkg-config: /usr/bin/x86_64-pc-linux-gnu-pkg-config (1.8.1)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Compiler for C++ supports link arguments -Wl,--version-script,/var/tmp/portage/dev-libs/gjs-1.75.90/work/gjs-1.75.90/libgjs.map: YES 
Compiler for C++ supports link arguments -Wl,-exported_symbols_list,/var/tmp/portage/dev-libs/gjs-1.75.90/work/gjs-1.75.90/libgjs.symbols: NO 
Dependency gobject-introspection-1.0 found: YES 1.75.6 (cached)
Dependency gobject-introspection-1.0 found: YES 1.75.6 (cached)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.75.6 (cached)
Program g-ir-compiler found: YES (/usr/bin/g-ir-compiler)
Configuring testCommandLine.sh.test using configuration
Configuring testCommandLineModules.sh.test using configuration
Configuring testWarnings.sh.test using configuration
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Configuring testself.test using configuration
Configuring testByteArray.test using configuration
Configuring testExceptions.test using configuration
Configuring testFormat.test using configuration
Configuring testFundamental.test using configuration
Configuring testGettext.test using configuration
Configuring testGIMarshalling.test using configuration
Configuring testGio.test using configuration
Configuring testGLib.test using configuration
Configuring testGObject.test using configuration
Configuring testGObjectClass.test using configuration
Configuring testGObjectInterface.test using configuration
Configuring testGObjectValue.test using configuration
Configuring testGTypeClass.test using configuration
Configuring testImporter.test using configuration
Configuring testImporter2.test using configuration
Configuring testIntrospection.test using configuration
Configuring testLang.test using configuration
Configuring testLegacyByteArray.test using configuration
Configuring testLegacyClass.test using configuration
Configuring testLegacyGObject.test using configuration
Configuring testMainloop.test using configuration
Configuring testNamespace.test using configuration
Configuring testPackage.test using configuration
Configuring testParamSpec.test using configuration
Configuring testPrint.test using configuration
Configuring testPromise.test using configuration
Configuring testRegress.test using configuration
Configuring testSignals.test using configuration
Configuring testSystem.test using configuration
Configuring testTweener.test using configuration
Configuring testCairo.test using configuration
Configuring testWarnLib.test using configuration

installed-tests/js/meson.build:206:3: ERROR: Unknown variable "have_gtk4".
Comment 1 Vladislav Mikhailikov 2023-03-16 23:17:09 UTC
Created attachment 858033 [details, diff]
have_gtk4 failed patch

Hi Guys, I saw you already found the right solution. Here is is my patch to build the package without ebuild change. Just put it into /etc/portage/patches/dev-libs/gjs and have fun.
Comment 2 Larry the Git Cow gentoo-dev 2023-03-19 03:41:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa2cec7d4a0926da65f3830ced1ca945f4dfe96a

commit aa2cec7d4a0926da65f3830ced1ca945f4dfe96a
Author:     Guillermo Joandet <gjoandet@gmail.com>
AuthorDate: 2023-03-18 21:34:16 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2023-03-19 03:41:08 +0000

    dev-libs/gjs: Version bump to 1.76.0
    
    Closes: https://bugs.gentoo.org/900875
    Closes: https://github.com/gentoo/gentoo/pull/30224
    Signed-off-by: Guillermo Joandet <gjoandet@gmail.com>
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 dev-libs/gjs/Manifest                              |  1 +
 ...0-move_have_gtk4_to_the_appropriate_place.patch | 38 ++++++++++++
 dev-libs/gjs/gjs-1.76.0.ebuild                     | 72 ++++++++++++++++++++++
 3 files changed, 111 insertions(+)