Bug 286705

Summary: x11/kitty: Fails to build on at least stable/14, amd64
Product: Ports & Packages Reporter: Tomoaki AOKI <junchoon>
Component: Individual Port(s)Assignee: Nicola Vitale <nivit>
Status: Closed FIXED    
Severity: Affects Only Me CC: fgorter, milios
Priority: --- Flags: bugzilla: maintainer-feedback? (nivit)
Version: Latest   
Hardware: Any   
OS: Any   

Description Tomoaki AOKI 2025-05-10 03:35:19 UTC
The last time build successfully finished was:
  Started poudriere-devel at 2025-04-29T04:21:36+09:00 (JST)
  Ports top last git commit: 65d0bc0310bd

The first time the build failed was:
  Started poudriere-devel at 2025-05-04T17:04:57+09:00 (JST)
  Ports top last git commit: 31160ccc9fb6

As the last update to x11/kitty was
* 	x11/kitty: Update to 0.41.1	Nicola Vitale	2025-04-04	3	-8/+8
the problem would be in elsewhere that x11/kitty depends on.
And sorry, if the `git bisect` causes full rebuilds on poudriere, the turnaround time is 1+ "day", so cannot proceed.


The faulure mode is as follows.

[20/130] Compiling [wayland] glfw/wl_client_side_decorations.c ...
[21/130] Compiling [x11] glfw/window.c ...
[22/130] Compiling [wayland] glfw/window.c ...
[23/130] Compiling [wayland] glfw/wl_init.c ...
glfw/wl_window.c:669:17: error: 4 enumeration values not handled in switch: 'XDG_TOPLEVEL_STATE_CONSTRAINED_LEFT', 'XDG_TOPLEVEL_STATE_CONSTRAINED_RIGHT', 'XDG_TOPLEVEL_STATE_CONSTRAINED_TOP'... [-Werror,-Wswitch]
  669 |         switch (*state) {
      |                 ^~~~~~
1 error generated.
 done
Compiling [wayland] glfw/wl_window.c ...
cc -MMD -DNDEBUG -DEPOLL_SHIM_DISABLE_WRAPPER_MACROS -I/usr/local/include/libepoll-shim -D_GLFW_WAYLAND -D_GLFW_BUILD_DLL -Wextra -Wfloat-conversion -Wno-missing-field-initializers -Wall -Wstrict-prototypes -std=c11 -pedantic-errors -Werror -O3 -fwrapv -fstack-protector-strong -pipe -fvisibility=hidden -fno-plt -fPIC -O2 -pipe -march=haswell -Wno-error=invalid-utf8 -Winvalid-utf8 -fstack-protector-strong -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -flto -I/usr/local/include -fcf-protection=full -fPIC -pthread -I/usr/local/include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/include/libepoll-shim -I/usr/local/include -I/usr/local/libdata/pkgconfig/../../include/dbus-1.0 -I/usr/local/libdata/pkgconfig/../../lib/dbus-1.0/include -c glfw/wl_window.c -o build/glfw-wayland-glfw-wl_window.c.o
*** Error code 1

Stop.
make: stopped in /usr/ports/x11/kitty
=>> Cleaning up wrkdir
===>  Cleaning for kitty-0.41.1
build of x11/kitty | kitty-0.41.1 ended at 2025-05-10T11:55:58+09:00
build time: 00:01:12
!!! build failure encountered !!!
Comment 1 fgorter 2025-05-23 02:33:14 UTC
(In reply to Tomoaki AOKI from comment #0)

I can confirm, I have the exact same error here.
Rebuilt everything involved to make sure I had no stale sources / binaries left over from elsewhere. Still breaks the same. Seems a function is getting more data than it is expecting.
Comment 2 fgorter 2025-05-23 07:31:10 UTC
(In reply to fgorter from comment #1)

Correcting myself here:

Looks like it needs 4 additional variables that aren't provided for. Seems kitty expects a newer versions of either XDG or some Wayland components that can reference the currently missing bits of their respective FreeBSD ports.
Comment 3 Chad Jacob Milios 2025-06-12 10:11:21 UTC
I think this one has been worked out, somehow somewhere by somebody lol. Can anyone please confirm?

all i know is i (on 13.5-RELEASE/amd64) had breakage between 5/19 - 5/24, recorded no notes to myself beyond "See <this PR>" so i guess i was pretty convinced it was one in the same failure mode

i just tried this morning and it built/pkg'd just fine. sorry i don't have more about what/why/when. my last try was 2-3 weeks ago
Comment 4 Tomoaki AOKI 2025-06-12 11:18:06 UTC
(In reply to Chad Jacob Milios from comment #3)
Yes, this was fixed by recent update.
If noone else are still bitten, this can be closed with "Overcome by event".
Comment 5 Nicola Vitale freebsd_committer freebsd_triage 2025-06-14 09:28:27 UTC
Overcome by events.