NetBSD Problem Report #53547

From www@NetBSD.org  Fri Aug 24 08:05:32 2018
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 14FCB7A104
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 24 Aug 2018 08:05:32 +0000 (UTC)
Message-Id: <20180824080530.A6BF37A270@mollari.NetBSD.org>
Date: Fri, 24 Aug 2018 08:05:30 +0000 (UTC)
From: triaxx@NetBSD.org
Reply-To: triaxx@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: modular-xorg-server: configure fails due to MesaLib without dri
X-Send-Pr-Version: www-1.0

>Number:         53547
>Category:       pkg
>Synopsis:       modular-xorg-server: configure fails due to MesaLib without dri
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 24 08:10:00 +0000 2018
>Last-Modified:  Tue Aug 28 12:00:00 +0000 2018
>Originator:     Frédéric Fauberteau
>Release:        netbsd-8-0-RELEASE (pkgsrc-2018Q2)
>Organization:
>Environment:
NetBSD hydralisk 8.0 NetBSD 8.0 (HYDRALISK) #1: Tue Jul 31 18:43:06 CEST 2018  root@hydralisk:/usr/obj/sys/arch/amd64/compile/HYDRALISK amd64
>Description:
The configure script of xorg-server fails due to miss of dri:

configure: error: Package requirements (fixesproto >= 5.0 damageproto >= 1.1 xcmiscproto >= 1.2.0 xtrans >= 1.3.5 bigreqsproto >= 1.1.0 xproto >= 7.0.31 randrproto >= 1.6.0 renderproto >= 0.11 xextproto >= 7.2.99.901 inputproto >= 2.3 kbproto >= 1.0.3 fontsproto >= 2.1.3 p
ixman-1 >= 0.27.2 videoproto compositeproto >= 0.4 recordproto >= 1.13.99.1 scrnsaverproto >= 1.1 resourceproto >= 1.2.0 xf86driproto >= 2.1.0 glproto >= 1.4.17 dri >= 7.8.0 dri3proto presentproto >= 1.1 xineramaproto xkbfile  pixman-1 >= 0.27.2 xfont2 >= 2.0.0 xau xshmfen
ce >= 1.1 xdmcp) were not met:

Package 'dri', required by 'virtual:world', not found

My MesaLib package (that probably comes from pkgin) has no dri.pc:

$ pkg_info -L MesaLib
Information for MesaLib-11.2.2nb6:

Files:
/usr/pkg/include/GL/gl.h
/usr/pkg/include/GL/gl_mangle.h
/usr/pkg/include/GL/glcorearb.h
/usr/pkg/include/GL/glext.h
/usr/pkg/include/GL/glx.h
/usr/pkg/include/GL/glx_mangle.h
/usr/pkg/include/GL/glxext.h
/usr/pkg/include/GL/osmesa.h
/usr/pkg/include/GL/wglext.h
/usr/pkg/lib/libGL.la
/usr/pkg/lib/libGL.a
/usr/pkg/lib/libGL.so
/usr/pkg/lib/libGL.so.1
/usr/pkg/lib/libGL.so.1.6.0
/usr/pkg/lib/libglapi.la
/usr/pkg/lib/libglapi.a
/usr/pkg/lib/libglapi.so
/usr/pkg/lib/libglapi.so.0
/usr/pkg/lib/libglapi.so.0.0.0
/usr/pkg/lib/pkgconfig/gl.pc
/usr/pkg/share/examples/MesaLib/drirc
>How-To-Repeat:
cd x11/modular-xorg-server && make configure (MesaLib without dri)
>Fix:
I don't know why the MesaLib has been built whithout dri since its options.mk contains the right PKG_SUGGESTED_OPTIONS.

Does the pkgsrc framework allow to set an option for a dependency?

>Audit-Trail:
From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/53547: modular-xorg-server: configure fails due to MesaLib
 without dri
Date: Fri, 24 Aug 2018 20:31:35 +0000

 there's a problem that netbsd's base cannot build mesalib with dri.
 if you want a pure pkgsrc xorg, you can use X11_TYPE=modular and
 probably nuke a lot of packages.

From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric_Fauberteau?= <triaxx@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/53547: modular-xorg-server: configure fails due to MesaLib  without dri
Date: Tue, 28 Aug 2018 13:53:57 +0200

 Le 2018-08-24 22:35, coypu@sdf.org a écrit :
 > The following reply was made to PR pkg/53547; it has been noted by 
 > GNATS.
 > 
 > From: coypu@sdf.org
 > To: gnats-bugs@netbsd.org
 > Cc:
 > Subject: Re: pkg/53547: modular-xorg-server: configure fails due to 
 > MesaLib
 >  without dri
 > Date: Fri, 24 Aug 2018 20:31:35 +0000
 > 
 >  there's a problem that netbsd's base cannot build mesalib with dri.
 >  if you want a pure pkgsrc xorg, you can use X11_TYPE=modular and
 >  probably nuke a lot of packages.

 Actually, I commonly use X11_TYPE=modular and build a lot of packages.

 In the precise case of this PR, I tried to build modular-xorg-server 
 while I had MesaLib already installed from a binary set.

 To avoid the error I encountered, we would need something like that:
 BUILDLINK_API_DEPENDS.MesaLib+=   MesaLib[dri]>=7.8.0

 If the pkgsrc framework does not allow to inspect activated options for 
 dependencies, I am not sure this PR is relevant...

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.