Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4d6bd92

Browse files
committed
Have pg_upgrade's Makefile honor NO_TEMP_INSTALL
Backpatch to 9.5, when pg_upgrade's location changed. Discussion: https://postgr.es/m/5506b8fa-7dad-8483-053c-7ca7ef04f01a@2ndQuadrant.com
1 parent d70c147 commit 4d6bd92

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/bin/pg_upgrade/Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ OBJS = check.o controldata.o dump.o exec.o file.o function.o info.o \
1414
override CPPFLAGS := -DDLSUFFIX=\"$(DLSUFFIX)\" -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS)
1515
LDFLAGS_INTERNAL += -L$(top_builddir)/src/fe_utils -lpgfeutils $(libpq_pgport)
1616

17+
ifdef NO_TEMP_INSTALL
18+
tbindir=$(abs_top_builddir)/tmp_install/$(bindir)
19+
tlibdir=$(abs_top_builddir)/tmp_install/$(libdir)
20+
DOINST =
21+
else
22+
tbindir=$(bindir)
23+
tlibdir=$(libdir)
24+
DOINST = --install
25+
endif
1726

1827
all: pg_upgrade
1928

@@ -37,7 +46,7 @@ clean distclean maintainer-clean:
3746
pg_upgrade_dump_*.custom pg_upgrade_*.log
3847

3948
check: test.sh all
40-
MAKE=$(MAKE) bindir=$(bindir) libdir=$(libdir) EXTRA_REGRESS_OPTS="$(EXTRA_REGRESS_OPTS)" $(SHELL) $< --install
49+
MAKE=$(MAKE) bindir="$(tbindir)" libdir="$(tlibdir)" EXTRA_REGRESS_OPTS="$(EXTRA_REGRESS_OPTS)" $(SHELL) $< $(DOINST)
4150

4251
# installcheck is not supported because there's no meaningful way to test
4352
# pg_upgrade against a single already-running server

0 commit comments

Comments
 (0)