Date: Mon, 6 Sep 2021 15:40:47 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Mel Pilgrim <list_freebsd@bluerosetech.com> Cc: freebsd-ports@freebsd.org Subject: Re: Why no flavor_USES helper? Message-ID: <20210906134047.vs2jfg5dsz7c3jm2@aniel.nours.eu> In-Reply-To: <1f0f9a6c-09a6-86f9-625f-e9e482dc0e83@bluerosetech.com> References: <8982e300-8b04-f31a-9c49-43d0dd428b38@bluerosetech.com> <20210906081612.rxo2os7dvx5mkvz6@aniel.nours.eu> <1f0f9a6c-09a6-86f9-625f-e9e482dc0e83@bluerosetech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Sep 06, 2021 at 06:33:29AM -0700, Mel Pilgrim wrote: > On 2021-09-06 1:16, Baptiste Daroussin wrote: > > On Sun, Sep 05, 2021 at 10:39:29AM -0700, Mel Pilgrim wrote: > > > The flavors helpers like flavor_RUN_DEPENDS are super useful, but I need to > > > modify USES based on flavor, and find that there is no helper for it. > > > > Besause USES are loader 100 lines earlier, meaning only USES are already > > processed when we expand the helper. > > > > Without getting to far in the technical details, USES and FLAVORS are basically > > expanded at the moment, in pre and post section, meaning one had to decide > > either we should allow USES to define flavors, or we should allow USES helpers. > > Is this why there odd race conditions between USES and FLAVORS where, for > example, if I have a FLAVOR that does USES+=pgsql and WANT_PGSQL, the > corresponding postgresqlN-* ports aren't added to *_DEPENDS? I don't know, neither heard of that specific case, but it could be, if so, that sound like a bug in pgsql.mk, I am interesting in an example that show this behaviour. Best regards, Bapt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20210906134047.vs2jfg5dsz7c3jm2>