Bug 1217238

Summary: foot fails to build ‘XDG_TOPLEVEL_STATE_SUSPENDED’ not handled in switch [-Werror=switch]
Product: [openSUSE] openSUSE Distribution Reporter: Lubos Kocman <lubos.kocman>
Component: OtherAssignee: Arnav Singh <opensuse>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Leap 15.6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lubos Kocman 2023-11-16 15:16:17 UTC
Hello

foot does not build on Leap 15.6. This should be fixed before Beta (Feb 2023).
https://en.opensuse.org/openSUSE:Roadmap#Schedule_for_openSUSE_Leap_15.6

Build log from Leap 15.6
https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP6/foot/standard/x86_64

[   28s] ../wayland.c: In function ‘xdg_toplevel_configure’:
[   28s] ../wayland.c:637:9: error: enumeration value ‘XDG_TOPLEVEL_STATE_SUSPENDED’ not handled in switch [-Werror=switch]
[   28s]          switch (*state) {
[   28s]          ^~~~~~
[   28s] cc1: all warnings being treated as errors
[   28s] [83/92] cc  -o footclient footclient.p/client.c.o -flto -Wl,--as-needed -Wl,--no-undefined -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -Wl,--start-group libcommon.a -Wl,--end-group
[   28s] [84/92] cc -Itests/test-config.p -Itests -I../tests -I. -I/usr/include/pixman-1 -I/usr/include/libxkbcommon -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/wayland -flto=4 -fdiagnostics-color=always -DNDEBUG -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=c11 -DMEMFD_CREATE -D_GNU_SOURCE=200809L '-DFOOT_DEFAULT_TERM="foot"' -fno-asynchronous-unwind-tables -DFOOT_IME_ENABLED=1 -pedantic -fstrict-aliasing -Wstrict-aliasing -DFOOT_GRAPHEME_CLUSTERING=1 -DHAVE_XDG_ACTIVATION -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -DUTF8PROC_EXPORTS -MD -MQ tests/test-config.p/test-config.c.o -MF tests/test-config.p/test-config.c.o.d -o tests/test-config.p/test-config.c.o -c ../tests/test-config.c
[   28s] [85/92] /usr/bin/meson --internal exe --capture doc/foot.1 -- /usr/bin/sh -c '/usr/bin/scdoc < doc/foot.1.preprocessed'
[   28s] ninja: build stopped: subcommand failed.
[   28s] NOTICE: You are using Python 3.6 which is EOL. Starting with v0.62.0, Meson will require Python 3.7 or newer
[   28s] error: Bad exit status from /var/tmp/rpm-tmp.9fq27l (%build)
Comment 1 Arnav Singh 2023-11-16 16:08:05 UTC
This was fixed in v1.15.0, or it can be patched in using the patch in
https://build.opensuse.org/package/rdiff/X11:Wayland/foot?linkrev=base&rev=40
Comment 2 Arnav Singh 2024-07-12 04:41:32 UTC
https://build.opensuse.org/request/show/1153145 updated Leap's package to
v1.16.2 so this is fixed.