Fix up confusion over how to use EXTRA_INSTALL.
authorTom Lane
Fri, 11 Jan 2019 22:39:30 +0000 (17:39 -0500)
committerTom Lane
Fri, 11 Jan 2019 22:39:30 +0000 (17:39 -0500)
Some makefiles were trying to do this:

temp-install: EXTRA_INSTALL=contrib/test_decoding

but that no longer works as of commit aa019da52: the macro is now
consulted by the checkprep target, one level down, and apparently
gmake doesn't propagate such macro settings recursively.

The problem is masked since 42e61c774 because pgxs.mk also sets up
EXTRA_INSTALL, and correctly applies it to the checkprep target.

Unfortunately I'd not risked back-patching that to before v11.
Since aa019da52 was pushed back to v10, it broke test_decoding
there (the only module for which this actually makes a difference
at present).

Hence, back-patch 42e61c774 to v10.  Also, remove some demonstrably
useless settings of EXTRA_INSTALL in v10 and v11 (they'd already
been cleaned up in HEAD).

Per buildfarm.

Discussion: https://postgr.es/m/CAEepm=1pEJdwv6DSGmOfpX0EaX7L7sT28c1nXpqvQvmLfEWb1g@mail.gmail.com

contrib/test_decoding/Makefile
src/makefiles/pgxs.mk
src/test/modules/snapshot_too_old/Makefile
src/test/recovery/Makefile

index 4c4452fc11e597d092a43fb5e80a04017aac5f45..98e2c33a8aecb9fe490bece1e42c5b90f016ec40 100644 (file)
@@ -65,5 +65,3 @@ isolationcheck-install-force: all | submake-isolation submake-test_decoding temp
 .PHONY: submake-test_decoding submake-regress check \
    regresscheck regresscheck-install-force \
    isolationcheck isolationcheck-install-force
-
-temp-install: EXTRA_INSTALL=contrib/test_decoding
index a7b34c69374702cadaa6577d3e637f5d240df890..a28149455c38f5215715697a7f1eaa446bc561ba 100644 (file)
@@ -284,10 +284,12 @@ check:
 else
 check: submake $(REGRESS_PREP)
    $(pg_regress_check) $(REGRESS_OPTS) $(REGRESS)
+endif
+endif # REGRESS
 
+ifndef NO_TEMP_INSTALL
 checkprep: EXTRA_INSTALL+=$(subdir)
 endif
-endif # REGRESS
 
 
 # STANDARD RULES
index b6d998f3207582eac6c242db7442d7be607ceffd..05222e2b91aa28408c06c5a8b4eda56c63f2b2f4 100644 (file)
@@ -43,5 +43,3 @@ isolationcheck-install-force: all | submake-isolation submake-test_snapshot_too_
        $(ISOLATIONCHECKS)
 
 .PHONY: check submake-test_snapshot_too_old isolationcheck isolationcheck-install-force
-
-temp-install: EXTRA_INSTALL=src/test/modules/snapshot_too_old
index 142a1b8de2ee4db901be58d5c838f0a1c143f2e1..e31accf0f582900d45e55ead590d94cfb09d96d4 100644 (file)
@@ -20,5 +20,3 @@ check:
 
 clean distclean maintainer-clean:
    rm -rf tmp_check
-
-EXTRA_INSTALL = contrib/test_decoding