1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
diff --git a/GNUmakefile.in b/GNUmakefile.in
index 16f9057..0f6cee7 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -11,19 +11,16 @@ include $(top_builddir)/src/Makefile.global
all:
$(MAKE) -C doc all
$(MAKE) -C src all
- $(MAKE) -C config all
@echo "All of PostgreSQL successfully made. Ready to install."
install:
$(MAKE) -C doc $@
$(MAKE) -C src $@
- $(MAKE) -C config $@
@echo "PostgreSQL installation complete."
installdirs uninstall:
$(MAKE) -C doc $@
$(MAKE) -C src $@
- $(MAKE) -C config $@
distprep:
$(MAKE) -C doc $@
diff --git a/contrib/Makefile b/contrib/Makefile
index 1787a1b..6b4104d 100644
--- a/contrib/Makefile
+++ b/contrib/Makefile
@@ -18,19 +18,16 @@ WANTED_DIRS = \
isn \
lo \
ltree \
- oid2name \
pg_buffercache \
pg_freespacemap \
pg_trgm \
- pgbench \
pgcrypto \
pgrowlocks \
pgstattuple \
seg \
spi \
tablefunc \
- tsearch2 \
- vacuumlo
+ tsearch2
ifeq ($(with_openssl),yes)
WANTED_DIRS += sslinfo
diff --git a/contrib/adminpack/Makefile b/contrib/adminpack/Makefile
index ba864c1..1e2e96e 100644
--- a/contrib/adminpack/Makefile
+++ b/contrib/adminpack/Makefile
@@ -1,5 +1,5 @@
MODULE_big = adminpack
-PG_CPPFLAGS = -I$(libpq_srcdir)
+PG_CPPFLAGS = -I$(libpq_srcdir) -I../../src/include/
DATA_built = adminpack.sql
DATA = uninstall_adminpack.sql
DOCS = README.adminpack
diff --git a/src/Makefile b/src/Makefile
index 6d9043a..ccf7ae7 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -18,14 +18,11 @@ all install installdirs uninstall dep depend distprep:
$(MAKE) -C timezone $@
$(MAKE) -C backend $@
$(MAKE) -C backend/utils/mb/conversion_procs $@
- $(MAKE) -C include $@
- $(MAKE) -C interfaces $@
$(MAKE) -C bin $@
$(MAKE) -C pl $@
- $(MAKE) -C makefiles $@
$(MAKE) -C test/regress $@
-install: install-local
+install:
install-local: installdirs-local
$(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 820dfd5..2619acd 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -365,10 +365,10 @@ endif
submake-libpq:
- $(MAKE) -C $(libpq_builddir) all
+ @true $(MAKE) -C $(libpq_builddir) all
submake-libpgport:
- $(MAKE) -C $(top_builddir)/src/port all
+ @true $(MAKE) -C $(top_builddir)/src/port all
.PHONY: submake-libpq submake-libpgport
diff --git a/src/bin/Makefile b/src/bin/Makefile
index 0d86213..2779a41 100644
--- a/src/bin/Makefile
+++ b/src/bin/Makefile
@@ -13,8 +13,8 @@ subdir = src/bin
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
-DIRS := initdb ipcclean pg_ctl pg_dump \
- psql scripts pg_config pg_controldata pg_resetxlog
+DIRS := initdb ipcclean pg_ctl \
+ pg_controldata pg_resetxlog
ifeq ($(PORTNAME), win32)
DIRS+=pgevent
endif
diff --git a/src/port/Makefile b/src/port/Makefile
index 1742eb8..21fd79f 100644
--- a/src/port/Makefile
+++ b/src/port/Makefile
@@ -29,11 +29,10 @@ LIBS += $(PTHREAD_LIBS)
# Replace all object files so they use FRONTEND define
LIBOBJS_SRV := $(LIBOBJS:%.o=%_srv.o)
-all: libpgport.a libpgport_srv.a
+all: libpgport_srv.a
# libpgport is needed by some contrib
-install: all installdirs
- $(INSTALL_STLIB) libpgport.a '$(DESTDIR)$(libdir)/libpgport.a'
+install:
installdirs:
$(mkinstalldirs) '$(DESTDIR)$(libdir)'
diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile
index f2319d2..85aac4f 100644
--- a/src/test/regress/GNUmakefile
+++ b/src/test/regress/GNUmakefile
@@ -148,7 +148,8 @@ all-spi:
check: all
-rm -rf ./testtablespace
mkdir ./testtablespace
- ./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE)
+ chown portage testtablespace .
+ su -s /bin/sh portage -c "PATH=\"${PATH}\" ./pg_regress --temp-install=./tmp_check --top-builddir=$(top_builddir) --temp-port=$(TEMP_PORT) --schedule=$(srcdir)/parallel_schedule --multibyte=$(MULTIBYTE) --load-language=plpgsql $(MAXCONNOPT) $(NOLOCALE) --psqldir=/usr/lib/postgresql-${SLOT}/bin/"
installcheck: all
-rm -rf ./testtablespace
diff --git a/src/test/regress/pg_regress.c b/src/test/regress/pg_regress.c
index 5daf28a..0d2a0a3 100644
--- a/src/test/regress/pg_regress.c
+++ b/src/test/regress/pg_regress.c
@@ -502,7 +502,7 @@ initialize_environment(void)
datadir = tmp;
/* psql will be installed into temp-install bindir */
- psqldir = bindir;
+ /* psqldir = bindir; */
/*
* Set up shared library paths to include the temp install.
@@ -1535,7 +1535,7 @@ main(int argc, char *argv[])
*/
snprintf(buf, sizeof(buf),
SYSTEMQUOTE "\"%s/psql\" -X postgres <%s 2>%s" SYSTEMQUOTE,
- bindir, DEVNULL, DEVNULL);
+ psqldir, DEVNULL, DEVNULL);
for (i = 0; i < 60; i++)
{
/* Done if psql succeeds */
|