Bug 272372

Summary: x11/foot: fails to build
Product: Ports & Packages Reporter: (intentionally left blank) <throwaway_vthgwq4>
Component: Individual Port(s)Assignee: Jan Beich <jbeich>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: regression
Priority: --- Flags: jbeich: maintainer-feedback+
jbeich: merge-quarterly+
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on:    
Bug Blocks: 272342    

Description (intentionally left blank) 2023-07-04 20:51:53 UTC
../wayland.c:655:17: error: enumeration value 'XDG_TOPLEVEL_STATE_SUSPENDED'
 not handled in switch [-Werror,-Wswitch]
        switch (*state) {
                ^~~~~~
1 error generated.

Maybe backport https://codeberg.org/dnkl/foot/commit/72bc0acfbd4b ?
Comment 1 commit-hook freebsd_committer freebsd_triage 2023-07-04 23:55:50 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bcea2e3a260297c7127041c29a166ab447feabb0

commit bcea2e3a260297c7127041c29a166ab447feabb0
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-04 23:52:49 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-07-04 23:54:33 +0000

    x11/foot: unbreak build after aec9c6c9cf90

    ../wayland.c:655:17: error: enumeration value 'XDG_TOPLEVEL_STATE_SUSPENDED' not handled in switch [-Werror,-Wswitch]
            switch (*state) {
                    ^

    PR:             272372

 x11/foot/Makefile | 4 ++++
 x11/foot/distinfo | 2 ++
 2 files changed, 6 insertions(+)
Comment 2 commit-hook freebsd_committer freebsd_triage 2023-07-04 23:55:51 UTC
A commit in branch 2023Q3 references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=8f739e06f04a1547134695bd6af46c5307e160ce

commit 8f739e06f04a1547134695bd6af46c5307e160ce
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-07-04 23:52:49 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-07-04 23:54:52 +0000

    x11/foot: unbreak build after aec9c6c9cf90

    ../wayland.c:655:17: error: enumeration value 'XDG_TOPLEVEL_STATE_SUSPENDED' not handled in switch [-Werror,-Wswitch]
            switch (*state) {
                    ^

    PR:             272372
    (cherry picked from commit bcea2e3a260297c7127041c29a166ab447feabb0)

 x11/foot/Makefile | 4 ++++
 x11/foot/distinfo | 2 ++
 2 files changed, 6 insertions(+)
Comment 3 Jan Beich freebsd_committer freebsd_triage 2023-07-04 23:57:27 UTC
Thanks, I forgot to check -Werror in my ports.