From: Jeremiah McConnell Date: Fri, 15 Jun 2018 21:26:19 +0000 (-0600) Subject: avahi: patch systemd runtime_dir change in 0.7 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=933037e998ce24088f5ef42f0ca966a8c6b3c1c8;p=feed%2Fpackages.git avahi: patch systemd runtime_dir change in 0.7 In avahi 0.7 the runtime_dir was updated to be /run instead of /var/run for better systemd compatibility. Patch out that change to fix avahi-daemon. Signed-off-by: Jeremiah McConnell --- diff --git a/libs/avahi/Makefile b/libs/avahi/Makefile index 3f6407e2b0..a4955e318b 100644 --- a/libs/avahi/Makefile +++ b/libs/avahi/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=avahi PKG_VERSION:=0.7 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/lathiat/avahi/releases/download/v$(PKG_VERSION) \ diff --git a/libs/avahi/patches/020-revert-runtime-dir-systemd-change.patch b/libs/avahi/patches/020-revert-runtime-dir-systemd-change.patch new file mode 100644 index 0000000000..a3b3cc6a4c --- /dev/null +++ b/libs/avahi/patches/020-revert-runtime-dir-systemd-change.patch @@ -0,0 +1,26 @@ +From ef0ea001f6dd13d6a2e0bc17d13f595d2829f8a8 Mon Sep 17 00:00:00 2001 +From: Jeremiah McConnell +Date: Fri, 15 Jun 2018 11:31:10 -0600 +Subject: [PATCH] move runtime_dir to /var/run + +Upstream transitioned to using /run as runtime_dir for 0.7. Revert +that change for procd compatibility. + +Signed-off-by: Jeremiah McConnell +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 72d61478..8f6e9768 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -984,7 +984,7 @@ AC_DEFINE_UNQUOTED(AVAHI_AUTOIPD_GROUP,"$AVAHI_AUTOIPD_GROUP", [Group for runnin + # + # Avahi runtime dir + # +-avahi_runtime_dir="/run" ++avahi_runtime_dir="${localstatedir}/run" + avahi_socket="${avahi_runtime_dir}/avahi-daemon/socket" + AC_SUBST(avahi_runtime_dir) + AC_SUBST(avahi_socket)