Bug#1092583: haskell-text-icu ftbfs with icu 76.1

Matthias Klose doko at debian.org
Thu Jan 9 10:21:41 GMT 2025


Package: src:haskell-text-icu
Version: 0.8.0.5-1
User: debian-devel at lists.debian.org
Usertags: icu76

[...]
[34 of 38] Compiling Data.Text.ICU.Spoof ( 
dist-ghc/build/Data/Text/ICU/Spoof.hs, 
dist-ghc/build/Data/Text/ICU/Spoof.p_o )

Data/Text/ICU/Spoof.hsc:433:7: warning: [GHC-68441] [-Wdeprecations]
     In the use of ‘memcpy’
     (imported from Data.ByteString.Internal, but defined in 
Data.ByteString.Internal.Type):
     Deprecated: "Use Foreign.Marshal.Utils.copyBytes instead"
     |
433 |       memcpy dptr bptr (fromIntegral dlen))
     |       ^^^^^^
[35 of 38] Compiling Data.Text.ICU.Spoof.Pure ( 
Data/Text/ICU/Spoof/Pure.hs, dist-ghc/build/Data/Text/ICU/Spoof/Pure.p_o )
[36 of 38] Compiling Data.Text.ICU.Text ( Data/Text/ICU/Text.hs, 
dist-ghc/build/Data/Text/ICU/Text.p_o )
[37 of 38] Compiling Data.Text.ICU    ( Data/Text/ICU.hs, 
dist-ghc/build/Data/Text/ICU.p_o )
[38 of 38] Compiling Data.Text.ICU.Types ( Data/Text/ICU/Types.hs, 
dist-ghc/build/Data/Text/ICU/Types.p_o )
cbits/text_icu.c: In function ‘__hs_ubrk_safeClone’:

cbits/text_icu.c:172:5: error:
      warning: ‘ubrk_safeClone_76’ is deprecated [-Wdeprecated-declarations]
       172 |     return ubrk_safeClone(bi, stackBuffer, pBufferSize, 
status);
           |     ^~~~~~
     |
172 |     return ubrk_safeClone(bi, stackBuffer, pBufferSize, status);
     |     ^
In file included from /usr/include/unicode/platform.h:25,
                  from /usr/include/unicode/ptypes.h:46,
                  from /usr/include/unicode/umachine.h:46,
                  from /usr/include/unicode/utypes.h:38,
                  from include/hs_text_icu.h:5,

                  from cbits/text_icu.c:1:0: error:

/usr/include/unicode/ubrk.h:321:1: error:
      note: declared here
       321 | ubrk_safeClone(
           | ^~~~~~~~~~~~~~
     |
321 | ubrk_safeClone(
     | ^
cbits/text_icu.c: In function ‘__hs_ucol_safeClone’:

cbits/text_icu.c:298:5: error:
      warning: ‘ucol_safeClone_76’ is deprecated [-Wdeprecated-declarations]
       298 |     return ucol_safeClone(coll, stackBuffer, pBufferSize, 
status);
           |     ^~~~~~
     |
298 |     return ucol_safeClone(coll, stackBuffer, pBufferSize, status);
     |     ^

/usr/include/unicode/ucol.h:1360:1: error:
      note: declared here
      1360 | ucol_safeClone(const UCollator *coll,
           | ^~~~~~~~~~~~~~
      |
1360 | ucol_safeClone(const UCollator *coll,
      | ^
cbits/text_icu.c: In function ‘__hs_unorm_quickCheck’:

cbits/text_icu.c:537:5: error:
      warning: ‘unorm_quickCheck_76’ is deprecated 
[-Wdeprecated-declarations]
       537 |     return unorm_quickCheck(source, sourcelength, mode, 
status);
           |     ^~~~~~
     |
537 |     return unorm_quickCheck(source, sourcelength, mode, status);
     |     ^

/usr/include/unicode/unorm.h:244:1: error:
      note: declared here
       244 | unorm_quickCheck(const UChar *source, int32_t sourcelength,
           | ^~~~~~~~~~~~~~~~
     |
244 | unorm_quickCheck(const UChar *source, int32_t sourcelength,
     | ^
cbits/text_icu.c: In function ‘__hs_unorm_isNormalized’:

cbits/text_icu.c:544:5: error:
      warning: ‘unorm_isNormalized_76’ is deprecated 
[-Wdeprecated-declarations]
       544 |     return unorm_isNormalized(src, srcLength, mode, 
pErrorCode);
           |     ^~~~~~
     |
544 |     return unorm_isNormalized(src, srcLength, mode, pErrorCode);
     |     ^

/usr/include/unicode/unorm.h:291:1: error:
      note: declared here
       291 | unorm_isNormalized(const UChar *src, int32_t srcLength,
           | ^~~~~~~~~~~~~~~~~~
     |
291 | unorm_isNormalized(const UChar *src, int32_t srcLength,
     | ^
cbits/text_icu.c: In function ‘__hs_unorm_normalize’:

cbits/text_icu.c:552:5: error:
      warning: ‘unorm_normalize_76’ is deprecated 
[-Wdeprecated-declarations]
       552 |     return unorm_normalize(source, sourceLength, mode, 
options, result,
           |     ^~~~~~
     |
552 |     return unorm_normalize(source, sourceLength, mode, options, 
result,
     |     ^

/usr/include/unicode/unorm.h:218:1: error:
      note: declared here
       218 | unorm_normalize(const UChar *source, int32_t sourceLength,
           | ^~~~~~~~~~~~~~~
     |
218 | unorm_normalize(const UChar *source, int32_t sourceLength,
     | ^
cbits/text_icu.c: In function ‘__hs_ubrk_safeClone’:

cbits/text_icu.c:172:5: error:
      warning: ‘ubrk_safeClone_76’ is deprecated [-Wdeprecated-declarations]
       172 |     return ubrk_safeClone(bi, stackBuffer, pBufferSize, 
status);
           |     ^~~~~~
     |
172 |     return ubrk_safeClone(bi, stackBuffer, pBufferSize, status);
     |     ^
In file included from /usr/include/unicode/platform.h:25,
                  from /usr/include/unicode/ptypes.h:46,
                  from /usr/include/unicode/umachine.h:46,
                  from /usr/include/unicode/utypes.h:38,
                  from include/hs_text_icu.h:5,

                  from cbits/text_icu.c:1:0: error:

/usr/include/unicode/ubrk.h:321:1: error:
      note: declared here
       321 | ubrk_safeClone(
           | ^~~~~~~~~~~~~~
     |
321 | ubrk_safeClone(
     | ^
cbits/text_icu.c: In function ‘__hs_ucol_safeClone’:

cbits/text_icu.c:298:5: error:
      warning: ‘ucol_safeClone_76’ is deprecated [-Wdeprecated-declarations]
       298 |     return ucol_safeClone(coll, stackBuffer, pBufferSize, 
status);
           |     ^~~~~~
     |
298 |     return ucol_safeClone(coll, stackBuffer, pBufferSize, status);
     |     ^

/usr/include/unicode/ucol.h:1360:1: error:
      note: declared here
      1360 | ucol_safeClone(const UCollator *coll,
           | ^~~~~~~~~~~~~~
      |
1360 | ucol_safeClone(const UCollator *coll,
      | ^
cbits/text_icu.c: In function ‘__hs_unorm_quickCheck’:

cbits/text_icu.c:537:5: error:
      warning: ‘unorm_quickCheck_76’ is deprecated 
[-Wdeprecated-declarations]
       537 |     return unorm_quickCheck(source, sourcelength, mode, 
status);
           |     ^~~~~~
     |
537 |     return unorm_quickCheck(source, sourcelength, mode, status);
     |     ^

/usr/include/unicode/unorm.h:244:1: error:
      note: declared here
       244 | unorm_quickCheck(const UChar *source, int32_t sourcelength,
           | ^~~~~~~~~~~~~~~~
     |
244 | unorm_quickCheck(const UChar *source, int32_t sourcelength,
     | ^
cbits/text_icu.c: In function ‘__hs_unorm_isNormalized’:

cbits/text_icu.c:544:5: error:
      warning: ‘unorm_isNormalized_76’ is deprecated 
[-Wdeprecated-declarations]
       544 |     return unorm_isNormalized(src, srcLength, mode, 
pErrorCode);
           |     ^~~~~~
     |
544 |     return unorm_isNormalized(src, srcLength, mode, pErrorCode);
     |     ^

/usr/include/unicode/unorm.h:291:1: error:
      note: declared here
       291 | unorm_isNormalized(const UChar *src, int32_t srcLength,
           | ^~~~~~~~~~~~~~~~~~
     |
291 | unorm_isNormalized(const UChar *src, int32_t srcLength,
     | ^
cbits/text_icu.c: In function ‘__hs_unorm_normalize’:

cbits/text_icu.c:552:5: error:
      warning: ‘unorm_normalize_76’ is deprecated 
[-Wdeprecated-declarations]
       552 |     return unorm_normalize(source, sourceLength, mode, 
options, result,
           |     ^~~~~~
     |
552 |     return unorm_normalize(source, sourceLength, mode, options, 
result,
     |     ^

/usr/include/unicode/unorm.h:218:1: error:
      note: declared here
       218 | unorm_normalize(const UChar *source, int32_t sourceLength,
           | ^~~~~~~~~~~~~~~
     |
218 | unorm_normalize(const UChar *source, int32_t sourceLength,
     | ^
cbits/text_icu.c: In function ‘__hs_ubrk_safeClone’:

cbits/text_icu.c:172:5: error:
      warning: ‘ubrk_safeClone_76’ is deprecated [-Wdeprecated-declarations]
       172 |     return ubrk_safeClone(bi, stackBuffer, pBufferSize, 
status);
           |     ^~~~~~
     |
172 |     return ubrk_safeClone(bi, stackBuffer, pBufferSize, status);
     |     ^
In file included from /usr/include/unicode/platform.h:25,
                  from /usr/include/unicode/ptypes.h:46,
                  from /usr/include/unicode/umachine.h:46,
                  from /usr/include/unicode/utypes.h:38,
                  from include/hs_text_icu.h:5,

                  from cbits/text_icu.c:1:0: error:

/usr/include/unicode/ubrk.h:321:1: error:
      note: declared here
       321 | ubrk_safeClone(
           | ^~~~~~~~~~~~~~
     |
321 | ubrk_safeClone(
     | ^
cbits/text_icu.c: In function ‘__hs_ucol_safeClone’:

cbits/text_icu.c:298:5: error:
      warning: ‘ucol_safeClone_76’ is deprecated [-Wdeprecated-declarations]
       298 |     return ucol_safeClone(coll, stackBuffer, pBufferSize, 
status);
           |     ^~~~~~
     |
298 |     return ucol_safeClone(coll, stackBuffer, pBufferSize, status);
     |     ^

/usr/include/unicode/ucol.h:1360:1: error:
      note: declared here
      1360 | ucol_safeClone(const UCollator *coll,
           | ^~~~~~~~~~~~~~
      |
1360 | ucol_safeClone(const UCollator *coll,
      | ^
cbits/text_icu.c: In function ‘__hs_unorm_quickCheck’:

cbits/text_icu.c:537:5: error:
      warning: ‘unorm_quickCheck_76’ is deprecated 
[-Wdeprecated-declarations]
       537 |     return unorm_quickCheck(source, sourcelength, mode, 
status);
           |     ^~~~~~
     |
537 |     return unorm_quickCheck(source, sourcelength, mode, status);
     |     ^

/usr/include/unicode/unorm.h:244:1: error:
      note: declared here
       244 | unorm_quickCheck(const UChar *source, int32_t sourcelength,
           | ^~~~~~~~~~~~~~~~
     |
244 | unorm_quickCheck(const UChar *source, int32_t sourcelength,
     | ^
cbits/text_icu.c: In function ‘__hs_unorm_isNormalized’:

cbits/text_icu.c:544:5: error:
      warning: ‘unorm_isNormalized_76’ is deprecated 
[-Wdeprecated-declarations]
       544 |     return unorm_isNormalized(src, srcLength, mode, 
pErrorCode);
           |     ^~~~~~
     |
544 |     return unorm_isNormalized(src, srcLength, mode, pErrorCode);
     |     ^

/usr/include/unicode/unorm.h:291:1: error:
      note: declared here
       291 | unorm_isNormalized(const UChar *src, int32_t srcLength,
           | ^~~~~~~~~~~~~~~~~~
     |
291 | unorm_isNormalized(const UChar *src, int32_t srcLength,
     | ^
cbits/text_icu.c: In function ‘__hs_unorm_normalize’:

cbits/text_icu.c:552:5: error:
      warning: ‘unorm_normalize_76’ is deprecated 
[-Wdeprecated-declarations]
       552 |     return unorm_normalize(source, sourceLength, mode, 
options, result,
           |     ^~~~~~
     |
552 |     return unorm_normalize(source, sourceLength, mode, options, 
result,
     |     ^

/usr/include/unicode/unorm.h:218:1: error:
      note: declared here
       218 | unorm_normalize(const UChar *source, int32_t sourceLength,
           | ^~~~~~~~~~~~~~~
     |
218 | unorm_normalize(const UChar *source, int32_t sourceLength,
     | ^
Preprocessing test suite 'tests' for text-icu-0.8.0.5..
Building test suite 'tests' for text-icu-0.8.0.5..
[1 of 3] Compiling QuickCheckUtils  ( tests/QuickCheckUtils.hs, 
dist-ghc/build/tests/tests-tmp/QuickCheckUtils.o )
[2 of 3] Compiling Properties       ( tests/Properties.hs, 
dist-ghc/build/tests/tests-tmp/Properties.o )
[3 of 3] Compiling Main             ( tests/Tests.hs, 
dist-ghc/build/tests/tests-tmp/Main.o )
[4 of 4] Linking dist-ghc/build/tests/tests
touch build-ghc-stamp
perl -d:Confess -MDebian::Debhelper::Buildsystem::Haskell::Recipes=/.*/ \
	-E 'check_recipe'
Running dh_listpackages
libghc-text-icu-dev
libghc-text-icu-prof
libghc-text-icu-doc
Running 1 test suites...
Test suite tests: RUNNING...
Properties:
   t_toCaseFold: [OK, passed 100 tests]
   t_toLower: [OK, passed 100 tests]
   t_toUpper: [OK, passed 100 tests]
   t_charIterator_String: [OK, passed 100 tests]
   t_charIterator_Text: [OK, passed 100 tests]
   t_charIterator_Utf8: [OK, passed 100 tests]
   t_quickCheck_isNormalized: [OK, passed 100 tests]
   t_collate: [OK, passed 100 tests]
   t_collate_emptyRule: [OK, passed 100 tests]
   t_convert: [OK, passed 100 tests]
   t_blockCode: [OK, passed 100 tests]
   t_charFullName: [OK, passed 100 tests]
   t_charName: [OK, passed 100 tests]
   t_combiningClass: [OK, passed 100 tests]
   t_direction: [OK, passed 100 tests]
   t_isMirrored: [OK, passed 100 tests]
   t_mirror: [OK, passed 100 tests]
   t_digitToInt: [OK, passed 100 tests]
   t_numericValue: [OK, passed 100 tests]
   t_spoofable: [OK, passed 100 tests]
   t_nonspoofable: [OK, passed 100 tests]
   t_confusable: [OK, passed 100 tests]
   t_Utf8IsUtf8: [OK, passed 100 tests]
Test cases:
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [Failed]
expected: "2. Januar 2000 um 03:04:05 GMT+1"
  but got: "2. Januar 2000 um 03:04:05 MEZ"
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]
   :collate:
     :invalid format:
       :errError: [OK]
       :errLine: [OK]
       :errOffset: [OK]
     :custom collator: [OK]
   : [OK]
   : [OK]
   : [OK]
   : [OK]

          Properties  Test Cases  Total
  Passed  23          27          50
  Failed  0           1           1
  Total   23          28          51
Test suite tests: FAIL
Test suite logged to: dist-ghc/test/text-icu-0.8.0.5-tests.log
0 of 1 test suites (0 of 1 test cases) passed.
-e: error: debian/hlibrary.setup test --builddir=dist-ghc 
--show-details=direct returned exit code 1
  at /usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 877.
	Debian::Debhelper::Dh_Lib::error("debian/hlibrary.setup test 
--builddir=dist-ghc --show-details"...) called at 
/usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 616
	Debian::Debhelper::Dh_Lib::error_exitcode("debian/hlibrary.setup test 
--builddir=dist-ghc --show-details"...) called at 
/usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 479
	Debian::Debhelper::Dh_Lib::doit("debian/hlibrary.setup", "test", 
"--builddir=dist-ghc", "--show-details=direct") called at 
/usr/share/perl5/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm line 692
	Debian::Debhelper::Buildsystem::Haskell::Recipes::check_recipe() called 
at -e line 1
make: *** [/usr/share/cdbs/1/class/hlibrary.mk:165: check-ghc-stamp] 
Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit 
status 2



More information about the Pkg-haskell-maintainers mailing list