meson configure fails with -Dlibnotify=disabled
Configuring with meson build -Dlibnotify=disabled
fails with:
widgets/meson.build:56:0: ERROR: Unknown variable "libnotify".
This is because widgets/meson.build
references libnotify
unconditionally, but libnotify
is conditionally defined only when libnotify support is enabled:
use_notify = false
if get_option('libnotify').allowed()
libnotify = dependency('libnotify', version: '>= 0.7.0', required: get_option('libnotify'))
if libnotify.found()
use_notify = true
endif
endif
Full log:
The Meson build system
Version: 0.60.3
Source dir: /home/mattst88/projects/GNOME/rhythmbox
Build dir: /home/mattst88/projects/GNOME/rhythmbox/build
Build type: native build
Project name: rhythmbox
Project version: 3.4.5
C compiler for the host machine: ccache cc (gcc 11.2.1 "cc (Gentoo 11.2.1_p20220115 p4) 11.2.1 20220115")
C linker for the host machine: cc ld.bfd 2.37
Host machine cpu family: x86_64
Host machine cpu: x86_64
Compiler for C supports arguments -Wno-deprecated-declarations: YES
Compiler for C supports arguments -Wformat=2: YES
Compiler for C supports arguments -Wno-format-nonliteral: YES
Compiler for C supports arguments -Wmissing-declarations: YES
Compiler for C supports arguments -Wmissing-prototypes: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Library m found: YES
Found pkg-config: /usr/bin/pkg-config (1.8.0)
Run-time dependency cairo found: YES 1.16.0
Run-time dependency gdk-pixbuf-2.0 found: YES 2.42.8
Run-time dependency gio-2.0 found: YES 2.72.1
Run-time dependency gio-unix-2.0 found: YES 2.72.1
Run-time dependency glib-2.0 found: YES 2.72.1
Run-time dependency gmodule-export-2.0 found: YES 2.72.1
Run-time dependency gobject-2.0 found: YES 2.72.1
Run-time dependency gobject-introspection-1.0 found: YES 1.72.0
Run-time dependency gstreamer-1.0 found: YES 1.20.1
Run-time dependency gstreamer-audio-1.0 found: YES 1.20.1
Run-time dependency gstreamer-base-1.0 found: YES 1.20.1
Run-time dependency gstreamer-controller-1.0 found: YES 1.20.1
Run-time dependency gstreamer-plugins-base-1.0 found: YES 1.20.1
Run-time dependency gstreamer-pbutils-1.0 found: YES 1.20.1
Run-time dependency gstreamer-tag-1.0 found: YES 1.20.1
Run-time dependency gtk+-3.0 found: YES 3.24.33
Run-time dependency json-glib-1.0 found: YES 1.6.6
Run-time dependency libpeas-1.0 found: YES 1.32.0
Run-time dependency libpeas-gtk-1.0 found: YES 1.32.0
Run-time dependency libsoup-2.4 found: YES 2.74.2
Run-time dependency libxml-2.0 found: YES 2.9.13
Run-time dependency pango found: YES 1.50.7
Run-time dependency tdb found: YES 1.4.5
Run-time dependency totem-plparser found: YES 3.26.6
Run-time dependency gudev-1.0 found: YES 237
Found CMake: /usr/bin/cmake (3.22.2)
Run-time dependency libgpod-1.0 found: NO (tried pkgconfig and cmake)
Run-time dependency libmtp found: YES 1.1.19
Run-time dependency libsecret-1 found: YES 0.20.5
Run-time dependency lirc found: NO (tried pkgconfig and cmake)
Run-time dependency libbrasero-media3 found: NO (tried pkgconfig and cmake)
Checking for function "fwrite_unlocked" : YES
Header <stdio.h> has symbol "fwrite_unlocked" : YES
Checking for function "cfmakeraw" : YES
Checking for function "prctl" : YES
Checking if "pthread_getname_np" : links: YES
Run-time dependency x11 found: YES 1.7.3
Compiler for C supports arguments -fno-strict-aliasing: YES
Program python3 found: YES (/usr/bin/python3)
Run-time dependency pygobject-3.0 found: YES 3.42.0
Compiler for language vala for the host machine not found.
Has header "linux/videodev2.h" : YES
Run-time dependency libdmapsharing-4.0 found: NO (tried pkgconfig and cmake)
Run-time dependency libdmapsharing-3.0 found: NO (tried pkgconfig and cmake)
Run-time dependency grilo-0.3 found: YES 0.3.14
Configuring config.h using configuration
Configuring org.gnome.Rhythmbox3.desktop.in using configuration
Configuring org.gnome.Rhythmbox3.device.desktop.in using configuration
Configuring org.gnome.Rhythmbox3.service using configuration
Program glib-compile-schemas found: YES (/usr/bin/glib-compile-schemas)
Program appstream-util found: YES (/usr/bin/appstream-util)
Dependency gobject-introspection-1.0 found: YES 1.72.0 (cached)
Dependency gobject-introspection-1.0 found: YES 1.72.0 (cached)
Program g-ir-scanner found: YES (/usr/bin/g-ir-scanner)
Dependency gobject-introspection-1.0 found: YES 1.72.0 (cached)
Program g-ir-compiler found: YES (/usr/bin/g-ir-compiler)
widgets/meson.build:56:0: ERROR: Unknown variable "libnotify".
A full log can be found at /home/mattst88/projects/GNOME/rhythmbox/build/meson-logs/meson-log.txt
Downstream bug report: https://bugs.gentoo.org/842291
Edited by Matt Turner