Package: icu-ext
Version: 1.6.2-2
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu jammy ubuntu-patch

Dear Maintainer,

icu-ext FTBFS with icu 70.1. This is caused by the macro TRUE no longer
being defined the same way in icu 70.1. Changing TRUE to a 1 resolves
the FTBFS.

In Ubuntu, the attached patch was applied to achieve the following:


  * Fix FTBFS with icu 70.1


Thanks for considering the patch.


-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy
  APT policy: (500, 'jammy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-18-generic (SMP w/32 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru icu-ext-1.6.2/debian/patches/0001-fix-ftbfs-with-icu-70.patch 
icu-ext-1.6.2/debian/patches/0001-fix-ftbfs-with-icu-70.patch
--- icu-ext-1.6.2/debian/patches/0001-fix-ftbfs-with-icu-70.patch       
1969-12-31 18:00:00.000000000 -0600
+++ icu-ext-1.6.2/debian/patches/0001-fix-ftbfs-with-icu-70.patch       
2022-02-09 12:17:50.000000000 -0600
@@ -0,0 +1,20 @@
+Description: Fix FTBFS with icu 70
+ icu 70 no longer defines the macro TRUE, which is used by this package.
+ Instead, we just check for a value of 1 instead of a value of True
+Author: William 'jawn-smith' Wilson <jawn-sm...@ubuntu.com>
+Origin: Ubuntu
+Forwarded: https://github.com/dverite/icu_ext/pull/11
+Last-Update: 2022-02-09
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: icu-ext-1.6.2/icu_normalize.c
+===================================================================
+--- icu-ext-1.6.2.orig/icu_normalize.c
++++ icu-ext-1.6.2/icu_normalize.c
+@@ -155,5 +155,5 @@
+       if (U_FAILURE(status))
+               elog(ERROR, "unorm2_isNormalized failure: %s", 
u_errorName(status));
+ 
+-      PG_RETURN_BOOL(is_norm == TRUE);
++      PG_RETURN_BOOL(is_norm == 1);
+ }
diff -Nru icu-ext-1.6.2/debian/patches/series 
icu-ext-1.6.2/debian/patches/series
--- icu-ext-1.6.2/debian/patches/series 1969-12-31 18:00:00.000000000 -0600
+++ icu-ext-1.6.2/debian/patches/series 2022-02-09 12:17:50.000000000 -0600
@@ -0,0 +1 @@
+0001-fix-ftbfs-with-icu-70.patch

Reply via email to