Errors for missing python module "distutils" on build:
WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
ninja: Entering directory `build'
[353/504] Generating src/Adw-1.gir with a custom command (wrapped by meson to set env)
FAILED: src/Adw-1.gir
env PKG_CONFIG_PATH=/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/build/meson-uninstalled PKG_CONFIG=/usr/bin/pkg-config 'CC=ccache cc' CFLAGS= /usr/bin/g-ir-scanner --quiet --no-libtool --namespace=Adw --nsversion=1 --warn-all --output src/Adw-1.gir --c-include=adwaita.h --quiet --doc-format=gi-docgen -DADWAITA_COMPILATION -I/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/src -I/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/build/src -I/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/. -I/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/build/. -I/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/src -I/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/build/src --filelist=/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/build/src/libadwaita-1.so.0.p/Adw_1_gir_filelist -L/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/build/src -ladwaita-1 --include=Gio-2.0 --include=Gtk-4.0 --symbol-prefix=adw --identifier-prefix=Adw --pkg-export=libadwaita-1 --cflags-begin -DHAVE_CONFIG_H -DADWAITA_COMPILATION -I/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/. -I/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/build/. -I/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/src -I/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/build/src -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/fribidi -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/pixman-1 -I/usr/include/graphene-1.0 -I/usr/lib/graphene-1.0/include -I/usr/include/appstream -I/usr/include/gobject-introspection-1.0 --cflags-end --add-include-path=/usr/share/gir-1.0 -L/home/pedro/.cache/paru/clone/libadwaita-without-adwaita-git/src/libadwaita-without-adwaita-git/build/src --library adwaita-1 -lglib-2.0 -lfribidi -lgio-2.0 -lgobject-2.0 -lgtk-4 -lpangocairo-1.0 -lpango-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lharfbuzz -lvulkan -lgraphene-1.0 -lappstream -lm -lgirepository-1.0
Traceback (most recent call last):
File "/usr/bin/g-ir-scanner", line 99, in <module>
from giscanner.utils import dll_dirs
File "/usr/lib/gobject-introspection/giscanner/utils.py", line 385, in <module>
import distutils.cygwinccompiler
ModuleNotFoundError: No module named 'distutils'
[370/504] Compiling C object tests/test-navigation-split-view.p/test-navigation-split-view.c.o
ninja: build stopped: subcommand failed.
Pinned Comments
ich commented on 2022-04-08 10:17 (UTC) (edited on 2023-01-10 05:38 (UTC) by ich)
The version of libadwaita provided by this package will use the dconf-variable 'org.gnome.desktop.interface.gtk-theme' to load the theme. This is the same variable that other gtk4-apps (and gnome-tweaks) uses.
For this to work, your theme needs to support gtk4. There may also be some weird formatting until themes are updated to fully support the new widgets; The Arc-family of themes seems to already support most of libadwaita.
Since this replaces the system library, it will only work for apps that actually use it (that is, all apps in the main repo). You will still have to set GTK_THEME if you want to use Flatpaks / Snaps / Appimages
Edit: Please, never just report issues to other gtk projects while using this library. Please always check if the issue persists using extra/libadwaita, and report your issue only on this AUR package if it doesn't.