NetBSD Problem Report #49867

From www@NetBSD.org  Tue Apr 28 15:10:03 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id DE8A2A5864
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 28 Apr 2015 15:10:02 +0000 (UTC)
Message-Id: <20150428151000.DC000A6552@mollari.NetBSD.org>
Date: Tue, 28 Apr 2015 15:10:00 +0000 (UTC)
From: slitvinov@gmail.com
Reply-To: slitvinov@gmail.com
To: gnats-bugs@NetBSD.org
Subject: graphics/MesaLib fails to build with circular dependency on multimedia/libva
X-Send-Pr-Version: www-1.0

>Number:         49867
>Category:       pkg
>Synopsis:       graphics/MesaLib fails to build with circular dependency on multimedia/libva
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tnn
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 28 15:15:00 +0000 2015
>Closed-Date:    Wed May 27 15:16:51 +0000 2015
>Last-Modified:  Wed May 27 15:16:51 +0000 2015
>Originator:     Sergey Litvinov
>Release:        CentOS
>Organization:
>Environment:
Linux x86_64 #1 SMP Fri Mar 27 03:04:26 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>Description:
graphics/MesaLib fails to build on Linux with 

ERROR: This package has set PKG_FAIL_REASON:
ERROR: Circular dependency detected
*** Error code 1

Stop.
bmake: stopped in /home/lisergey/src/pkgsrc/graphics/MesaLib
*** Error code 1

Stop.
bmake: stopped in /home/lisergey/src/pkgsrc/multimedia/libva
*** Error code 1

>How-To-Repeat:
bmake in graphics/MesaLib
>Fix:

>Release-Note:

>Audit-Trail:
From: Tobias Nygren <tnn@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: slitvinov@gmail.com
Subject: Re: pkg/49867: graphics/MesaLib fails to build with circular
 dependency on multimedia/libva
Date: Tue, 28 Apr 2015 17:26:44 +0200

 On Tue, 28 Apr 2015 15:15:00 +0000 (UTC)
 slitvinov@gmail.com wrote:

 > Linux x86_64 #1 SMP Fri Mar 27 03:04:26 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
 > >Description:
 > graphics/MesaLib fails to build on Linux with 
 > 
 > ERROR: This package has set PKG_FAIL_REASON:
 > ERROR: Circular dependency detected
 > *** Error code 1

 Can you try to remove the libva dependency from MesaLib/options.mk
 and see if configure complains about missing VA package?
 (I'm not sure what the implications of doing this are, but
 clearly we need to unbreak the loop in some way.)

From: "Tobias Nygren" <tnn@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49867 CVS commit: pkgsrc/graphics/MesaLib
Date: Tue, 28 Apr 2015 21:06:32 +0000

 Module Name:	pkgsrc
 Committed By:	tnn
 Date:		Tue Apr 28 21:06:32 UTC 2015

 Modified Files:
 	pkgsrc/graphics/MesaLib: options.mk

 Log Message:
 PR pkg/49867: circular dependency between MesaLib and libva on Linux.
 I probably added libva as a dependency at some point in wip/ since
 configure wanted it. Not sure what it's used for so just remove it.


 To generate a diff of this commit:
 cvs rdiff -u -r1.29 -r1.30 pkgsrc/graphics/MesaLib/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Sergey Litvinov <slitvinov@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/49867 CVS commit: pkgsrc/graphics/MesaLib
Date: Tue, 28 Apr 2015 23:15:52 +0200

 Thank you for the quick replay.

 After applying the commit I am getting this error (in graphics/MesaLib).
 bmake configure

 checking for DRI3PROTO... no
 configure: error: Package requirements (dri3proto >= 1.0) were not met:

 No package 'dri3proto' found

 Consider adjusting the PKG_CONFIG_PATH environment variable if you
 installed software in a non-standard prefix.

 Alternatively, you may set the environment variables DRI3PROTO_CFLAGS
 and DRI3PROTO_LIBS to avoid the need to call pkg-config.
 See the pkg-config man page for more details.

Responsible-Changed-From-To: pkg-manager->tnn
Responsible-Changed-By: tnn@NetBSD.org
Responsible-Changed-When: Wed, 29 Apr 2015 12:59:24 +0000
Responsible-Changed-Why:
Take. Allowing DRI3 build for Linux will require some more changes
including import of wip/libxshmfence.


State-Changed-From-To: open->feedback
State-Changed-By: tnn@NetBSD.org
State-Changed-When: Wed, 29 Apr 2015 15:50:46 +0000
State-Changed-Why:
Should be fixed now, at least I was able to build it on Centos 7.
Does it work for you?


From: Sergey Litvinov <slitvinov@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/49867 (graphics/MesaLib fails to build with circular
 dependency on multimedia/libva)
Date: Thu, 30 Apr 2015 10:28:31 +0200

 Yes. It builds with
 PKG_OPTIONS.MesaLib = -dri

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Wed, 27 May 2015 15:16:51 +0000
State-Changed-Why:
confirmed fixed, thanks


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.