I think the problem might be an unnecessary backslash in common/Make.rules:
CAPABILITIES=$(shell echo "\#include <linux/capability.h>" | cpp -dM | LC_ALL=C sed -n -e '/CAP_EMPTY_SET/d' -e 's/^\#define[ \t]\+CAP_\([A-Z0-9_]\+\)[ \t]\+\([0-9xa-f]\+\)\(.*\)$$/CAP_\1/p' | LC_ALL=C sort) I wrote a dummy makefile to test this and $(CAPABILITIES) was empty. Changing to this: CAPABILITIES=$(shell echo "#include <linux/capability.h>" | cpp -dM | LC_ALL=C sed -n -e '/CAP_EMPTY_SET/d' -e 's/^\#define[ \t]\+CAP_\([A-Z0-9_]\+\)[ \t]\+\([0-9xa-f]\+\)\(.*\)$$/CAP_\1/p' | LC_ALL=C sort) gives what I think is the expected output. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apparmor in Ubuntu. https://bugs.launchpad.net/bugs/1887577 Title: DEP8: Invalid capability setuid Status in apparmor package in Ubuntu: New Bug description: https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac /autopkgtest- groovy/groovy/amd64/a/apparmor/20200713_202347_dd214@/log.gz Excuses is showing apparmor failing dep8 tests when they are triggered by another package. last time apparmor was uploaded was on May 14th, and this is the package under test: https://launchpad.net/ubuntu/+source/apparmor/2.13.3-7ubuntu6 The errors are like this: FAIL: test_profile_newer_rewrites_cache (__main__.AAParserAltCacheTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/tmp/tmp.40nJ4LqRYT/parser/tst/testlib.py", line 50, in new_unittest_func return unittest_func(self) File "./caching.py", line 448, in test_profile_newer_rewrites_cache self._generate_cache_file() File "./caching.py", line 257, in _generate_cache_file self.run_cmd_check(cmd) File "/tmp/tmp.40nJ4LqRYT/parser/tst/testlib.py", line 73, in run_cmd_check self.assertEqual(rc, expected_rc, "Got return code %d, expected %d\nCommand run: %s\nOutput: %s" % (rc, expected_rc, (' '.join(command)), report)) AssertionError: 1 != 0 : Got return code 1, expected 0 Command run: ../apparmor_parser --config-file=./parser.conf --base /tmp/aa-caching-s3l9wndt --skip-kernel-load --cache-loc /tmp/aa-caching-s3l9wndt/cache --cache-loc /tmp/aa-caching-s3l9wndt/aa-alt-cachezi43qt78 -q --write-cache -r /tmp/aa-caching-s3l9wndt/sbin.pingy Output: AppArmor parser error for /tmp/aa-caching-s3l9wndt/sbin.pingy in /tmp/aa-caching-s3l9wndt/suid-abstraction at line 3: Invalid capability setuid. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1887577/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp