NetBSD Problem Report #60476
From tsutsui@ceres.dti.ne.jp Wed Jul 22 16:44:20 2026
Return-Path: <tsutsui@ceres.dti.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "YR2" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 3DA951A923B
for <gnats-bugs@gnats.NetBSD.org>; Wed, 22 Jul 2026 16:44:20 +0000 (UTC)
Message-Id: <202607221638.66MGcgX1020458@ceres.dti.ne.jp>
Date: Thu, 23 Jul 2026 01:38:42 +0900 (JST)
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
Reply-To: tsutsui@ceres.dti.ne.jp
To: gnats-bugs@NetBSD.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: 2026Q2 NetBSD/amd64 gtk3+ binary package is built without wayland
X-Send-Pr-Version: 3.95
X-From4GNATS: "Izumi Tsutsui via gnats" <gnats-admin@NetBSD.org>
>Number: 60476
>Category: pkg
>Synopsis: 2026Q2 NetBSD/amd64 gtk3+ binary package is built without wayland
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 22 16:45:00 +0000 2026
>Last-Modified: Mon Aug 24 21:00:02 +0000 2026
>Originator: Izumi Tsutsui
>Release: NetBSD 10.0 + pkgsrc-2026Q2
>Organization:
>Environment:
NetBSD/amd64 10.0 (bulk build server?)
Architecture: x86_64
Machine: amd64
>Description:
pkgsrc-2026Q2 NetBSD/amd64 10.0 gtk3+-3.24.52nb1.tgz package in
https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/10.0_2026Q2/All/
is built without wayland:
```
% tar ztvf gtk3+-3.24.52nb1.tgz | grep wayland
%
```
while pkgsrc-2026Q1 NetBSD/amd64 10.0 gtk3+-3.24.51nb5.tgz package in
https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/x86_64/10.0_2026Q1/All/
is built with wayland:
```
% tar ztvf gtk3+-3.24.51nb5.tgz | grep wayland
-rw-r--r-- 0 root wheel 1459 Sep 30 2025 include/gtk-3.0/gdk/gdkwayland.h
-rw-r--r-- 0 root wheel 2852 Sep 30 2025 include/gtk-3.0/gdk/wayland/gdkwaylanddevice.h
-rw-r--r-- 0 root wheel 3008 Sep 30 2025 include/gtk-3.0/gdk/wayland/gdkwaylanddisplay.h
-rw-r--r-- 0 root wheel 1661 Sep 30 2025 include/gtk-3.0/gdk/wayland/gdkwaylandglcontext.h
-rw-r--r-- 0 root wheel 1726 Sep 30 2025 include/gtk-3.0/gdk/wayland/gdkwaylandmonitor.h
-rw-r--r-- 0 root wheel 1929 Sep 30 2025 include/gtk-3.0/gdk/wayland/gdkwaylandselection.h
-rw-r--r-- 0 root wheel 4320 Sep 30 2025 include/gtk-3.0/gdk/wayland/gdkwaylandwindow.h
-rwxr-xr-x 0 root wheel 29248 Jun 12 13:38 lib/gtk-3.0/3.0.0/immodules/im-wayland.so
-rw-r--r-- 0 root wheel 599 Jun 12 13:36 lib/pkgconfig/gdk-wayland-3.0.pc
-rw-r--r-- 0 root wheel 600 Jun 12 13:36 lib/pkgconfig/gtk+-wayland-3.0.pc
%
```
It looks this is because pkgsrc/x11/gtk3+/options.mk has been
changed to check if exists(${X11BASE}/lib/modules/libglamoregl.so)
for PR pkg/60295:
https://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/x11/gtk3/options.mk#rev1.36
But lib/modules/libglamoregl.so is in xserver set (not xbase or xcomp),
and maybe our official build server doesn't install xserver set?
ibus checks if gtk3 is build with wayland and it doesn't install
share/applications/org.freedesktop.IBus.Panel.Wayland.Gtk3.desktop
if gtk3 is built without wayland, so the "special hack" for gtk3+
in pkgsrc/x11/gtk3/options.mk is annoying.
(At least it should be in pkgsrc/mk/graphics/MesaLib/features.mk
to share the consistent settings among all packages?)
>How-To-Repeat:
See above.
>Fix:
No idea.
For now check if xserver set is installed on bulk build servers?
---
Izumi Tsutsui
>Audit-Trail:
From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60476 CVS commit: pkgsrc/inputmethod/ibus
Date: Wed, 22 Jul 2026 17:14:57 +0000
Module Name: pkgsrc
Committed By: tsutsui
Date: Wed Jul 22 17:14:57 UTC 2026
Modified Files:
pkgsrc/inputmethod/ibus: Makefile
Log Message:
ibus: add kludge to fix bulk build on NetBSD/amd64 10.0
See PR pkg/60476 for details.
XXX: still fails on builds on hosts with xserver set using official gtk3
binary package
To generate a diff of this commit:
cvs rdiff -u -r1.123 -r1.124 pkgsrc/inputmethod/ibus/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/60476: 2026Q2 NetBSD/amd64 gtk3+ binary package is built without
wayland
Date: Thu, 23 Jul 2026 02:34:28 +0900
I think this should be fixed at the platform capability detection
level, rather than by adding another package-specific test
like gtk3/options.mk.
The basic policy should be that Wayland support on NetBSD with
native X11 is determined from the configuration used to build
the native X11 libraries, not from the set of files installed
on the package build host.
pkgsrc already includes <bsd.own.mk> through pkgsrc/mk/bsd.prefs.mk,
so the native NetBSD X11 build variables are available while
evaluating package Makefiles.
The proposed design is:
- Keep the existing logic for modular X11 unchanged.
- In graphics/MesaLib/features.mk, when using native X11 on NetBSD,
determine MESALIB_SUPPORTS_EGL from HAVE_XORG_EGL if that variable
is defined.
- Older NetBSD releases (10.x and prior) do not define HAVE_XORG_EGL.
On those releases, fall back to HAVE_XORG_GLAMOR, because native
libepoxy EGL support was conditional on GLAMOR in those versions.
- For non-NetBSD systems using native X11, retain the existing
header-based detection unless there is a more appropriate
platform-specific capability variable.
This will work even on gtk3 because devel/wayland/platform.mk
already derives PLATFORM_SUPPORTS_WAYLAND from MESALIB_SUPPORTS_EGL.
---
Izumi Tsutsui
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/60476: 2026Q2 NetBSD/amd64 gtk3+ binary package is built withoutwayland
Date: Fri, 7 Aug 2026 03:05:35 +0900
> The proposed design is:
>
> - Keep the existing logic for modular X11 unchanged.
>
> - In graphics/MesaLib/features.mk, when using native X11 on NetBSD,
> determine MESALIB_SUPPORTS_EGL from HAVE_XORG_EGL if that variable
> is defined.
>
> - Older NetBSD releases (10.x and prior) do not define HAVE_XORG_EGL.
> On those releases, fall back to HAVE_XORG_GLAMOR, because native
> libepoxy EGL support was conditional on GLAMOR in those versions.
>
> - For non-NetBSD systems using native X11, retain the existing
> header-based detection unless there is a more appropriate
> platform-specific capability variable.
If there is no objection I will commit following changes after
pkgsrc-2026Q3 is branched.
```
Index: x11/gtk3/options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/x11/gtk3/options.mk,v
retrieving revision 1.36
diff -u -p -d -r1.36 options.mk
--- x11/gtk3/options.mk 27 May 2026 12:39:08 -0000 1.36
+++ x11/gtk3/options.mk 6 Aug 2026 17:51:09 -0000
@@ -11,11 +11,7 @@ PKG_SUGGESTED_OPTIONS+= x11
.endif
.include "../../devel/wayland/platform.mk"
.if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
-# workaround for PR pkg/60295
-. if ${OPSYS} != "NetBSD" || ${X11_TYPE} != "native" || \
- exists(${X11BASE}/lib/modules/libglamoregl.so)
PKG_SUGGESTED_OPTIONS+= wayland
-. endif
.endif
PKG_SUGGESTED_OPTIONS+= gtk3-atk-bridge cups
PKG_SUGGESTED_OPTIONS+= ${${USE_CROSS_COMPILE:tl} == "yes":?:introspection}
Index: inputmethod/ibus/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/inputmethod/ibus/Makefile,v
retrieving revision 1.124
diff -u -p -d -r1.124 Makefile
--- inputmethod/ibus/Makefile 22 Jul 2026 17:14:57 -0000 1.124
+++ inputmethod/ibus/Makefile 6 Aug 2026 17:51:09 -0000
@@ -78,10 +78,7 @@ BUILDLINK_TRANSFORM+= rm:-Wno-unused-but
# wayland or not
PLIST_VARS+= wayland
.include "../../devel/wayland/platform.mk"
-# XXX PR pkg/60476
-.if ${PLATFORM_SUPPORTS_WAYLAND} == "yes" && \
- (${OPSYS} != "NetBSD" || ${X11_TYPE} != "native" || \
- exists(${X11BASE}/lib/modules/libglamoregl.so))
+.if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
CONFIGURE_ARGS+= --enable-wayland
PLIST.wayland= yes
.else
Index: graphics/MesaLib/features.mk
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/MesaLib/features.mk,v
retrieving revision 1.2
diff -u -p -d -r1.2 features.mk
--- graphics/MesaLib/features.mk 10 Jul 2023 03:16:45 -0000 1.2
+++ graphics/MesaLib/features.mk 6 Aug 2026 17:51:09 -0000
@@ -28,7 +28,15 @@ MESALIB_SUPPORTS_XA?= yes
. endif
. endif
.else
-. if exists(${X11BASE}/include/EGL/egl.h)
+. if ${OPSYS} == "NetBSD"
+. if defined(HAVE_XORG_EGL)
+MESALIB_SUPPORTS_EGL?= ${HAVE_XORG_EGL}
+. else
+# NetBSD 10 and earlier built native libepoxy EGL support
+# conditional on Xorg GLAMOR support.
+MESALIB_SUPPORTS_EGL?= ${HAVE_XORG_GLAMOR:Uno}
+. endif
+. elif exists(${X11BASE}/include/EGL/egl.h)
MESALIB_SUPPORTS_EGL?= yes
. endif
. if exists(${X11BASE}/lib/libOSMesa.so)
```
---
Izumi Tsutsui
From: "Benny Siegert" <bsiegert@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60476 CVS commit: [pkgsrc-2026Q2] pkgsrc/inputmethod/ibus
Date: Sun, 9 Aug 2026 18:36:13 +0000
Module Name: pkgsrc
Committed By: bsiegert
Date: Sun Aug 9 18:36:13 UTC 2026
Modified Files:
pkgsrc/inputmethod/ibus [pkgsrc-2026Q2]: Makefile
Log Message:
Pullup ticket #7223 - requested by tsutsui
inputmethod/ibus: build fix
Revisions pulled up:
- inputmethod/ibus/Makefile 1.124
---
Module Name: pkgsrc
Committed By: tsutsui
Date: Wed Jul 22 17:14:57 UTC 2026
Modified Files:
pkgsrc/inputmethod/ibus: Makefile
Log Message:
ibus: add kludge to fix bulk build on NetBSD/amd64 10.0
See PR pkg/60476 for details.
XXX: still fails on builds on hosts with xserver set using official gtk3
binary package
To generate a diff of this commit:
cvs rdiff -u -r1.123 -r1.123.2.1 pkgsrc/inputmethod/ibus/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
To: gnats-bugs@netbsd.org
Cc: tsutsui@ceres.dti.ne.jp
Subject: Re: pkg/60476: 2026Q2 NetBSD/amd64 gtk3+ binary package is built withoutwayland
Date: Tue, 11 Aug 2026 23:12:12 +0900
I wrote:
> If there is no objection I will commit following changes after
> pkgsrc-2026Q3 is branched.
(I mixed up the schedule of pkgsrc-2026Q3)
I'll commit the waylant change in this weekend.
---
Izumi Tsutsui
From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60476 CVS commit: pkgsrc/graphics/MesaLib
Date: Wed, 19 Aug 2026 15:12:51 +0000
Module Name: pkgsrc
Committed By: tsutsui
Date: Wed Aug 19 15:12:51 UTC 2026
Modified Files:
pkgsrc/graphics/MesaLib: features.mk
Log Message:
graphics/MesaLib: improve native EGL detection on NetBSD
For native X11 on NetBSD, use HAVE_XORG_EGL when it is available
instead of only checking for the EGL header.
On older NetBSD releases without HAVE_XORG_EGL, use HAVE_XORG_GLAMOR
as a fallback, since native libepoxy EGL support was conditional on
GLAMOR there.
This is a proper fix for PR pkg/60295 and makes MESALIB_SUPPORTS_EGL
reflect the actual native EGL support more accurately.
PR pkg/60476
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/graphics/MesaLib/features.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60476 CVS commit: pkgsrc/x11/gtk3
Date: Wed, 19 Aug 2026 15:16:31 +0000
Module Name: pkgsrc
Committed By: tsutsui
Date: Wed Aug 19 15:16:31 UTC 2026
Modified Files:
pkgsrc/x11/gtk3: Makefile options.mk
Log Message:
gtk3: remove NetBSD-specific Wayland workaround
MESALIB_SUPPORTS_EGL now handles native EGL support correctly on
NetBSD, so PLATFORM_SUPPORTS_WAYLAND already excludes systems where
the native libepoxy has no EGL support.
Remove the additional libglamoregl.so check added in PR pkg/60295.
The file is part of the xserver set, so checking for it incorrectly
disables Wayland on bulk build hosts where the xserver set is not
installed. PR pkg/60476
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.230 -r1.231 pkgsrc/x11/gtk3/Makefile
cvs rdiff -u -r1.36 -r1.37 pkgsrc/x11/gtk3/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60476 CVS commit: pkgsrc/inputmethod/ibus
Date: Wed, 19 Aug 2026 15:17:52 +0000
Module Name: pkgsrc
Committed By: tsutsui
Date: Wed Aug 19 15:17:52 UTC 2026
Modified Files:
pkgsrc/inputmethod/ibus: Makefile
Log Message:
ibus: use common Wayland platform detection
Remove the temporary NetBSD native X11 workaround and rely on
PLATFORM_SUPPORTS_WAYLAND.
Native EGL support is now handled by graphics/MesaLib/features.mk, so
the additional libglamoregl.so check is no longer needed. PR pkg/60476
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.124 -r1.125 pkgsrc/inputmethod/ibus/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Izumi Tsutsui" <tsutsui@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60476 CVS commit: pkgsrc/inputmethod/ibus
Date: Wed, 19 Aug 2026 16:18:16 +0000
Module Name: pkgsrc
Committed By: tsutsui
Date: Wed Aug 19 16:18:16 UTC 2026
Modified Files:
pkgsrc/inputmethod/ibus: Makefile
Log Message:
ibus: regenerate tools Vala sources before build
The generated tools/main.c in the distfile may contain Wayland code
even when ibus is configured with --disable-wayland, causing the build
to fail due to missing wayland headers or libraries.
Clean the generated sources before build so they are regenerated
with the current configure options, as already done for ui/gtk3.
This should fix workaround for PR pkg/60476 on pkgsrc-2026Q2.
To generate a diff of this commit:
cvs rdiff -u -r1.125 -r1.126 pkgsrc/inputmethod/ibus/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60476 CVS commit: [pkgsrc-2026Q2] pkgsrc/inputmethod/ibus
Date: Mon, 24 Aug 2026 20:55:25 +0000
Module Name: pkgsrc
Committed By: maya
Date: Mon Aug 24 20:55:25 UTC 2026
Modified Files:
pkgsrc/inputmethod/ibus [pkgsrc-2026Q2]: Makefile
Log Message:
Pullup ticket #7241 - requested by tsutsuii
inputmethod/ibus: Build fix
Revisions pulled up:
- inputmethod/ibus/Makefile 1.126
---
Module Name: pkgsrc
Committed By: tsutsui
Date: Wed Aug 19 16:18:16 UTC 2026
Modified Files:
pkgsrc/inputmethod/ibus: Makefile
Log Message:
ibus: regenerate tools Vala sources before build
The generated tools/main.c in the distfile may contain Wayland code
even when ibus is configured with --disable-wayland, causing the build
to fail due to missing wayland headers or libraries.
Clean the generated sources before build so they are regenerated
with the current configure options, as already done for ui/gtk3.
This should fix workaround for PR pkg/60476 on pkgsrc-2026Q2.
To generate a diff of this commit:
cvs rdiff -u -r1.123.2.1 -r1.123.2.2 pkgsrc/inputmethod/ibus/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.