When emerging apparmor without gettext installed (e.g. you've set USE="-nls" globally and depclean removed it), the emerge fails because the apparmor Makefile unconditionally invokes msgfmt(1). It would be best if the apparmor ebuild could get an nls USE flag to control this behaviour, but if the problem is with upstream (e.g. they do not provide a way to disable localisation), putting sys-devel/gettext into DEPEND is necessary.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e119f775ad1bb6fbff97f68fcc89d15a3880c889 commit e119f775ad1bb6fbff97f68fcc89d15a3880c889 Author: Michael Palimaka <kensington@gentoo.org> AuthorDate: 2019-03-28 13:16:48 +0000 Commit: Michael Palimaka <kensington@gentoo.org> CommitDate: 2019-03-28 13:17:29 +0000 sys-apps/apparmor-utils: add missing dependency Closes: https://bugs.gentoo.org/681788 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Michael Palimaka <kensington@gentoo.org> sys-apps/apparmor-utils/apparmor-utils-2.13.2.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18ea30bfa215fdc18e982b9fe8b18caa5db416e8 commit 18ea30bfa215fdc18e982b9fe8b18caa5db416e8 Author: Michael Palimaka <kensington@gentoo.org> AuthorDate: 2019-03-28 13:15:44 +0000 Commit: Michael Palimaka <kensington@gentoo.org> CommitDate: 2019-03-28 13:17:29 +0000 sys-apps/apparmor: add missing dependency Closes: https://bugs.gentoo.org/681788 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Michael Palimaka <kensington@gentoo.org> sys-apps/apparmor/apparmor-2.13.2.ebuild | 1 + 1 file changed, 1 insertion(+)
Thanks for the report!