From: Rosen Penev Date: Wed, 26 Feb 2020 03:31:34 +0000 (-0800) Subject: avahi: update to 0.8 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F11436%2Fhead;p=feed%2Fpackages.git avahi: update to 0.8 Clean up Makefile slightly. Update configure options for the new version. Remove first patch and update the other one. Use a different solution for the stack protector on certain platforms. Run script through shellcheck. Small quote fix. Signed-off-by: Rosen Penev --- diff --git a/libs/avahi/Makefile b/libs/avahi/Makefile index 1fc0660545..d020c1e6b8 100644 --- a/libs/avahi/Makefile +++ b/libs/avahi/Makefile @@ -8,23 +8,19 @@ include $(TOPDIR)/rules.mk PKG_NAME:=avahi -PKG_VERSION:=0.7 -PKG_RELEASE:=5 +PKG_VERSION:=0.8 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/lathiat/avahi/releases/download/v$(PKG_VERSION) \ https://avahi.org/download -PKG_HASH:=57a99b5dfe7fdae794e3d1ee7a62973a368e91e414bd0dfa5d84434de5b14804 +PKG_HASH:=060309d7a333d38d951bc27598c677af1796934dbd98e1024e7ad8de798fedda PKG_MAINTAINER:=Ted Hess PKG_LICENSE:=LGPL-2.1-or-later PKG_LICENSE_FILES:=LICENSE PKG_CPE_ID:=cpe:/a:avahi:avahi -PKG_BUILD_DEPENDS:=intltool/host -PKG_FIXUP:=autoreconf -PKG_REMOVE_FILES:=autogen.sh - PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 @@ -255,22 +251,24 @@ $(call Package/avahi/Default/description) endef TARGET_CFLAGS += $(FPIC) -DGETTEXT_PACKAGE +TARGET_LDFLAGS += $(if $(CONFIG_SSP_SUPPORT),-lssp_nonshared) -CONFIGURE_ARGS+= \ +CONFIGURE_ARGS += \ --enable-shared \ --enable-static \ --disable-glib \ --disable-gobject \ + --disable-introspection \ --disable-qt3 \ --disable-qt4 \ + --disable-qt5 \ --disable-gtk \ --disable-gtk3 \ - --with-xml=expat \ --disable-dbm \ --enable-gdbm \ --enable-libdaemon \ + --disable-libevent \ --disable-python \ - --disable-pygtk \ --disable-python-dbus \ --disable-mono \ --disable-monodoc \ @@ -284,18 +282,16 @@ CONFIGURE_ARGS+= \ --disable-doxygen-html \ --disable-doxygen-ps \ --disable-doxygen-pdf \ + --disable-manpages \ --disable-xmltoman \ + --disable-tests \ + --with-xml=expat \ --with-distro=none \ --with-avahi-user=nobody \ --with-avahi-group=nogroup \ --with-autoipd-user=nobody \ --with-autoipd-group=nogroup -ifneq ($(CONFIG_SSP_SUPPORT),y) -CONFIGURE_ARGS+= \ - --disable-stack-protector -endif - ifeq ($(BUILD_VARIANT),dbus) ifneq ($(CONFIG_PACKAGE_libavahi-compat-libdnssd),) CONFIGURE_ARGS += \ @@ -310,7 +306,7 @@ endif CONFIGURE_VARS+= \ CFLAGS="$$$$CFLAGS -DNDEBUG -DDISABLE_SYSTEMD" \ - ac_cv_header_sys_capability_h=no \ + ac_cv_header_sys_capability_h=no define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include diff --git a/libs/avahi/files/netifd-autoip.sh b/libs/avahi/files/netifd-autoip.sh index 65f1a8b89c..be6725b837 100755 --- a/libs/avahi/files/netifd-autoip.sh +++ b/libs/avahi/files/netifd-autoip.sh @@ -9,7 +9,7 @@ proto_autoip_setup() { local iface="$2" proto_export "INTERFACE=$config" - proto_run_command "$config" avahi-autoipd $iface + proto_run_command "$config" avahi-autoipd "$iface" } proto_autoip_teardown() { diff --git a/libs/avahi/patches/010-step_back_autotools-no-gettext.patch b/libs/avahi/patches/010-step_back_autotools-no-gettext.patch deleted file mode 100644 index 667a8c45bb..0000000000 --- a/libs/avahi/patches/010-step_back_autotools-no-gettext.patch +++ /dev/null @@ -1,88 +0,0 @@ -diff --git a/Makefile.am b/Makefile.am -index 8234d69..156d4c4 100644 ---- a/Makefile.am -+++ b/Makefile.am -@@ -75,8 +75,7 @@ SUBDIRS = \ - avahi-compat-howl \ - avahi-autoipd \ - avahi-ui \ -- avahi-ui-sharp \ -- po -+ avahi-ui-sharp - - DX_INPUT = \ - $(srcdir)/avahi-common/address.h \ -diff --git a/avahi-python/avahi-discover/Makefile.am b/avahi-python/avahi-discover/Makefile.am -index 5fc4b25..4c39d3d 100644 ---- a/avahi-python/avahi-discover/Makefile.am -+++ b/avahi-python/avahi-discover/Makefile.am -@@ -38,7 +38,6 @@ if HAVE_GDBM - pythonscripts += \ - avahi-discover - desktop_DATA += avahi-discover.desktop --@INTLTOOL_DESKTOP_RULE@ - avahi_discover_PYTHON += __init__.py - endif - -@@ -46,7 +45,6 @@ if HAVE_DBM - pythonscripts += \ - avahi-discover - desktop_DATA += avahi-discover.desktop --@INTLTOOL_DESKTOP_RULE@ - avahi_discover_PYTHON += __init__.py - endif - -diff --git a/avahi-ui/Makefile.am b/avahi-ui/Makefile.am -index 238d43a..65a147a 100644 ---- a/avahi-ui/Makefile.am -+++ b/avahi-ui/Makefile.am -@@ -80,7 +80,6 @@ endif - - bin_PROGRAMS = bssh - desktop_DATA += bssh.desktop bvnc.desktop --@INTLTOOL_DESKTOP_RULE@ - - bssh_SOURCES = bssh.c - -@@ -108,6 +107,4 @@ endif # HAVE_GLIB - endif - endif - --@INTLTOOL_DESKTOP_RULE@ -- - CLEANFILES = $(desktop_DATA) $(desktop_DATA_in) -diff --git a/configure.ac b/configure.ac -index 6678971..00dac6e 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -23,7 +23,7 @@ AC_INIT([avahi],[0.7],[avahi (at) lists (dot) freedesktop (dot) org]) - AC_CONFIG_SRCDIR([avahi-core/server.c]) - AC_CONFIG_MACRO_DIR([common]) - AC_CONFIG_HEADERS([config.h]) --AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability silent-rules tar-pax]) -+AM_INIT_AUTOMAKE([foreign 1.11 -Wall -Wno-portability tar-pax]) - - AC_SUBST(PACKAGE_URL, [http://avahi.org/]) - -@@ -43,8 +43,6 @@ AC_SUBST(HOWL_COMPAT_VERSION, [0.9.8]) - - AC_CANONICAL_HOST - --AM_SILENT_RULES([yes]) -- - AC_CHECK_PROG([STOW], [stow], [yes], [no]) - - AS_IF([test "x$STOW" = "xyes" && test -d /usr/local/stow], [ -@@ -413,12 +411,6 @@ if test "x$have_kqueue" = "xyes" ; then - AC_DEFINE([HAVE_KQUEUE], 1, [Enable BSD kqueue() usage]) - fi - --IT_PROG_INTLTOOL([0.35.0]) --GETTEXT_PACKAGE=avahi --AC_SUBST([GETTEXT_PACKAGE]) --AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[Gettext package]) --AM_GLIB_GNU_GETTEXT -- - avahilocaledir='${prefix}/${DATADIRNAME}/locale' - AC_SUBST(avahilocaledir) - diff --git a/libs/avahi/patches/020-revert-runtime-dir-systemd-change.patch b/libs/avahi/patches/020-revert-runtime-dir-systemd-change.patch index a3b3cc6a4c..5e31bfd84f 100644 --- a/libs/avahi/patches/020-revert-runtime-dir-systemd-change.patch +++ b/libs/avahi/patches/020-revert-runtime-dir-systemd-change.patch @@ -1,26 +1,11 @@ -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 +--- a/configure ++++ b/configure +@@ -24638,7 +24638,7 @@ _ACEOF # # 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) + +