Created attachment 345512 [details] build.log Build log is attached. The error comes from this section of python_execute_function: if [[ "${separate_build_dirs}" == "1" ]]; then if [[ -n "${source_dir}" ]]; then export BUILDDIR="${S}/${source_dir}-${PYTHON_ABI}"; else export BUILDDIR="${S}-${PYTHON_ABI}"; fi; pushd "${BUILDDIR}" > /dev/null || die "pushd failed"; else export BUILDDIR="${S}"; fi; With FEATURES="keepwork" I see that there is a directory called "/var/tmp/portage/dev-python/sepolgen-1.1.8-r1/work/sepolgen-1.1.8", but no python-version-specific one.
Okay, fixed test part, got two test failures I need to sort out: ====================================================================== ERROR: test_export (test_interfaces.TestInterfaceSet) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/portage/portage/dev-python/sepolgen-1.1.9-r1/work/sepolgen-1.1.9-2.7/tests/test_interfaces.py", line 263, in test_export i.add_headers(h) File "../src/./sepolgen/interfaces.py", line 412, in add_headers self.add(i, attributes) File "../src/./sepolgen/interfaces.py", line 407, in add ifv = InterfaceVector(interface, attributes) File "../src/./sepolgen/interfaces.py", line 257, in __init__ self.from_interface(interface, attributes) File "../src/./sepolgen/interfaces.py", line 279, in from_interface if not attributes.attributes.has_key(attr): AttributeError: 'dict' object has no attribute 'attributes' ====================================================================== FAIL: test_append (test_matching.TestMatchList) ---------------------------------------------------------------------- Traceback (most recent call last): File "/var/portage/portage/dev-python/sepolgen-1.1.9-r1/work/sepolgen-1.1.9-2.7/tests/test_matching.py", line 94, in test_append self.assertEqual(len(ml), 1) AssertionError: 2 != 1 I have fixes for both prepared, but want to check with upstream if those are indeed okay.
sepolgen-1.1.9-r2 is in the tree with the fixes. Didn't get any reply from the mailinglist (upstream) so I'm hoping the fixes are correct (couldn't see any regressions otherwise).
This works for me now. One of the tests fails, but I'll make a separate bug for that.
In main tree, stable (the test that fails because the sepolgen configuration file isn't there is not resolved yet, see other bug for that)