Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2 1/1] package/avahi: add optional support for libcap
@ 2016-02-21 17:57 Bernd Kuhls
  2016-02-21 20:35 ` Thomas Petazzoni
  2016-02-25 22:12 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Bernd Kuhls @ 2016-02-21 17:57 UTC (permalink / raw)
  To: 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 <bernd.kuhls@t-online.de>
---
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
-- 
2.7.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-02-25 22:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-21 17:57 [Buildroot] [PATCH v2 1/1] package/avahi: add optional support for libcap Bernd Kuhls
2016-02-21 20:35 ` Thomas Petazzoni
2016-02-21 20:43   ` Peter Korsgaard
2016-02-21 21:46     ` Yann E. MORIN
2016-02-25 22:12 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox