From patchwork Fri Apr 24 10:47:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 1276317 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=ni5JKkbD; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 497rV3410Yz9sSW for ; Fri, 24 Apr 2020 20:47:37 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id F016D86DE5; Fri, 24 Apr 2020 10:47:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kUp8uHxT7-US; Fri, 24 Apr 2020 10:47:34 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1B8F486D1E; Fri, 24 Apr 2020 10:47:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 6A2C81BF5A2 for ; Fri, 24 Apr 2020 10:47:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 662DC236B5 for ; Fri, 24 Apr 2020 10:47:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id e8NgOmRtPgHE for ; Fri, 24 Apr 2020 10:47:30 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by silver.osuosl.org (Postfix) with ESMTPS id 308B1203ED for ; Fri, 24 Apr 2020 10:47:29 +0000 (UTC) Received: by mail-lf1-f66.google.com with SMTP id j14so7295174lfg.9 for ; Fri, 24 Apr 2020 03:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id; bh=gJrTxIR+eqCjI0byc/eHpobRG6aLwYZgnrlYAtBfRNY=; b=ni5JKkbDmD8VPG4xu72Gd1NE8bzW1xY/7OnCimeRovC2Sw9hjpcWMWU/yiAn0kXmG3 zXLh7oVfRtJ2yVaBL20MRCiNe0CRPLuU/R2cOetcxdYjMNQ34vjYO9A90MWvv+kPkzmy /mDjC9JwYIivUtTsfWlUZnemekdJqIf9oizws= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=gJrTxIR+eqCjI0byc/eHpobRG6aLwYZgnrlYAtBfRNY=; b=bUosiglzsM6+TEkLz7cA6BQ/zfKKJ9fwQIx788urNruSre30nMVkkUgdRSbA+Ohz7D 0jxny2lcRmzxia/SNzIhEH82deSzPC3xSeQFtjG5OdJ/ttIFzTvMkoiOp5KtwwM3sI1O X0V3kD5JM68fw2PHFzl0y3qD/I5gwt3lJjt2XD5S6vo6STNsywjyVX94msZ01jJdQn3f 2Qfa6qMetRAmlZvUJ3fjHre5xyBEKKIKInC9QevGCn6HQLR+e26P8NphLU0SkyC8VgKG Am1MIUZk6OoP+3SsLJNnf86whHzdEr0xCt0rHf+YU6JaC4N3tRs326RM2YaDd3LLG94/ G3Ng== X-Gm-Message-State: AGi0PuYu7ryQAaFo95O01iMT876gisyWBxEI3ihLBgBTEwIvYH07Z8RK d6quAhkcDeVvXqa9Xh5Zmsa7RNsozDY= X-Google-Smtp-Source: APiQypIz2h2V08r5KoNcQThBlniQbrTwYFtIBAmtqbVAOGlLXcDVe/oTYGXWz3r9e0TqprO1CUXkjA== X-Received: by 2002:a19:4204:: with SMTP id p4mr5855171lfa.111.1587725247191; Fri, 24 Apr 2020 03:47:27 -0700 (PDT) Received: from angelo-ThinkPad-T470p.powersoft.it (host185100179096.static.fidoka.tech. [185.100.179.96]) by smtp.gmail.com with ESMTPSA id r9sm2331508ljh.36.2020.04.24.03.47.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Apr 2020 03:47:26 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Fri, 24 Apr 2020 12:47:23 +0200 Message-Id: <1587725243-7586-1-git-send-email-angelo@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 Subject: [Buildroot] [PATCH] package/apparmor: fixing installation os detection X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Angelo Compagnucci MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Actually the install target of some tools like the parser tries to do an os detection to understand what install and where. Incidentally, when the install is invoked on SuSE, this will trig a bug in parallel install which manifests as "target/lib/apparmor: File exists" error. For this problem, a patch is already sent upstream. For buildroot instead, the os detection is useless so we disable it and use a generic install method. Fixes: http://autobuild.buildroot.net/results/b18c6a9ce67065dcb7968c6f473b3b403d2925d2 Signed-off-by: Angelo Compagnucci --- package/apparmor/apparmor.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/apparmor/apparmor.mk b/package/apparmor/apparmor.mk index 311a797..9180fcd 100644 --- a/package/apparmor/apparmor.mk +++ b/package/apparmor/apparmor.mk @@ -15,7 +15,7 @@ APPARMOR_LICENSE_FILES = LICENSE parser/COPYING.GPL APPARMOR_DEPENDENCIES = libapparmor APPARMOR_TOOLS = parser -APPARMOR_MAKE_OPTS = USE_SYSTEM=1 +APPARMOR_MAKE_OPTS = USE_SYSTEM=1 DISTRO=unknown ifeq ($(BR2_PACKAGE_APPARMOR_BINUTILS),y) APPARMOR_TOOLS += binutils