pidgin: Fix build with libgnt 2.15

libgnt 2.15.0 deprecated gnt_util_parse_xhtml_to_textview(), which finch
uses, and pidgin builds with -DGNT_DISABLE_DEPRECATED. Stop disabling
the deprecated libgnt API.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Khem Raj committed 2026-11-13 09:06:53 -08:00
1 parent cc1a52b9cf
commit b7bf0b3a3a
2 files changed
+25

No files matched your search

@@ -0,0 +1,24 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Khem Raj <khem.raj@oss.qualcomm.com>
Date: Thu, 12 Nov 2026 00:00:00 -0800
Subject: [PATCH] configure: Do not disable deprecated libgnt API
libgnt 2.15.0 deprecated gnt_util_parse_xhtml_to_textview(), which finch
still uses, so building with -DGNT_DISABLE_DEPRECATED fails with:
finch/gntnotify.c:96:9: error: call to undeclared function 'gnt_util_parse_xhtml_to_textview'
Upstream-Status: Pending
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
--- a/configure.ac
+++ b/configure.ac
@@ -1262,7 +1262,7 @@
AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes)
-DEBUG_CFLAGS="$DEBUG_CFLAGS -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED"
+DEBUG_CFLAGS="$DEBUG_CFLAGS -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED"
if test "x$GCC" = "xyes"; then
dnl We enable -Wall later.
dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags.
@@ -10,6 +10,7 @@ inherit autotools gettext pkgconfig gconf perlnative python3native
SRC_URI = "\
${SOURCEFORGE_MIRROR}/pidgin/pidgin-${PV}.tar.bz2 \
file://sanitize-configure.ac.patch \
file://0001-configure-Do-not-disable-deprecated-libgnt-API.patch \
"
SRC_URI[sha256sum] = "0ffc9994def10260f98a55cd132deefa8dc4a9835451cc0e982747bd458e2356"