From patchwork Sat Feb 20 22:52:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 585752 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 608E2140B0F for ; Sun, 21 Feb 2016 09:52:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A2DB1A5B0F; Sat, 20 Feb 2016 22:52:39 +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 LiGmuf4Cq5Mw; Sat, 20 Feb 2016 22:52:39 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2B5BAA5A1D; Sat, 20 Feb 2016 22:52:39 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 3A19E1CF342 for ; Sat, 20 Feb 2016 22:52:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3701EA5ABB for ; Sat, 20 Feb 2016 22:52:27 +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 fedx5RDcXdCk for ; Sat, 20 Feb 2016 22:52:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout04.t-online.de (mailout04.t-online.de [194.25.134.18]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 7F393A5B35 for ; Sat, 20 Feb 2016 22:52:26 +0000 (UTC) Received: from fwd13.aul.t-online.de (fwd13.aul.t-online.de [172.20.27.62]) by mailout04.t-online.de (Postfix) with SMTP id E340E34655F for ; Sat, 20 Feb 2016 23:52:24 +0100 (CET) Received: from fli4l.lan.fli4l (STmLDBZHZh5POqoLTQ4k+2MSVx1VVXs1yLr4copoO1ktHO+Jlr2jSSZnj4iC7GEQwc@[84.191.222.26]) by fwd13.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1aXGO0-3uMPXk0; Sat, 20 Feb 2016 23:52:24 +0100 Received: from mahler.lan.fli4l ([192.168.1.1]:37056 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.86) (envelope-from ) id 1aXGNz-00047a-D8; Sat, 20 Feb 2016 23:52:23 +0100 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sat, 20 Feb 2016 23:52:22 +0100 Message-Id: <1456008742-4361-1-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.7.0 X-ID: STmLDBZHZh5POqoLTQ4k+2MSVx1VVXs1yLr4copoO1ktHO+Jlr2jSSZnj4iC7GEQwc X-TOI-MSGID: fa28eff6-a3a2-4ede-b227-c27b748aa387 Cc: Bernd Kuhls Subject: [Buildroot] [PATCH 1/1] package/trace-cmd: add optional support for audit X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" When audit was compiled before, trace-cmd will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/bin/trace-cmd | grep NEEDED | sort 0x0000000000000001 (NEEDED) Shared library: [ld64-uClibc.so.1] 0x0000000000000001 (NEEDED) Shared library: [libaudit.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.1] 0x0000000000000001 (NEEDED) Shared library: [libdl.so.1] Signed-off-by: Bernd Kuhls --- package/trace-cmd/trace-cmd.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/trace-cmd/trace-cmd.mk b/package/trace-cmd/trace-cmd.mk index 839e7ee..2348155 100644 --- a/package/trace-cmd/trace-cmd.mk +++ b/package/trace-cmd/trace-cmd.mk @@ -13,6 +13,10 @@ TRACE_CMD_LICENSE_FILES = COPYING COPYING.LIB TRACE_CMD_DEPENDENCIES = host-pkgconf +ifeq ($(BR2_PACKAGE_AUDIT),y) +TRACE_CMD_DEPENDENCIES += audit +endif + ifeq ($(BR2_PACKAGE_PYTHON),y) TRACE_CMD_DEPENDENCIES += python host-swig TRACE_CMD_MAKE_OPTS = PYTHON_VERS=python