❯ nix-build -A diffoscope '<nixpkgs>'
these derivations will be built:
/nix/store/pwm2jh1q49diw89rb1nqay7lwp0ynpq2-python3.6-libarchive-c-2.5.drv
/nix/store/kfzvsk1p2hvsgr4rvzk2bqn9h2a2m0fd-diffoscope-77.drv
building path(s) ‘/nix/store/2lg2d62j2i6v0hafi478xmhn6lhjj1vp-python3.6-libarchive-c-2.5’
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
unpacking sources
unpacking source archive /nix/store/hg1vfsba6kq1478zxaawdik62r7a9xwi-libarchive-c-2.5.tar.gz
source root is libarchive-c-2.5
setting SOURCE_DATE_EPOCH to timestamp 1469298764 of file libarchive-c-2.5/setup.cfg
patching sources
configuring
building
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/libarchive
copying libarchive/write.py -> build/lib/libarchive
copying libarchive/read.py -> build/lib/libarchive
copying libarchive/ffi.py -> build/lib/libarchive
copying libarchive/extract.py -> build/lib/libarchive
copying libarchive/exception.py -> build/lib/libarchive
copying libarchive/entry.py -> build/lib/libarchive
copying libarchive/__init__.py -> build/lib/libarchive
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/libarchive
copying build/lib/libarchive/__init__.py -> build/bdist.linux-x86_64/wheel/libarchive
copying build/lib/libarchive/entry.py -> build/bdist.linux-x86_64/wheel/libarchive
copying build/lib/libarchive/exception.py -> build/bdist.linux-x86_64/wheel/libarchive
copying build/lib/libarchive/extract.py -> build/bdist.linux-x86_64/wheel/libarchive
copying build/lib/libarchive/ffi.py -> build/bdist.linux-x86_64/wheel/libarchive
copying build/lib/libarchive/read.py -> build/bdist.linux-x86_64/wheel/libarchive
copying build/lib/libarchive/write.py -> build/bdist.linux-x86_64/wheel/libarchive
running install_egg_info
running egg_info
writing libarchive_c.egg-info/PKG-INFO
writing dependency_links to libarchive_c.egg-info/dependency_links.txt
writing top-level names to libarchive_c.egg-info/top_level.txt
reading manifest file 'libarchive_c.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'libarchive_c.egg-info/SOURCES.txt'
Copying libarchive_c.egg-info to build/bdist.linux-x86_64/wheel/libarchive_c-2.5-py3.6.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/libarchive_c-2.5.dist-info/WHEEL
installing
/tmp/nix-build-python3.6-libarchive-c-2.5.drv-0/libarchive-c-2.5/dist /tmp/nix-build-python3.6-libarchive-c-2.5.drv-0/libarchive-c-2.5
Processing ./libarchive_c-2.5-py2.py3-none-any.whl
Installing collected packages: libarchive-c
Successfully installed libarchive-c-2.5
/tmp/nix-build-python3.6-libarchive-c-2.5.drv-0/libarchive-c-2.5
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/2lg2d62j2i6v0hafi478xmhn6lhjj1vp-python3.6-libarchive-c-2.5
stripping (with flags -S) in /nix/store/2lg2d62j2i6v0hafi478xmhn6lhjj1vp-python3.6-libarchive-c-2.5/lib
patching script interpreter paths in /nix/store/2lg2d62j2i6v0hafi478xmhn6lhjj1vp-python3.6-libarchive-c-2.5
checking for references to /tmp/nix-build-python3.6-libarchive-c-2.5.drv-0 in /nix/store/2lg2d62j2i6v0hafi478xmhn6lhjj1vp-python3.6-libarchive-c-2.5...
running install tests
============================= test session starts ==============================
platform linux -- Python 3.6.2, pytest-3.2.1, py-1.4.34, pluggy-0.4.0
rootdir: /tmp/nix-build-python3.6-libarchive-c-2.5.drv-0/libarchive-c-2.5, inifile:
collected 16 items
tests/test_convert.py .
tests/test_entry.py ..F...
tests/test_errors.py ....
tests/test_rwx.py ....
=================================== FAILURES ===================================
_________________ test_check_archiveentry_using_python_testtar _________________
def test_check_archiveentry_using_python_testtar():
> check_entries(join(data_dir, 'testtar.tar'))
tests/test_entry.py:59:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_file = '/tmp/nix-build-python3.6-libarchive-c-2.5.drv-0/libarchive-c-2.5/tests/data/testtar.tar'
regen = False, ignore = []
def check_entries(test_file, regen=False, ignore=''):
ignore = ignore.split()
fixture_file = test_file + '.json'
if regen:
entries = list(get_entries(test_file))
with open(fixture_file, 'w', encoding='UTF-8') as ex:
json.dump(entries, ex, indent=2)
with open(fixture_file, encoding='UTF-8') as ex:
expected = json.load(ex)
actual = list(get_entries(test_file))
for e1, e2 in zip(actual, expected):
for key in ignore:
e1.pop(key)
e2.pop(key)
> assert e1 == e2
E AssertionError: assert {'isblk': Fal...': False, ...} == {'isblk': Fals...': False, ...}
E Omitting 12 identical items, use -vv to show
E Differing items:
E {'size': 7011} != {'size': 0}
E Use -v to get the full diff
tests/test_entry.py:92: AssertionError
----------------------------- Captured stderr call -----------------------------
Pathname can't be converted from UTF-8 to current locale.
============================== 1 tests deselected ==============================
============== 1 failed, 14 passed, 1 deselected in 0.19 seconds ===============
builder for ‘/nix/store/pwm2jh1q49diw89rb1nqay7lwp0ynpq2-python3.6-libarchive-c-2.5.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/kfzvsk1p2hvsgr4rvzk2bqn9h2a2m0fd-diffoscope-77.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/kfzvsk1p2hvsgr4rvzk2bqn9h2a2m0fd-diffoscope-77.drv’ failed
Steps to reproduce
Technical details
18.03pre114421.799435b7ca (Impala)nix-env (Nix) 1.11.1418.03pre114421.799435b7ca