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.
diff --git i/src/makefiles/pgxs.mk w/src/makefiles/pgxs.mk
index 7dc8742..318d5ef 100644
--- i/src/makefiles/pgxs.mk
+++ w/src/makefiles/pgxs.mk
@@ -64,6 +64,16 @@ include $(top_builddir)/src/Makefile.global
 top_srcdir = $(top_builddir)
 srcdir = .
 VPATH =
+
+# These might be set in Makefile.global, but if they were not found
+# during the build of PostgreSQL, supply default values so that users
+# of pgxs can use the variables.
+ifeq ($(BISON),)
+BISON = bison
+endif
+ifeq ($(FLEX),)
+FLEX = flex
+endif
 endif
 
 
-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to