Jeremy C. Reed | 1 Oct 2003 02:52

Re: BUILD_USES_LEX and BUILD_USES_YACC

On Wed, 1 Oct 2003, grant beattie wrote:

> tools.mk is probably the best place for this, but I do agree that
> USE_GNU_TOOLS would be misleading in this context.
>
> we could create a USE_TOOLS variable, analogous to USE_GNU_TOOLS, and
> perhaps even migrate the GNU stuff to USE_TOOLS.GNU, or similar..
> comments?

Probably USE_TOOLS would be better.

Now it says _TOOLS_OPSYS_HAS_GNU.grep+= includes OpenBSD. The next month's
release of OpenBSD will not include GNU grep.

> > I don't see (but I may be overlooking this), some way for tools.mk to
> > check to see if system's version really exists. And if it doesn't exist
> > then use the BUILD_DEPENDS version.
>
> that can certainly be added.

That would be good. Using the examples that exist now, it just assumes it
is installed if _TOOLS_OPSYS_HAS_GNU has it defined. Also, it assumes that
the variable, like YACC, is correct.

Please have a look at my patch (which doesn't do me any good yet):

Index: mk/tools.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/tools.mk,v
retrieving revision 1.15
(Continue reading)

grant beattie | 25 Jan 2004 03:51
Picon

Re: BUILD_USES_LEX and BUILD_USES_YACC

On Tue, Sep 30, 2003 at 05:52:07PM -0700, Jeremy C. Reed wrote:

> That would be good. Using the examples that exist now, it just assumes it
> is installed if _TOOLS_OPSYS_HAS_GNU has it defined. Also, it assumes that
> the variable, like YACC, is correct.

returning to this thread... there are multiple instances of USE_BISON
in pkg Makefiles, but there's no mention of this anywhere in
pkgsrc/mk.

I guess we should implement it, then :)

grant.


Gmane