Comment 2 for bug 2000062

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Yes John's comment is correct, we can't just run `make check` for source cloned from launchpad directly. It will complain about:
  aa-genprof:60: undefined name 'PermissionError'
  aa-genprof:130: undefined name 'PermissionError'

I will update the bug description.

qa-regression-testing will have some local patches[1] applied before starting the test. We must use it to get a working version.

To experiment with the patched version via qa-regression-testing, comment out the following lines (1583, 1584) in tearDown()
        if os.path.exists(self.tmpdir):
            testlib.recursive_rm(self.tmpdir)

With the patched apparmor-2.13.3, I can just remove the "python2" string from apparmor-2.13.3/common/Make.rules file and run the following commands without any error:
  export USE_SYSTEM=1
  make check

Please find attachment for the test output.

In this case we might be able to add another local patch in qa-regression-testing for this change.
[1] https://git.launchpad.net/qa-regression-testing/tree/scripts/apparmor/patches