diff --git a/dev-db/postgresql/patches/postgresql12-12.0.patchset b/dev-db/postgresql/patches/postgresql12-12.0.patchset index 18466ac3b..d4353bad4 100644 --- a/dev-db/postgresql/patches/postgresql12-12.0.patchset +++ b/dev-db/postgresql/patches/postgresql12-12.0.patchset @@ -1,4 +1,4 @@ -From b79cd20e894787165914ed5a3c777a86e8b97055 Mon Sep 17 00:00:00 2001 +From 09752f6b9cf2826ffca43c23fc514741b6f483b0 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 3 Oct 2019 17:36:43 +0000 Subject: Changes to make Postgresql run on Haiku. @@ -575,10 +575,10 @@ diff --git a/src/template/haiku b/src/template/haiku new file mode 100644 index 0000000..e69de29 -- -2.37.3 +2.42.1 -From 5a79714834681eec183f65c037b2c186772485be Mon Sep 17 00:00:00 2001 +From 77c3db3ae32428f2f81813585c3b20dc431a5aaf Mon Sep 17 00:00:00 2001 From: begasus Date: Mon, 26 Dec 2022 17:35:12 +0100 Subject: adjust autoconf required version @@ -598,5 +598,47 @@ index 339db16..f9339f5 100644 recommended. You can remove the check from 'configure.in' but it is then your responsibility whether the result works or not.])]) -- -2.37.3 +2.42.1 + + +From 9f6e8b6f09b591b0d7d3bdd92618831edc2ca97a Mon Sep 17 00:00:00 2001 +From: Begasus +Date: Fri, 9 Feb 2024 16:23:14 +0100 +Subject: Fix build with newer ldap (from upstream) + + +diff --git a/configure.in b/configure.in +index f9339f5..af3fc1d 100644 +--- a/configure.in ++++ b/configure.in +@@ -1236,17 +1236,20 @@ fi + if test "$with_ldap" = yes ; then + _LIBS="$LIBS" + if test "$PORTNAME" != "win32"; then +- AC_CHECK_LIB(ldap, ldap_bind, [], +- [AC_MSG_ERROR([library 'ldap' is required for LDAP])], +- [$EXTRA_LDAP_LIBS]) +- LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS" + if test "$enable_thread_safety" = yes; then + # on some platforms ldap_r fails to link without PTHREAD_LIBS +- AC_CHECK_LIB(ldap_r, ldap_simple_bind, [], +- [AC_MSG_ERROR([library 'ldap_r' is required for LDAP])], ++ # OpenLDAP 2.5 merged ldap_r with ldap ++ LIBS="" ++ AC_SEARCH_LIBS(ldap_simple_bind, [ldap_r ldap], [], ++ [AC_MSG_ERROR([not found in any LDAP library])], + [$PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS]) +- LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS" ++ LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS" ++ LDAP_LIBS_FE="$LIBS $EXTRA_LDAP_LIBS" + else ++ AC_CHECK_LIB(ldap, ldap_bind, [], ++ [AC_MSG_ERROR([library 'ldap' is required for LDAP])], ++ [$EXTRA_LDAP_LIBS]) ++ LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS" + LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS" + fi + AC_CHECK_FUNCS([ldap_initialize]) +-- +2.42.1 diff --git a/dev-db/postgresql/postgresql12-12.0.recipe b/dev-db/postgresql/postgresql12-12.0.recipe index c61fd526f..52522769f 100644 --- a/dev-db/postgresql/postgresql12-12.0.recipe +++ b/dev-db/postgresql/postgresql12-12.0.recipe @@ -20,7 +20,7 @@ you want to build, and let PostgreSQL safely and robustly store your data." HOMEPAGE="https://www.postgresql.org/" COPYRIGHT="1996-2019 PostgreSQL Global Development Group" LICENSE="PostgreSQL" -REVISION="4" +REVISION="5" SOURCE_URI="http://ftp.postgresql.org/pub/source/v$portVersion/postgresql-$portVersion.tar.bz2" CHECKSUM_SHA256="cda2397215f758b793f741c86be05468257b0e6bcb1a6113882ab5d0df0855c6" SOURCE_DIR="postgresql-$portVersion" @@ -42,10 +42,10 @@ PROVIDES=" REQUIRES=" haiku$secondaryArchSuffix lib:libcrypto$secondaryArchSuffix - lib:libicudata$secondaryArchSuffix >= 66 - lib:libicui18n$secondaryArchSuffix >= 66 - lib:libicuuc$secondaryArchSuffix >= 66 - lib:libldap_r_2.4$secondaryArchSuffix + lib:libicudata$secondaryArchSuffix + lib:libicui18n$secondaryArchSuffix + lib:libicuuc$secondaryArchSuffix + lib:libldap$secondaryArchSuffix lib:libpam$secondaryArchSuffix lib:libreadline$secondaryArchSuffix lib:libssl$secondaryArchSuffix @@ -95,12 +95,12 @@ PROVIDES_server=" " REQUIRES_server=" haiku$secondaryArchSuffix - postgresql12${secondaryArchSuffix} == $portVersion base + postgresql12$secondaryArchSuffix == $portVersion base lib:libcrypto$secondaryArchSuffix - lib:libicudata$secondaryArchSuffix >= 66 - lib:libicui18n$secondaryArchSuffix >= 66 - lib:libicuuc$secondaryArchSuffix >= 66 - lib:libldap_r_2.4$secondaryArchSuffix + lib:libicudata$secondaryArchSuffix + lib:libicui18n$secondaryArchSuffix + lib:libicuuc$secondaryArchSuffix + lib:libldap$secondaryArchSuffix lib:libpam$secondaryArchSuffix lib:libpq$secondaryArchSuffix lib:libreadline$secondaryArchSuffix @@ -123,7 +123,7 @@ PROVIDES_devel=" devel:libpq$secondaryArchSuffix = $portVersion " REQUIRES_devel=" - postgresql12${secondaryArchSuffix} == $portVersion base + postgresql12$secondaryArchSuffix == $portVersion base " CONFLICTS_server=" @@ -133,9 +133,9 @@ CONFLICTS_server=" BUILD_REQUIRES=" devel:libcrypto$secondaryArchSuffix - devel:libicudata$secondaryArchSuffix >= 66 - devel:libicui18n$secondaryArchSuffix >= 66 - devel:libicuuc$secondaryArchSuffix >= 66 + devel:libicudata$secondaryArchSuffix >= 74 + devel:libicui18n$secondaryArchSuffix >= 74 + devel:libicuuc$secondaryArchSuffix >= 74 devel:libldap$secondaryArchSuffix devel:libpam$secondaryArchSuffix devel:libreadline$secondaryArchSuffix @@ -221,6 +221,6 @@ INSTALL() TEST() { - LIBRARY_PATH="$sourceDir/tmp_install/packages/postgresql-$portVersion-$REVISION/.self/lib${LIBRARY_PATH:+:$LIBRARY_PATH}" + LIBRARY_PATH="$sourceDir/src/interfaces/libpq${LIBRARY_PATH:+:$LIBRARY_PATH}" make check }