[packages/postgresql] Update bconds, drop some patches

arekm arekm at pld-linux.org
Wed Aug 12 20:53:34 CEST 2026


commit 849a80d44b7fb2eee62e074072d16a5e33cb3a96
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Aug 12 20:52:46 2026 +0200

    Update bconds, drop some patches

 ac.patch                          | 13 +++----------
 postgresql-absolute_dbpaths.patch | 11 -----------
 postgresql.spec                   | 14 +++++---------
 3 files changed, 8 insertions(+), 30 deletions(-)
---
diff --git a/postgresql.spec b/postgresql.spec
index c0e31ae..01f373f 100644
--- a/postgresql.spec
+++ b/postgresql.spec
@@ -19,8 +19,6 @@
 %bcond_without	io_uring		# io_uring support
 %bcond_without	numa			# NUMA support
 %bcond_with	systemtap		# systemtap/dtrace probes
-%bcond_with	absolute_dbpaths	# enable absolute paths to create database
-					# (disabled by default because it is a security risk)
 #
 
 %define mver 18
@@ -50,7 +48,6 @@ Source4:	%{name}@.service
 Source5:	%{name}.service
 Source6:	%{name}.target
 Patch0:		%{name}-conf.patch
-Patch1:		%{name}-absolute_dbpaths.patch
 Patch2:		%{name}-ecpg-includedir.patch
 Patch3:		ac.patch
 Patch5:		%{name}-heimdal.patch
@@ -137,6 +134,7 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define		_ulibdir	/usr/lib
 
+# clang, used for the LLVM JIT bitcode, errors out on this GCC-only flag
 %define          filterout_c     -fvar-tracking-assignments
 %define          filterout_cxx   -fvar-tracking-assignments
 
@@ -822,7 +820,6 @@ Różne moduły dołączone do PostgreSQL-a.
 %prep
 %setup -q
 %patch -P0 -p1
-%{?with_absolute_dbpaths:%patch -P1 -p1}
 %patch -P2 -p1
 %patch -P3 -p1
 %patch -P5 -p1
@@ -842,7 +839,7 @@ march="-mx32"
 %{__autoconf}
 %{__autoheader}
 %configure \
-	CFLAGS="%{rpmcflags} $march -DNEED_REENTRANT_FUNCS" \
+	CFLAGS="%{rpmcflags} $march" \
 	CPPFLAGS="%{rpmcppflags} $march" \
 	CXXFLAGS="%{rpmcxxflags} $march" \
 	BITCODE_CFLAGS="%{rpmcflags}" \
@@ -850,14 +847,13 @@ march="-mx32"
 	--disable-rpath \
 	--enable-depend \
 	%{?with_systemtap:--enable-dtrace} \
-	--enable-integer-datetimes \
 	--enable-nls \
 	%{?with_bonjour:--with-bonjour} \
 	%{?with_kerberos5:--with-gssapi} \
 	%{?with_ldap:--with-ldap} \
-	%{?with_io_uring:--with-libcurl} \
+	%{?with_curl:--with-libcurl} \
 	%{?with_numa:--with-libnuma} \
-	%{?with_curl:--with-liburing} \
+	%{?with_io_uring:--with-liburing} \
 	--with-libxml \
 	--with-libxslt \
 	%{?with_llvm:--with-llvm} \
@@ -874,7 +870,7 @@ march="-mx32"
 %{__make}
 
 for mod in %{contrib_modules}; do \
-	flags="%{rpmcflags} %{rpmcppflags} -DNEED_REENTRANT_FUNCS"
+	flags="%{rpmcflags} %{rpmcppflags}"
 	if [ $mod = "xml2"      ]; then flags="$flags -I/usr/include/libxml2"; fi
 	%{__make} -C contrib/$mod CFLAGS="$flags"
 done
diff --git a/ac.patch b/ac.patch
index d2271a0..68fe315 100644
--- a/ac.patch
+++ b/ac.patch
@@ -1,14 +1,7 @@
---- postgresql-14.0/configure.ac~	2021-11-09 09:38:02.000000000 +0100
-+++ postgresql-14.0/configure.ac	2021-11-09 09:38:45.296275820 +0100
-@@ -19,10 +19,6 @@ m4_pattern_forbid(^PGAC_)dnl to catch un
- 
- AC_INIT([PostgreSQL], [18.4], [pgsql-bugs at lists.postgresql.org], [], [https://www.postgresql.org/])
- 
+--- postgresql-18.4/configure.ac~
++++ postgresql-18.4/configure.ac
+@@ -22,4 +21,0 @@
 -m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
 -Untested combinations of 'autoconf' and PostgreSQL versions are not
 -recommended.  You can remove the check from 'configure.ac' but it is then
 -your responsibility whether the result works or not.])])
- AC_COPYRIGHT([Copyright (c) 1996-2025, PostgreSQL Global Development Group])
- AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
- AC_CONFIG_AUX_DIR(config)
-
diff --git a/postgresql-absolute_dbpaths.patch b/postgresql-absolute_dbpaths.patch
deleted file mode 100644
index 820b65f..0000000
--- a/postgresql-absolute_dbpaths.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- postgresql-7.3.1/configure.in-orig	Thu Jan 16 19:53:28 2003
-+++ postgresql-7.3.1/configure.in	Thu Jan 16 19:54:20 2003
-@@ -539,7 +539,7 @@
- 
- 
- 
--CPPFLAGS="$CPPFLAGS $INCLUDES"
-+CPPFLAGS="$CPPFLAGS -DALLOW_ABSOLUTE_DBPATHS $INCLUDES"
- LDFLAGS="$LDFLAGS $LIBDIRS"
- 
- AC_MSG_NOTICE([using CPPFLAGS=$CPPFLAGS])
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/postgresql.git/commitdiff/849a80d44b7fb2eee62e074072d16a5e33cb3a96



More information about the pld-cvs-commit mailing list