aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libpq/unix/python.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libpq/unix/python.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libpq/unix/python.patch')
-rw-r--r--vcpkg/ports/libpq/unix/python.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/libpq/unix/python.patch b/vcpkg/ports/libpq/unix/python.patch
new file mode 100644
index 0000000..7d8f58d
--- /dev/null
+++ b/vcpkg/ports/libpq/unix/python.patch
@@ -0,0 +1,35 @@
+diff --git a/configure.ac b/configure.ac
+index 7f97248992..33b6c84fc4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -891,7 +891,9 @@ AC_SUBST(with_perl)
+ # Optionally build Python modules (PL/Python)
+ #
+ AC_MSG_CHECKING([whether to build Python modules])
+-PGAC_ARG_BOOL(with, python, no, [build Python modules (PL/Python)])
++PGAC_ARG_OPTARG(with, python, [PYTHON_VERSION], [build Python modules (PL/Python)],
++ [],
++ [python_version=$withval])
+ AC_MSG_RESULT([$with_python])
+ AC_SUBST(with_python)
+
+@@ -1214,7 +1216,18 @@ fi
+
+ if test "$with_python" = yes; then
+ PGAC_PATH_PYTHON
+- PGAC_CHECK_PYTHON_EMBED_SETUP
++ python_majorversion=3
++ PKG_CHECK_MODULES(PYTHON_EMBED, python-${python_version}-embed)
++ python_includespec="${PYTHON_EMBED_CFLAGS}"
++ python_libdir=[$(echo " ${PYTHON_EMBED_LIBS}" | sed -e 's/\( -L[^ ]*\).*/\1/' -e 's/^.* -L//')]
++ python_libspec="${PYTHON_EMBED_LIBS}"
++ python_additional_libs=""
++ AC_SUBST(python_majorversion)
++ AC_SUBST(python_version)
++ AC_SUBST(python_includespec)
++ AC_SUBST(python_libdir)
++ AC_SUBST(python_libspec)
++ AC_SUBST(python_additional_libs)
+ fi
+
+ if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then