From patchwork Fri Mar 20 19:14:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Williams X-Patchwork-Id: 452773 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 8EB39140146 for ; Sat, 21 Mar 2015 06:15:34 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0D942926E5; Fri, 20 Mar 2015 19:15:33 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DxtRzxFh6NEy; Fri, 20 Mar 2015 19:15:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 44CC1926C1; Fri, 20 Mar 2015 19:15:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 59C5D1C2357 for ; Fri, 20 Mar 2015 19:14:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 572C1926AE for ; Fri, 20 Mar 2015 19:14:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nbyXtbdKyGy0 for ; Fri, 20 Mar 2015 19:14:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-yh0-f42.google.com (mail-yh0-f42.google.com [209.85.213.42]) by whitealder.osuosl.org (Postfix) with ESMTPS id 4F1AA9259B for ; Fri, 20 Mar 2015 19:14:58 +0000 (UTC) Received: by yhpt93 with SMTP id t93so44196059yhp.0 for ; Fri, 20 Mar 2015 12:14:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mWSQ59Qtmlm+TktgD56VXdbhVVL1+B/LPF4gnCRn334=; b=X4ckcb3znj28D/+ptgIwEE1tJfpIRj06TljVKhQ1XgecPwHKpGhvTHuD6N6I8qdtNL 93JFtoBda6d3qU/2TDqKMu/bh4QjEAeNArW13FsfcuBVa32AQ6bjk7TGbUHU7mrYrOWO XvwGJ6Wz83d9qAoAoZguITPdK7S8HPa8s95hxHA3H3rKOwpPb5y1xX6d4yuBoTfEgJ71 7vPJ6kIY81OY48jfNBjEDnJ+VghsN9rRjracNVPtw8jGqUGwBGAfQmsznvszOmafjBUV AZfVQwV7s7s0LJJHyd42vvqfsNPS9OHjVp23VVc3ChonQ8M8GBsCZ+aR5wrpSjHCd/8d CpQQ== X-Gm-Message-State: ALoCoQm07oEJqEt784Zu7Y3xurl9kbvTHZLesra98rEWZ89foX76K8besg6LvHBSNslXANitZkYD X-Received: by 10.236.206.13 with SMTP id k13mr82507309yho.51.1426878897652; Fri, 20 Mar 2015 12:14:57 -0700 (PDT) Received: from mikework.lifesafer.com (FUSE-DEDICATED-66-42-228-99.fuse.net. [66.42.228.99]) by mx.google.com with ESMTPSA id c5sm4193119yhf.29.2015.03.20.12.14.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Mar 2015 12:14:56 -0700 (PDT) From: Mike Williams To: buildroot@busybox.net Date: Fri, 20 Mar 2015 15:14:14 -0400 Message-Id: <1426878856-15747-24-git-send-email-mike@mikebwilliams.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1426878856-15747-1-git-send-email-mike@mikebwilliams.com> References: <1426878856-15747-1-git-send-email-mike@mikebwilliams.com> Subject: [Buildroot] [PATCH v2 23/25] avahi: systemd cleanups 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" * Move service files to /usr/lib/systemd/system/ * Only disable systemd support on non-systemd systems Signed-off-by: Mike Williams --- package/avahi/0002-disable-systemd-support.patch | 22 ---------------------- package/avahi/avahi.mk | 8 ++++++-- 2 files changed, 6 insertions(+), 24 deletions(-) delete mode 100644 package/avahi/0002-disable-systemd-support.patch diff --git a/package/avahi/0002-disable-systemd-support.patch b/package/avahi/0002-disable-systemd-support.patch deleted file mode 100644 index 909795a..0000000 --- a/package/avahi/0002-disable-systemd-support.patch +++ /dev/null @@ -1,22 +0,0 @@ -[PATCH] avahi-daemon: disable systemd support - -Disable systemd support as it isn't needed for BR, and uses SOCK_CLOEXEC -which isn't available on uClibc. - -Signed-off-by: Peter Korsgaard ---- - avahi-daemon/sd-daemon.h | 1 + - 1 file changed, 1 insertion(+) - -Index: avahi-0.6.27/avahi-daemon/sd-daemon.h -=================================================================== ---- avahi-0.6.27.orig/avahi-daemon/sd-daemon.h -+++ avahi-0.6.27/avahi-daemon/sd-daemon.h -@@ -66,6 +66,7 @@ extern "C" { - - See sd-daemon(7) for more information. - */ -+#define DISABLE_SYSTEMD /* no systemd support in BR */ - - #if __GNUC__ >= 4 - #define _sd_printf_attr_(a,b) __attribute__ ((format (printf, a, b))) diff --git a/package/avahi/avahi.mk b/package/avahi/avahi.mk index 10c9915..53bbab7 100644 --- a/package/avahi/avahi.mk +++ b/package/avahi/avahi.mk @@ -88,6 +88,10 @@ AVAHI_DEPENDENCIES = \ $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) host-intltool \ host-pkgconf host-gettext +ifneq ($(BR2_PACKAGE_SYSTEMD),y) +AVAHI_CFLAGS += -DDISABLE_SYSTEMD +endif + ifneq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_AVAHI_AUTOIPD),) AVAHI_DEPENDENCIES += libdaemon else @@ -185,10 +189,10 @@ ifeq ($(BR2_PACKAGE_AVAHI_DAEMON),y) define AVAHI_INSTALL_INIT_SYSTEMD mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants - ln -fs /lib/systemd/system/avahi-daemon.service \ + ln -fs ../../../../usr/lib/systemd/system/avahi-daemon.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/avahi-daemon.service - ln -fs /lib/systemd/system/avahi-dnsconfd.service \ + ln -fs ../../../../usr/lib/systemd/system/avahi-dnsconfd.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/avahi-dnsconfd.service $(INSTALL) -D -m 644 package/avahi/avahi_tmpfiles.conf \