postgresql: update to version 17.2

Update PostgreSQL to new (major) version 17.2
See https://www.postgresql.org/docs/release/17.2/ for more details.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
Daniel Golle
2025-02-10 05:14:13 +00:00
parent 4b43dc2d32
commit 9ec157ee98
5 changed files with 31 additions and 35 deletions

View File

@@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=postgresql PKG_NAME:=postgresql
PKG_VERSION:=15.6 PKG_VERSION:=17.2
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org> PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=PostgreSQL PKG_LICENSE:=PostgreSQL
@@ -17,7 +17,7 @@ PKG_SOURCE_URL:=\
http://ftp.postgresql.org/pub/source/v$(PKG_VERSION) \ http://ftp.postgresql.org/pub/source/v$(PKG_VERSION) \
ftp://ftp.postgresql.org/pub/source/v$(PKG_VERSION) ftp://ftp.postgresql.org/pub/source/v$(PKG_VERSION)
PKG_HASH:=8455146ed9c69c93a57de954aead0302cafad035c2b242175d6aa1e17ebcb2fb PKG_HASH:=82ef27c0af3751695d7f64e2d963583005fbb6a0c3df63d0e4b42211d7021164
PKG_BUILD_FLAGS:=no-mips16 PKG_BUILD_FLAGS:=no-mips16
PKG_FIXUP:=autoreconf PKG_FIXUP:=autoreconf
@@ -137,6 +137,7 @@ HOST_CONFIGURE_ARGS += \
--disable-rpath \ --disable-rpath \
--without-bonjour \ --without-bonjour \
--without-gssapi \ --without-gssapi \
--without-icu \
--without-ldap \ --without-ldap \
--without-openssl \ --without-openssl \
--without-pam \ --without-pam \
@@ -153,6 +154,7 @@ CONFIGURE_ARGS += \
--disable-rpath \ --disable-rpath \
--without-bonjour \ --without-bonjour \
--without-gssapi \ --without-gssapi \
--without-icu \
--without-ldap \ --without-ldap \
--without-openssl \ --without-openssl \
--without-pam \ --without-pam \

View File

@@ -1,10 +0,0 @@
--- a/src/port/Makefile
+++ b/src/port/Makefile
@@ -83,6 +83,7 @@ uninstall:
libpgport.a: $(OBJS)
rm -f $@
$(AR) $(AROPT) $@ $^
+ $(RANLIB) libpgport.a
# getaddrinfo.o and getaddrinfo_shlib.o need PTHREAD_CFLAGS (but getaddrinfo_srv.o does not)
getaddrinfo.o: CFLAGS+=$(PTHREAD_CFLAGS)

View File

@@ -1,13 +1,15 @@
--- a/src/bin/pg_ctl/pg_ctl.c --- a/src/bin/pg_ctl/pg_ctl.c
+++ b/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c
@@ -12,9 +12,11 @@ @@ -12,11 +12,13 @@
#include "postgres_fe.h" #include "postgres_fe.h"
#include <fcntl.h> #include <fcntl.h>
+#include <pwd.h> +#include <pwd.h>
#include <signal.h> #include <signal.h>
#include <time.h> #include <time.h>
#include <sys/resource.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/time.h>
+#include <sys/types.h> +#include <sys/types.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>

View File

@@ -1,15 +1,17 @@
--- a/configure.ac --- a/configure.ac
+++ b/configure.ac +++ b/configure.ac
@@ -2239,9 +2239,9 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [ @@ -2137,10 +2137,10 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [
# First check if __crc32c* intrinsics can be used with the default compiler
# flags. If not, check if adding -march=armv8-a+crc flag helps. # flags. If not, check if adding -march=armv8-a+crc flag helps.
# CFLAGS_ARMV8_CRC32C is set if the extra flag is required. # CFLAGS_CRC is set if the extra flag is required.
PGAC_ARMV8_CRC32C_INTRINSICS([]) -PGAC_ARMV8_CRC32C_INTRINSICS([])
-if test x"$pgac_armv8_crc32c_intrinsics" != x"yes"; then -if test x"$pgac_armv8_crc32c_intrinsics" != x"yes"; then
- PGAC_ARMV8_CRC32C_INTRINSICS([-march=armv8-a+crc]) - PGAC_ARMV8_CRC32C_INTRINSICS([-march=armv8-a+crc])
-fi -fi
+#PGAC_ARMV8_CRC32C_INTRINSICS([])
+#if test x"$pgac_armv8_crc32c_intrinsics" != x"yes"; then +#if test x"$pgac_armv8_crc32c_intrinsics" != x"yes"; then
+# PGAC_ARMV8_CRC32C_INTRINSICS([-march=armv8-a+crc]) +# PGAC_ARMV8_CRC32C_INTRINSICS([-march=armv8-a+crc])
+#fi +#fi
AC_SUBST(CFLAGS_ARMV8_CRC32C)
# Select CRC-32C implementation. # Check for LoongArch CRC intrinsics to do CRC calculations.
#

View File

@@ -1,6 +1,6 @@
--- a/src/bin/pg_ctl/pg_ctl.c --- a/src/bin/pg_ctl/pg_ctl.c
+++ b/src/bin/pg_ctl/pg_ctl.c +++ b/src/bin/pg_ctl/pg_ctl.c
@@ -96,6 +96,7 @@ static char *event_source = NULL; @@ -91,6 +91,7 @@ static char *event_source = NULL;
static char *register_servicename = "PostgreSQL"; /* FIXME: + version ID? */ static char *register_servicename = "PostgreSQL"; /* FIXME: + version ID? */
static char *register_username = NULL; static char *register_username = NULL;
static char *register_password = NULL; static char *register_password = NULL;
@@ -8,7 +8,7 @@
static char *argv0 = NULL; static char *argv0 = NULL;
static bool allow_core_files = false; static bool allow_core_files = false;
static time_t start_time; static time_t start_time;
@@ -2086,6 +2087,9 @@ do_help(void) @@ -1988,6 +1989,9 @@ do_help(void)
#endif #endif
printf(_(" -s, --silent only print errors, no informational messages\n")); printf(_(" -s, --silent only print errors, no informational messages\n"));
printf(_(" -t, --timeout=SECS seconds to wait when using -w option\n")); printf(_(" -t, --timeout=SECS seconds to wait when using -w option\n"));
@@ -18,7 +18,7 @@
printf(_(" -V, --version output version information, then exit\n")); printf(_(" -V, --version output version information, then exit\n"));
printf(_(" -w, --wait wait until operation completes (default)\n")); printf(_(" -w, --wait wait until operation completes (default)\n"));
printf(_(" -W, --no-wait do not wait until operation completes\n")); printf(_(" -W, --no-wait do not wait until operation completes\n"));
@@ -2298,6 +2302,7 @@ main(int argc, char **argv) @@ -2200,6 +2204,7 @@ main(int argc, char **argv)
{"options", required_argument, NULL, 'o'}, {"options", required_argument, NULL, 'o'},
{"silent", no_argument, NULL, 's'}, {"silent", no_argument, NULL, 's'},
{"timeout", required_argument, NULL, 't'}, {"timeout", required_argument, NULL, 't'},
@@ -26,7 +26,7 @@
{"core-files", no_argument, NULL, 'c'}, {"core-files", no_argument, NULL, 'c'},
{"wait", no_argument, NULL, 'w'}, {"wait", no_argument, NULL, 'w'},
{"no-wait", no_argument, NULL, 'W'}, {"no-wait", no_argument, NULL, 'W'},
@@ -2338,20 +2343,6 @@ main(int argc, char **argv) @@ -2240,20 +2245,6 @@ main(int argc, char **argv)
} }
} }
@@ -47,23 +47,23 @@
env_wait = getenv("PGCTLTIMEOUT"); env_wait = getenv("PGCTLTIMEOUT");
if (env_wait != NULL) if (env_wait != NULL)
@@ -2437,11 +2428,15 @@ main(int argc, char **argv) @@ -2328,11 +2319,15 @@ main(int argc, char **argv)
wait_seconds_arg = true; wait_seconds_arg = true;
break; break;
case 'U': case 'U':
+#if defined(WIN32) || defined(__CYGWIN__) +#if defined(WIN32) || defined(__CYGWIN__)
if (strchr(optarg, '\\')) if (strchr(optarg, '\\'))
register_username = pg_strdup(optarg); register_username = pg_strdup(optarg);
else else
/* Prepend .\ for local accounts */ /* Prepend .\ for local accounts */
register_username = psprintf(".\\%s", optarg); register_username = psprintf(".\\%s", optarg);
+#else +#else
+ username = pg_strdup(optarg); + username = pg_strdup(optarg);
+#endif +#endif
break; break;
case 'w': case 'w':
do_wait = true; do_wait = true;
@@ -2523,6 +2518,41 @@ main(int argc, char **argv) @@ -2413,6 +2408,41 @@ main(int argc, char **argv)
exit(1); exit(1);
} }