Skip to content

Commit 9b3a0f4

Browse files
committed
Merge branch 'PGPRO_DEV' into PGPRO
2 parents b1ef5cb + fb126cf commit 9b3a0f4

12 files changed

+867
-138
lines changed

build/helpers/dependencies.cmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ CD /D %DEPENDENCIES_SRC_DIR%
7272
7z x %DOWNLOADS_DIR%\wineditline-%EDITLINE_VER%.zip
7373
CD /D wineditline-%EDITLINE_VER%\src
7474
patch -p2 < %ROOT%/patches/wineditline/clipboard_paste.patch || goto :ERROR
75-
CL -I. -c history.c editline.c fn_complete.c || goto :ERROR
75+
CL -I. /MD -c history.c editline.c fn_complete.c || goto :ERROR
7676
LIB /out:edit.lib *.obj || goto :ERROR
7777
MKDIR %DEPENDENCIES_BIN_DIR%\wineditline
7878
MKDIR %DEPENDENCIES_BIN_DIR%\wineditline\include
@@ -140,6 +140,7 @@ rm -rf %DEPENDENCIES_BIN_DIR%\uuid %DEPENDENCIES_SRC_DIR%\ossp_uuid
140140
MKDIR %DEPENDENCIES_BIN_DIR%\uuid
141141
7z x %DOWNLOADS_DIR%\ossp_uuid_1.6.2_win32_source_120608.7z -o%DEPENDENCIES_SRC_DIR%\ -y || GOTO :ERROR
142142
CD /D %DEPENDENCIES_SRC_DIR%\ossp_uuid
143+
patch -p1 < %ROOT%/patches/uuid/oosp_uuid.patch || goto :ERROR
143144
IF %ARCH% == X64 sed -i 's/Win32/x64/g' ossp_uuid.sln || GOTO :ERROR
144145
IF %ARCH% == X64 sed -i 's/Win32/x64/g' ossp_uuid\ossp_uuid.vcxproj || GOTO :ERROR
145146
IF %ARCH% == X64 sed -i 's/Win32/x64/g' example\example.vcxproj || GOTO :ERROR

build/helpers/postgres.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ if "%PRODUCT_NAME%" == "PostgresProEnterprise" >>src\tools\msvc\config.pl ECHO z
7676
>>src\tools\msvc\config.pl ECHO 1^;
7777

7878
rem Setting pager
79-
>>src\include\pg_config.h.win32 ECHO #define DEFAULT_PAGER "less -X"
79+
>>src\include\pg_config.h.win32 ECHO #define DEFAULT_PAGER "less -XE"
8080

8181
IF %ONE_C% == YES (
8282
mv -v contrib\fulleq\fulleq.sql.in.in contrib\fulleq\fulleq.sql.in || GOTO :ERROR

build/helpers/postgres_nsis_installer.cmd

100644100755
Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ IF "%PRODUCT_NAME%" == "PostgresPro" (
109109
GOTO :ENDLIC
110110
)
111111
IF "%PRODUCT_NAME%" == "PostgresProEnterprise" (
112-
>>%NSIS_RES_DIR%\postgres.def.nsh ECHO !define myLicenseFile_ru "license.txt"
113-
>>%NSIS_RES_DIR%\postgres.def.nsh ECHO !define myLicenseFile_en "license.txt"
112+
>>%NSIS_RES_DIR%\postgres.def.nsh ECHO !define myLicenseFile_ru "license_ee_ru.txt"
113+
>>%NSIS_RES_DIR%\postgres.def.nsh ECHO !define myLicenseFile_en "license_ee_en.txt"
114114
>>%NSIS_RES_DIR%\postgres.def.nsh ECHO !define PRODUCT_NAME_SHORT "Postgres Pro"
115115
GOTO :ENDLIC
116116
)
@@ -122,17 +122,37 @@ GOTO :ENDLIC
122122

123123
CD /D %NSIS_RES_DIR% || GOTO :ERROR
124124
rem Genarate file lists
125-
126-
type server.files > allserver.files
125+
rem Remove old filelists first
126+
rm -f *_list.nsi
127+
rem tune pattern lists to major version and product
128+
IF "%PG_MAJOR_VERSION%" == "9.6" (
129+
sed "s/wal/xlog/" server.files > allserver.files
130+
sed "s/wal/xlog/" client.files > allclient.files
131+
echo ./bin/createlang.* >> allclient.files
132+
echo ./bin/droplang.* >> allclient.files
133+
) ELSE (
134+
cat server.files > allserver.files
135+
type client.files > allclient.files
136+
)
127137
IF NOT "%PG_MAJOR_VERSION%" == "9.6" GOTO :NO_PGPRO_UPGRADE
128138
IF "%PRODUCT_NAME%" == "PostgresPro" GOTO :ADD_PGPRO_UPGRADE
129139
IF "%PRODUCT_NAME%" == "PostgresProEnterprise" GOTO :ADD_PGPRO_UPGRADE
130140
GOTO :NO_PGPRO_UPGRADE
131141
:ADD_PGPRO_UPGRADE
132-
type server.files pgpro_upgrade.files > allserver.files
142+
type pgpro_upgrade.files >> allserver.files
133143
:NO_PGPRO_UPGRADE
134144

135-
%PYTHON64_PATH%/python %ROOT%/build/helpers/genlists.py %PG_INS_SOURCE_DIR% client.files devel.files plperl.files plpython2.files plpython3.files unneeded.files allserver.files
145+
rem pg_repack binary should be in serever section
146+
rem It is included into PostgresProEnterpise only
147+
rem pg_repack extension is included by same pattern as
148+
rem all other contrib extensions
149+
150+
IF "%PRODUCT_NAME%" == "PostgresProEnterprise" (
151+
echo ./bin/pg_repack.* >> allserver.files
152+
)
153+
154+
rem expand pattern lists to actual file lists
155+
%PYTHON64_PATH%/python %ROOT%/build/helpers/genlists.py %PG_INS_SOURCE_DIR% allclient.files devel.files plperl.files plpython2.files plpython3.files unneeded.files allserver.files || GOTO :ERROR
136156

137157
rem generate installer itself
138158
makensis postgresql.nsi || GOTO :ERROR

nsis/devel.files

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
./bin/pg_config.*
44
./bin/ecpg.*
55
./symbols/*.pdb
6+
./share/errcodes.txt

nsis/license_ee_en.txt

Lines changed: 180 additions & 50 deletions
Large diffs are not rendered by default.

nsis/license_ee_ru.txt

Lines changed: 208 additions & 50 deletions
Large diffs are not rendered by default.

nsis/license_std_en.txt

Lines changed: 176 additions & 16 deletions
Large diffs are not rendered by default.

nsis/license_std_ru.txt

Lines changed: 203 additions & 13 deletions
Large diffs are not rendered by default.

nsis/pgpro_upgrade.files

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
./bin/sh.*
2+
./bin/mv.*
23
./bin/sed.*
34
./bin/pgpro_upgrade
5+
./share/pgpro-upgrade/*

nsis/postgresql.nsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ Section $(componentClient) secClient
253253

254254

255255

256-
!include client_list.nsi
256+
!include allclient_list.nsi
257257
;SetOutPath "$INSTDIR\bin"
258258
;File /r ${PG_INS_SOURCE_DIR}\*.*
259259
;File /r ${PG_INS_SOURCE_DIR}\bin\*.*

0 commit comments

Comments
 (0)