NetBSD Problem Report #54975
From www@netbsd.org Mon Feb 17 10:24:42 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 0FD4C1A9213
for <gnats-bugs@gnats.NetBSD.org>; Mon, 17 Feb 2020 10:24:42 +0000 (UTC)
Message-Id: <20200217102440.F36E81A9259@mollari.NetBSD.org>
Date: Mon, 17 Feb 2020 10:24:40 +0000 (UTC)
From: bbartlomiej@gmail.com
Reply-To: bbartlomiej@gmail.com
To: gnats-bugs@NetBSD.org
Subject: modular-xorg-server on NetBSD 9.0 and pkgsrc 2019Q4 fails to build
X-Send-Pr-Version: www-1.0
>Number: 54975
>Category: pkg
>Synopsis: modular-xorg-server on NetBSD 9.0 and pkgsrc 2019Q4 fails to build
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 17 10:25:01 +0000 2020
>Closed-Date: Mon Feb 01 15:25:06 +0000 2021
>Last-Modified: Mon Feb 01 15:25:06 +0000 2021
>Originator: Bartek Krawczyk
>Release: NetBSD 9.0, pkgsrc 2019Q4
>Organization:
>Environment:
NetBSD localhost 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
When I try to build meta-package for modular-xorg it fails on modular-xorg-server due to epoxy/egl.h missing.
Dependency for libepoxy is missing from modular-xorg-server. When I install it manually it also fails:
libepoxy is installed and egl.h exists although in EGL and GLES locations:
gmake[1]: Entering directory '/usr/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.20.6/glamor'
CC glamor.lo
In file included from glamor.c:37:0:
glamor_priv.h:44:10: fatal error: epoxy/egl.h: No such file or directory
#include <epoxy/egl.h>
^~~~~~~~~~~~~
compilation terminated.
gmake[1]: *** [Makefile:763: glamor.lo] Error 1
gmake[1]: Leaving directory '/usr/pkgsrc/x11/modular-xorg-server/work/xorg-server-1.20.6/glamor'
gmake: *** [Makefile:816: all-recursive] Error 1
*** Error code 2
Stop.
make[2]: stopped in /usr/pkgsrc/x11/modular-xorg-server
*** Error code 1
Stop.
make[1]: stopped in /usr/pkgsrc/x11/modular-xorg-server
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/meta-pkgs/modular-xorg
localhost# pkg_info | grep epoxy
libepoxy-1.5.3 Library for OpenGL function pointer management
localhost# find / -name egl\.h -print
/usr/pkgsrc/x11/modular-xorg-server/work/.buildlink/include/EGL/egl.h
/usr/pkgsrc/x11/modular-xorg-server/work/.buildlink/include/GLES/egl.h
/usr/pkg/include/EGL/egl.h
/usr/pkg/include/GLES/egl.h
localhost# uname -a
NetBSD localhost 9.0 NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>How-To-Repeat:
- Install NetBSD 9.0
- Install pkgsrc 2019Q4
- Go to /usr/pkgesr/meta-pkgs/modular-xorg
- do "make install"
>Fix:
- correctly add libepoxy as build dependency for modular-xorg-server
- unknown fix afterwards for epoxy/egl.h
>Release-Note:
>Audit-Trail:
From: Bartek Krawczyk <bbartlomiej@gmail.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/54975: modular-xorg-server on NetBSD 9.0 and pkgsrc 2019Q4
fails to build
Date: Mon, 17 Feb 2020 11:47:27 +0100
After reinstalling libepoxy with MESALIB_SUPPORTS_EGL=yes in mk.conf
it built OK and egl.h is also in epoxy/egl.h
What surprised me is that I have just done "make install" for xfce4
and modular-xorg meta packages so I expected to have all necessary
default options and variables set to sane values. When libepoxy by
default is not compiled with EGL support, modular-xorg-server should
not expect it. Perhaps adding options framework to either MesaLib
and/or libepoxy with default egl support should be in place? Or some
option in modular-xorg or modular-xorg-server package?
On Mon, 17 Feb 2020 at 11:25, <gnats-admin@netbsd.org> wrote:
>
> Thank you very much for your problem report.
> It has the internal identification `pkg/54975'.
> The individual assigned to look at your
> report is: pkg-manager.
>
> >Category: pkg
> >Responsible: pkg-manager
> >Synopsis: modular-xorg-server on NetBSD 9.0 and pkgsrc 2019Q4 fails to build
> >Arrival-Date: Mon Feb 17 10:25:01 +0000 2020
>
--
Bartek Krawczyk
State-Changed-From-To: open->closed
State-Changed-By: nia@NetBSD.org
State-Changed-When: Mon, 01 Feb 2021 15:25:06 +0000
State-Changed-Why:
pkgsrc MesaLib is always built with EGL support.
if you have X11_TYPE=modular, it will assume EGL
support in Mesa.
otherwise, it will check for the presence of the
EGL header on your filesystem.
glad you found a workaround, but please make sure
modular X11 is enabled properly and you are not mixing
native and modular Xorg.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.