From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4P+WOGZidmPUJwEAbAwnHQ (envelope-from ) for ; Thu, 17 Nov 2022 17:33:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kjOEOGZidmNezgAA9RJhRA (envelope-from ) for ; Thu, 17 Nov 2022 17:33:42 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A9F8B16D29 for ; Thu, 17 Nov 2022 17:33:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovhp4-00039b-I7; Thu, 17 Nov 2022 11:33:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovhp1-000392-LW for guix-patches@gnu.org; Thu, 17 Nov 2022 11:33:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovhp0-0002of-WC for guix-patches@gnu.org; Thu, 17 Nov 2022 11:33:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovhp0-0003jY-Rd for guix-patches@gnu.org; Thu, 17 Nov 2022 11:33:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59336] [PATCH 3/6] gnu: Add apparmor-parser. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 17 Nov 2022 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59336 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59336@debbugs.gnu.org Received: via spool by 59336-submit@debbugs.gnu.org id=B59336.166870272314244 (code B ref 59336); Thu, 17 Nov 2022 16:33:02 +0000 Received: (at 59336) by debbugs.gnu.org; 17 Nov 2022 16:32:03 +0000 Received: from localhost ([127.0.0.1]:34120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovho3-0003hg-Eh for submit@debbugs.gnu.org; Thu, 17 Nov 2022 11:32:03 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:54398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovho1-0003h5-MW for 59336@debbugs.gnu.org; Thu, 17 Nov 2022 11:32:02 -0500 Date: Fri, 18 Nov 2022 00:31:26 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1668702716; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=V+M/WId5bnTq4tuM6k7nQKdQd2Vw7107CanPJ7yRTi4=; b=qCVDwXCF1iQkOxeDnXM+b21Limo8TUxEQc76WQxQZfuiX80AWB8mYxaFaT/Zl+xpWLhNJh lLGCTexXkSI7sdPXx6KEOSZfqczoQ9R9YU0ZgkErDqj/wKqzCwO+FEJ9q55PfuRma+UgcW ZwRjVG+Aq+TY7uisUm/T2S07682L9kmCpGdqBtjeXu17ZNT6eKbgsWViBnATdnHNsxfJ0u 2ZUpPHMqAOSCq2xLyqhJDJw3Ip+nOUTZIFTDLxGEzJOahk4KEeQhVRW1glzOJJRtisutr5 eBfWMrtiTAjti0Neaimf1jrXTGNs4kHm1vQIR7JKKdravBbxtCFr+DBR4Gt16g== Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668702822; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=V+M/WId5bnTq4tuM6k7nQKdQd2Vw7107CanPJ7yRTi4=; b=jKtJtYntIfYz2cel130obKCDGk8A6Y7UgOdB439wf46zvcPqLNkzWjep9+/JdxFIWmUprD RUI9kHtQxnMdeXnNuXqHPDmsoeNjm4F51z+Xx8H/kZP9kxUdITCl2xG9x9ZFZN2u+xjXnI QxyXFLnWODY6/8YEJm8VQGu5hFeVsD1O7/tX8Yxu48DlDsX2UF0eybyNi9vXlx3YFRVL6F abr0jOkoBWjAJxOqaXOmAsQlWF9YZNiJ6j8mXNUy6E/8qFhMV9ZcDk8iOeuYSSbsDderSU 9su0gdC2kw+KDaHS49joWEwCpr8w0bAJJhdVmOrLEQLUDv/XIqEHvB42O9eYCg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668702822; a=rsa-sha256; cv=none; b=GqLxCHOy1htdem9kmZ3FKud+dpLN6OkdPu3tZn3IKVAgQ1Wm2GuwV6yDpsHwY1CmOKNErY ZzqWqx7NibOC66c/T07t+HuaUuY9lzpUHrWov9Vn5v2gZLlnHHwSoyoL+VFouh96b22DHt cg2XUvgiv/EY4ASrBUYdHgH9h3tZSRl0Z4Z90MbXSMUTGyWRW40O8tn+v5cOdSBBQrfnsh X8R6WdoD77MsrMCQjWl6S0qy9aaXIE9W+lXgnAjxQI0z1JwGFHbIAYPUqqJpjtmXGzkICt C7D3bJzkwzea3WQ3QMe1OtPJMj5pgrApqbuINVlupVWtd9EI4eHUJKD8CSfhWQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=qCVDwXCF; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=qCVDwXCF; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: A9F8B16D29 X-Spam-Score: -3.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4Ar3HP+vvzxx * 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