yaz/yaz-icu-76.patch
Martin Pluskal 99b0514e9a - Update to version 5.34.2:
+ Remove outdated distros: Debian Stretch and Ubuntu Trusty
  + LICENSE: Update to match Index Data's online Revised BSD license
  + Vscode XML editor settings
  + YAZ 5.34.1 breaks search with OCLC's "Sisis InfoGuide" origin
- Add yaz-icu-76.patch: Fix build against ICU 76: most sources
  found in the wild wrongly define the need on icu-i18n, when most
  actually would need icu-uc.
- Add libtool BuildRequires and call autoreconf in build section,
  as above patch touches the build system.

OBS-URL: https://build.opensuse.org/package/show/Publishing/yaz?expand=0&rev=135
2024-11-25 19:57:25 +00:00

28 lines
1.0 KiB
Diff

Index: yaz-5.34.2/m4/ac_check_icu.m4
===================================================================
--- yaz-5.34.2.orig/m4/ac_check_icu.m4
+++ yaz-5.34.2/m4/ac_check_icu.m4
@@ -25,8 +25,8 @@ AC_DEFUN([AC_CHECK_ICU],
AC_MSG_RESULT([found])
ICU_VERSION=`$pkgconfigpath --modversion icu-i18n`
ICU_CPPFLAGS=""
- ICU_CFLAGS=`$pkgconfigpath --cflags icu-i18n`
- ICU_LIBS=`$pkgconfigpath --libs icu-i18n`
+ ICU_CFLAGS=`$pkgconfigpath --cflags icu-i18n icu-uc`
+ ICU_LIBS=`$pkgconfigpath --libs icu-i18n icu-uc`
else
AC_MSG_RESULT([not found])
fi
Index: yaz-5.34.2/yaz-icu.pc.in
===================================================================
--- yaz-5.34.2.orig/yaz-icu.pc.in
+++ yaz-5.34.2/yaz-icu.pc.in
@@ -6,6 +6,6 @@ includedir=@includedir@
Name: YAZ ICU
Version: @VERSION@
Description: YAZ ICU library for building Z39.50 applications
-Requires: yaz libexslt icu-i18n
+Requires: yaz libexslt icu-i18n icu-uc
Libs: -L${libdir} -lyaz_icu @PTHREAD_LIBS@
Cflags: @ICU_CPPFLAGS@