Created attachment 160342 [details] enable XML option Although the error is in postgresql92-server's Makefile, this affects PostgreSQL server versions 9.2, 9.3 and 9.4 via the include in 9.3's and 9.4's Makefile. Accordingly, a PKGVERSION bump for all three PostgreSQL servers is recommended. The xml2 PostgreSQL extension is not loadable as the xml_ereport() funtion is missing from postgresql, see https://lists.freebsd.org/pipermail/freebsd-ports/2015-August/100203.html Additionally, xml support in postgresql is severely limited. Debugging shows that all PostgreSQL server versions are built without XML support, as option XML is missing from OPTIONS_DEFINE and cannot be activated. Attached patch fixes that.
Created attachment 160343 [details] poudriere testport postgresql92-server poudriere testport -j 10_2_amd64 -p testing -o databases/postgresql92-server
Created attachment 160344 [details] poudriere testport postgresql93-server poudriere testport -j 10_2_amd64 -p testing -o databases/postgresql93-server
Created attachment 160345 [details] poudriere testport postgresql94-server poudriere testport -j 10_2_amd64 -p testing -o databases/postgresql94-server
Attached poudriere logs (all 10.2 amd64) show that all postgresql servers now depend on libxml2 when built with default options. cmt@elch:latest-per-pkg$ grep xml2 postgresql9*-server*log | grep NEEDED postgresql92-server-9.2.13_1.log: 0x0000000000000001 (NEEDED) Shared library: [libxml2.so.2] postgresql93-server-9.3.9_1.log: 0x0000000000000001 (NEEDED) Shared library: [libxml2.so.2] postgresql94-server-9.4.4_1.log: 0x0000000000000001 (NEEDED) Shared library: [libxml2.so.2]
This bit me just now when doing a server upgrade; apparently it matters more for 9.4 than it did in 9.2. -GAWollman
Agree with #5, the XML support is important for me (it can be behind an option of course). This broke unexpectedly (postgresql 9.4.4) after an update, the patch fixes it.
A commit references this bug: Author: girgen Date: Tue Oct 6 08:47:45 UTC 2015 New revision: 398690 URL: https://svnweb.freebsd.org/changeset/ports/398690 Log: Fix broken XML support. PR: ports/202649 Changes: head/databases/postgresql92-contrib/Makefile head/databases/postgresql92-server/Makefile head/databases/postgresql93-contrib/Makefile head/databases/postgresql93-server/Makefile head/databases/postgresql94-contrib/Makefile head/databases/postgresql94-server/Makefile
Thanks for the report!
*** Bug 202287 has been marked as a duplicate of this bug. ***