Re: RFC: Feature macros (aka USE flags)

2020-04-30 Thread clime
On Thu, 30 Apr 2020 at 10:40, Petr Šabata wrote: > > On Tue, Apr 28, 2020 at 3:40 AM clime wrote: > > > > Few more notes: > > > > I think an idea that build system could be simply passing > > --with/--without options on mock's command-line should be > > considered...then basically no change in

Re: RFC: Feature macros (aka USE flags)

2020-04-30 Thread Nicolas Mailhot via devel
Le jeudi 30 avril 2020 à 10:49 +0200, Petr Šabata a écrit : > On Tue, Apr 28, 2020 at 9:55 AM Nicolas Mailhot via devel > wrote: > > Le mardi 28 avril 2020 à 08:43 +0200, Petr Pisar a écrit : > > > On Mon, Apr 27, 2020 at 04:33:52PM +0200, Petr Šabata wrote: > > > > %_use_ncurses %{lua: > > > >

Re: RFC: Feature macros (aka USE flags)

2020-04-30 Thread Petr Pisar
On Thu, Apr 30, 2020 at 10:43:51AM +0200, Petr Šabata wrote: > On Tue, Apr 28, 2020 at 8:55 AM Petr Pisar wrote: > > > > On Mon, Apr 27, 2020 at 04:33:52PM +0200, Petr Šabata wrote: > > > On Mon, Apr 27, 2020 at 4:04 PM Petr Pisar wrote: > > > > (2) Is it possible to override them on a

Re: RFC: Feature macros (aka USE flags)

2020-04-30 Thread Petr Šabata
On Wed, Apr 29, 2020 at 9:43 PM Colin Walters wrote: > > On Mon, Apr 27, 2020, at 7:19 AM, Petr Šabata wrote: > > > Details in the gist: > > https://gist.github.com/contyk/0f0585c57976ca18a293b3566408 > > How about s/use/globalbuildopt/ ? Please, no :) The reason I went with "use" is

Re: RFC: Feature macros (aka USE flags)

2020-04-30 Thread Petr Šabata
On Tue, Apr 28, 2020 at 9:55 AM Nicolas Mailhot via devel wrote: > > Le mardi 28 avril 2020 à 08:43 +0200, Petr Pisar a écrit : > > On Mon, Apr 27, 2020 at 04:33:52PM +0200, Petr Šabata wrote: > > > > > > %_use_ncurses %{lua: > > > if rpm.expand("%{name}") == "yourpackage1" > > > or

Re: RFC: Feature macros (aka USE flags)

2020-04-30 Thread Petr Šabata
On Tue, Apr 28, 2020 at 8:55 AM Petr Pisar wrote: > > On Mon, Apr 27, 2020 at 04:33:52PM +0200, Petr Šabata wrote: > > On Mon, Apr 27, 2020 at 4:04 PM Petr Pisar wrote: > > > (2) Is it possible to override them on a per-package basis? > > > > > > E.g. I have ncurses in global.yaml: > > > > > >

Re: RFC: Feature macros (aka USE flags)

2020-04-30 Thread Petr Šabata
On Tue, Apr 28, 2020 at 3:40 AM clime wrote: > > Few more notes: > > I think an idea that build system could be simply passing > --with/--without options on mock's command-line should be > considered...then basically no change in spec files is needed (i.e. no > syntax change). Yes but I'd say

Re: RFC: Feature macros (aka USE flags)

2020-04-30 Thread Petr Pisar
On Wed, Apr 29, 2020 at 03:39:20PM -0400, Colin Walters wrote: > On Mon, Apr 27, 2020, at 7:19 AM, Petr Šabata wrote: > > > Details in the gist: > > https://gist.github.com/contyk/0f0585c57976ca18a293b3566408 > > How about s/use/globalbuildopt/ ? > It's awfully long concatenation of two

Re: RFC: Feature macros (aka USE flags)

2020-04-29 Thread Colin Walters
On Mon, Apr 27, 2020, at 7:19 AM, Petr Šabata wrote: > Details in the gist: > https://gist.github.com/contyk/0f0585c57976ca18a293b3566408 How about s/use/globalbuildopt/ ? ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send

Re: RFC: Feature macros (aka USE flags)

2020-04-29 Thread Miroslav Suchý
Dne 29. 04. 20 v 18:07 Miroslav Suchý napsal(a): > Dne 27. 04. 20 v 13:19 Petr Šabata napsal(a): >> Based on the recent discussions around %fedora/%rhel macros and ELN, >> and %bcond generally being confusing to work with, I came up with a >> distribution-wide feature that defines generic feature

Re: RFC: Feature macros (aka USE flags)

2020-04-29 Thread Miroslav Suchý
Dne 27. 04. 20 v 13:19 Petr Šabata napsal(a): > Based on the recent discussions around %fedora/%rhel macros and ELN, > and %bcond generally being confusing to work with, I came up with a > distribution-wide feature that defines generic feature keywords and > associated helper macros that packages

Re: RFC: Feature macros (aka USE flags)

2020-04-28 Thread Panu Matilainen
On 4/28/20 10:53 AM, Nicolas Mailhot via devel wrote: Le mardi 28 avril 2020 à 08:43 +0200, Petr Pisar a écrit : On Mon, Apr 27, 2020 at 04:33:52PM +0200, Petr Šabata wrote: %_use_ncurses %{lua: if rpm.expand("%{name}") == "yourpackage1" or rpm.expand("%{name}") == "yourpackage2" then

Re: RFC: Feature macros (aka USE flags)

2020-04-28 Thread Panu Matilainen
On 4/27/20 5:33 PM, Petr Šabata wrote: On Mon, Apr 27, 2020 at 4:04 PM Petr Pisar wrote: On Mon, Apr 27, 2020 at 01:19:29PM +0200, Petr Šabata wrote: Details in the gist: https://gist.github.com/contyk/0f0585c57976ca18a293b3566408 I'm very interested in overriding the global settings:

Re: RFC: Feature macros (aka USE flags)

2020-04-28 Thread Nicolas Mailhot via devel
Le mardi 28 avril 2020 à 08:43 +0200, Petr Pisar a écrit : > On Mon, Apr 27, 2020 at 04:33:52PM +0200, Petr Šabata wrote: > > > > %_use_ncurses %{lua: > > if rpm.expand("%{name}") == "yourpackage1" > > or rpm.expand("%{name}") == "yourpackage2" then > > print(rpm.expand("%{bcond_with

Re: RFC: Feature macros (aka USE flags)

2020-04-28 Thread Vít Ondruch
Dne 27. 04. 20 v 19:40 Daniel Mach napsal(a): > > > Dne 27. 04. 20 v 19:00 Stephen Gallagher napsal(a): >> On Mon, Apr 27, 2020 at 10:47 AM Daniel Mach wrote: > >> >>> Since I'm part of RPM team too, I hope they won't mind if I'll speak >>> for >>> them :) Don't you rather want to work with us

Re: RFC: Feature macros (aka USE flags)

2020-04-28 Thread Petr Pisar
On Mon, Apr 27, 2020 at 04:33:52PM +0200, Petr Šabata wrote: > On Mon, Apr 27, 2020 at 4:04 PM Petr Pisar wrote: > > (2) Is it possible to override them on a per-package basis? > > > > E.g. I have ncurses in global.yaml: > > > > - name: ncurses > > description: Add support for ncurses.

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread clime
Few more notes: I think an idea that build system could be simply passing --with/--without options on mock's command-line should be considered...then basically no change in spec files is needed (i.e. no syntax change). It would be great if rpm remembered either the rpmbuild's command-line in

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread clime
On Mon, 27 Apr 2020 at 13:21, Petr Šabata wrote: > > Based on the recent discussions around %fedora/%rhel macros and ELN, > and %bcond generally being confusing to work with, I came up with a > distribution-wide feature that defines generic feature keywords and > associated helper macros that

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Nicolas Mailhot via devel
Le lundi 27 avril 2020 à 19:12 +0200, Petr Šabata a écrit : > > Yes, this is exactly what I'm trying to achieve -- to have > distribution-wide generic keywords that control default build options > in packages It can be done at the rpm layer and in fact there are already quite a lot of such

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Daniel Mach
Dne 27. 04. 20 v 19:00 Stephen Gallagher napsal(a): On Mon, Apr 27, 2020 at 10:47 AM Daniel Mach wrote: I'm wondering if this is your personal initiative or if you're sync with ELN people. I emailed them in January about the very same idea (and I used the very same name; we both seem to

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Petr Šabata
On Mon, Apr 27, 2020 at 6:38 PM Vít Ondruch wrote: > > > Dne 27. 04. 20 v 16:25 Petr Šabata napsal(a): > > On Mon, Apr 27, 2020 at 3:01 PM Vít Ondruch wrote: > >> > >> Dne 27. 04. 20 v 13:19 Petr Šabata napsal(a): > >>> Based on the recent discussions around %fedora/%rhel macros and ELN, > >>>

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Stephen Gallagher
On Mon, Apr 27, 2020 at 10:47 AM Daniel Mach wrote: > > I'm wondering if this is your personal initiative or if you're sync with > ELN people. I emailed them in January about the very same idea (and I > used the very same name; we both seem to like Gentoo), we exchanged > couple emails, but never

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Vít Ondruch
Dne 27. 04. 20 v 16:25 Petr Šabata napsal(a): > On Mon, Apr 27, 2020 at 3:01 PM Vít Ondruch wrote: >> >> Dne 27. 04. 20 v 13:19 Petr Šabata napsal(a): >>> Based on the recent discussions around %fedora/%rhel macros and ELN, >>> and %bcond generally being confusing to work with, I came up with a

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Daniel Mach
I'm wondering if this is your personal initiative or if you're sync with ELN people. I emailed them in January about the very same idea (and I used the very same name; we both seem to like Gentoo), we exchanged couple emails, but never got an answer if this is the way to go. Since I have a lot

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Daniel Mach
I'm wondering if this is your personal initiative or if you're sync with ELN people. I emailed them in January about the very same idea (and I used the very same name; we both seem to like Gentoo), we exchanged couple emails, but never got an answer if this is the way to go. Since I have a lot

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Petr Šabata
On Mon, Apr 27, 2020 at 4:04 PM Petr Pisar wrote: > > On Mon, Apr 27, 2020 at 01:19:29PM +0200, Petr Šabata wrote: > > Details in the gist: > > https://gist.github.com/contyk/0f0585c57976ca18a293b3566408 > > > I'm very interested in overriding the global settings: > > (1) Is it possible to

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Petr Šabata
On Mon, Apr 27, 2020 at 3:01 PM Vít Ondruch wrote: > > > Dne 27. 04. 20 v 13:19 Petr Šabata napsal(a): > > Based on the recent discussions around %fedora/%rhel macros and ELN, > > and %bcond generally being confusing to work with, I came up with a > > distribution-wide feature that defines

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Petr Šabata
On Mon, Apr 27, 2020 at 3:42 PM Robin Lee wrote: > > On Mon, Apr 27, 2020 at 7:21 PM Petr Šabata wrote: > > > > Based on the recent discussions around %fedora/%rhel macros and ELN, > > and %bcond generally being confusing to work with, I came up with a > > distribution-wide feature that defines

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Petr Šabata
On Mon, Apr 27, 2020 at 2:15 PM Daniel P. Berrangé wrote: > > On Mon, Apr 27, 2020 at 01:19:29PM +0200, Petr Šabata wrote: > > Based on the recent discussions around %fedora/%rhel macros and ELN, > > and %bcond generally being confusing to work with, I came up with a > > distribution-wide feature

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Petr Pisar
On Mon, Apr 27, 2020 at 01:19:29PM +0200, Petr Šabata wrote: > Details in the gist: > https://gist.github.com/contyk/0f0585c57976ca18a293b3566408 > I'm very interested in overriding the global settings: (1) Is it possible to override them from a modulemd when building a module? I guess the

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Robin Lee
On Mon, Apr 27, 2020 at 7:21 PM Petr Šabata wrote: > > Based on the recent discussions around %fedora/%rhel macros and ELN, > and %bcond generally being confusing to work with, I came up with a > distribution-wide feature that defines generic feature keywords and > associated helper macros that

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Vít Ondruch
Dne 27. 04. 20 v 13:19 Petr Šabata napsal(a): > Based on the recent discussions around %fedora/%rhel macros and ELN, > and %bcond generally being confusing to work with, I came up with a > distribution-wide feature that defines generic feature keywords and > associated helper macros that packages

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Daniel P . Berrangé
On Mon, Apr 27, 2020 at 01:19:29PM +0200, Petr Šabata wrote: > Based on the recent discussions around %fedora/%rhel macros and ELN, > and %bcond generally being confusing to work with, I came up with a > distribution-wide feature that defines generic feature keywords and > associated helper macros

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Petr Šabata
On Mon, Apr 27, 2020 at 1:24 PM Neal Gompa wrote: > > On Mon, Apr 27, 2020 at 7:21 AM Petr Šabata wrote: > > > > Based on the recent discussions around %fedora/%rhel macros and ELN, > > and %bcond generally being confusing to work with, I came up with a > > distribution-wide feature that defines

Re: RFC: Feature macros (aka USE flags)

2020-04-27 Thread Neal Gompa
On Mon, Apr 27, 2020 at 7:21 AM Petr Šabata wrote: > > Based on the recent discussions around %fedora/%rhel macros and ELN, > and %bcond generally being confusing to work with, I came up with a > distribution-wide feature that defines generic feature keywords and > associated helper macros that

RFC: Feature macros (aka USE flags)

2020-04-27 Thread Petr Šabata
Based on the recent discussions around %fedora/%rhel macros and ELN, and %bcond generally being confusing to work with, I came up with a distribution-wide feature that defines generic feature keywords and associated helper macros that packages can check in build-time conditionals. The key