GNU bug report logs -
#59336
[PATCH 0/6] gnu: Add apparmor.
Previous Next
Reported by: Hilton Chain <hako <at> ultrarare.space>
Date: Thu, 17 Nov 2022 16:29:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 59336 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/apparmor.scm (apparmor-parser): New variable.
---
gnu/packages/apparmor.scm | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/gnu/packages/apparmor.scm b/gnu/packages/apparmor.scm
index 742414e18b..8648a2213f 100644
--- a/gnu/packages/apparmor.scm
+++ b/gnu/packages/apparmor.scm
@@ -125,3 +125,24 @@ (define-public apparmor
(native-inputs (list gettext-minimal perl which))
(inputs (list libapparmor))
(license license:gpl2)))
+
+(define-public apparmor-parser
+ (let ((base apparmor))
+ (package
+ (inherit base)
+ (name "apparmor-parser")
+ (arguments
+ (substitute-keyword-arguments (package-arguments base)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'change-directory
+ (lambda _
+ (chdir "parser")))
+ (add-after 'change-directory 'fix-kernel-header-path
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "Makefile"
+ (("/include/linux/capability.h" path)
+ (search-input-file inputs path)))))))))
+ (native-inputs
+ (modify-inputs (package-native-inputs base)
+ (append bison flex python-minimal))))))
--
2.38.1
This bug report was last modified 2 years and 228 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.