summaryrefslogtreecommitdiff
path: root/external/postgresql
diff options
context:
space:
mode:
authorTaichi Haradaguchi <20001722@ymail.ne.jp>2022-09-22 21:06:06 +0900
committerXisco Fauli <xiscofauli@libreoffice.org>2022-09-23 17:06:20 +0200
commitc11fb34ac4e8fefa23c0b7021f89edf768b8984b (patch)
tree176baf65511ff3c9f6579ccc2a62c415ee513643 /external/postgresql
parent711730297dc45a022da223b215bbb80a640c4d51 (diff)
postgresql: upgrade to release 13.8
* Fixes 2 CVEs that don't affect LO (CVE-2022-1552 and CVE-2022-2625). * Changes some patch files for upstream changes. Change-Id: I4964c43fefc94f12a16c45d8727ae41cf1ce278b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140392 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Xisco Fauli <xiscofauli@libreoffice.org> (cherry picked from commit cb301d1b98dbfb3fa732082146be04091a8374b8) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140499 Tested-by: Jenkins
Diffstat (limited to 'external/postgresql')
-rw-r--r--external/postgresql/arm64.patch.12
-rw-r--r--external/postgresql/postgres-msvc-build.patch.18
-rw-r--r--external/postgresql/postgresql.exit.patch.04
-rw-r--r--external/postgresql/windows.patch.02
4 files changed, 8 insertions, 8 deletions
diff --git a/external/postgresql/arm64.patch.1 b/external/postgresql/arm64.patch.1
index 7f8f2d6e4137..891212b18f5a 100644
--- a/external/postgresql/arm64.patch.1
+++ b/external/postgresql/arm64.patch.1
@@ -40,7 +40,7 @@ diff -ur postgresql.org/src/tools/msvc/Solution.pm postgresql/src/tools/msvc/Sol
--- postgresql.org/src/tools/msvc/Solution.pm 2021-03-14 02:09:15.288060770 +0100
+++ postgresql/src/tools/msvc/Solution.pm 2021-03-14 02:12:22.351726582 +0100
@@ -62,10 +62,7 @@
- if (1) #($^O eq "MSWin32")
+ if ($^O eq "MSWin32")
{
# Examine CL help output to determine if we are in 32 or 64-bit mode.
- my $output = `cl /? 2>&1`;
diff --git a/external/postgresql/postgres-msvc-build.patch.1 b/external/postgresql/postgres-msvc-build.patch.1
index c217a755918b..dec31742238e 100644
--- a/external/postgresql/postgres-msvc-build.patch.1
+++ b/external/postgresql/postgres-msvc-build.patch.1
@@ -42,7 +42,7 @@ Also Cygwin perl has $Config{osname} different from MSWin32, and why even check
{
# Examine CL help output to determine if we are in 32 or 64-bit mode.
my $output = `cl /? 2>&1`;
-@@ -1081,7 +1081,7 @@
+@@ -1100,7 +1100,7 @@
}
if ($fld ne "")
{
@@ -53,7 +53,7 @@ Also Cygwin perl has $Config{osname} different from MSWin32, and why even check
EndProject
--- postgresql/src/tools/msvc/VSObjectFactory.pm.orig 2021-01-19 18:06:42.633421700 +0100
+++ postgresql/src/tools/msvc/VSObjectFactory.pm 2021-01-19 18:06:28.663523200 +0100
-@@ -111,7 +111,7 @@
+@@ -131,7 +131,7 @@
sub DetermineVisualStudioVersion
{
@@ -85,7 +85,7 @@ Also Cygwin perl has $Config{osname} different from MSWin32, and why even check
my $sslout = `$opensslcmd`;
$? >> 8 == 0
-@@ -964,8 +964,8 @@
+@@ -967,8 +967,8 @@
# On both Win32 and Win64 the same library
# names are used without a debugging context.
$dbgsuffix = 0;
@@ -96,7 +96,7 @@ Also Cygwin perl has $Config{osname} different from MSWin32, and why even check
}
$proj->AddLibrary($self->{options}->{openssl} . $libsslpath,
-@@ -990,9 +990,9 @@
+@@ -993,9 +993,9 @@
# to be here, so don't ask for it in last
# parameter.
$proj->AddLibrary(
diff --git a/external/postgresql/postgresql.exit.patch.0 b/external/postgresql/postgresql.exit.patch.0
index 77912038e88e..bd14d16e0ed6 100644
--- a/external/postgresql/postgresql.exit.patch.0
+++ b/external/postgresql/postgresql.exit.patch.0
@@ -1,7 +1,7 @@
# error: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-declaration]
--- configure
+++ configure
-@@ -24565,6 +24565,7 @@
+@@ -16821,6 +16821,7 @@
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -9,7 +9,7 @@
typedef long int ac_int64;
/*
-@@ -24702,6 +24702,7 @@
+@@ -16905,6 +16905,7 @@
else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
diff --git a/external/postgresql/windows.patch.0 b/external/postgresql/windows.patch.0
index dbac548d4659..28fc9046c298 100644
--- a/external/postgresql/windows.patch.0
+++ b/external/postgresql/windows.patch.0
@@ -1,6 +1,6 @@
--- src/port/chklocale.c
+++ src/port/chklocale.c
-@@ -211,7 +211,7 @@
+@@ -220,7 +220,7 @@
{
r = malloc(16); /* excess */
if (r != NULL)