Re: pgxs and bison, flex - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pgxs and bison, flex
Date
Msg-id 9386.1332987125@sss.pgh.pa.us
Whole thread Raw
In response to pgxs and bison, flex  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: pgxs and bison, flex  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> There are some extensions that build with pgxs that use bison and flex.
> Their makefiles are set up to use the variables BISON and FLEX that pgxs
> provides.  Except that that depends on how PostgreSQL was built.  A
> binary package that was built in a clean chroot would probably not have
> those variables set, because the programs were not present in the build
> process.  There have been a number of bugs related to those extensions
> because of that.

> I propose that we apply the attached patch to make sure those variables
> are set to a usable default value in any case.

Won't this break usages such as in contrib/cube?

cubeparse.c: cubeparse.y
ifdef BISON$(BISON) $(BISONFLAGS) -o $@ $<
else@$(missing) bison $< $@
endif

IMO, people building distribution packages in clean chroots are best
advised to include bison and flex even if they're not strictly
necessary.  Otherwise the build could fall over unexpectedly and
unnecessarily, depending on file timestamps and other phase-of-the-moon
issues.  If the package maker has adopted that elementary bit of
self-defense, the whole thing is a non problem.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: max_files_per_process ignored on Windows
Next
From: Fujii Masao
Date:
Subject: Re: Re: [COMMITTERS] pgsql: pg_test_timing utility, to measure clock monotonicity and timing