From e52f462d6fd40e6b3090984d5c981fc94bdb58f6 Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Tue, 18 Jun 2024 09:36:59 +0200 Subject: [PATCH 01/11] Ship errcodes.h header file in -devel pacakge - kea package requires errorcodes. --- libpq.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libpq.spec b/libpq.spec index 52a05aa..34c6464 100644 --- a/libpq.spec +++ b/libpq.spec @@ -4,7 +4,7 @@ Summary: PostgreSQL client library Name: libpq Version: %{majorversion}.3 -Release: 1%{?dist} +Release: 2%{?dist} License: PostgreSQL Url: http://www.postgresql.org/ @@ -98,6 +98,8 @@ done # remove files not to be packaged find $RPM_BUILD_ROOT -name '*.a' -delete +mv $RPM_BUILD_ROOT%{_includedir}/pgsql/server/utils/errcodes.h \ + $RPM_BUILD_ROOT%{_includedir}/pgsql rm -r $RPM_BUILD_ROOT%_includedir/pgsql/server %multilib_fix_c_header --file "%_includedir/pg_config.h" @@ -131,6 +133,9 @@ find_lang_bins %name-devel.lst pg_config %_libdir/pkgconfig/libpq.pc %changelog +* Tue Jun 18 2024 Filip Janus - 16.3-2 +- Ship errcodes.h in -devel package (kea package requires errorcodes) + * Mon May 27 2024 Ales Nezbeda - 16.3-1 - Update to 16.3 - Remove backported OpenSSL fix From e98e1d2454186d7c7608c52823c43f99d4f73761 Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Tue, 18 Jun 2024 17:59:04 +0200 Subject: [PATCH 02/11] Move errcodes.h to usr/include/pgsql/server/utils/ to be consistent with the upstream --- libpq.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/libpq.spec b/libpq.spec index 34c6464..65f61f2 100644 --- a/libpq.spec +++ b/libpq.spec @@ -4,7 +4,7 @@ Summary: PostgreSQL client library Name: libpq Version: %{majorversion}.3 -Release: 2%{?dist} +Release: 3%{?dist} License: PostgreSQL Url: http://www.postgresql.org/ @@ -98,9 +98,14 @@ done # remove files not to be packaged find $RPM_BUILD_ROOT -name '*.a' -delete +# preserve just errcodes.h mv $RPM_BUILD_ROOT%{_includedir}/pgsql/server/utils/errcodes.h \ $RPM_BUILD_ROOT%{_includedir}/pgsql rm -r $RPM_BUILD_ROOT%_includedir/pgsql/server +mkdir -p $RPM_BUILD_ROOT%{_includedir}/pgsql/server/utils +mv $RPM_BUILD_ROOT%{_includedir}/pgsql/errcodes.h \ + $RPM_BUILD_ROOT%{_includedir}/pgsql/server/utils + %multilib_fix_c_header --file "%_includedir/pg_config.h" %multilib_fix_c_header --file "%_includedir/pg_config_ext.h" @@ -133,6 +138,10 @@ find_lang_bins %name-devel.lst pg_config %_libdir/pkgconfig/libpq.pc %changelog +* Tue Jun 18 2024 Filip Janus - 16.3-3 +- Move errcodes.h to usr/include/pgsql/server/utils/ +- to be consistent with upstream + * Tue Jun 18 2024 Filip Janus - 16.3-2 - Ship errcodes.h in -devel package (kea package requires errorcodes) From ff838b3058edc8ad422db00a527a85983f5de816 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 18 Jul 2024 14:48:59 +0000 Subject: [PATCH 03/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- libpq.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libpq.spec b/libpq.spec index 65f61f2..3401db5 100644 --- a/libpq.spec +++ b/libpq.spec @@ -4,7 +4,7 @@ Summary: PostgreSQL client library Name: libpq Version: %{majorversion}.3 -Release: 3%{?dist} +Release: 4%{?dist} License: PostgreSQL Url: http://www.postgresql.org/ @@ -138,6 +138,9 @@ find_lang_bins %name-devel.lst pg_config %_libdir/pkgconfig/libpq.pc %changelog +* Thu Jul 18 2024 Fedora Release Engineering - 16.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Tue Jun 18 2024 Filip Janus - 16.3-3 - Move errcodes.h to usr/include/pgsql/server/utils/ - to be consistent with upstream From 266c646e51ecfaec22469a2850fb9a5f36d0f944 Mon Sep 17 00:00:00 2001 From: Ales Nezbeda Date: Tue, 30 Jul 2024 09:36:55 +0200 Subject: [PATCH 04/11] Disable ENGINE API --- libpq.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libpq.spec b/libpq.spec index 3401db5..3c0d8a2 100644 --- a/libpq.spec +++ b/libpq.spec @@ -4,7 +4,7 @@ Summary: PostgreSQL client library Name: libpq Version: %{majorversion}.3 -Release: 4%{?dist} +Release: 5%{?dist} License: PostgreSQL Url: http://www.postgresql.org/ @@ -68,6 +68,7 @@ find . -type f -name .gitignore | xargs rm # complements symbol-versioning patch export SYMBOL_VERSION_PREFIX=RHPG_ +export CFLAGS="$CFLAGS -DOPENSSL_NO_ENGINE" # We don't build server nor client (e.g. /bin/psql) binaries in this package, so # we can disable some configure options. %configure \ @@ -138,6 +139,11 @@ find_lang_bins %name-devel.lst pg_config %_libdir/pkgconfig/libpq.pc %changelog +* Tue Jul 30 2024 Ales Nezbeda - 16.3-5 +- Disable openssl ENGINE_API +- Fedora change: https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine +- BZ: 2300910 + * Thu Jul 18 2024 Fedora Release Engineering - 16.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 9fcf3c0030cc0f228a3af80dc231dc3633cf1895 Mon Sep 17 00:00:00 2001 From: Ales Nezbeda Date: Wed, 21 Aug 2024 15:54:41 +0200 Subject: [PATCH 05/11] Update to 16.4 --- libpq.spec | 7 +++++-- sources | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libpq.spec b/libpq.spec index 3c0d8a2..fbad5c2 100644 --- a/libpq.spec +++ b/libpq.spec @@ -3,8 +3,8 @@ Summary: PostgreSQL client library Name: libpq -Version: %{majorversion}.3 -Release: 5%{?dist} +Version: %{majorversion}.4 +Release: 1%{?dist} License: PostgreSQL Url: http://www.postgresql.org/ @@ -139,6 +139,9 @@ find_lang_bins %name-devel.lst pg_config %_libdir/pkgconfig/libpq.pc %changelog +* Wed Aug 21 2024 Ales Nezbeda - 16.4-1 +- Update to 16.4 + * Tue Jul 30 2024 Ales Nezbeda - 16.3-5 - Disable openssl ENGINE_API - Fedora change: https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine diff --git a/sources b/sources index 4f151c0..04b03aa 100755 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (postgresql-16.3.tar.bz2) = dc1c8d4fbc8e53e9be91dcf1b644b3969bd634f11bf5a1c4fe16619fd386f3349a5509788d43e6a57d099ad75233026d4dd4e0bb180ffc747fd3c1a575c51a5f -SHA512 (postgresql-16.3.tar.bz2.sha256) = eeebced14bc6c42df864c00397caaafa91b3ddc1c3900943989f04d396674907f63051b93aeb6b1b2408ffeb1b2fc44521b123b42b986b45c19bdcf706523c84 +SHA512 (postgresql-16.4.tar.bz2) = f2070299f0857a270317ac984f8393374cf00d4f32a082fe3c5481e36c560595ea711fed95e40d1bc90c5089edf8f165649d443d8b9c68614e1c83fc91268e96 +SHA512 (postgresql-16.4.tar.bz2.sha256) = f5a33591b4a0810e2f90d21df471ba086acbd1f97099e38aed46e4d3b45ee72037ef5958c7f155dd9fb7969152599fb6946b792a12d92575bfbc595049b74674 From 70d182ec07ad0dff1a745a615fefbfa507075edb Mon Sep 17 00:00:00 2001 From: Ales Nezbeda Date: Wed, 21 Aug 2024 16:38:30 +0200 Subject: [PATCH 06/11] Update to 16.4 --- libpq.spec | 5 ++++- sources | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/libpq.spec b/libpq.spec index 52a05aa..1ac6b76 100644 --- a/libpq.spec +++ b/libpq.spec @@ -3,7 +3,7 @@ Summary: PostgreSQL client library Name: libpq -Version: %{majorversion}.3 +Version: %{majorversion}.4 Release: 1%{?dist} License: PostgreSQL @@ -131,6 +131,9 @@ find_lang_bins %name-devel.lst pg_config %_libdir/pkgconfig/libpq.pc %changelog +* Wed Aug 21 2024 Ales Nezbeda - 16.4-1 +- Update to 16.4 + * Mon May 27 2024 Ales Nezbeda - 16.3-1 - Update to 16.3 - Remove backported OpenSSL fix diff --git a/sources b/sources index 4f151c0..04b03aa 100755 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (postgresql-16.3.tar.bz2) = dc1c8d4fbc8e53e9be91dcf1b644b3969bd634f11bf5a1c4fe16619fd386f3349a5509788d43e6a57d099ad75233026d4dd4e0bb180ffc747fd3c1a575c51a5f -SHA512 (postgresql-16.3.tar.bz2.sha256) = eeebced14bc6c42df864c00397caaafa91b3ddc1c3900943989f04d396674907f63051b93aeb6b1b2408ffeb1b2fc44521b123b42b986b45c19bdcf706523c84 +SHA512 (postgresql-16.4.tar.bz2) = f2070299f0857a270317ac984f8393374cf00d4f32a082fe3c5481e36c560595ea711fed95e40d1bc90c5089edf8f165649d443d8b9c68614e1c83fc91268e96 +SHA512 (postgresql-16.4.tar.bz2.sha256) = f5a33591b4a0810e2f90d21df471ba086acbd1f97099e38aed46e4d3b45ee72037ef5958c7f155dd9fb7969152599fb6946b792a12d92575bfbc595049b74674 From 5687a6828e176811ddd683dd8587f231cb4a4a81 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 17 Jan 2025 13:04:16 +0000 Subject: [PATCH 07/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- libpq.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libpq.spec b/libpq.spec index fbad5c2..4fbed95 100644 --- a/libpq.spec +++ b/libpq.spec @@ -4,7 +4,7 @@ Summary: PostgreSQL client library Name: libpq Version: %{majorversion}.4 -Release: 1%{?dist} +Release: 2%{?dist} License: PostgreSQL Url: http://www.postgresql.org/ @@ -139,6 +139,9 @@ find_lang_bins %name-devel.lst pg_config %_libdir/pkgconfig/libpq.pc %changelog +* Fri Jan 17 2025 Fedora Release Engineering - 16.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Aug 21 2024 Ales Nezbeda - 16.4-1 - Update to 16.4 From 38488413a7a79856de54a2d940d09a53dea17274 Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Sun, 2 Feb 2025 15:24:31 +0000 Subject: [PATCH 08/11] gcc now uses std=gnu23 Use std=c17 to avoid errors --- libpq.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpq.spec b/libpq.spec index 4fbed95..bc85739 100644 --- a/libpq.spec +++ b/libpq.spec @@ -68,7 +68,7 @@ find . -type f -name .gitignore | xargs rm # complements symbol-versioning patch export SYMBOL_VERSION_PREFIX=RHPG_ -export CFLAGS="$CFLAGS -DOPENSSL_NO_ENGINE" +export CFLAGS="$CFLAGS -DOPENSSL_NO_ENGINE -std=c17" # We don't build server nor client (e.g. /bin/psql) binaries in this package, so # we can disable some configure options. %configure \ From efc0e9a401ab2a74206a7494887946a95c4ea951 Mon Sep 17 00:00:00 2001 From: Nikola Davidova Date: Mon, 9 Jun 2025 14:53:40 +0200 Subject: [PATCH 09/11] Rebase to 18.0 (beta) --- libpq-10.3-rpm-pgsql.patch | 2 +- libpq-10.3-var-run-socket.patch | 6 +++--- libpq-12.1-symbol-versioning.patch | 11 ++++++++--- libpq.spec | 24 +++++++++++++++++------- sources | 4 ++-- 5 files changed, 31 insertions(+), 16 deletions(-) diff --git a/libpq-10.3-rpm-pgsql.patch b/libpq-10.3-rpm-pgsql.patch index 93a3532..71a28e5 100644 --- a/libpq-10.3-rpm-pgsql.patch +++ b/libpq-10.3-rpm-pgsql.patch @@ -21,7 +21,7 @@ index 9a6265b3a0..c9371a07c4 100644 # # In a PGXS build, we cannot use the values inserted into Makefile.global # by configure, since the installation tree may have been relocated. -@@ -101,45 +100,23 @@ datarootdir := @datarootdir@ +@@ -111,45 +110,23 @@ datarootdir := @datarootdir@ bindir := @bindir@ datadir := @datadir@ diff --git a/libpq-10.3-var-run-socket.patch b/libpq-10.3-var-run-socket.patch index 2c5c128..3081c26 100644 --- a/libpq-10.3-var-run-socket.patch +++ b/libpq-10.3-var-run-socket.patch @@ -16,7 +16,7 @@ override it via postgresql.conf.) diff -ur postgresql-16.1/src/backend/utils/misc/guc_tables.c pg_patched/src/backend/utils/misc/guc_tables.c --- postgresql-16.1/src/backend/utils/misc/guc_tables.c 2023-11-06 23:04:27.000000000 +0100 +++ pg_patched/src/backend/utils/misc/guc_tables.c 2023-12-05 12:02:46.000000000 +0100 -@@ -4271,7 +4271,7 @@ +@@ -4648,7 +4648,7 @@ GUC_LIST_INPUT | GUC_LIST_QUOTE | GUC_SUPERUSER_ONLY }, &Unix_socket_directories, @@ -28,7 +28,7 @@ diff -ur postgresql-16.1/src/backend/utils/misc/guc_tables.c pg_patched/src/back diff -ur postgresql-16.1/src/bin/initdb/initdb.c pg_patched/src/bin/initdb/initdb.c --- postgresql-16.1/src/bin/initdb/initdb.c 2023-11-06 23:04:27.000000000 +0100 +++ pg_patched/src/bin/initdb/initdb.c 2023-12-05 12:04:19.000000000 +0100 -@@ -1287,7 +1287,7 @@ +@@ -1368,7 +1368,7 @@ * these are indeed defaults, keep the postgresql.conf lines commented. */ conflines = replace_guc_value(conflines, "unix_socket_directories", @@ -40,7 +40,7 @@ diff -ur postgresql-16.1/src/bin/initdb/initdb.c pg_patched/src/bin/initdb/initd diff -ur postgresql-16.1/src/include/pg_config_manual.h pg_patched/src/include/pg_config_manual.h --- postgresql-16.1/src/include/pg_config_manual.h 2023-11-06 23:04:27.000000000 +0100 +++ pg_patched/src/include/pg_config_manual.h 2023-12-05 11:45:20.000000000 +0100 -@@ -206,7 +206,7 @@ +@@ -190,7 +190,7 @@ * support them yet. */ #ifndef WIN32 diff --git a/libpq-12.1-symbol-versioning.patch b/libpq-12.1-symbol-versioning.patch index 955510c..2bd2525 100644 --- a/libpq-12.1-symbol-versioning.patch +++ b/libpq-12.1-symbol-versioning.patch @@ -20,7 +20,7 @@ diff -ur postgresql-16.1/config/Makefile postgresql_patched/config/Makefile diff -ur postgresql-16.1/src/interfaces/libpq/exports.txt postgresql_patched/src/interfaces/libpq/exports.txt --- postgresql-16.1/src/interfaces/libpq/exports.txt 2023-11-06 23:04:27.000000000 +0100 +++ postgresql_patched/src/interfaces/libpq/exports.txt 2023-12-05 10:48:24.627604638 +0100 -@@ -171,19 +171,19 @@ +@@ -171,23 +171,23 @@ PQsslAttribute 169 PQsetErrorContextVisibility 170 PQresultVerboseErrorMessage 171 @@ -44,12 +44,17 @@ diff -ur postgresql-16.1/src/interfaces/libpq/exports.txt postgresql_patched/src PQmblenBounded 185 PQsendFlushRequest 186 -PQconnectionUsedGSSAPI 187 +-PQclosePrepared 188 +PQconnectionUsedGSSAPI 187 16 ++PQclosePrepared 188 18 + PQclosePortal 189 + PQsendClosePrepared 190 + PQsendClosePortal 191 diff -ur postgresql-16.1/src/Makefile.shlib postgresql_patched/src/Makefile.shlib --- postgresql-16.1/src/Makefile.shlib 2023-11-06 23:04:27.000000000 +0100 +++ postgresql_patched/src/Makefile.shlib 2023-12-05 10:43:19.739634021 +0100 -@@ -185,7 +185,7 @@ - ifdef soname +@@ -176,7 +176,7 @@ + endif LINK.shared += -Wl,-soname,$(soname) endif - BUILD.exports = ( echo '{ global:'; $(AWK) '/^[^\#]/ {printf "%s;\n",$$1}' $<; echo ' local: *; };' ) >$@ diff --git a/libpq.spec b/libpq.spec index bc85739..2419153 100644 --- a/libpq.spec +++ b/libpq.spec @@ -1,16 +1,21 @@ -%global majorversion 16 +%global majorversion 18 %global obsoletes_version %( echo $(( %majorversion + 1 )) ) +%global betaversion 18beta1 Summary: PostgreSQL client library Name: libpq -Version: %{majorversion}.4 -Release: 2%{?dist} +Version: %{majorversion}.0 +Release: 1%{?dist} License: PostgreSQL Url: http://www.postgresql.org/ -Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2 -Source1: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2.sha256 +# Use this when 18.0 is released +# Source0: https://ftp.postgresql.org/pub/source/v%%{version}/postgresql-%%{version}.tar.bz2 +# Source1: https://ftp.postgresql.org/pub/source/v%%{version}/postgresql-%%{version}.tar.bz2.sha256 + +Source0: https://ftp.postgresql.org/pub/source/v%{betaversion}/postgresql-%{betaversion}.tar.bz2 +Source1: https://ftp.postgresql.org/pub/source/v%{betaversion}/postgresql-%{betaversion}.tar.bz2.sha256 # Comments for these patches are in the patch files. @@ -28,6 +33,7 @@ BuildRequires: gettext BuildRequires: multilib-rpm-config BuildRequires: make BuildRequires: libicu-devel +BuildRequires: perl Obsoletes: postgresql-libs < %obsoletes_version Provides: postgresql-libs = %version-%release @@ -58,7 +64,7 @@ package or any clients that need to connect to a PostgreSQL server. %prep ( cd "$(dirname "%SOURCE1")" ; sha256sum -c "%SOURCE1" ) -%autosetup -n postgresql-%version -p1 +%autosetup -n postgresql-%{betaversion} -p1 # remove .gitignore files to ensure none get into the RPMs (bug #642210) find . -type f -name .gitignore | xargs rm @@ -109,7 +115,6 @@ mv $RPM_BUILD_ROOT%{_includedir}/pgsql/errcodes.h \ %multilib_fix_c_header --file "%_includedir/pg_config.h" -%multilib_fix_c_header --file "%_includedir/pg_config_ext.h" find_lang_bins () { @@ -130,6 +135,8 @@ find_lang_bins %name-devel.lst pg_config %_libdir/libpq.so.5* %dir %_datadir/pgsql %doc %_datadir/pgsql/pg_service.conf.sample +%_datadir/pgsql/postgres.bki +%_datadir/pgsql/system_constraints.sql %files devel -f %name-devel.lst @@ -139,6 +146,9 @@ find_lang_bins %name-devel.lst pg_config %_libdir/pkgconfig/libpq.pc %changelog +* Mon Jun 09 2025 Nikola Davidova - 18.0-1 +- Rebase to upstream release 18.0 + * Fri Jan 17 2025 Fedora Release Engineering - 16.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild diff --git a/sources b/sources index 04b03aa..26803b0 100755 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (postgresql-16.4.tar.bz2) = f2070299f0857a270317ac984f8393374cf00d4f32a082fe3c5481e36c560595ea711fed95e40d1bc90c5089edf8f165649d443d8b9c68614e1c83fc91268e96 -SHA512 (postgresql-16.4.tar.bz2.sha256) = f5a33591b4a0810e2f90d21df471ba086acbd1f97099e38aed46e4d3b45ee72037ef5958c7f155dd9fb7969152599fb6946b792a12d92575bfbc595049b74674 +SHA512 (postgresql-18beta1.tar.bz2) = 881a3442552d282fbe03ea22fab4bdd818cb901f8410485f19867ff64dc577d50cd9f7bb898828aec9783ff7e482798ffae63ff1cbfd19c4e1c64fed9e0a2daf +SHA512 (postgresql-18beta1.tar.bz2.sha256) = fc8fb34666d899dde9bb3c5886dec3ea87241913d47a464f960d1d1b4b105c8b007a36dac6f62ae2c45b9d254fe3c1b1a32fa42693af43d8561a192fee4340d9 From 4f9cf9e4faead9de283dabdb18bab332e0f98299 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 20:12:06 +0000 Subject: [PATCH 10/11] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- libpq.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libpq.spec b/libpq.spec index 2419153..3098ae0 100644 --- a/libpq.spec +++ b/libpq.spec @@ -5,7 +5,7 @@ Summary: PostgreSQL client library Name: libpq Version: %{majorversion}.0 -Release: 1%{?dist} +Release: 2%{?dist} License: PostgreSQL Url: http://www.postgresql.org/ @@ -146,6 +146,9 @@ find_lang_bins %name-devel.lst pg_config %_libdir/pkgconfig/libpq.pc %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 18.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Mon Jun 09 2025 Nikola Davidova - 18.0-1 - Rebase to upstream release 18.0 From ace31f6aa0c5404a3508437c76badafcc77c4af8 Mon Sep 17 00:00:00 2001 From: Filip Janus Date: Wed, 17 Sep 2025 11:49:36 +0000 Subject: [PATCH 11/11] libpq: Remove server-based files from client library package - Remove postgres.bki and system_constraints.sql files from package - These files are server-specific and should not be included in the client library - Fixes issue introduced by previous rebase to PostgreSQL 18.0 Resolves packaging inconsistency where server files were incorrectly included in the client library package. --- libpq.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/libpq.spec b/libpq.spec index 3098ae0..4db4d81 100644 --- a/libpq.spec +++ b/libpq.spec @@ -5,7 +5,7 @@ Summary: PostgreSQL client library Name: libpq Version: %{majorversion}.0 -Release: 2%{?dist} +Release: 3%{?dist} License: PostgreSQL Url: http://www.postgresql.org/ @@ -112,7 +112,8 @@ rm -r $RPM_BUILD_ROOT%_includedir/pgsql/server mkdir -p $RPM_BUILD_ROOT%{_includedir}/pgsql/server/utils mv $RPM_BUILD_ROOT%{_includedir}/pgsql/errcodes.h \ $RPM_BUILD_ROOT%{_includedir}/pgsql/server/utils - +rm $RPM_BUILD_ROOT%_datadir/pgsql/postgres.bki +rm $RPM_BUILD_ROOT%_datadir/pgsql/system_constraints.sql %multilib_fix_c_header --file "%_includedir/pg_config.h" @@ -135,8 +136,6 @@ find_lang_bins %name-devel.lst pg_config %_libdir/libpq.so.5* %dir %_datadir/pgsql %doc %_datadir/pgsql/pg_service.conf.sample -%_datadir/pgsql/postgres.bki -%_datadir/pgsql/system_constraints.sql %files devel -f %name-devel.lst @@ -146,6 +145,9 @@ find_lang_bins %name-devel.lst pg_config %_libdir/pkgconfig/libpq.pc %changelog +* Wed Sep 17 2025 Filip Janus - 18.0-3 +- Removes server based files + * Thu Jul 24 2025 Fedora Release Engineering - 18.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild