Package builds successfully for dev repo but not when submitted to Factory

Hi there, I don’t have much experience with packaging, but I’m trying to update the Cinnamon desktop for Tumbleweed, which in turn requires the muffin package to be updated. It builds successfully in the X11:Cinnamon:Factory repo but it fails when submitted to Factory with the following errors :

[   57s] [389/711] cc -Isrc/libmuffin.so.0.0.0.p -Isrc -I../src -I. -I.. -Iclutter -I../clutter -Iclutter/clutter -I../clutter/clutter -Icogl -I../cogl -Icogl/cogl -I../cogl/cogl -Isrc/meta -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/wayland -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/libwacom-1.0 -I/usr/include/gudev-1.0 -I/usr/include/cinnamon-desktop -I/usr/include/gtk-3.0 -I/usr/include/libxkbcommon -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/startup-notification-1.0 -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/gobject-introspection-1.0 -I/usr/include/uuid -I/usr/include/libdrm -I/usr/include/libinput -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -D_GNU_SOURCE -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -fPIC -D_REENTRANT -pthread -mfpmath=sse -msse -msse2 -DCLUTTER_ENABLE_COMPOSITOR_API -DCLUTTER_ENABLE_EXPERIMENTAL_API -DCOGL_ENABLE_EXPERIMENTAL_API -DCOGL_ENABLE_EXPERIMENTAL_2_0_API -DCOGL_ENABLE_MUTTER_API -DCLUTTER_DISABLE_DEPRECATION_WARNINGS -DCOGL_DISABLE_DEPRECATION_WARNINGS '-DG_LOG_DOMAIN="mutter"' -DSN_API_NOT_YET_FROZEN=1 '-DGETTEXT_PACKAGE="muffin"' -DWITH_VERBOSE_MODE -MD -MQ src/libmuffin.so.0.0.0.p/backends_x11_meta-seat-x11.c.o -MF src/libmuffin.so.0.0.0.p/backends_x11_meta-seat-x11.c.o.d -o src/libmuffin.so.0.0.0.p/backends_x11_meta-seat-x11.c.o -c ../src/backends/x11/meta-seat-x11.c
[   57s] ninja: build stopped: subcommand failed.
[   57s] INFO: autodetecting backend as ninja
[   57s] INFO: calculating backend command to run: /usr/bin/ninja -C /home/abuild/rpmbuild/BUILD/muffin-6.0.0/x86_64-suse-linux -j 4 -v
[   57s] error: Bad exit status from /var/tmp/rpm-tmp.7Mb0Ae (%build)
[   57s] 
[   57s] RPM build errors:
[   57s]     Bad exit status from /var/tmp/rpm-tmp.7Mb0Ae (%build)

Any hints? Thanks a lot.

The actual error is

[   56s] cc -Isrc/libmuffin.so.0.0.0.p -Isrc -I../src -I. -I.. -Iclutter -I../clutter -Iclutter/clutter -I../clutter/clutter -Icogl -I../cogl -Icogl/cogl -I../cogl/cogl -Isrc/meta -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/wayland -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/libwacom-1.0 -I/usr/include/gudev-1.0 -I/usr/include/cinnamon-desktop -I/usr/include/gtk-3.0 -I/usr/include/libxkbcommon -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/startup-notification-1.0 -I/usr/include/pipewire-0.3 -I/usr/include/spa-0.2 -I/usr/include/gobject-introspection-1.0 -I/usr/include/uuid -I/usr/include/libdrm -I/usr/include/libinput -fvisibility=hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -D_GNU_SOURCE -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -fPIC -D_REENTRANT -pthread -mfpmath=sse -msse -msse2 -DCLUTTER_ENABLE_COMPOSITOR_API -DCLUTTER_ENABLE_EXPERIMENTAL_API -DCOGL_ENABLE_EXPERIMENTAL_API -DCOGL_ENABLE_EXPERIMENTAL_2_0_API -DCOGL_ENABLE_MUTTER_API -DCLUTTER_DISABLE_DEPRECATION_WARNINGS -DCOGL_DISABLE_DEPRECATION_WARNINGS '-DG_LOG_DOMAIN="mutter"' -DSN_API_NOT_YET_FROZEN=1 '-DGETTEXT_PACKAGE="muffin"' -DWITH_VERBOSE_MODE -MD -MQ src/libmuffin.so.0.0.0.p/backends_x11_meta-input-settings-x11.c.o -MF src/libmuffin.so.0.0.0.p/backends_x11_meta-input-settings-x11.c.o.d -o src/libmuffin.so.0.0.0.p/backends_x11_meta-input-settings-x11.c.o -c ../src/backends/x11/meta-input-settings-x11.c
[   56s] ../src/backends/x11/meta-input-settings-x11.c: In function ‘action_to_button’:
[   56s] ../src/backends/x11/meta-input-settings-x11.c:904:10: error: ‘C_DESKTOP_STYLUS_BUTTON_ACTION_DISABLED’ undeclared (first use in this function); did you mean ‘C_DESKTOP_STYLUS_BUTTON_ACTION_MIDDLE’?
[   56s]   904 |     case C_DESKTOP_STYLUS_BUTTON_ACTION_DISABLED:
[   56s]       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[   56s]       |          C_DESKTOP_STYLUS_BUTTON_ACTION_MIDDLE
[   56s] ../src/backends/x11/meta-input-settings-x11.c:904:10: note: each undeclared identifier is reported only once for each function it appears in

Ah, thanks. But I still don’t understand why it compiles successfully for X11:Cinnamon:Factory ?

I can only assume that this project has different version of something that provides C_DESKTOP_STYLUS_BUTTON_ACTION_DISABLED.

1 Like

Ah yes, looks like you’re right.

It looks like the latest update to cinnamon-desktop has been stuck for a while to get into Factory, is that normal?

Solved, looks like it all went through. Appreciate the help!