git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 475aedd) | patch
Install kludges to fix check-world for src/test/modules
Wed, 3 Dec 2014 02:43:53 +0000 (23:43 -0300)
Wed, 3 Dec 2014 02:43:53 +0000 (23:43 -0300)
commit da34731bd3c805ab77d6e5914d02b1f011e9479d
Install kludges to fix check-world for src/test/modules

check-world failed in a completely clean tree, because src/test/modules
fail to build unless errcodes.h is generated first. To fix this,
install a dependency in src/test/modules' Makefile so that the necessary
file is generated. Even with this, running "make check" within
individual module subdirs will still fail because the dependency is not
considered there, but this case is less interesting and would be messier
to fix.

check-world still failed with the above fix in place, this time because
dummy_seclabel used LOAD to load the dynamic library, which doesn't work
because the @libdir@ (expanded by the makefile) is expanded to the final
install path, not the temporary installation directory used by make
check. To fix, tweak things so that CREATE EXTENSION can be used
instead, which solves the problem because the library path is expanded
by the backend, which is aware of the true libdir.
src/test/modules/Makefile diff | blob | blame | history
src/test/modules/dummy_seclabel/Makefile diff | blob | blame | history
src/test/modules/dummy_seclabel/dummy_seclabel--1.0.sql [new file with mode: 0644] blob
src/test/modules/dummy_seclabel/dummy_seclabel.c diff | blob | blame | history
src/test/modules/dummy_seclabel/dummy_seclabel.control [new file with mode: 0644] blob
src/test/modules/dummy_seclabel/expected/.gitignore [deleted file] blob | blame | history
src/test/modules/dummy_seclabel/expected/dummy_seclabel.out [moved from src/test/modules/dummy_seclabel/output/dummy_seclabel.source with 99% similarity] diff | blob | blame | history
src/test/modules/dummy_seclabel/sql/.gitignore [deleted file] blob | blame | history
src/test/modules/dummy_seclabel/sql/dummy_seclabel.sql [moved from src/test/modules/dummy_seclabel/input/dummy_seclabel.source with 98% similarity] diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /