fail to build from source

Bug #1951432 reported by Rodrigo Figueiredo Zaiden
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
icu (Ubuntu)
Fix Released
Undecided
Rodrigo Figueiredo Zaiden

Bug Description

When building ICU package from source, Time Zones tests are failing, leading to a build failure.
This is happening because for Ubuntu, ICU uses tzdata package to retrieve Time Zone information
And, tzdata is updated but ICU tests are not.

The tests that are failing are:
1)TestAliasedNames, TestCanonicalID:
         TestAliasedNames {
         different at 8

         } ERRORS (1) in TestAliasedNames

         TestCanonicalID {
         FAIL: getCanonicalID(America/Coral_Harbour) returned America/Coral_Harbour expected:America/Cayman
         FAIL: getCanonicalID(America/Coral_Harbour) returned America/Coral_Harbour expected:America/Cayman
         FAIL: getCanonicalID(America/Coral_Harbour) returned America/Coral_Harbour expected:America/Cayman

         } ERRORS (3) in TestCanonicalID

-- These does not have a fix in upstream and need to be fixed (hirsute and focal).

There are other issues that have fixes in upstream and need to be patched:
2) TestGenericAPI
         TestGenericAPI {
         FAIL: getTZDataVersion returned 2021a3

         } ERRORS (1) in TestGenericAPI

-- https://github.com/unicode-org/icu/commit/7561cb28 need to be patched (hirsute and focal)

3) TestCanonicalID
         TestCanonicalID {
         FAIL: getCanonicalID(Australia/Hobart) returned Australia/Hobart expected:Australia/Currie
         FAIL: getCanonicalID(Australia/Tasmania) returned Australia/Hobart expected:Australia/Currie
         FAIL: getCanonicalID(Australia/Hobart) returned Australia/Hobart expected:Australia/Currie
         FAIL: getCanonicalID(Australia/Tasmania) returned Australia/Hobart expected:Australia/Currie
         FAIL: getCanonicalID(Australia/Hobart) returned Australia/Hobart expected:Australia/Currie
         FAIL: getCanonicalID(Australia/Tasmania) returned Australia/Hobart expected:Australia/Currie

         } ERRORS (6) in TestCanonicalID

-- https://github.com/unicode-org/icu/commit/25eb1510 need to be patched (focal)

CVE References

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package icu - 67.1-6ubuntu2.1

---------------
icu (67.1-6ubuntu2.1) hirsute-security; urgency=medium

  * SECURITY UPDATE: Double Free
    - debian/patches/CVE-2021-30535-prereq.patch: Fix invalid free when
      using long locale name in Locale functions in
      source/common/locid.cpp.
    - debian/patches/CVE-2021-30535.patch: Fix edge cases with baseName
      in setKeywordValue function in source/common/locid.cpp to
      prevent double free and protect from heap corruption.
    - CVE-2021-30535
  * fix failing tests causing build-time failure: (LP: #1951432)
    - debian/patches/tzdata-2021b-tests.patch: Fix TestCalendar function
      in source/test/cintltst/ccaltst.c and TestGenericAPI in
      source/test/intltest/tztest.cpp to accept tz.version with longer
      string size to prevent tests from failing.
    - debian/patches/skip-tztests.patch: Skip specific Time Zones tests in
      TestAliasedNames and TestCanonicalID functions in
      source/test/intltest/tztest.cpp. They don't match with data from
      updated tzdata and needed to be skiped to prevent tests from failing.

 -- Rodrigo Figueiredo Zaiden <email address hidden> Thu, 18 Nov 2021 13:51:35 -0300

Changed in icu (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package icu - 66.1-2ubuntu2.1

---------------
icu (66.1-2ubuntu2.1) focal-security; urgency=medium

  * SECURITY UPDATE: Double Free
    - debian/patches/CVE-2021-30535-prereq.patch: Fix invalid free when
      using long locale name in Locale functions in
      source/common/locid.cpp.
    - debian/patches/CVE-2021-30535.patch: Fix edge cases with baseName
      in setKeywordValue function in source/common/locid.cpp to
      prevent double free and protect from heap corruption.
    - CVE-2021-30535
  * Fix failing tests causing build-time failures: (LP: #1951432)
    - debian/patches/tzdata-2020f-tztest.patch: Add Time Zones data
      related to tzdata version 2020f in TestCanonicalID function in
      source/test/intltest/tztest.cpp to prevent tests from failing.
    - debian/patches/tzdata-2021b-tests.patch: Fix TestCalendar function
      in source/test/cintltst/ccaltst.c and TestGenericAPI in
      source/test/intltest/tztest.cpp to accept tz.version with longer
      string size to prevent tests from failing.
    - debian/patches/skip-tztests.patch: Skip specific Time Zones tests in
      TestAliasedNames and TestCanonicalID functions in
      source/test/intltest/tztest.cpp. They don't match with data from
      updated tzdata and needed to be skiped to prevent tests from failing.
  * Fix autopkg tests:
    - debian/tests/control: add libicu-dev and pkg-config dependencies in
      smoke test, and build-essential dependency in build-test.
    - debian/tests/smoke: change smoke test tool from icu-config (deprecated)
      to pkg-config.
    - debian/tests/ustring.cpp: add 'using namespace icu'.

 -- Rodrigo Figueiredo Zaiden <email address hidden> Tue, 23 Nov 2021 11:50:52 -0300

Changed in icu (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.