aports/main/postgresql17/remove-libecpg_compat.patch
Andy Postnikov d69ead2c87 main/postgresql17: new aport
It cannot be built against older libpq, so we have to build it as the
default version right away.

    ld: ../../../src/fe_utils/libpgfeutils.a(connect_utils.o): in function `disconnectDatabase':
      connect_utils.c:(.text+0x35d): undefined reference to `PQcancelCreate'
    ld: connect_utils.c:(.text+0x369): undefined reference to `PQcancelBlocking'
    ld: connect_utils.c:(.text+0x372): undefined reference to `PQcancelFinish'

Co-Authored-By: Jakub Jirutka <jakub@jirutka.cz>
2024-11-01 12:59:50 +01:00

18 lines
746 B
Diff

Nothing ever depended on libecpg_compat.so.3 in Fedora, so don't build
it now, at least till somebody explicitly requests that.
Patch-Source: https://src.fedoraproject.org/rpms/libecpg/blob/f35/f/libecpg-10.5-no-compat-lib.patch
diff --git a/src/interfaces/ecpg/Makefile b/src/interfaces/ecpg/Makefile
index 41460a1..cc3dd37 100644
--- a/src/interfaces/ecpg/Makefile
+++ b/src/interfaces/ecpg/Makefile
@@ -2,7 +2,7 @@ subdir = src/interfaces/ecpg
top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
-SUBDIRS = include pgtypeslib ecpglib compatlib preproc
+SUBDIRS = include pgtypeslib ecpglib preproc
# Suppress parallel build of subdirectories to avoid a bug in GNU make 3.82, cf
# https://savannah.gnu.org/bugs/?30653