update to 15.0

This commit is contained in:
dillon_chen 2023-06-27 18:21:56 +08:00
parent 59e6f535e4
commit 20af070e88
3 changed files with 20 additions and 13 deletions

View File

@ -15,7 +15,7 @@ index 67e7998..86612a4 100644
$(INSTALL_SCRIPT) $(srcdir)/install-sh '$(DESTDIR)$(pgxsdir)/config/install-sh' $(INSTALL_SCRIPT) $(srcdir)/install-sh '$(DESTDIR)$(pgxsdir)/config/install-sh'
$(INSTALL_SCRIPT) $(srcdir)/missing '$(DESTDIR)$(pgxsdir)/config/missing' $(INSTALL_SCRIPT) $(srcdir)/missing '$(DESTDIR)$(pgxsdir)/config/missing'
+ $(INSTALL_SCRIPT) $(srcdir)/build-exports-gnu-ld '$(DESTDIR)$(pgxsdir)/config/build-exports-gnu-ld' + $(INSTALL_SCRIPT) $(srcdir)/build-exports-gnu-ld '$(DESTDIR)$(pgxsdir)/config/build-exports-gnu-ld'
installdirs: installdirs:
$(MKDIR_P) '$(DESTDIR)$(pgxsdir)/config' $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/config'
diff --git a/config/build-exports-gnu-ld b/config/build-exports-gnu-ld diff --git a/config/build-exports-gnu-ld b/config/build-exports-gnu-ld
@ -78,17 +78,16 @@ index 373d73caef..d5bd5468cd 100644
exports_file = $(SHLIB_EXPORTS:%.txt=%.list) exports_file = $(SHLIB_EXPORTS:%.txt=%.list)
ifneq (,$(exports_file)) ifneq (,$(exports_file))
LINK.shared += -Wl,--version-script=$(exports_file) LINK.shared += -Wl,--version-script=$(exports_file)
diff --git a/src/interfaces/libpq/exports.txt b/src/interfaces/libpq/exports.txt diff -ur postgresql-14.1/src/interfaces/libpq/exports.txt patched/src/interfaces/libpq/exports.txt
index bbc1f90..fc3ef8a 100644 --- postgresql-14.1/src/interfaces/libpq/exports.txt 2021-11-08 22:58:24.000000000 +0100
--- a/src/interfaces/libpq/exports.txt +++ patched/src/interfaces/libpq/exports.txt 2022-01-12 12:00:28.000000000 +0100
+++ b/src/interfaces/libpq/exports.txt @@ -171,15 +171,15 @@
@@ -171,11 +171,11 @@ PQsslAttributeNames 168
PQsslAttribute 169 PQsslAttribute 169
PQsetErrorContextVisibility 170 PQsetErrorContextVisibility 170
PQresultVerboseErrorMessage 171 PQresultVerboseErrorMessage 171
-PQencryptPasswordConn 172 -PQencryptPasswordConn 172
+PQencryptPasswordConn 172 10
-PQresultMemorySize 173 -PQresultMemorySize 173
+PQencryptPasswordConn 172 10
+PQresultMemorySize 173 12 +PQresultMemorySize 173 12
PQhostaddr 174 PQhostaddr 174
PQgssEncInUse 175 PQgssEncInUse 175
@ -97,3 +96,8 @@ index bbc1f90..fc3ef8a 100644
+PQsetSSLKeyPassHook_OpenSSL 177 13 +PQsetSSLKeyPassHook_OpenSSL 177 13
PQgetSSLKeyPassHook_OpenSSL 178 PQgetSSLKeyPassHook_OpenSSL 178
PQdefaultSSLKeyPassHook_OpenSSL 179 PQdefaultSSLKeyPassHook_OpenSSL 179
-PQenterPipelineMode 180
+PQenterPipelineMode 180 14
PQexitPipelineMode 181
PQpipelineSync 182
PQpipelineStatus 183

View File

@ -1,6 +1,6 @@
Name: libpq Name: libpq
Version: 13.7 Version: 15.0
Release: 2 Release: 1
Summary: PostgreSQL client library Summary: PostgreSQL client library
License: PostgreSQL License: PostgreSQL
Url: http://www.postgresql.org/ Url: http://www.postgresql.org/
@ -61,11 +61,11 @@ rm -r $RPM_BUILD_ROOT%_includedir/pgsql/server
%multilib_fix_c_header --file "%_includedir/pg_config_ext.h" %multilib_fix_c_header --file "%_includedir/pg_config_ext.h"
cp /dev/null libpq.lst cp /dev/null libpq.lst
%find_lang libpq5-13 %find_lang libpq5-15
cat libpq5-13.lang >>libpq.lst cat libpq5-15.lang >>libpq.lst
cp /dev/null libpq-devel.lst cp /dev/null libpq-devel.lst
%find_lang pg_config-13 %find_lang pg_config-15
cat pg_config-13.lang >>libpq-devel.lst cat pg_config-15.lang >>libpq-devel.lst
%files -f libpq.lst %files -f libpq.lst
%license COPYRIGHT %license COPYRIGHT
@ -80,6 +80,9 @@ cat pg_config-13.lang >>libpq-devel.lst
%_libdir/pkgconfig/libpq.pc %_libdir/pkgconfig/libpq.pc
%changelog %changelog
* Tue Jun 27 2023 dillon chen<dillon.chen@gmail.com> - 15.0-1
- upgrade libpq to 15.0
* Thu Dec 1 2022 huajingyun <huajingyun@loongson.cn> - 13.7-2 * Thu Dec 1 2022 huajingyun <huajingyun@loongson.cn> - 13.7-2
- add loongarch support - add loongarch support