libyal / libewf

Libewf is a library to access the Expert Witness Compression Format (EWF)
GNU Lesser General Public License v3.0
263 stars 76 forks source link

ewf_test_header_values test failing due to missing tzdata #181

Open jengelh opened 1 year ago

jengelh commented 1 year ago

When /usr/share/zoneinfo is absent, ewf_test_header_values reports:

ewf_test_header_values.c:591 result (-1) != 0

Expected by test: 2020 1 6 6 34 45 Observed by test: 2020 1 6 5 34 45

The dependency on the timezone database should be documented, or maybe the test needs updating to handle UTC better(?).

joachimmetz commented 1 year ago

can you add config.log to get an idea why this information is missing on your system

jengelh commented 1 year ago

In the minimal build root I was using, nothing else required the presence of the timezone database. This is why I think it's just something that needs to be documented. (Even in a "normal", non-minimal, openSUSE desktop system, there are only very few direct timezone users: php8, libicu, NetworkManager-applet and maybe python38-pytz if something else needs that) [I don't think config.log helps, because configure.ac does not appear to test for it.] config.log.gz

joachimmetz commented 1 year ago

I would need to take a closer look a "normal installation" would have tzdata (or equiv), parts of libc rely on it AFAIK.