Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 554400 - media-plugins/gst-plugins-vaapi add RESTRICT_USE to prevent disabling of all renderers
Summary: media-plugins/gst-plugins-vaapi add RESTRICT_USE to prevent disabling of all ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-10 02:14 UTC by om3i
Modified: 2015-09-05 14:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (media-plugins:gst-plugins-vaapi-0.5.10:20150710-020850.log,9.77 KB, text/plain)
2015-07-10 02:15 UTC, om3i
Details

Note You need to log in before you can comment on or make changes to this bug.
Description om3i 2015-07-10 02:14:32 UTC
If you try to build media-plugins/gst-plugins-vaapi with all USE disabled it fails with:

>configure: error: No renderer is enabled

Reproducible: Always
Comment 1 om3i 2015-07-10 02:15:00 UTC
Created attachment 406450 [details]
build.log
Comment 2 om3i 2015-08-06 01:59:43 UTC
Also ebuild automagically dependends on drm backend of libva, i.e. x11-libs/libva[drm]

and implies dependency on external media-libs/libvpx, but passes --enable-builtin-libvpx=no, with this option external libvpx isn't used

and has use flags such as opengl, but unconditionally pulls this dependencies even if they're disabled

So, in short:

--- a/gst-plugins-vaapi-0.5.10.ebuild	2015-03-30 16:06:40.000000000 +0300
+++ b/gst-plugins-vaapi-0.5.10.ebuild	2015-08-06 04:51:17.000000000 +0300
@@ -13,20 +13,27 @@
 LICENSE="LGPL-2.1"
 SLOT="1.0"
 KEYWORDS="~amd64"
-IUSE="+X opengl wayland"
+IUSE="drm +X opengl wayland"
 
 RDEPEND="
 	>=dev-libs/glib-2.34.3:2[${MULTILIB_USEDEP}]
-	media-libs/libvpx[${MULTILIB_USEDEP}]
 	>=media-libs/gstreamer-1.2.3:1.0[${MULTILIB_USEDEP}]
 	>=media-libs/gst-plugins-base-1.2.3:1.0[${MULTILIB_USEDEP}]
 	>=media-libs/gst-plugins-bad-1.2.3:1.0[${MULTILIB_USEDEP}]
-	>=x11-libs/libdrm-2.4.46[${MULTILIB_USEDEP}]
-	>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
-	>=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}]
-	>=x11-libs/libva-1.4.0[X?,opengl?,wayland?,${MULTILIB_USEDEP}]
-	>=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
-	>=virtual/libudev-208:=[${MULTILIB_USEDEP}]
+	drm? (
+		>=virtual/libudev-208:=[${MULTILIB_USEDEP}]
+		>=x11-libs/libdrm-2.4.46[${MULTILIB_USEDEP}]
+	)
+	X? (
+		>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+		>=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}]
+	)
+	>=x11-libs/libva-1.4.0[drm?,X?,opengl?,wayland?,${MULTILIB_USEDEP}]
+	opengl? (
+		>=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
+		>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
+		>=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}]
+	)
 	wayland? ( >=dev-libs/wayland-1.0.6[${MULTILIB_USEDEP}] )
 "
 DEPEND="${RDEPEND}
@@ -40,7 +47,7 @@
 	econf \
 		--enable-builtin-libvpx=no \
 		--disable-static \
-		--enable-drm \
+		$(use_enable drm) \
 		$(use_enable opengl glx) \
 		$(use_enable wayland) \
 		$(use_enable X x11)
Comment 3 Pacho Ramos gentoo-dev 2015-09-05 14:37:09 UTC
done