Gentoo Archives: gentoo-dev

From: Alec Ten Harmsel <alec@××××××××××××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFCv2: USE=avcodec (+ USE=ffmpeg/libav)
Date: Tue, 20 Jan 2015 14:41:28
Message-Id: 54BE6910.2070808@alectenharmsel.com
In Reply to: Re: [gentoo-dev] RFCv2: USE=avcodec (+ USE=ffmpeg/libav) by "Andreas K. Huettel"
1 On 01/20/2015 07:46 AM, Andreas K. Huettel wrote:
2 > Am Dienstag 20 Januar 2015, 08:57:43 schrieb Michał Górny:
3 >> So a package supporting both providers has:
4 >>
5 >> IUSE="ffmpeg libav"
6 >> RDEPEND="
7 >> ffmpeg? ( media-video/ffmpeg:= )
8 >> libav? ( media-video/libav:= [media-libs/libpostproc:=] )"
9 >> REQUIRED_USE="^^ ( ffmpeg libav )"
10 >>
11 >> And a package with optional support for both ends up like:
12 >>
13 >> IUSE="avcodec postproc ffmpeg libav"
14 >> RDEPEND="
15 >> avcodec? (
16 >> ffmpeg? ( media-video/ffmpeg:= )
17 >> libav? ( media-video/libav:= )
18 >> )
19 >> postproc? (
20 >> ffmpeg? ( media-video/ffmpeg:= )
21 >> libav? ( media-libs/libpostproc:= )
22 >> )"
23 >> REQUIRED_USE="
24 >> avcodec? ( ^^ ( ffmpeg libav ) )
25 >> postproc? ( ^^ ( ffmpeg libav ) )
26 >> ffmpeg? ( || ( avcodec postproc ) )
27 >> libav? ( || ( avcodec postproc ) )"
28 >>
29 > No.
30 >
31
32 As a user, I completely agree with Andreas. What's wrong with a
33 dependency on virtual/ffmpeg? Let's say I want to install mpv; if I
34 completely ignore the upstream's recommendation of ffmpeg and instead
35 use libav to satisfy a virtual/ffmpeg dependency, that's my problem, not
36 the Gentoo developers (in my opinion).
37
38 I've written a few ebuilds, and by no means am even close to competent.
39 If they get more and more complex like this, why should I even bother
40 ever learning? I feel like ebuilds should be as simple as possible, to
41 keep devs sane and to interest more people. Another downside is that a
42 much more verbose solution like this will make dependency resolution
43 take longer imnho.
44
45 Alec