Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 652174

Summary: dev-python/python-dateutil - zoneinfo tarball not installed but needed by www-apps/nikola
Product: Gentoo Linux Reporter: Sebastian Pipping <sping>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED INVALID    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/getnikola/nikola/issues/3006
See Also: https://bugs.gentoo.org/show_bug.cgi?id=652226
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Crash output

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' setup.py || die

	distutils-r1_python_prepare_all
}


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.

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

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.