Compare commits

...
Sign in to create a new pull request.

34 commits

Author SHA1 Message Date
Packit
54bbb24079 Update to 16.11 upstream release
- Resolves: rhbz#2414832

Commit authored by Packit automation (https://packit.dev/)
2025-11-13 15:05:06 +00:00
Filip Janus
9f35c14618 Add OpenSSL support to upgrade_configure function
- Add --with-openssl parameter to upgrade_configure function
- This ensures upgrade server is compiled with OpenSSL support
- Required for SSL/TLS connections during database upgrades
- Bump release to 16.10-2
2025-09-09 19:53:52 +00:00
Packit
3eef9b7f69 Update to 16.10 upstream release
- Resolves: rhbz#2388580

Commit authored by Packit automation (https://packit.dev/)
2025-08-14 16:06:53 +00:00
František Zatloukal
3004e003d4 Rebuilt for icu 77.1 2025-08-06 09:57:02 +02:00
Fedora Release Engineering
349f48f183 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 06:04:17 +00:00
Nikola Davidova
27a75ba780 Make postgresql16 non default 2025-07-22 13:52:42 +02:00
Jitka Plesnikova
f33689347e Perl 5.42 rebuild 2025-07-07 16:43:50 +02:00
Filip Janus
51276f54f1 Enable zstd support 2025-06-25 06:20:56 +00:00
Filip Janus
042df027b0 Add tmpfiles.d configuration 2025-06-24 21:32:47 +00:00
Python Maint
290d36f9d8 Rebuilt for Python 3.14 2025-06-02 19:59:38 +02:00
Packit
4e5009ca14 Update to 16.9 upstream release
- Resolves: rhbz#2365100

Commit authored by Packit automation (https://packit.dev/)
2025-05-21 07:17:57 +00:00
Packit
72061a9ba2 Update to 16.9 upstream release
- Resolves: rhbz#2365100

Commit authored by Packit automation (https://packit.dev/)
2025-05-08 14:33:41 +00:00
Zbigniew Jędrzejewski-Szmek
792d356289 Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
2025-02-26 22:14:20 +01:00
Packit
78d431c36a Update to 16.8 upstream release
- Resolves: rhbz#2282749

Commit authored by Packit automation (https://packit.dev/)
2025-02-26 06:48:55 +00:00
Filip Janus
4bee6b7687 add packit support for all versions of supported fedora
packit-update-sources.sh script is related to this change
2025-02-26 06:45:03 +00:00
Packit
84ff0438ce Update to 16.8 upstream release
- Resolves: rhbz#2282749

Commit authored by Packit automation (https://packit.dev/)
2025-02-26 06:31:53 +00:00
Filip Janus
8cd443c549 Add missing suffix in packit helper script 2025-02-25 22:09:00 +00:00
Filip Janus
28b8023ffd fix typo in packit helper script 2025-02-24 21:58:57 +00:00
Filip Janus
de696001ac Fix helper script 2025-02-24 21:35:01 +00:00
Filip Janus
90650b6371 add x flag for packit script 2025-02-24 10:58:36 +00:00
Filip Janus
6e4e3dd713 Packit onboarding add helper script 2025-02-24 10:26:12 +00:00
Filip Janus
1bc1753d81 update to 16.6
stick with std=c18
2025-01-29 12:31:27 +00:00
Fedora Release Engineering
705af7d6d4 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 10:38:46 +00:00
Pete Walter
84c13e436e Rebuild for ICU 76 2024-12-08 22:39:37 +00:00
Yaakov Selkowitz
e0a3c723a9 Fix tclconfig location for flatpaks
As of F41, tcl is part of the flatpak runtime, and is therefore in /usr
even when building in /app.
2024-09-26 10:55:11 -04:00
Yaakov Selkowitz
0b4a6b39f4 Fix flatpak build
tzdata is part of the runtime and therefore remains in /usr even for
flatpaks.  The initscripts (which are unused in flatpaks) are installed
into /usr regardless, just like the systemd units.
2024-09-17 01:06:15 +00:00
Filip
4055d7a0f2 Fix typos in provides 2024-09-16 21:08:41 +02:00
Filip Janus
fed07ce08a Add Obsoletes: postgresqlXX to make the upgrade path from alternative version clear 2024-08-28 10:01:12 +02:00
Lumir Balhar
b005b05197 Add new systemtap-sdt-dtrace to build deps
This is a part of approved Fedora change:
https://fedoraproject.org/wiki/Changes/Separate_dtrace_package

systemtap-sdt-devel will stop requiring systemtap-sdt-dtrace
and that would break the build of this package.
2024-07-29 13:17:16 +02:00
Fedora Release Engineering
e03e328e88 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 08:20:17 +00:00
Filip Janus
7fa64c3e44 Disable ENGINE API 2024-07-03 12:54:17 +02:00
Ales Nezbeda
4a7744bef2 Update to 16.3 and 15.7
LibXML and OpenSSL patches no longer needed.
2024-06-17 15:05:35 +02:00
Jitka Plesnikova
c23a399ca1 Perl 5.40 rebuild 2024-06-12 12:55:37 +02:00
Python Maint
ab3a6898d4 Rebuilt for Python 3.13 2024-06-07 08:34:01 +02:00
9 changed files with 178 additions and 244 deletions

22
.gitignore vendored
View file

@ -3,3 +3,25 @@
/postgresql-16.1.tar.bz2
/postgresql-16.1.tar.bz2.sha256
/postgresql-setup-8.9.tar.gz
/postgresql-15.7.tar.bz2
/postgresql-16.3.tar.bz2
/postgresql-15.7.tar.bz2.sha256
/postgresql-16.3.tar.bz2.sha256
/postgresql-16.6.tar.bz2
/postgresql-16.6.tar.bz2.sha256
/postgresql-16.8.tar.bz2
/postgresql-15.12.tar.bz2
/postgresql-16.8.tar.bz2.sha256
/postgresql-15.12.tar.bz2.sha256
/postgresql-16.9.tar.bz2
/postgresql-15.13.tar.bz2
/postgresql-16.9.tar.bz2.sha256
/postgresql-15.13.tar.bz2.sha256
/postgresql-16.10.tar.bz2
/postgresql-15.14.tar.bz2
/postgresql-16.10.tar.bz2.sha256
/postgresql-15.14.tar.bz2.sha256
/postgresql-16.11.tar.bz2
/postgresql-15.15.tar.bz2
/postgresql-16.11.tar.bz2.sha256
/postgresql-15.15.tar.bz2.sha256

3
README.packit Normal file
View file

@ -0,0 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.12.0.post1.dev18+gc39b0e7d4.

8
packit-update-sources.sh Executable file
View file

@ -0,0 +1,8 @@
git clone --depth 1 --branch master https://github.com/postgres/postgres.git
pushd postgres
git fetch --tags
NEW_MINOR=$(git tag -l "REL_15_*" | sed -E "s/REL_15_([0-9]+)/\1/" | sort -n | tail -n 1)
popd
pushd $PACKIT_DOWNSTREAM_REPO
sed -i "s/\(%global prevversion %{prevmajorversion}\)\.[0-9]\+/\1.$NEW_MINOR/" $PACKIT_DOWNSTREAM_PACKAGE_NAME.spec
popd

19
packit.yaml Normal file
View file

@ -0,0 +1,19 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/
actions:
pre-sync:
- bash -c "$PACKIT_DOWNSTREAM_REPO/packit-update-sources.sh"
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-all
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches:
fedora-all

View file

@ -1,37 +0,0 @@
Fixes for GCC 14 and libxml2 2.12.0 "error: Make more xmlError structs constant"
xml.c: In function pg_xml_init:
xml.c:1177:52: error: passing argument 2 of xmlSetStructuredErrorFunc from incompatible pointer type [-Wincompatible-pointer-types]
1177 | xmlSetStructuredErrorFunc((void *) errcxt, xml_errorHandler);
| ^~~~~~~~~~~~~~~~
| |
| void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}
In file included from /usr/include/libxml2/libxml/valid.h:15,
from /usr/include/libxml2/libxml/parser.h:19,
from xml.c:50:
/usr/include/libxml2/libxml/xmlerror.h:898:57: note: expected xmlStructuredErrorFunc {aka void (*)(void *, const struct _xmlError *)} but argument is of type void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}
898 | xmlStructuredErrorFunc handler);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
diff --git a/src/backend/utils/adt/xml.c b/src/backend/utils/adt/xml.c
index d3db75eb87..619f908c6d 100644
--- a/src/backend/utils/adt/xml.c
+++ b/src/backend/utils/adt/xml.c
@@ -124,7 +124,7 @@ static xmlParserInputPtr xmlPgEntityLoader(const char *URL, const char *ID,
xmlParserCtxtPtr ctxt);
static void xml_errsave(Node *escontext, PgXmlErrorContext *errcxt,
int sqlcode, const char *msg);
-static void xml_errorHandler(void *data, xmlErrorPtr error);
+static void xml_errorHandler(void *data, const xmlError *error);
static int errdetail_for_xml_code(int code);
static void chopStringInfoNewlines(StringInfo str);
static void appendStringInfoLineSeparator(StringInfo str);
@@ -2044,7 +2044,7 @@ xml_errsave(Node *escontext, PgXmlErrorContext *errcxt,
* Error handler for libxml errors and warnings
*/
static void
-xml_errorHandler(void *data, xmlErrorPtr error)
+xml_errorHandler(void *data, const xmlError *error)
{
PgXmlErrorContext *xmlerrcxt = (PgXmlErrorContext *) data;
xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) error->ctxt;

View file

@ -1,142 +0,0 @@
Backport of commit b2b1f12882fb561c7d474b834044dd8ed570bfea to 16.1
Use BIO_{get,set}_app_data instead of BIO_{get,set}_data.
We should have done it this way all along, but we accidentally got
away with using the wrong BIO field up until OpenSSL 3.2. There,
the library's BIO routines that we rely on use the "data" field
for their own purposes, and our conflicting use causes assorted
weird behaviors up to and including core dumps when SSL connections
are attempted. Switch to using the approved field for the purpose,
i.e. app_data.
While at it, remove our configure probes for BIO_get_data as well
as the fallback implementation. BIO_{get,set}_app_data have been
there since long before any OpenSSL version that we still support,
even in the back branches.
Also, update src/test/ssl/t/001_ssltests.pl to allow for a minor
change in an error message spelling that evidently came in with 3.2.
Tristan Partin and Bo Andreson. Back-patch to all supported branches.
Discussion: https://postgr.es/m/CAN55FZ1eDDYsYaL7mv+oSLUij2h_u6hvD4Qmv-7PK7jkji0uyQ@mail.gmail.com
---
diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c
index 31b6a6eacdf0..1b8b32c5b39e 100644
--- a/src/backend/libpq/be-secure-openssl.c
+++ b/src/backend/libpq/be-secure-openssl.c
@@ -842,11 +842,6 @@ be_tls_write(Port *port, void *ptr, size_t len, int *waitfor)
* to retry; do we need to adopt their logic for that?
*/
-#ifndef HAVE_BIO_GET_DATA
-#define BIO_get_data(bio) (bio->ptr)
-#define BIO_set_data(bio, data) (bio->ptr = data)
-#endif
-
static BIO_METHOD *my_bio_methods = NULL;
static int
@@ -856,7 +851,7 @@ my_sock_read(BIO *h, char *buf, int size)
if (buf != NULL)
{
- res = secure_raw_read(((Port *) BIO_get_data(h)), buf, size);
+ res = secure_raw_read(((Port *) BIO_get_app_data(h)), buf, size);
BIO_clear_retry_flags(h);
if (res <= 0)
{
@@ -876,7 +871,7 @@ my_sock_write(BIO *h, const char *buf, int size)
{
int res = 0;
- res = secure_raw_write(((Port *) BIO_get_data(h)), buf, size);
+ res = secure_raw_write(((Port *) BIO_get_app_data(h)), buf, size);
BIO_clear_retry_flags(h);
if (res <= 0)
{
@@ -952,7 +947,7 @@ my_SSL_set_fd(Port *port, int fd)
SSLerr(SSL_F_SSL_SET_FD, ERR_R_BUF_LIB);
goto err;
}
- BIO_set_data(bio, port);
+ BIO_set_app_data(bio, port);
BIO_set_fd(bio, fd, BIO_NOCLOSE);
SSL_set_bio(port->ssl, bio, bio);
diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c
index 4aeaf08312ce..e669bdbf1d2d 100644
--- a/src/interfaces/libpq/fe-secure-openssl.c
+++ b/src/interfaces/libpq/fe-secure-openssl.c
@@ -1815,11 +1815,6 @@ PQsslAttribute(PGconn *conn, const char *attribute_name)
* to retry; do we need to adopt their logic for that?
*/
-#ifndef HAVE_BIO_GET_DATA
-#define BIO_get_data(bio) (bio->ptr)
-#define BIO_set_data(bio, data) (bio->ptr = data)
-#endif
-
static BIO_METHOD *my_bio_methods;
static int
@@ -1828,7 +1823,7 @@ my_sock_read(BIO *h, char *buf, int size)
{
int res;
- res = pqsecure_raw_read((PGconn *) BIO_get_data(h), buf, size);
+ res = pqsecure_raw_read((PGconn *) BIO_get_app_data(h), buf, size);
BIO_clear_retry_flags(h);
if (res < 0)
{
@@ -1858,7 +1853,7 @@ my_sock_write(BIO *h, const char *buf, int size)
{
int res;
- res = pqsecure_raw_write((PGconn *) BIO_get_data(h), buf, size);
+ res = pqsecure_raw_write((PGconn *) BIO_get_app_data(h), buf, size);
BIO_clear_retry_flags(h);
if (res < 0)
{
@@ -1968,7 +1963,7 @@ my_SSL_set_fd(PGconn *conn, int fd)
SSLerr(SSL_F_SSL_SET_FD, ERR_R_BUF_LIB);
goto err;
}
- BIO_set_data(bio, conn);
+ BIO_set_app_data(bio, conn);
SSL_set_bio(conn->ssl, bio, bio);
BIO_set_fd(bio, fd, BIO_NOCLOSE);
diff --git a/src/test/ssl/t/001_ssltests.pl b/src/test/ssl/t/001_ssltests.pl
index a049fd2ff03a..d921f1dde9fa 100644
--- a/src/test/ssl/t/001_ssltests.pl
+++ b/src/test/ssl/t/001_ssltests.pl
@@ -776,7 +776,7 @@ sub switch_server_cert
"$common_connstr user=ssltestuser sslcert=ssl/client-revoked.crt "
. sslkey('client-revoked.key'),
"certificate authorization fails with revoked client cert",
- expected_stderr => qr/SSL error: sslv3 alert certificate revoked/,
+ expected_stderr => qr|SSL error: ssl[a-z0-9/]* alert certificate revoked|,
# temporarily(?) skip this check due to timing issue
# log_like => [
# qr{Client certificate verification failed at depth 0: certificate revoked},
@@ -881,7 +881,7 @@ sub switch_server_cert
"$common_connstr user=ssltestuser sslcert=ssl/client-revoked.crt "
. sslkey('client-revoked.key'),
"certificate authorization fails with revoked client cert with server-side CRL directory",
- expected_stderr => qr/SSL error: sslv3 alert certificate revoked/,
+ expected_stderr => qr|SSL error: ssl[a-z0-9/]* alert certificate revoked|,
# temporarily(?) skip this check due to timing issue
# log_like => [
# qr{Client certificate verification failed at depth 0: certificate revoked},
@@ -894,7 +894,7 @@ sub switch_server_cert
"$common_connstr user=ssltestuser sslcert=ssl/client-revoked-utf8.crt "
. sslkey('client-revoked-utf8.key'),
"certificate authorization fails with revoked UTF-8 client cert with server-side CRL directory",
- expected_stderr => qr/SSL error: sslv3 alert certificate revoked/,
+ expected_stderr => qr|SSL error: ssl[a-z0-9/]* alert certificate revoked|,
# temporarily(?) skip this check due to timing issue
# log_like => [
# qr{Client certificate verification failed at depth 0: certificate revoked},

View file

@ -1,37 +0,0 @@
Fixes for GCC 14 and libxml2 2.12.0 "error: Make more xmlError structs constant"
xml.c: In function pg_xml_init:
xml.c:1177:52: error: passing argument 2 of xmlSetStructuredErrorFunc from incompatible pointer type [-Wincompatible-pointer-types]
1177 | xmlSetStructuredErrorFunc((void *) errcxt, xml_errorHandler);
| ^~~~~~~~~~~~~~~~
| |
| void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}
In file included from /usr/include/libxml2/libxml/valid.h:15,
from /usr/include/libxml2/libxml/parser.h:19,
from xml.c:50:
/usr/include/libxml2/libxml/xmlerror.h:898:57: note: expected xmlStructuredErrorFunc {aka void (*)(void *, const struct _xmlError *)} but argument is of type void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)}
898 | xmlStructuredErrorFunc handler);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
diff --git a/src/backend/utils/adt/xml.c b/src/backend/utils/adt/xml.c
index 6411f56b99..0eb39fcfc2 100644
--- a/src/backend/utils/adt/xml.c
+++ b/src/backend/utils/adt/xml.c
@@ -119,7 +119,7 @@ struct PgXmlErrorContext
static xmlParserInputPtr xmlPgEntityLoader(const char *URL, const char *ID,
xmlParserCtxtPtr ctxt);
-static void xml_errorHandler(void *data, xmlErrorPtr error);
+static void xml_errorHandler(void *data, const xmlError *error);
static void xml_ereport_by_code(int level, int sqlcode,
const char *msg, int errcode);
static void chopStringInfoNewlines(StringInfo str);
@@ -1749,7 +1749,7 @@ xml_ereport(PgXmlErrorContext *errcxt, int level, int sqlcode, const char *msg)
* Error handler for libxml errors and warnings
*/
static void
-xml_errorHandler(void *data, xmlErrorPtr error)
+xml_errorHandler(void *data, const xmlError *error)
{
PgXmlErrorContext *xmlerrcxt = (PgXmlErrorContext *) data;
xmlParserCtxtPtr ctxt = (xmlParserCtxtPtr) error->ctxt;

View file

@ -29,7 +29,7 @@
%{!?sdt:%global sdt 1}
%{!?selinux:%global selinux 1}
%{!?runselftest:%global runselftest 1}
%{!?postgresql_default:%global postgresql_default 1}
%{!?postgresql_default:%global postgresql_default 0}
%global majorname postgresql
%global majorversion 16
@ -47,8 +47,8 @@
Summary: PostgreSQL client programs
Name: %{majorname}%{majorversion}
Version: %{majorversion}.1
Release: 7%{?dist}
Version: %{majorversion}.11
Release: 1%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
# recognizes it as an independent license, so we do as well.
@ -60,7 +60,7 @@ Url: http://www.postgresql.org/
# that this be kept up with the latest minor release of the previous series;
# but update when bugs affecting pg_dump output are fixed.
%global prevmajorversion 15
%global prevversion %{prevmajorversion}.5
%global prevversion %{prevmajorversion}.15
%global prev_prefix %{_libdir}/pgsql/postgresql-%{prevmajorversion}
%global precise_version %{?epoch:%epoch:}%version-%release
@ -95,9 +95,6 @@ Patch9: postgresql-server-pg_config.patch
# rhbz#1940964
Patch10: postgresql-datalayout-mismatch-on-s390.patch
Patch12: postgresql-no-libecpg.patch
Patch13: postgresql-libxml2.patch
Patch14: postgresql15-libxml2.patch
Patch15: postgresql-openssl32.patch
# This macro is used for package names in the files section
%if %?postgresql_default
@ -110,6 +107,7 @@ Summary: PostgreSQL client programs
BuildRequires: make
BuildRequires: lz4-devel
BuildRequires: libzstd-devel
BuildRequires: gcc
BuildRequires: perl(ExtUtils::MakeMaker) glibc-devel bison flex gawk
BuildRequires: perl(ExtUtils::Embed), perl-devel
@ -166,6 +164,7 @@ BuildRequires: pam-devel
%if %sdt
BuildRequires: systemtap-sdt-devel
BuildRequires: systemtap-sdt-dtrace
%endif
%if %selinux
@ -180,6 +179,7 @@ BuildRequires: libicu-devel
%define postgresqlXX_if_default() %{expand:\
Provides: postgresql%{majorversion}%{?1:-%{1}} = %precise_version\
Provides: postgresql%{majorversion}%{?1:-%{1}}%{?_isa} = %precise_version\
Obsoletes: postgresql%{majorversion}%{?1:-%{1}}\
}
%else
%define postgresqlXX_if_default() %{nil}
@ -265,7 +265,6 @@ will interact with a PostgreSQL server.
%package -n %{pkgname}-server
Summary: The programs needed to create and run a PostgreSQL server
Requires: %{pkgname}%{?_isa} = %precise_version
Requires(pre): /usr/sbin/useradd
# We require this to be present for %%{_prefix}/lib/tmpfiles.d
Requires: systemd
# Make sure it's there when scriptlets run, too
@ -435,7 +434,7 @@ Requires: %{pkgname}-server%{?_isa} = %precise_version
Provides: %{pkgname}-plpython3 = %precise_version
Provides: %{pkgname}-plpython3%{?_isa} = %precise_version
%virtual_conflicts_and_provides python3
%virtual_conflicts_and_provides plpython3
%description -n %{pkgname}-plpython3
The postgresql-plpython3 package contains the PL/Python3 procedural language,
@ -451,7 +450,7 @@ Requires: %{pkgname}-server%{?_isa} = %precise_version
Provides: %{pkgname}-pltcl = %precise_version
Provides: %{pkgname}-pltcl%{?_isa} = %precise_version
%virtual_conflicts_and_provides plctl
%virtual_conflicts_and_provides pltcl
%description -n %{pkgname}-pltcl
The postgresql-pltcl package contains the PL/Tcl procedural language,
@ -520,8 +519,6 @@ goal of accelerating analytics queries.
%endif
%patch 9 -p1
%patch 10 -p1
%patch 13 -p1
%patch 15 -p1
%if ! %external_libpq
@ -538,14 +535,20 @@ tar xfj %{SOURCE3}
find . -type f -name Makefile -exec sed -i -e "s/SO_MAJOR_VERSION=\s\?\([0-9]\+\)/SO_MAJOR_VERSION= %{private_soname}-\1/" {} \;
%endif
%patch 14 -p1 -d postgresql-%{prevversion}
# apply once SOURCE3 is extracted
%endif
# remove .gitignore files to ensure none get into the RPMs (bug #642210)
find . -type f -name .gitignore | xargs rm
# Create a sysusers.d config file
cat >postgresql16.sysusers.conf <<EOF
u postgres 26 'PostgreSQL Server' /var/lib/pgsql /bin/bash
EOF
cat > postgresql16.tmpfiles.conf <<EOF
d /var/lib/pgsql 0700 postgres postgres -
EOF
%build
# Avoid LTO on armv7hl as it runs out of memory
@ -578,6 +581,7 @@ cd ..
# Fiddling with CFLAGS.
CFLAGS="${CFLAGS:-%optflags}"
CFLAGS="$CFLAGS -DOPENSSL_NO_ENGINE -std=c18"
# Strip out -ffast-math from CFLAGS....
CFLAGS=`echo $CFLAGS|xargs -n 1|grep -v ffast-math|xargs -n 100`
export CFLAGS
@ -589,7 +593,7 @@ common_configure_options='
%endif
%if %pltcl
--with-tcl
--with-tclconfig=%_libdir
--with-tclconfig=/usr/%_lib
%endif
%if %ldap
--with-ldap
@ -619,10 +623,11 @@ common_configure_options='
%if %selinux
--with-selinux
%endif
--with-system-tzdata=%_datadir/zoneinfo
--with-system-tzdata=/usr/share/zoneinfo
--datadir=%_datadir/pgsql
--with-systemd
--with-lz4
--with-zstd
%if %icu
--with-icu
%endif
@ -704,12 +709,13 @@ upgrade_configure ()
# its ideas about installation paths.
# The -fno-aggressive-loop-optimizations is hack for #993532
CFLAGS="$CFLAGS -fno-aggressive-loop-optimizations" ./configure \
CFLAGS="$CFLAGS -fno-aggressive-loop-optimizations -DOPENSSL_NO_ENGINE" ./configure \
--build=%{_build} \
--host=%{_host} \
--prefix=%prev_prefix \
--disable-rpath \
--with-lz4 \
--with-zstd \
%if %icu
--with-icu \
%endif
@ -742,12 +748,15 @@ upgrade_configure ()
--enable-dtrace \
%endif
%if %selinux
%if %ssl
--with-openssl \
%endif
--with-selinux \
%endif
%if %plpython3
--with-python \
%endif
--with-tclconfig=%_libdir \
--with-tclconfig=/usr/%_lib \
--with-system-tzdata=/usr/share/zoneinfo \
"$@"
}
@ -949,10 +958,9 @@ find_lang_bins pltcl.lst pltcl
%endif
%endif
%pre -n %{pkgname}-server
/usr/sbin/groupadd -g 26 -o -r postgres >/dev/null 2>&1 || :
/usr/sbin/useradd -M -N -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
-c "PostgreSQL Server" -u 26 postgres >/dev/null 2>&1 || :
install -m0644 -D postgresql16.sysusers.conf %{buildroot}%{_sysusersdir}/postgresql16.conf
install -m0644 -D postgresql16.tmpfiles.conf %{buildroot}%{_tmpfilesdir}/postgresql16.conf
%post -n %{pkgname}-server
%systemd_post %service_name
@ -1195,6 +1203,7 @@ make -C postgresql-setup-%{setup_version} check
%{_datadir}/pgsql/system_constraints.sql
%{_datadir}/pgsql/system_functions.sql
%{_datadir}/pgsql/system_views.sql
%{_datadir}/pgsql/fix-CVE-2024-4317.sql
%{_datadir}/pgsql/timezonesets/
%{_datadir}/pgsql/tsearch_data/
%dir %{_datadir}/postgresql-setup
@ -1207,8 +1216,8 @@ make -C postgresql-setup-%{setup_version} check
%{_libdir}/pgsql/pg_prewarm.so
%{_libdir}/pgsql/pgoutput.so
%{_libdir}/pgsql/plpgsql.so
%dir %{_libexecdir}/initscripts/legacy-actions/postgresql
%{_libexecdir}/initscripts/legacy-actions/postgresql/*
%dir %{_usr}/libexec/initscripts/legacy-actions/postgresql
%{_usr}/libexec/initscripts/legacy-actions/postgresql/*
%{_libexecdir}/postgresql-check-db-dir
%dir %{_sysconfdir}/postgresql-setup
%dir %{_sysconfdir}/postgresql-setup/upgrade
@ -1237,6 +1246,8 @@ make -C postgresql-setup-%{setup_version} check
%if %pam
%config(noreplace) /etc/pam.d/postgresql
%endif
%{_sysusersdir}/postgresql16.conf
%{_tmpfilesdir}/postgresql16.conf
%files -n %{pkgname}-server-devel -f devel.lst
@ -1334,6 +1345,93 @@ make -C postgresql-setup-%{setup_version} check
%changelog
* Thu Nov 13 2025 Packit <hello@packit.dev> - 16.11-1
- Update to version 16.11
- Resolves: rhbz#2414832
* Tue Sep 09 2025 Filip Janus <fjanus@redhat.com> - 16.10-2
- Add OpenSSL support to upgrade_configure function
- This ensures upgrade server is compiled with OpenSSL support
- Required for SSL/TLS connections during database upgrades
* Thu Aug 14 2025 Packit <hello@packit.dev> - 16.10-1
- Update to version 16.10
- Resolves: rhbz#2388580
* Wed Aug 06 2025 František Zatloukal <fzatlouk@redhat.com> - 16.9-8
- Rebuilt for icu 77.1
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 16.9-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jul 22 2025 Nikola Davidova <ndavidov@redhat.com> - 16.9-6
- Make Postgresql16 non default
* Mon Jul 07 2025 Jitka Plesnikova <jplesnik@redhat.com> - 16.9-5
- Perl 5.42 rebuild
* Wed Jun 25 2025 Filip Janus <fjanus@redhat.com> - 16.9-4
- Enable zstd
* Mon Jun 16 2025 Filip Janus <fjanus@redhat.com> - 16.9-3
- Add tmpfiles.d configuration file definition
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 16.9-2
- Rebuilt for Python 3.14
* Wed May 21 2025 Packit <hello@packit.dev> - 16.9-1
- Update to version 16.9
- Resolves: rhbz#2365100
* Wed Feb 26 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 16.8-2
- Add sysusers.d config file to allow rpm to create users/groups automatically
* Wed Feb 26 2025 Packit <hello@packit.dev> - 16.8-1
- Update to version 16.8
- Resolves: rhbz#2282749
* Wed Feb 26 2025 Packit <hello@packit.dev> - 16.8-1
- Update to version 16.8
- Resolves: rhbz#2282749
* Wed Jan 29 2025 Filip Janus <fjanus@redhat.com> - 16.6-1
- Update to 16.6
- stick with std=C18
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 16.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Sun Dec 08 2024 Pete Walter <pwalter@fedoraproject.org> - 16.3-7
- Rebuild for ICU 76
* Mon Sep 16 2024 Filip Janus <fjanus@redhat.com> - 16.3-6
- Fix typos in provides
* Mon Aug 05 2024 Filip Janus <fjanus@redhat.com> - 16.3-5
- Add Obsoletes of versioned alternative stream from F39
- It makes the upgrade path clear
* Mon Jul 29 2024 Lumír Balhar <lbalhar@redhat.com> - 16.3-4
- Add new systemtap-sdt-dtrace to build deps
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 16.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Wed Jul 3 2024 Filip Janus <fjanus@redhat.com> - 16.3-2
- Disable openssl ENGINE_API
- Fedora change: https://fedoraproject.org/wiki/Changes/OpensslDeprecateEngine
- BZ: 2295339
* Mon Jun 17 2024 Ales Nezbeda <anezbeda@redhat.com> - 16.3-1
- Update to 16.3
- Remove unneeded libXML and OpenSSL patches
* Wed Jun 12 2024 Jitka Plesnikova <jplesnik@redhat.com> - 16.1-9
- Perl 5.40 rebuild
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 16.1-8
- Rebuilt for Python 3.13
* Mon Feb 26 2024 Filip Janus <fjanus@redhat.com> - 16.1-7
- Remove /var/run/postgresql

8
sources Executable file → Normal file
View file

@ -1,5 +1,5 @@
SHA512 (postgresql-15.5.tar.bz2) = 9ed9d160b3cef99954ccd47a970c107b7e3b0196a7d848f740bf3c52a1c626f6f457814c97f37b9f0467bb07734e19806a15bd9cf3c39445e1d89e75b37064cc
SHA512 (postgresql-15.5.tar.bz2.sha256) = 896ad3a1952f54bc5186d49eb4faec40843813d3e1c200f7b27f0e099b426ef9b59e0c15cb5453ac166e8a566b24178b95836776207de0bf19f5e021fdccfbca
SHA512 (postgresql-16.1.tar.bz2) = 69f4635e5841452599f13b47df41ce2425ab34b4e4582fd2c635bc78d561fa36c5b03eccb4ae6569872dc74775be1b5a62dee20c9a4f12a43339250128352918
SHA512 (postgresql-16.1.tar.bz2.sha256) = 3f573d81a7af02dea2a3eee180d4e465546fc4d283dde5b6627d25af0be4a546ffd3ae914dd3490e45264d1a43cf143e829e14e5cd9c6bd8f179b6eae4fd6ff1
SHA512 (postgresql-16.11.tar.bz2) = f11f8f3e5855cfce27108a1bd2122c5a7a1ff37c6d9366d7a96a041aab67a4e4a31e54f0757b6b97c72d841acdcaa97d3eaa765213d4899b2cf7047c549012b8
SHA512 (postgresql-15.15.tar.bz2) = efd5dcdb6e45bc13cd4b1b73f4de19fc3ae2bac96e85086cacd649bfbf50969429c40193e86717380759c6995204c18e14ac5352565d5ae85df61c0a127a1562
SHA512 (postgresql-setup-8.9.tar.gz) = 118e9ebf858722a38b0e90324bc1b49fc7058cda601ca0a7e78c94e7b95e89d6dbbc46f377626364b068614ced3cde3cb4733973ad2d71bf17892ad773657ef7
SHA512 (postgresql-16.11.tar.bz2.sha256) = 3c07dc85608f8cee5071bd7d404feff1c767afb468a8f41225b73d5df05334dca9a3465e16307a3b5b21c1a44684deab0c496fbd03b9d061e4a9559684876671
SHA512 (postgresql-15.15.tar.bz2.sha256) = dcabc9fceaa557dac1d6d5b014d21ec6edfb7409103651820126351b5534c1605255f36bb18d654cd537f5128e705d2847f2bd52e38c6dd442a21c0722f39b76