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: joernc@gmail.com
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: Mon Feb 11 17:14:06 +0000 2019
>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.
Responsible-Changed-From-To: pkg-manager->maya
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Sun, 28 May 2017 02:17:34 +0000
Responsible-Changed-Why:
I've introduced an x11 option to ffmpeg3 and made vdpau require both x11 and available.mk.
(both are default on, but disabling x11 will suffice to disable things). is that good?
State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sun, 28 May 2017 02:17:34 +0000
State-Changed-Why:
From: =?UTF-8?Q?J=c3=b6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org, maya@NetBSD.org, pkg-manager@NetBSD.org,
pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org
Cc:
Subject: Re: pkg/52021 (graphics/MesaLib fails to install on NetBSD 7.0.1/amd64
with dri disabled)
Date: Mon, 29 May 2017 09:18:00 +0200
I've checked only superficially (building ffmpeg3 with
PKG_OPTIONS.ffmpeg3=-x11) and it didn't pull in libvdpau. So this looks
good to me.
Actually, I am still using ffmpeg2. Can you apply the same change there?
Maybe after a few more thumbs up from other people :)
--
Jörn Clausen
Plattformen & Serverdienste
BITS - Bielefelder IT-Servicezentrum
Universität Bielefeld
Universitätsstraße 25
33615 Bielefeld
Telefon: +49 521 106-12601
E-Mail: joern.clausen@uni-bielefeld.de
http://www.uni-bielefeld.de/bits
State-Changed-From-To: feedback->open
State-Changed-By: leot@NetBSD.org
State-Changed-When: Mon, 29 May 2017 08:39:22 +0000
State-Changed-Why:
Whoops, also multimedia/ffmpeg2 needs to be adjusted similarly!
Thanks to Jörn for pointing out that!
State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Mon, 29 May 2017 08:43:03 +0000
State-Changed-Why:
Jörn, I've committed a similar fix to multimedia/ffmpeg2.
Can you please try it and let us known if it does the trick as well?
Thank you!
From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/52021 CVS commit: pkgsrc/multimedia/ffmpeg2
Date: Mon, 29 May 2017 08:38:16 +0000
Module Name: pkgsrc
Committed By: leot
Date: Mon May 29 08:38:16 UTC 2017
Modified Files:
pkgsrc/multimedia/ffmpeg2: options.mk
Log Message:
Add an `x11' option (disabled by default) similar to multimedia/ffmpeg2 in
order to avoid pulling x11 dependencies.
Should address PR pkg/52021 reported by Jörn Clausen.
Thanks to <maya>!
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 pkgsrc/multimedia/ffmpeg2/options.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: =?UTF-8?Q?J=c3=b6rn_Clausen?= <joern.clausen@uni-bielefeld.de>
To: gnats-bugs@NetBSD.org, maya@NetBSD.org, pkgsrc-bugs@NetBSD.org,
gnats-admin@NetBSD.org, leot@NetBSD.org
Cc:
Subject: Re: pkg/52021 (graphics/MesaLib fails to install on NetBSD 7.0.1/amd64
with dri disabled)
Date: Mon, 29 May 2017 11:07:15 +0200
Works as well, libdvpau is not used.
But thinking a bit more about it, this is also puzzling:
$ make show-options PKG_OPTIONS.ffmpeg2=-x11
These options are enabled by default:
ass fontconfig freetype lame libvpx openssl
theora vaapi vdpau vorbis x11 x264 xvid
These options are currently enabled:
ass fontconfig freetype lame libvpx openssl
theora vaapi vdpau vorbis x264 xvid
"vdpau" is still shown in the list of enabled options, although the
package is built without support for it. "-vdpau" does what you (well,
at least I) expect, to achieve building without X11 as a side effect.
"-x11" does what you want, by not building "vdpau" as a side effect.
The only solution I can think of are interdependent options, but that
would probably open a whole other can of worms.
Maybe adjusting the text for vdpau and x11 is a reasonable solution:
vdpau Enable support for VDPAU (needs X11).
x11 Enable X11 support (needs libvdpau).
or something like that.
--
Jörn Clausen
Plattformen & Serverdienste
BITS - Bielefelder IT-Servicezentrum
Universität Bielefeld
Universitätsstraße 25
33615 Bielefeld
Telefon: +49 521 106-12601
E-Mail: joern.clausen@uni-bielefeld.de
http://www.uni-bielefeld.de/bits
From: Leonardo Taccari <leot@NetBSD.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: Mon, 29 May 2017 11:31:13 +0200
Hello Jörn,
Jörn Clausen writes:
> Works as well, libdvpau is not used.
>
> But thinking a bit more about it, this is also puzzling:
>
> $ make show-options PKG_OPTIONS.ffmpeg2=-x11
>
> These options are enabled by default:
> ass fontconfig freetype lame libvpx openssl
> theora vaapi vdpau vorbis x11 x264 xvid
>
> These options are currently enabled:
> ass fontconfig freetype lame libvpx openssl
> theora vaapi vdpau vorbis x264 xvid
>
>
> "vdpau" is still shown in the list of enabled options, although the
> package is built without support for it. "-vdpau" does what you (well,
> at least I) expect, to achieve building without X11 as a side effect.
> "-x11" does what you want, by not building "vdpau" as a side effect.
>
> The only solution I can think of are interdependent options, but that
> would probably open a whole other can of worms.
>
> Maybe adjusting the text for vdpau and x11 is a reasonable solution:
>
> vdpau Enable support for VDPAU (needs X11).
> x11 Enable X11 support (needs libvdpau).
>
> or something like that.
You are right, unfortunately this is puzzling and a bit hackish!
I would like to propose the following: have a conditional `x11'
option that when disabled hides `vaapi' and `vdpau' options.
A possible patch that implements that is attached in this email.
I think/hope that it's a bit less puzzling but if anyone has a
possible better ideas please let me know!
Regarding custom options descriptions, after a quick skim of
mk/bsd.options.mk it seems that all options descriptions are directly
read from mk/defaults/options.description and so we do not have any way
to overwrite the description as you proposed.
However, we can introduce an `ffmpeg-x11' option (or something similar,
please let me know if you have a better name!) with a clearer
description about that, that explicitly "unblock" vaapi and vdpau
options (similar to `x11' of the following patch).
(if gnats will mess up the inline attached patch the same version is
available at:
http://netbsd.org/~leot/pkgsrc-patches/ffmpeg2-x11-vs-vaapi-vdpau.patch )
-------------------8<-----------------8<-----------------8<-------------------
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/multimedia/ffmpeg2/options.mk,v
retrieving revision 1.12
diff -u -p -r1.12 options.mk
--- options.mk 29 May 2017 08:38:16 -0000 1.12
+++ options.mk 29 May 2017 09:21:41 -0000
@@ -13,14 +13,14 @@ PLIST_VARS+= doc
# Add VDPAU if it is available
.include "../../multimedia/libvdpau/available.mk"
-.if ${VDPAU_AVAILABLE} == "yes"
+.if ${VDPAU_AVAILABLE} == "yes" && !empty(PKG_OPTIONS:Mx11)
PKG_SUPPORTED_OPTIONS+= vdpau
PKG_SUGGESTED_OPTIONS+= vdpau
.endif
# Add VAAPI if it is available
.include "../../multimedia/libva/available.mk"
-.if ${VAAPI_AVAILABLE} == "yes"
+.if ${VAAPI_AVAILABLE} == "yes" && !empty(PKG_OPTIONS:Mx11)
PKG_SUPPORTED_OPTIONS+= vaapi
PKG_SUGGESTED_OPTIONS+= vaapi
.endif
@@ -162,7 +162,7 @@ CONFIGURE_ARGS+= --disable-libx265
.endif
# VDPAU support
-.if !empty(PKG_OPTIONS:Mvdpau) && !empty(PKG_OPTIONS:Mx11)
+.if !empty(PKG_OPTIONS:Mvdpau)
CONFIGURE_ARGS+= --enable-vdpau
.include "../../multimedia/libvdpau/buildlink3.mk"
.else
@@ -170,7 +170,7 @@ CONFIGURE_ARGS+= --disable-vdpau
.endif
# VAAPI support
-.if !empty(PKG_OPTIONS:Mvaapi) && !empty(PKG_OPTIONS:Mx11)
+.if !empty(PKG_OPTIONS:Mvaapi)
CONFIGURE_ARGS+= --enable-vaapi
.include "../../multimedia/libva/buildlink3.mk"
.else
Responsible-Changed-From-To: maya->pkg-manager
Responsible-Changed-By: maya@NetBSD.org
Responsible-Changed-When: Mon, 13 Nov 2017 19:23:43 +0000
Responsible-Changed-Why:
State-Changed-From-To: feedback->open
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 11 Feb 2019 17:14:06 +0000
State-Changed-Why:
feedback was received since the last request.
also, the submitter suggested closing this -- what is the status of the
last bits at the bottom? And, anyone object?
>Unformatted:
(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.