commit:     df36d01bfdcd3174f369a9de724f98865f449d64
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Tue Jul  8 19:54:07 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Tue Jul  8 20:34:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df36d01b

app-editors/xemacs: Fix configure failure

Closes: https://bugs.gentoo.org/959683
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 .../xemacs/files/xemacs-21.5.36-configure-postgresql.patch  | 13 +++++++++++++
 app-editors/xemacs/xemacs-21.5.36.ebuild                    |  1 +
 2 files changed, 14 insertions(+)

diff --git a/app-editors/xemacs/files/xemacs-21.5.36-configure-postgresql.patch 
b/app-editors/xemacs/files/xemacs-21.5.36-configure-postgresql.patch
new file mode 100644
index 000000000000..ed0608e69483
--- /dev/null
+++ b/app-editors/xemacs/files/xemacs-21.5.36-configure-postgresql.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/959683
+
+--- xemacs-21.5.36/configure.ac
++++ xemacs-21.5.36/configure.ac
+@@ -3697,7 +3697,7 @@
+     fi
+   fi
+ 
+-  if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes"
++  if test -n "$libpq_fe_h_file" -a "$have_libpq" = "yes" \
+         -a "$with_modules" = "yes"; then
+     with_postgresql=yes
+     AC_DEFINE(HAVE_POSTGRESQL)

diff --git a/app-editors/xemacs/xemacs-21.5.36.ebuild 
b/app-editors/xemacs/xemacs-21.5.36.ebuild
index d10420bf5494..119cbb09e950 100644
--- a/app-editors/xemacs/xemacs-21.5.36.ebuild
+++ b/app-editors/xemacs/xemacs-21.5.36.ebuild
@@ -64,6 +64,7 @@ src_prepare() {
        eapply "${FILESDIR}/${PN}-21.5.35-unknown-command-test.patch"
        eapply "${FILESDIR}/${P}-failing-tests.patch"
        eapply "${FILESDIR}/${P}-failing-tests-2.patch"
+       eapply "${FILESDIR}/${P}-configure-postgresql.patch"
        eapply_user
 
        eautoconf

Reply via email to