Your message dated Tue, 26 Apr 2022 21:19:04 +0000
with message-id <e1njsao-0005d2...@fasolo.debian.org>
and subject line Bug#1004093: fixed in haskell-text-icu 0.7.0.1-14.1
has caused the Debian Bug report #1004093,
regarding haskell-text-icu: FTBFS with ICU 70.1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1004093: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004093
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: haskell-text-icu
Version: 0.7.0.1-14
Severity: normal
Tags: ftbfs patch
Usertags: ICU70.1

Hi,

Soon I would like to start the ICU 70.1 transition. Your package FTBFS
with this release.
One reason is that since ICU 68.1 it doesn't define TRUE and FALSE
constants. You need to use the C99 / C++ ones which are lowercase
ones.
Another reason is the update to Unicode 14 for which the newer-icu
patch needs to be updated.
Patch is attached to make these easy for you.

Regards,
Laszlo/GCS
diff -Nru a/debian/patches/lowercase_true.patch b/debian/patches/lowercase_true.patch
--- a/debian/patches/lowercase_true.patch	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/patches/lowercase_true.patch	2022-01-20 18:54:16.000000000 +0100
@@ -0,0 +1,19 @@
+Description: since ICU 68.1 TRUE and FALSE are no longer defined
+ Use their C99 / C++ analogues, ie use them in lowercase.
+Author: Laszlo Boszormenyi (GCS) <g...@debian.org>
+Forwarded: no
+Last-Update: 2022-01-20
+
+---
+
+--- haskell-text-icu-0.7.0.1.orig/cbits/text_icu.c
++++ haskell-text-icu-0.7.0.1/cbits/text_icu.c
+@@ -305,7 +305,7 @@ int32_t __hs_u_strFoldCase(UChar *dest,
+ 
+ int32_t __hs_u_strCompareIter(UCharIterator *iter1, UCharIterator *iter2)
+ {
+-    return u_strCompareIter(iter1, iter2, TRUE);
++    return u_strCompareIter(iter1, iter2, true);
+ }
+ 
+ UBlockCode __hs_ublock_getCode(UChar32 c)
diff -Nru a/debian/patches/newer-icu b/debian/patches/newer-icu
--- a/debian/patches/newer-icu	2020-08-19 12:06:30.000000000 +0200
+++ b/debian/patches/newer-icu	2022-01-20 18:54:13.000000000 +0100
@@ -1,17 +1,22 @@
 --- a/Data/Text/ICU/Char.hsc
 +++ b/Data/Text/ICU/Char.hsc
-@@ -129,6 +129,10 @@
-   | PopDirectionalFormat
-   | DirNonSpacingMark
-   | BoundaryNeutral
-+  | FirstStrongIsolate
-+  | LeftToRightIsolate
-+  | RightToLeftIsolate
-+  | PopDirectionalIsolate
-   deriving (Eq, Enum, Show, Typeable)
- 
- instance NFData Direction where
-@@ -357,6 +361,94 @@
+@@ -51,6 +51,7 @@ module Data.Text.ICU.Char
+     , LineBreak_(..)
+     , SentenceBreak_(..)
+     , WordBreak_(..)
++    , BidiPairedBracketType_(..)
+     -- * Property value types
+     , BlockCode(..)
+     , Direction(..)
+@@ -66,6 +67,7 @@ module Data.Text.ICU.Char
+     , LineBreak(..)
+     , SentenceBreak(..)
+     , WordBreak(..)
++    , BidiPairedBracketType(..)
+     -- * Functions
+     , blockCode
+     , charFullName
+@@ -357,6 +359,48 @@ data BlockCode =
    | SoraSompeng
    | SundaneseSupplement
    | Takri
@@ -57,52 +62,108 @@
 +  | OldHungarian
 +  | SupplementalSymbolsAndPictographs
 +  | SuttonSignwriting
-+  | Adlam
-+  | Bhaiksuki
-+  | CyrillicExtendedC
-+  | GlagoliticSupplement
-+  | IdeographicSymbolsAndPunctuation
-+  | Marchen
-+  | MongolianSupplement
-+  | Newa
-+  | Osage
-+  | Tangut
-+  | TangutComponents
-+  | CJKUnifiedIdeographsExtensionF
-+  | KanaExtendedA
-+  | MasaramGondi
-+  | Nushu
-+  | Soyombo
-+  | SyriacSupplement
-+  | ZanabazarSquare
-+  | ChessSymbols
-+  | Dogra
-+  | GeorgianExtended
-+  | GunjalaGondi
-+  | HanifiRohingya
-+  | IndicSiyaqNumbers
-+  | Makasar
-+  | MayanNumerals
-+  | Medefaidrin
-+  | OldSogdian
-+  | Sogdian
-+  | EgyptianHieroglyphFormatControls
-+  | Elymaic
-+  | Nandinagari
-+  | NyiakengPuachueHmong
-+  | OttomanSiyaqNumbers
-+  | SmallKanaExtension
-+  | SymbolsAndPictographsExtendedA
-+  | TamilSupplement
-+  | Wancho
-+  | Chorasmian
-+  | CjkUnifiedIdeographsExtensionG
-+  | DivesAkuru
-+  | KhitanSmallScript
-+  | LisuSupplement
-+  | SymbolsForLegacyComputing
-+  | TangutSupplement
-+  | Yezidi
    deriving (Eq, Enum, Bounded, Show, Typeable)
  
  instance NFData BlockCode where
+@@ -475,6 +519,16 @@ data Bool_ =
+   -- ^ Printable character class.
+   | POSIXXDigit
+   -- ^ Hex digit character class.
++  | Cased
++  -- ^ Cased character class. For lowercase, uppercase and titlecase characters.
++  | CaseIgnorable
++  -- ^ Used in context-sensitive case mappings.
++  | ChangesWhenLowercased
++  | ChangesWhenUppercased
++  | ChangesWhenTitlecased
++  | ChangesWhenCasefolded
++  | ChangesWhenCasemapped
++  | ChangesWhenNFKCCasefolded
+     deriving (Eq, Enum, Show, Typeable)
+ 
+ instance NFData Bool_ where
+@@ -678,6 +732,37 @@ data JoiningGroup =
+   | Khaph
+   | Zhain
+   | BurushaskiYehBarree
++  | FarsiYeh
++  | Nya
++  | RohingyaYeh
++  | ManichaeanAleph
++  | ManichaeanAyin
++  | ManichaeanBeth
++  | ManichaeanDaleth
++  | ManichaeanDhamedh
++  | ManichaeanFive
++  | ManichaeanGimel
++  | ManichaeanHeth
++  | ManichaeanHundred
++  | ManichaeanKaph
++  | ManichaeanLamedh
++  | ManichaeanMem
++  | ManichaeanNun
++  | ManichaeanOne
++  | ManichaeanPe
++  | ManichaeanQoph
++  | ManichaeanResh
++  | ManichaeanSadhe
++  | ManichaeanSamekh
++  | ManichaeanTaw
++  | ManichaeanTen
++  | ManichaeanTeth
++  | ManichaeanThamedh
++  | ManichaeanTwenty
++  | ManichaeanWaw
++  | ManichaeanYodh
++  | ManichaeanZayin
++  | StraightWaw
+     deriving (Eq, Enum, Show, Typeable)
+ 
+ instance NFData JoiningGroup where
+@@ -748,6 +833,10 @@ data LineBreak =
+   | JL
+   | JT
+   | JV
++  | CloseParenthesis
++  | ConditionalJapaneseStarter
++  | LBHebrewLetter
++  | LBRegionalIndicator
+     deriving (Eq, Enum, Show, Typeable)
+ 
+ instance NFData LineBreak where
+@@ -918,6 +1007,10 @@ data WordBreak =
+   | WBLF
+   | WBMidNumLet
+   | WBNewline
++  | RegionalIndicator
++  | HebrewLetter
++  | SingleQuote
++  | DoubleQuote
+     deriving (Eq, Enum, Show, Typeable)
+ 
+ instance NFData WordBreak where
+@@ -927,6 +1020,24 @@ instance Property WordBreak_ (Maybe Word
+     fromNative  _ = maybeEnum
+     toUProperty _ = (#const UCHAR_WORD_BREAK)
+ 
++data BidiPairedBracketType_ = BidiPairedBracketType deriving (Show, Typeable)
++
++instance NFData BidiPairedBracketType_ where
++    rnf !_ = ()
++
++data BidiPairedBracketType =
++    BPTNone
++  | BPTOpen
++  | BPTClose
++    deriving (Eq, Enum, Show, Typeable)
++
++instance NFData BidiPairedBracketType where
++    rnf !_ = ()
++
++instance Property BidiPairedBracketType_ (Maybe BidiPairedBracketType) where
++    fromNative  _ = maybeEnum
++    toUProperty _ = (#const UCHAR_BIDI_PAIRED_BRACKET_TYPE)
++
+ property :: Property p v => p -> Char -> v
+ property p c = fromNative p . u_getIntPropertyValue (fromIntegral (ord c)) .
+                toUProperty $ p
diff -Nru a/debian/patches/series b/debian/patches/series
--- a/debian/patches/series	2018-07-04 16:04:33.000000000 +0200
+++ b/debian/patches/series	2022-01-20 18:54:16.000000000 +0100
@@ -1,2 +1,3 @@
 newer-deepseq
 newer-icu
+lowercase_true.patch

--- End Message ---
--- Begin Message ---
Source: haskell-text-icu
Source-Version: 0.7.0.1-14.1
Done: Sebastian Ramacher <sramac...@debian.org>

We believe that the bug you reported is fixed in the latest version of
haskell-text-icu, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1004...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sebastian Ramacher <sramac...@debian.org> (supplier of updated haskell-text-icu 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 26 Apr 2022 23:04:25 +0200
Source: haskell-text-icu
Architecture: source
Version: 0.7.0.1-14.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Haskell Group 
<pkg-haskell-maintain...@lists.alioth.debian.org>
Changed-By: Sebastian Ramacher <sramac...@debian.org>
Closes: 1004093
Changes:
 haskell-text-icu (0.7.0.1-14.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Apply patch from László Böszörményi to build with icu 70.1 (Closes:
     #1004093)
Checksums-Sha1:
 a0c06a362fa95d057b038c029dbec5aeeab505f3 2563 haskell-text-icu_0.7.0.1-14.1.dsc
 7e0f25dd368839d901e88acdcee754b935fbc291 5624 
haskell-text-icu_0.7.0.1-14.1.debian.tar.xz
Checksums-Sha256:
 a8d01c1633bc98a7b596e2abe12152925bb359ddf70f9fb67db949b835a79db7 2563 
haskell-text-icu_0.7.0.1-14.1.dsc
 47dab0ab2dc614fc255631d0ed9e1cbf1a351ad0ef27f92216e799848e0a6bef 5624 
haskell-text-icu_0.7.0.1-14.1.debian.tar.xz
Files:
 fff58055d10245d80b90b4a30d7b97f6 2563 haskell optional 
haskell-text-icu_0.7.0.1-14.1.dsc
 b82e0b00a000f5863eadb2c8f825f7c1 5624 haskell optional 
haskell-text-icu_0.7.0.1-14.1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE94y6B4F7sUmhHTOQafL8UW6nGZMFAmJoYA8ACgkQafL8UW6n
GZMhMA//W46T8PHGlEsMB0mwP9RtKC4kxpW94wxDViHxIqKQcA9ILI0x17EGGMjs
yPMK/gFJN7Y1/Ar7QEqu6TnZ5FjbfQ3uSXQlew883lcgT5HoAE4LL9NBFvc0JMpW
N9VqJ4PZf1rOHCvFHN8GxQPx+Ixw4hzGTmKej3DoLXcpU6je/2do8xvcRvl6nLNN
tO9c55a0EnhlBWXO3XLQrvxHGNlkGiQio1On7aCH4G6Sooc+bjrk53bVYvHtwFeL
uxx1qvVHLcYb8jhzJTlfTK3mp9E6fMFfSABqhUG3JnMtK/tT4b9C6n8JplCJM+67
4+/VuZvJVagfLDACXtBFSWc0s6WXzGHDV4H85VFAci5b1Uxl5jHz2N3MKX7WDsNg
AOf5/2f8Nzfa/LLiZXSQcYi5xTr5D8shr1VE0mtkpjpdjHJPsu6nLdbfnWB8Rgiu
MfCnuOUEJE0tAMGENhE9caBW5JntTHUBLgZqUTYY7+gsOBeDZ6RLjwGKHlXExoTE
uXcTu8TZdYVJC++EHCCUyMUXvYRlvOuEqrn3KyI+0uQJGq4IypVB+DpQqu+5K0v8
SINkg1YNo5BYLtu3YlEmmZwubNTzDR1bkabmaxxaVnW2UvJ01MvrMWuUEvNH3tUx
iQSeGdihtf3YAPIOvjajR/pRXFNwJTV/bPKgmEn0cdEv+8ek/ec=
=AN7c
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to