Re: pgxs and bison, flex
От | Tom Lane |
---|---|
Тема | Re: pgxs and bison, flex |
Дата | |
Msg-id | 9386.1332987125@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | pgxs and bison, flex (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: pgxs and bison, flex
|
Список | 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 по дате отправления: