[Bug 1206951] New: hhdate library downloads IANA timezone DB to ~/Downloads/tzdata instead of using /usr/share/zoneinfo
http://bugzilla.opensuse.org/show_bug.cgi?id=1206951 Bug ID: 1206951 Summary: hhdate library downloads IANA timezone DB to ~/Downloads/tzdata instead of using /usr/share/zoneinfo Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: opensuse@arnavion.dev QA Contact: qa-bugs@suse.de CC: filippo.bonazzi@suse.com, socvirnyl.estela@gmail.com Found By: --- Blocker: --- I use waybar, and every time I start it it creates a ~/Downloads/tzdata directory. This is from the hhdate library used by waybar's clock module, which defaults to downloading the IANA timezone DB to this location. Libraries should not be silently downloading files, especially not to a user's homedir. Also, if I manually create this directory for my own reason, then the library fails with a fatal error, which in waybar means that the clock module does not show. So the library is essentially squatting on this name in my Downloads directory. Per its documentation, hhdate has options HAS_REMOTE_API and AUTO_DOWNLOAD to control this behavior and they default to 1. It also has USE_OS_TZDB which allows it to use /usr/share/zoneinfo, and this defaults to 0. Using /usr/share/zoneinfo is the correct behavior for such a library. So it seems to me that the fix would be to set `HAS_REMOTE_API=0 AUTO_DOWNLOAD=0 USE_OS_TZDB=1`, and the BuildRequires on libcurl-devel can then be dropped since it is only used for this auto-download feature. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206951 http://bugzilla.opensuse.org/show_bug.cgi?id=1206951#c1 --- Comment #1 from Soc Virnyl Estela <socvirnyl.estela@gmail.com> --- Hello. Thanks for sharing this bug report. Hopefully, this fixes it https://build.opensuse.org/request/show/1056953 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206951 http://bugzilla.opensuse.org/show_bug.cgi?id=1206951#c2 Filippo Bonazzi <filippo.bonazzi@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |IN_PROGRESS --- Comment #2 from Filippo Bonazzi <filippo.bonazzi@suse.com> --- Hi, thanks for the bug report. I hadn't noticed this since we just recently moved the hhdate library to its own package. Thanks @uncomfyhalomacro for the SRs, let's fix this soon. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206951 http://bugzilla.opensuse.org/show_bug.cgi?id=1206951#c3 Filippo Bonazzi <filippo.bonazzi@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #3 from Filippo Bonazzi <filippo.bonazzi@suse.com> --- Fixed in SR#1057141. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1206951 http://bugzilla.opensuse.org/show_bug.cgi?id=1206951#c4 --- Comment #4 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1206951) was mentioned in https://build.opensuse.org/request/show/1057141 Factory / hhdate -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com