Created attachment 180909 [details] Patch So, I'm developing a postgresql extension. It builds and installs fine: % gmake install /bin/mkdir -p '/usr/local/lib/postgresql' /bin/mkdir -p '/usr/local/share/postgresql/extension' /bin/mkdir -p '/usr/local/share/postgresql/extension' /usr/bin/install -c -m 755 libversion.so '/usr/local/lib/postgresql/libversion.so' /usr/bin/install -c -m 644 .//libversion.control '/usr/local/share/postgresql/extension/' /usr/bin/install -c -m 644 .//libversion--1.0.0.sql '/usr/local/share/postgresql/extension/' however running a test fails: % sudo gmake installcheck /usr/local/lib/postgresql/pgxs/src/makefiles/../../src/test/regress/pg_regress --inputdir=./ --bindir='/usr/local/bin' --dbname=contrib_regression libversion_test gmake: /usr/local/lib/postgresql/pgxs/src/makefiles/../../src/test/regress/pg_regress: Command not found gmake: *** [/usr/local/lib/postgresql/pgxs/src/makefiles/pgxs.mk:272: installcheck] Error 127 because pg_regress binary is not installed. I think we need to install it. The attached patch fixes it.
Note that the same fix is probably needed for other pgsql versions in the ports.
ping
Shouln't it be a part of the postgresqlNN-server installation? It cannot really be used without the server, can it?
I don't think anything may ever depend on server as it may always be running on a different machine. Also IMO it belongs to the port which installs .mk files, which is client.
A commit references this bug: Author: amdmi3 Date: Thu Jun 29 12:04:18 UTC 2017 New revision: 444644 URL: https://svnweb.freebsd.org/changeset/ports/444644 Log: - Include pg_regress to postgresql96-client, to allow running regression tests for postgresql extensions PR: 217874 Approved by: maintainer timeout (3 months) Changes: head/databases/postgresql96-client/Makefile head/databases/postgresql96-server/pkg-plist-client
(In reply to Dmitry Marakasov from comment #4) Isn't the server port required to build extensions?
(In reply to Palle Girgensohn from comment #7) > (In reply to Dmitry Marakasov from comment #4) > Isn't the server port required to build extensions? No, the client port contains everything required. I'm not closing this because I'm working on a similar patch for all remaining postgresql versions.
Created attachment 183914 [details] Patch for all postgresql versions Patch enableing pg_regress for all pgsql versions. Also adds missing pkg-plist entry for postgresql96-server.
A commit references this bug: Author: amdmi3 Date: Mon Jul 17 11:14:10 UTC 2017 New revision: 446064 URL: https://svnweb.freebsd.org/changeset/ports/446064 Log: - Add missing file to plist PR: 217874 Approved by: maintainer timeout (postgres, 2 weeks) Changes: head/databases/postgresql96-server/Makefile head/databases/postgresql96-server/pkg-plist-server
A commit references this bug: Author: amdmi3 Date: Mon Jul 17 11:15:51 UTC 2017 New revision: 446065 URL: https://svnweb.freebsd.org/changeset/ports/446065 Log: - Include pg_regress to all postgresql*-client ports, to allow running regression tests for postgresql extensions PR: 217874 Approved by: maintainer timeout (pgsql, 4 months) Changes: head/databases/postgresql92-client/Makefile head/databases/postgresql92-server/pkg-plist-client head/databases/postgresql93-client/Makefile head/databases/postgresql93-server/pkg-plist-client head/databases/postgresql94-client/Makefile head/databases/postgresql94-server/pkg-plist-client head/databases/postgresql95-client/Makefile head/databases/postgresql95-server/pkg-plist-client