NetBSD Problem Report #52021

From www@NetBSD.org  Wed Mar  1 13:54:09 2017
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 "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 281467A1F5
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  1 Mar 2017 13:54:09 +0000 (UTC)
Message-Id: <20170301135407.F331B7A2AB@mollari.NetBSD.org>
Date: Wed,  1 Mar 2017 13:54:07 +0000 (UTC)
From: joern.clausen@uni-bielefeld.de
Reply-To: joern.clausen@uni-bielefeld.de
To: gnats-bugs@NetBSD.org
Subject: graphics/MesaLib fails to install on NetBSD 7.0.1/amd64 with dri disabled
X-Send-Pr-Version: www-1.0

>Number:         52021
>Category:       pkg
>Synopsis:       graphics/MesaLib fails to install on NetBSD 7.0.1/amd64 with dri disabled
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 01 13:55:00 +0000 2017
>Closed-Date:    
>Last-Modified:  Fri Mar 17 12:35:00 +0000 2017
>Originator:     Joern Clausen
>Release:        
>Organization:
University of Bielefeld
>Environment:
>Description:
After the recent changes to graphics/MesaLib, installation fails on NetBSD 7.0.1/amd64 with

gmake[1]: Leaving directory '/usr/pkgsrc/graphics/MesaLib/work/mesa-11.2.2'
/usr/bin/install -c -o root -g wheel -m 644 /usr/pkgsrc/graphics/MesaLib/work/mesa-11.2.2/src/mesa/drivers/dri/common/drirc /usr/pkgsrc/graphics/MesaLib/work/.destdir/usr/pkg/share/examples/MesaLib
=> Automatic manual page handling
pkg_create: can't stat `/usr/pkgsrc/graphics/MesaLib/work/.destdir/usr/pkg/lib/vdpau/libvdpau_nouveau.so'
pkg_create: can't stat `/usr/pkgsrc/graphics/MesaLib/work/.destdir/usr/pkg/lib/vdpau/libvdpau_nouveau.so.1'
pkg_create: can't stat `/usr/pkgsrc/graphics/MesaLib/work/.destdir/usr/pkg/lib/vdpau/libvdpau_nouveau.so.1.0'
pkg_create: can't stat `/usr/pkgsrc/graphics/MesaLib/work/.destdir/usr/pkg/lib/vdpau/libvdpau_nouveau.so.1.0.0'
pkg_create: can't stat `/usr/pkgsrc/graphics/MesaLib/work/.destdir/usr/pkg/lib/vdpau/libvdpau_r300.so'
pkg_create: can't stat `/usr/pkgsrc/graphics/MesaLib/work/.destdir/usr/pkg/lib/vdpau/libvdpau_r300.so.1'
pkg_create: can't stat `/usr/pkgsrc/graphics/MesaLib/work/.destdir/usr/pkg/lib/vdpau/libvdpau_r300.so.1.0'
...

I have set

PKG_OPTIONS.MesaLib = -dri -llvm

in /etc/mk.conf, because I need "-dri" on Solaris to compile this package, and want to keep my tests on NetBSD in sync. I haven't tried compiling graphics/MesaLib on Solaris yet, but expect problems there as well.

FWIW: For another setup, I compile ffmpeg2 with "-vdpau", because this dependency pulls in a complete X11 distribution, which I don't need in that environment. I don't need MesaLib in that setup, so no real harm, but I am very suspicious about vdpau since then.

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52021 CVS commit: pkgsrc/graphics/MesaLib
Date: Thu, 2 Mar 2017 04:40:33 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Thu Mar  2 04:40:33 UTC 2017

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

 Log Message:
 MesaLib: pull in vdpau and vaapi only if dri option is selected.
 This fixes a PLIST mismatch in the -dri -llvm case, pointed out by
 Joern Clausen in PR pkg/52021.


 To generate a diff of this commit:
 cvs rdiff -u -r1.133 -r1.134 pkgsrc/graphics/MesaLib/Makefile
 cvs rdiff -u -r1.49 -r1.50 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: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/52021: graphics/MesaLib fails to install on NetBSD
 7.0.1/amd64 with dri disabled
Date: Thu, 2 Mar 2017 04:57:40 +0000

 Hi,

 I forgot about the no-X11 case, sorry.
 These packages are very intertwined with their dependencies and
 OS-specific stuff, I imagine there might be more fallout waiting to be
 discovered...

 For background, VA-API and VDPAU allow for utilizing some GPUs for
 decoding video.

 Currently we have libvdpau/available.mk to help note which things should
 pull in vdpau - perhaps that can be adjusted to be friendlier, e.g. I
 could make it add a vdpau option whenever available.mk is used.

 If there's some generic "I don't want to pull in X11 most of the time"
 test, maybe I can use it. I don't know if one exists, though.

From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/52021 CVS commit: pkgsrc/multimedia/libvdpau
Date: Thu, 16 Mar 2017 19:21:10 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Thu Mar 16 19:21:10 UTC 2017

 Modified Files:
 	pkgsrc/multimedia/libvdpau: available.mk

 Log Message:
 libvdpau: add an option 'x11' (default enabled) in available.mk, so non-X11
 users can avoid all of Xorg being pulled in for a dependency with ease,
 without needing to know about vdpau, for example in the case of ffmpeg3
 which shouldn't require X11.

 Feel free to propose alternatives.

 Clean some commented out bits.

 PR pkg/52021


 To generate a diff of this commit:
 cvs rdiff -u -r1.5 -r1.6 pkgsrc/multimedia/libvdpau/available.mk

 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/52021 CVS commit: pkgsrc/multimedia/libva
Date: Thu, 16 Mar 2017 19:29:39 +0000

 Module Name:	pkgsrc
 Committed By:	maya
 Date:		Thu Mar 16 19:29:39 UTC 2017

 Modified Files:
 	pkgsrc/multimedia/libva: available.mk

 Log Message:
 libva: Similar to libvdpau, add an x11 option to make it easier to disable
 libva dependencies for non-X11 users. feel free to suggest alternatives.

 PR pkg/52021


 To generate a diff of this commit:
 cvs rdiff -u -r1.8 -r1.9 pkgsrc/multimedia/libva/available.mk

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

Responsible-Changed-From-To: pkg-manager->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Thu, 16 Mar 2017 19:31:27 +0000
Responsible-Changed-Why:
Take


State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Thu, 16 Mar 2017 19:31:27 +0000
State-Changed-Why:
What do you think about this option?


Responsible-Changed-From-To: maya->pkg-manager
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Fri, 17 Mar 2017 09:11:20 +0000
Responsible-Changed-Why:


State-Changed-From-To: feedback->open
State-Changed-By: maya@NetBSD.org
State-Changed-When: Fri, 17 Mar 2017 09:11:20 +0000
State-Changed-Why:
too broken, if someone has better ideas they can suggest them.


From: coypu@SDF.ORG
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/52021 (graphics/MesaLib fails to install on NetBSD
 7.0.1/amd64 with dri disabled)
Date: Fri, 17 Mar 2017 12:31:38 +0000

 Sorry about that, I forgot that I'm doing something which could break
 lots of other stuff. Had to revert because the PKG_OPTIONS propagated to
 dependent packages and replaced all the options with just x11.

>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.