From patchwork Sun Feb 21 17:57:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 585855 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 8DE5F140B0E for ; Mon, 22 Feb 2016 04:57:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id BE43B95772; Sun, 21 Feb 2016 17:57:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YZFT5Uf8w2ju; Sun, 21 Feb 2016 17:57:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id D914495383; Sun, 21 Feb 2016 17:57:26 +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 8E8A71BFDFF for ; Sun, 21 Feb 2016 17:57:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8BAB997BCF for ; Sun, 21 Feb 2016 17:57:25 +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 veHrloQDcxyh for ; Sun, 21 Feb 2016 17:57:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 6F4668BDEF for ; Sun, 21 Feb 2016 17:57:24 +0000 (UTC) Received: from fwd18.aul.t-online.de (fwd18.aul.t-online.de [172.20.26.244]) by mailout08.t-online.de (Postfix) with SMTP id B94B023E93F for ; Sun, 21 Feb 2016 18:57:22 +0100 (CET) Received: from fli4l.lan.fli4l (VgsuDMZ6QhSWm5requ4SYJjE74K1HMKGxb2BoG1Xi-GdKJ3eSgA7E+UDHkM4nzagYl@[84.191.215.50]) by fwd18.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1aXYG1-25ydHM0; Sun, 21 Feb 2016 18:57:21 +0100 Received: from mahler.lan.fli4l ([192.168.1.1]:46916 helo=kuhls.lan.fli4l) by fli4l.lan.fli4l with esmtp (Exim 4.86) (envelope-from ) id 1aXYG0-0002sq-KF; Sun, 21 Feb 2016 18:57:21 +0100 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sun, 21 Feb 2016 18:57:19 +0100 Message-Id: <1456077439-26606-1-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.7.0 X-ID: VgsuDMZ6QhSWm5requ4SYJjE74K1HMKGxb2BoG1Xi-GdKJ3eSgA7E+UDHkM4nzagYl X-TOI-MSGID: 52e4bf86-fc5d-4fde-bca7-bbd0e12635eb Cc: Bernd Kuhls Subject: [Buildroot] [PATCH v2 1/1] package/avahi: add optional support for libcap 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 libcap was compiled before, avahi daemon will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/sbin/avahi-daemon | grep NEEDED | sort 0x0000000000000001 (NEEDED) Shared library: [libavahi-common.so.3] 0x0000000000000001 (NEEDED) Shared library: [libavahi-core.so.7] 0x0000000000000001 (NEEDED) Shared library: [libcap.so.2] [...] The build system offers no option to en-/disable libcap support: http://git.0pointer.net/avahi.git/tree/configure.ac#n382 The check for libcap was placed inside the BR2_PACKAGE_AVAHI_DAEMON because only avahi-daemon uses libcap, it provides chroot support. Signed-off-by: Bernd Kuhls --- v2: moved the new code block a bit and added more notes about the usage of libcap (Thomas) package/avahi/avahi.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/avahi/avahi.mk b/package/avahi/avahi.mk index 5d6e6a8..e84a69e 100644 --- a/package/avahi/avahi.mk +++ b/package/avahi/avahi.mk @@ -118,6 +118,9 @@ endif ifeq ($(BR2_PACKAGE_AVAHI_DAEMON),y) AVAHI_DEPENDENCIES += expat AVAHI_CONF_OPTS += --with-xml=expat +ifeq ($(BR2_PACKAGE_LIBCAP),y) +AVAHI_DEPENDENCIES += libcap +endif else AVAHI_CONF_OPTS += --with-xml=none endif