linuxmint/nemo

Latest commit doesn't build as it's not finding `NEMO_DEBUG_ACTIONS`

stevenxxiu opened this issue · 1 comments

Distribution

Arch Linux

Package version

ef4adc0

Frequency

Always

Bug description

Nemo isn't building. It's not finding NEMO_DEBUG_ACTIONSin

nemo_debug (NEMO_DEBUG_ACTIONS, "Action '%s' determined VISIBLE", gtk_action_get_name (GTK_ACTION (action)));
. But this is only defined in
NEMO_DEBUG_ACTIONS = 1 << 15,
if ENABLE_DEBUG is set.

The broken commit is ef4adc0#diff-1a797e43a5446c59e66d25c8a2d8c21083b79c193545045c5419ce021c9c8d67.

Steps to reproduce

Build by:

meson --prefix=/usr \
      --libexecdir=lib/${pkgname} \
      --buildtype=plain \
      ..
ninja

Expected behavior

Nemo builds.

Additional information

No response

Plain buildtype fails for me as well, plain is the fedora default.
It compiles ok if I use.

--buildtype=debugoptimized

[53/271] cc -Ilibnemo-private/libnemo-private.a.p -Ilibnemo-private -I../libnemo-private -I. -I.. -Ieel -I../eel -Ilibnemo-extension -I../libnemo-extension -I/usr/include/cinnamon-desktop -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/atk-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/at-spi2-atk/2.0 -I/usr/include/cloudproviders -I/usr/include/blkid -I/usr/include/at-spi-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/fribidi -I/usr/include/sysprof-6 -I/usr/include/libpng16 -I/usr/include/gail-3.0 -I/usr/include/json-glib-1.0 -I/usr/include/xapp -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wno-deprecated-declarations -Wno-deprecated -Wno-declaration-after-statement -DGLIB_DISABLE_DEPRECATION_WARNINGS -fPIC -pthread '-DNEMO_DATADIR="/usr/local/share/nemo"' '-DNEMO_EXTENSIONDIR="/usr/local/lib64/nemo/extensions-3.0"' '-DLIBEXECDIR="/usr/local/libexec"' -MD -MQ libnemo-private/libnemo-private.a.p/nemo-action-manager.c.o -MF libnemo-private/libnemo-private.a.p/nemo-action-manager.c.o.d -o libnemo-private/libnemo-private.a.p/nemo-action-manager.c.o -c ../libnemo-private/nemo-action-manager.c
FAILED: libnemo-private/libnemo-private.a.p/nemo-action-manager.c.o 
cc -Ilibnemo-private/libnemo-private.a.p -Ilibnemo-private -I../libnemo-private -I. -I.. -Ieel -I../eel -Ilibnemo-extension -I../libnemo-extension -I/usr/include/cinnamon-desktop -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/atk-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/at-spi2-atk/2.0 -I/usr/include/cloudproviders -I/usr/include/blkid -I/usr/include/at-spi-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/pixman-1 -I/usr/include/libxml2 -I/usr/include/fribidi -I/usr/include/sysprof-6 -I/usr/include/libpng16 -I/usr/include/gail-3.0 -I/usr/include/json-glib-1.0 -I/usr/include/xapp -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wno-deprecated-declarations -Wno-deprecated -Wno-declaration-after-statement -DGLIB_DISABLE_DEPRECATION_WARNINGS -fPIC -pthread '-DNEMO_DATADIR="/usr/local/share/nemo"' '-DNEMO_EXTENSIONDIR="/usr/local/lib64/nemo/extensions-3.0"' '-DLIBEXECDIR="/usr/local/libexec"' -MD -MQ libnemo-private/libnemo-private.a.p/nemo-action-manager.c.o -MF libnemo-private/libnemo-private.a.p/nemo-action-manager.c.o.d -o libnemo-private/libnemo-private.a.p/nemo-action-manager.c.o -c ../libnemo-private/nemo-action-manager.c
../libnemo-private/nemo-action-manager.c: In function ‘parse_item’:
../libnemo-private/nemo-action-manager.c:652:5: warning: implicit declaration of function ‘nemo_debug’; did you mean ‘g_debug’? [-Wimplicit-function-declaration]
  652 |     nemo_debug (NEMO_DEBUG_ACTIONS, "Parsing action layout entry for '%s'.", uuid);
      |     ^~~~~~~~~~
      |     g_debug
../libnemo-private/nemo-action-manager.c:652:17: error: ‘NEMO_DEBUG_ACTIONS’ undeclared (first use in this function); did you mean ‘GTK_DEBUG_ACTIONS’?
  652 |     nemo_debug (NEMO_DEBUG_ACTIONS, "Parsing action layout entry for '%s'.", uuid);
      |                 ^~~~~~~~~~~~~~~~~~
      |                 GTK_DEBUG_ACTIONS
../libnemo-private/nemo-action-manager.c:652:17: note: each undeclared identifier is reported only once for each function it appears in
../libnemo-private/nemo-action-manager.c: In function ‘parse_level’:
../libnemo-private/nemo-action-manager.c:778:21: error: ‘NEMO_DEBUG_ACTIONS’ undeclared (first use in this function); did you mean ‘GTK_DEBUG_ACTIONS’?
  778 |         nemo_debug (NEMO_DEBUG_ACTIONS, "Processing %d children of '%s'.", len, path == NULL ? "root" : path);
      |                     ^~~~~~~~~~~~~~~~~~
      |                     GTK_DEBUG_ACTIONS
../libnemo-private/nemo-action-manager.c: In function ‘nemo_action_manager_update_action_states’:
../libnemo-private/nemo-action-manager.c:897:25: error: ‘NEMO_DEBUG_ACTIONS’ undeclared (first use in this function); did you mean ‘GTK_DEBUG_ACTIONS’?
  897 |             nemo_debug (NEMO_DEBUG_ACTIONS, "Skipping submenu '%s' (visibility managed by GtkUIManager)", gtk_action_get_name (GTK_ACTION (l->data)));
      |                         ^~~~~~~~~~~~~~~~~~
      |                         GTK_DEBUG_ACTIONS