import OL postgresql-16.11-1.module+el9.7.0+90762+9d88f05d

This commit is contained in:
eabdullin 2026-01-16 09:17:15 +00:00
parent b2135bab51
commit 5af7eb395f
6 changed files with 23 additions and 8 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
SOURCES/postgresql-15.14.tar.bz2
SOURCES/postgresql-16.10.tar.bz2
SOURCES/postgresql-16.11.tar.bz2
SOURCES/postgresql-setup-8.9.tar.gz

View File

@ -1,3 +1,3 @@
474c7ee4c36f34dac2080c7ec569f1b485df724e SOURCES/postgresql-15.14.tar.bz2
0bee6efb735cae0a40bd5584e96f26f1d16664ba SOURCES/postgresql-16.10.tar.bz2
7c93e10c6d400e76b0e2ab29334efde7d58cd0ba SOURCES/postgresql-16.11.tar.bz2
25a05ef36218b1de80d8eeb55f4b4e0b723bd7f6 SOURCES/postgresql-setup-8.9.tar.gz

View File

@ -1 +0,0 @@
de8485f4ce9c32e3ddfeef0b7c261eed1cecb54c9bcd170e437ff454cb292b42 postgresql-16.10.tar.bz2

View File

@ -0,0 +1 @@
6deb08c23d03d77d8f8bd1c14049eeef64aef8968fd8891df2dfc0b42f178eac postgresql-16.11.tar.bz2

View File

@ -1 +0,0 @@
d /run/postgresql 0755 postgres postgres -

View File

@ -62,7 +62,7 @@
Summary: PostgreSQL client programs
Name: postgresql
%global majorversion 16
Version: %{majorversion}.10
Version: %{majorversion}.11
Release: 1%{?dist}
# The PostgreSQL license is very similar to other MIT licenses, but the OSI
@ -87,7 +87,6 @@ Source0: https://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}
# The PDF file is generated by generate-pdf.sh, which see for comments
Source3: https://ftp.postgresql.org/pub/source/v%{prevversion}/postgresql-%{prevversion}.tar.bz2
Source4: Makefile.regress
Source9: postgresql.tmpfiles.d
Source10: postgresql.pam
Source11: postgresql-bashprofile
@ -445,6 +444,15 @@ find . -type f -name Makefile -exec sed -i -e "s/SO_MAJOR_VERSION=\s\?\([0-9]\+\
# remove .gitignore files to ensure none get into the RPMs (bug #642210)
find . -type f -name .gitignore | xargs rm
cat > postgresql.sysusers.conf <<EOF
u postgres 26 'PostgreSQL Server' /var/lib/pgsql /bin/bash
EOF
cat > postgresql.tmpfiles.conf <<EOF
d /run/postgresql 0755 postgres postgres -
d /var/lib/pgsql 0700 postgres postgres -
EOF
%build
# Avoid LTO on armv7hl as it runs out of memory
@ -702,7 +710,9 @@ install -m 644 %{SOURCE10} $RPM_BUILD_ROOT/etc/pam.d/postgresql
%endif
mkdir -p $RPM_BUILD_ROOT%{_tmpfilesdir}
install -m 0644 %{SOURCE9} $RPM_BUILD_ROOT%{_tmpfilesdir}/postgresql.conf
install -m 0644 postgresql.tmpfiles.conf $RPM_BUILD_ROOT%{_tmpfilesdir}/postgresql.conf
install -m 0644 -D postgresql.sysusers.conf $RPM_BUILD_ROOT%{_sysusersdir}/postgresql.conf
# PGDATA needs removal of group and world permissions due to pg_pwd hole.
install -d -m 700 $RPM_BUILD_ROOT%{?_localstatedir}/lib/pgsql/data
@ -1112,6 +1122,7 @@ make -C postgresql-setup-%{setup_version} check
%{_mandir}/man1/postgresql-upgrade.*
%{_sbindir}/postgresql-new-systemd-unit
%{_tmpfilesdir}/postgresql.conf
%{_sysusersdir}/postgresql.conf
%{_unitdir}/*postgresql*.service
%attr(700,postgres,postgres) %dir %{?_localstatedir}/lib/pgsql
%attr(644,postgres,postgres) %config(noreplace) %{?_localstatedir}/lib/pgsql/.bash_profile
@ -1218,7 +1229,12 @@ make -C postgresql-setup-%{setup_version} check
%changelog
* Fri Aug 15 2025 Filip Janus <fjanus@redhat.com> - 16.10-1
* Fri Dec 05 2025 Filip Janus <fjanus@redhat.com> - 16.11-1
- Update to 16.11
- Add sysusers configuration and generate tmpfiles.d dynamically
- Resolves: RHEL-123193 (CVE-2025-12818)
* Wed Sep 3 2025 Filip Janus <fjanus@redhat.com> - 16.10-1
- Update to 16.10
* Tue Feb 18 2025 Filip Janus <fjanus@redhat.com> - 16.8-1