Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 652174 - dev-python/python-dateutil - zoneinfo tarball not installed but needed by www-apps/nikola
Summary: dev-python/python-dateutil - zoneinfo tarball not installed but needed by www...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
Depends on:
Reported: 2018-04-01 22:44 UTC by Sebastian Pipping
Modified: 2018-04-03 21:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

Crash output (nikola-init-dateutil-crash.txt,2.30 KB, text/plain)
2018-04-01 22:44 UTC, Sebastian Pipping

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2018-04-01 22:44:10 UTC
Created attachment 526278 [details]
Crash output

The dateutil ebuilds contains these lines:

python_prepare_all() {
	# don't install zoneinfo tarball
	sed -i '/package_data=/d' || die


That zoneinfo we drop is needed by www-apps/nikola.  Without it, "nikola init" crashes on invalid timezone names (e.g. "Berlin" rather than "Europe/Berlin").

Use this command to see it crash, output log attached:

  python3 -m nikola init <<<$'somedir\n\n\n\n\n\n\n\nBerlin\n'

Can we install that zoneinfo tarball please?  Unconditionally or behind a use flag, as you like.

Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-02 09:02:26 UTC

If the public API in that file is broken when the tarball is not present, then sure, we need to fix it. However, in this case upstream is clearly using private internal APIs and that's just very stupid thing to do.