Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-26 Thread Michał Górny
Dnia 2015-01-26, o godz. 12:57:36 Alexis Ballier aball...@gentoo.org napisał(a): On Fri, 23 Jan 2015 09:19:19 -0800 Zac Medico zmed...@gentoo.org wrote: what Michał claims is that 'foo' will want ffmpeg, no matter what. Maybe he's talking about some case where portage failed to

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-26 Thread Zac Medico
On 01/26/2015 03:57 AM, Alexis Ballier wrote: On Fri, 23 Jan 2015 09:19:19 -0800 Zac Medico zmed...@gentoo.org wrote: what Michał claims is that 'foo' will want ffmpeg, no matter what. Maybe he's talking about some case where portage failed to trigger a rebuild when appropriate. We've had

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-26 Thread Alexis Ballier
On Fri, 23 Jan 2015 09:19:19 -0800 Zac Medico zmed...@gentoo.org wrote: what Michał claims is that 'foo' will want ffmpeg, no matter what. Maybe he's talking about some case where portage failed to trigger a rebuild when appropriate. We've had a number of bugs like this that have been

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-23 Thread Zac Medico
On 01/23/2015 01:48 AM, Alexis Ballier wrote: On Thu, 22 Jan 2015 09:06:39 -0800 Zac Medico zmed...@gentoo.org wrote: [...] That's what I understand from Michał's comment (quoting him): 1. if you have dynamic-deps enabled, portage will want to install both ffmpeg (because of :=) and libav

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-23 Thread Alexis Ballier
On Thu, 22 Jan 2015 09:06:39 -0800 Zac Medico zmed...@gentoo.org wrote: [...] That's what I understand from Michał's comment (quoting him): 1. if you have dynamic-deps enabled, portage will want to install both ffmpeg (because of :=) and libav (because of ||). The effective deps will

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-22 Thread Alexis Ballier
On Thu, 22 Jan 2015 02:50:44 -0800 Zac Medico zmed...@gentoo.org wrote: On 01/21/2015 11:25 PM, Alexis Ballier wrote: 1. If portage uses crafted depstrings in its depgraph when rebuilding a package and nobody is able to give me a good reason _why_ this is needed, I really do not want to

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-22 Thread Zac Medico
On 01/21/2015 11:25 PM, Alexis Ballier wrote: 1. If portage uses crafted depstrings in its depgraph when rebuilding a package and nobody is able to give me a good reason _why_ this is needed, I really do not want to look at the code :) It's the emerge --dynamic-deps option, which is enabled by

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-22 Thread Zac Medico
On 01/22/2015 03:11 AM, Alexis Ballier wrote: On Thu, 22 Jan 2015 02:50:44 -0800 Zac Medico zmed...@gentoo.org wrote: On 01/21/2015 11:25 PM, Alexis Ballier wrote: 1. If portage uses crafted depstrings in its depgraph when rebuilding a package and nobody is able to give me a good reason

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-21 Thread Michał Górny
Dnia 2015-01-21, o godz. 12:12:21 Alexis Ballier aball...@gentoo.org napisał(a): On Wed, 21 Jan 2015 11:15:04 +0100 Michał Górny mgo...@gentoo.org wrote: Dnia 2015-01-21, o godz. 11:05:01 Alexis Ballier aball...@gentoo.org napisał(a): 2. Subslots work correctly. Rebuilds are

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-21 Thread Alexis Ballier
On Wed, 21 Jan 2015 19:21:28 +0100 Michał Górny mgo...@gentoo.org wrote: [...] 1. What does || ( a b:= c:= ) mean? i.e. only some having subslots. This makes sense only when in DEPEND+RDEPEND (because of the :=), so apply this (mostly copy/paste) for all such deps: for a in 'a' 'b'

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-21 Thread Alexis Ballier
On Tue, 20 Jan 2015 22:43:52 +0100 Michał Górny mgo...@gentoo.org wrote: Dnia 2015-01-20, o godz. 09:13:19 Alexis Ballier aball...@gentoo.org napisał(a): For this reason, I would like to employ the solution used by Exherbo. More specifically, use: libav? ( media-libs/libav:= )

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-21 Thread Alexis Ballier
On Wed, 21 Jan 2015 11:15:04 +0100 Michał Górny mgo...@gentoo.org wrote: Dnia 2015-01-21, o godz. 11:05:01 Alexis Ballier aball...@gentoo.org napisał(a): 2. Subslots work correctly. Rebuilds are forced when the chosen library is upgraded. Moreover, USE flag change causes a

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-21 Thread Michał Górny
Dnia 2015-01-21, o godz. 11:05:01 Alexis Ballier aball...@gentoo.org napisał(a): 2. Subslots work correctly. Rebuilds are forced when the chosen library is upgraded. Moreover, USE flag change causes a rebuild when user decides to change the ffmpeg provider. No offense, but this

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-21 Thread Alexis Ballier
On Tue, 20 Jan 2015 10:33:49 -0800 Zac Medico zmed...@gentoo.org wrote: On 01/20/2015 10:20 AM, Alexis Ballier wrote: On Tue, 20 Jan 2015 09:28:21 -0800 Zac Medico zmed...@gentoo.org wrote: On 01/20/2015 01:11 AM, Alexis Ballier wrote: I think we can only make the safest assumption.

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-20 Thread Alexis Ballier
On Mon, 19 Jan 2015 20:31:45 +0100 Michał Górny mgo...@gentoo.org wrote: Hello, As we've discussed multiple times, the following kind of dependencies is completely broken and can't work: || ( media-libs/libav:= media-libs/ffmpeg:= ) See end of the email. For this reason, I would like

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-20 Thread Alexis Ballier
On Tue, 20 Jan 2015 01:01:41 -0800 Zac Medico zmed...@gentoo.org wrote: On 01/20/2015 12:13 AM, Alexis Ballier wrote: On Mon, 19 Jan 2015 20:31:45 +0100 Michał Górny mgo...@gentoo.org wrote: 2. Subslots work correctly. Rebuilds are forced when the chosen library is upgraded. Moreover,

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-20 Thread Zac Medico
On 01/20/2015 12:13 AM, Alexis Ballier wrote: On Mon, 19 Jan 2015 20:31:45 +0100 Michał Górny mgo...@gentoo.org wrote: 2. Subslots work correctly. Rebuilds are forced when the chosen library is upgraded. Moreover, USE flag change causes a rebuild when user decides to change the ffmpeg

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-20 Thread Luca Barbato
On 20/01/15 03:07, Michael Orlitzky wrote: On 01/19/2015 05:44 PM, Pacho Ramos wrote: I agree with your suggestion but I would prefer the Remi's approach of letting people to know if they want ffmpeg or libav, otherwise it is not so obvious to know what disabling/enabling one of that USE flags

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-20 Thread Ciaran McCreesh
On Tue, 20 Jan 2015 09:13:19 +0100 Alexis Ballier aball...@gentoo.org wrote: More precisely: || ( a:= b c:= d ) is perfectly defined (in the what it means sense, not in PMS sense). It really isn't... || ( a b c ) only works currently if a, b and c can be switched at runtime. If you're using it

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-20 Thread Zac Medico
On 01/20/2015 01:11 AM, Alexis Ballier wrote: On Tue, 20 Jan 2015 01:01:41 -0800 Zac Medico zmed...@gentoo.org wrote: On 01/20/2015 12:13 AM, Alexis Ballier wrote: On Mon, 19 Jan 2015 20:31:45 +0100 Michał Górny mgo...@gentoo.org wrote: 2. Subslots work correctly. Rebuilds are forced when

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-20 Thread Alexis Ballier
On Tue, 20 Jan 2015 09:28:21 -0800 Zac Medico zmed...@gentoo.org wrote: On 01/20/2015 01:11 AM, Alexis Ballier wrote: On Tue, 20 Jan 2015 01:01:41 -0800 Zac Medico zmed...@gentoo.org wrote: On 01/20/2015 12:13 AM, Alexis Ballier wrote: On Mon, 19 Jan 2015 20:31:45 +0100 Michał Górny

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-20 Thread Zac Medico
On 01/20/2015 10:20 AM, Alexis Ballier wrote: On Tue, 20 Jan 2015 09:28:21 -0800 Zac Medico zmed...@gentoo.org wrote: On 01/20/2015 01:11 AM, Alexis Ballier wrote: I think we can only make the safest assumption. Even without subslot, if you consider this: || ( a b c d ), with a and c

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-20 Thread Michael Orlitzky
On 01/20/2015 05:31 AM, Luca Barbato wrote: This triggered a repressed memory of a bug once filed against me: https://blog.flameeyes.eu/2009/01/tinderboxing-problems-missing-default-use-flags I vaguely agree, but please address any hate mail to Diego. Why? It was a joke, but I

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-20 Thread Michał Górny
Dnia 2015-01-20, o godz. 09:13:19 Alexis Ballier aball...@gentoo.org napisał(a): For this reason, I would like to employ the solution used by Exherbo. More specifically, use: libav? ( media-libs/libav:= ) !libav? ( media-libs/ffmpeg:= ) This has two advantages: 1. gives

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-19 Thread Michał Górny
Dnia 2015-01-19, o godz. 23:09:55 Rémi Cardona r...@gentoo.org napisał(a): Why not : libav? ( media-libs/libav:= ) ffmpeg? ( media-libs/ffmpeg:= ) + REQUIRED_USE=^^ ( libav ffmpeg ) I for one would never expect USE=-libav to enable ffmpeg (nor USE=-ffmpeg to enable libav FWIW). Two

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-19 Thread Michael Orlitzky
On 01/19/2015 05:44 PM, Pacho Ramos wrote: I agree with your suggestion but I would prefer the Remi's approach of letting people to know if they want ffmpeg or libav, otherwise it is not so obvious to know what disabling/enabling one of that USE flags will end up causing without reading each

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-19 Thread Gordon Pettey
On Mon, Jan 19, 2015 at 4:40 PM, Michał Górny mgo...@gentoo.org wrote: Dnia 2015-01-19, o godz. 23:09:55 Rémi Cardona r...@gentoo.org napisał(a): Why not : libav? ( media-libs/libav:= ) ffmpeg? ( media-libs/ffmpeg:= ) + REQUIRED_USE=^^ ( libav ffmpeg ) I for one would never

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-19 Thread Pacho Ramos
El lun, 19-01-2015 a las 23:40 +0100, Michał Górny escribió: Dnia 2015-01-19, o godz. 23:09:55 Rémi Cardona r...@gentoo.org napisał(a): Why not : libav? ( media-libs/libav:= ) ffmpeg? ( media-libs/ffmpeg:= ) + REQUIRED_USE=^^ ( libav ffmpeg ) I for one would never expect

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-19 Thread Jason Zaman
On Mon, Jan 19, 2015 at 08:31:45PM +0100, Michał Górny wrote: Hello, As we've discussed multiple times, the following kind of dependencies is completely broken and can't work: || ( media-libs/libav:= media-libs/ffmpeg:= ) For this reason, I would like to employ the solution used by

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-19 Thread Rémi Cardona
Le 19/01/2015 23:40, Michał Górny a écrit : 1. Compatibility. USE=ffmpeg is already used for || ( libav ffmpeg ) in a lot of packages. If we changed the meaning, libav users will end up switching '-ffmpeg libav' per-package. Ugly. 2. Feature-oriented flags. USE=ffmpeg represents the generic

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-19 Thread Michał Górny
Dnia 2015-01-20, o godz. 08:36:56 Rémi Cardona r...@gentoo.org napisał(a): Le 19/01/2015 23:40, Michał Górny a écrit : 1. Compatibility. USE=ffmpeg is already used for || ( libav ffmpeg ) in a lot of packages. If we changed the meaning, libav users will end up switching '-ffmpeg libav'

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-19 Thread Rémi Cardona
Why not : libav? ( media-libs/libav:= ) ffmpeg? ( media-libs/ffmpeg:= ) + REQUIRED_USE=^^ ( libav ffmpeg ) I for one would never expect USE=-libav to enable ffmpeg (nor USE=-ffmpeg to enable libav FWIW). Rémi

[gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-19 Thread Michał Górny
Hello, As we've discussed multiple times, the following kind of dependencies is completely broken and can't work: || ( media-libs/libav:= media-libs/ffmpeg:= ) For this reason, I would like to employ the solution used by Exherbo. More specifically, use: libav? ( media-libs/libav:= )

Re: [gentoo-dev] RFC: USE=libav as replacement for broken || ( libav:= ffmpeg:= )

2015-01-19 Thread Matthias Maier
Any comments? Sounds good!