Source: abseil
Version: 0~20210324.2-4
Tags: ftbfs

If the TZ environment variable is set to anything other than
America/Los_Angeles, America/New_York, Australia/Sydney, US/Pacific, or
/etc/localtime, absl_time_test fails with “Unexpected time zone”. For
example, TZ=/usr/share/zoneinfo/Etc/GMT+12 produces

    [ RUN      ] TimeZone.LocalTimeZone
    [test_util.cc : 117] RAW: Unexpected time zone 
"/usr/share/zoneinfo/Etc/GMT+12" in test

This occurs because absl_time_test builds a small, incomplete tzdata
database into the test binary and uses that instead of the system tzdata
database. (Some of upstream’s supported platforms lack proper tzdata
support, and embedding a test-only database is just the easiest way to
make tests work everywhere.)

Upstream seems receptive to adding a fallback mechanism to their fake
database. This would resolve unhandled TZ settings like
/usr/share/zoneinfo/Etc/GMT+12 to America/Los_Angeles, which appears
sufficient to make the tests pass. Alternatively, Debian could patch out
the built-in tzdata database, since we can guarantee that the tests
always run with a real system tzdata database installed.

Reply via email to