NetBSD Problem Report #60295
From www@netbsd.org Wed May 27 09:36:51 2026
Return-Path: <www@netbsd.org>
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 "R13" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 300C31A9239
for <gnats-bugs@gnats.NetBSD.org>; Wed, 27 May 2026 09:36:51 +0000 (UTC)
Message-Id: <20260527093650.2622C1A923B@mollari.NetBSD.org>
Date: Wed, 27 May 2026 09:36:50 +0000 (UTC)
From: nakaji@kankyo-u.ac.jp
Reply-To: nakaji@kankyo-u.ac.jp
To: gnats-bugs@NetBSD.org
Subject: x11/gtk3 does not build on NetBSD/macppc
X-Send-Pr-Version: www-1.0
X-From4GNATS: "nakaji@kankyo-u.ac.jp via gnats" <gnats-admin@NetBSD.org>
>Number: 60295
>Category: pkg
>Synopsis: x11/gtk3 does not build on NetBSD/macppc
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: needs-pullups
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 27 09:40:00 +0000 2026
>Closed-Date:
>Last-Modified: Wed Aug 19 15:20:01 +0000 2026
>Originator: NAKAJI Hiroyuki
>Release: pkgsrc HEAD
>Organization:
Tottori University of Environmental Studies
>Environment:
NetBSD macmini.heimat.gr.jp 11.99.5 NetBSD 11.99.5 (GENERIC) #12: Sat Apr 11 03:51:22 JST 2026 root@vaio.heimat.gr.jp:/home/nakaji/netbsd/obj.macppc/sys/arch/macppc/compile/GENERIC macppc
>Description:
pkgsrc/x11/gtk3 build fails with a lot of "undefined reference to `epoxy_has_egl_extension'"
On macppc (and maybe on other archs except amd64, i386, evbarm and evbppc), /usr/X11R7/lib/libepoxy.so has no EGL extensions, and needs pkgsrc/graphics/libepoxy instead. But, configure of x11/gtk3 detects /usr/X11R7/lib/libepoxy.so via x11-links and does not link /usr/pkg/lib/libepoxy.so which has EGL extensions.
A build log of x11/gtk3 is available at
https://d4407.kankyo-u.ac.jp/~nakaji/NetBSD/macppc/gtk3.log
Thanks.
>How-To-Repeat:
make -C /usr/pkgsrc/x11/gtk3 all
>Fix:
N/A
>Release-Note:
>Audit-Trail:
From: "Nia Alarie" <nia@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60295 CVS commit: src/external/mit/xorg/lib/libepoxy
Date: Wed, 27 May 2026 12:22:09 +0000
Module Name: src
Committed By: nia
Date: Wed May 27 12:22:09 UTC 2026
Modified Files:
src/external/mit/xorg/lib/libepoxy: Makefile
Log Message:
libepoxy: Make EGL libs depend on EGL support rather than GLAMOR.
Build tested on sparc64, which has EGL but no GLAMOR x server.
If this is pulled up, it should happen before 11.0 is cut, since
it adds stuff to the ABI.
PR pkg/60295 x11/gtk3 does not build on NetBSD/macppc
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/mit/xorg/lib/libepoxy/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: nia@NetBSD.org
State-Changed-When: Wed, 27 May 2026 12:40:05 +0000
State-Changed-Why:
Have these changes resolved the problem for you?
From: "Nia Alarie" <nia@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60295 CVS commit: pkgsrc/x11/gtk3
Date: Wed, 27 May 2026 12:39:09 +0000
Module Name: pkgsrc
Committed By: nia
Date: Wed May 27 12:39:08 UTC 2026
Modified Files:
pkgsrc/x11/gtk3: options.mk
Log Message:
gtk3: Make building wayland support conditional on GLAMOREGL on NetBSD.
While this seems... weird, at best, due to Historical Reasons
building libEGL was dependent on building the X server with GLAMOR
support in NetBSD. This is no longer true, but some problems linger
(e.g. with libepoxy in the base system).
As a special hack, for NetBSD with native X only, disable Wayland
support if the GLAMOR extension isn't enabled.
PR pkg/60295 x11/gtk3 does not build on NetBSD/macppc
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 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: NAKAJI Hiroyuki <nakaji@kankyo-u.ac.jp>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
nia@netbsd.org
Subject: Re: pkg/60295 (x11/gtk3 does not build on NetBSD/macppc)
Date: Thu, 28 May 2026 11:46:46 +0900
> Synopsis: x11/gtk3 does not build on NetBSD/macppc
>
> State-Changed-From-To: open->feedback
> State-Changed-By: nia@NetBSD.org
> State-Changed-When: Wed, 27 May 2026 12:40:05 +0000
> State-Changed-Why:
> Have these changes resolved the problem for you?
Yes. Thanks!
--
NAKAJI Hiroyuki (中治 弘行)
From: "Nia Alarie" <nia@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60295 CVS commit: src/external/mit/xorg/lib/libepoxy
Date: Thu, 28 May 2026 08:57:11 +0000
Module Name: src
Committed By: nia
Date: Thu May 28 08:57:10 UTC 2026
Modified Files:
src/external/mit/xorg/lib/libepoxy: Makefile
Log Message:
libepoxy: Update the pkg-config file for new reality.
PR pkg/60295 x11/gtk3 does not build on NetBSD/macppc
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/mit/xorg/lib/libepoxy/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: feedback->needs-pullups
State-Changed-By: nia@NetBSD.org
State-Changed-When: Thu, 28 May 2026 09:04:07 +0000
State-Changed-Why:
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60295 CVS commit: [netbsd-11] src/external/mit/xorg/lib/libepoxy
Date: Wed, 3 Jun 2026 18:30:01 +0000
Module Name: src
Committed By: martin
Date: Wed Jun 3 18:30:01 UTC 2026
Modified Files:
src/external/mit/xorg/lib/libepoxy [netbsd-11]: Makefile
Log Message:
Pull up following revision(s) (requested by nia in ticket #296):
external/mit/xorg/lib/libepoxy/Makefile: revision 1.10
external/mit/xorg/lib/libepoxy/Makefile: revision 1.11
libepoxy: Make EGL libs depend on EGL support rather than GLAMOR.
Build tested on sparc64, which has EGL but no GLAMOR x server.
PR pkg/60295 x11/gtk3 does not build on NetBSD/macppc
libepoxy: Update the pkg-config file for new reality.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.9.10.1 src/external/mit/xorg/lib/libepoxy/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/60295 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/60295 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.
>Unformatted:
(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.