Bug 232982 - devel/cmake: ImportError: cannot import name md5 during sphinx docs compilation
Summary: devel/cmake: ImportError: cannot import name md5 during sphinx docs compilation
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-05 14:11 UTC by Dave Cottlehuber
Modified: 2018-11-05 20:32 UTC (History)
2 users (show)

See Also:
tcberner: maintainer-feedback+


Attachments
poudriere build log for 12.0-BETA3 amd64 for devel/cmake 3.12.3 from ports r484187 (167.42 KB, text/plain)
2018-11-05 14:11 UTC, Dave Cottlehuber
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Cottlehuber freebsd_committer freebsd_triage 2018-11-05 14:11:26 UTC
Created attachment 198967 [details]
poudriere build log for 12.0-BETA3 amd64 for devel/cmake 3.12.3 from ports r484187

uname: 12.0-BETA3 amd64 (r340109)
ports: (r484187)

full poudriere log attached, snippet follows:

[ 99%] Linking CXX executable ../bin/ccmake
[ 99%] Built target ccmake
Scanning dependencies of target documentation
[100%] sphinx-build man: see Utilities/Sphinx/build-man.log
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
ERROR:root:code for hash sha1 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 147, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
    raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
  File "/usr/local/bin/sphinx-build", line 11, in <module>
    load_entry_point('Sphinx==1.6.5', 'console_scripts', 'sphinx-build')()
  File "/usr/local/lib/python2.7/site-packages/sphinx/__init__.py", line 71, in main
    return build_main(argv)
  File "/usr/local/lib/python2.7/site-packages/sphinx/__init__.py", line 82, in build_main
    from sphinx import cmdline
  File "/usr/local/lib/python2.7/site-packages/sphinx/cmdline.py", line 24, in <module>
    from sphinx.application import Sphinx
  File "/usr/local/lib/python2.7/site-packages/sphinx/application.py", line 43, in <module>
    from sphinx.util.tags import Tags
  File "/usr/local/lib/python2.7/site-packages/sphinx/util/tags.py", line 11, in <module>
    from jinja2 import nodes
  File "/usr/local/lib/python2.7/site-packages/jinja2/__init__.py", line 36, in <module>
    from jinja2.loaders import BaseLoader, FileSystemLoader, PackageLoader, \
  File "/usr/local/lib/python2.7/site-packages/jinja2/loaders.py", line 16, in <module>
    from hashlib import sha1
ImportError: cannot import name sha1
*** Error code 1

Stop.
make[3]: stopped in /tmp/usr/ports/devel/cmake/work/cmake-3.12.3
*** Error code 1

Stop.
make[2]: stopped in /tmp/usr/ports/devel/cmake/work/cmake-3.12.3
*** Error code 1

Stop.
make[1]: stopped in /tmp/usr/ports/devel/cmake/work/cmake-3.12.3
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/cmake
=>> Cleaning up wrkdir
===>  Cleaning for cmake-3.12.3
build of devel/cmake | cmake-3.12.3 ended at Mon Nov  5 13:19:09 UTC 2018
build time: 00:00:51
!!! build failure encountered !!!
Comment 1 Dave Cottlehuber freebsd_committer freebsd_triage 2018-11-05 14:14:20 UTC
NB this is resolved when using the proposed patch from 232925 update to 3.12.4
Comment 2 Tobias C. Berner freebsd_committer freebsd_triage 2018-11-05 16:18:45 UTC
Moin moin

I would be surprised if the cmake update has anything to do with fixing this. Can you try to rebuild the version in ports?



Mfg Tobias
Comment 3 Tobias C. Berner freebsd_committer freebsd_triage 2018-11-05 19:19:41 UTC
I cannot reproduce this in a FreeBSD 120amd64, 12.0-BETA3@1200086 jail.

mfg Tobias
Comment 4 Dave Cottlehuber freebsd_committer freebsd_triage 2018-11-05 20:32:08 UTC
seems poudriere has gotten confused; a build run in a freshly created 12.0-BETA3 jail with 3.12.3 again has no issues. Sorry about the noise.