From 32af62b5ccba7663283e9b8c07d314da927e99f5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 9 Oct 2013 23:07:38 +0200 Subject: [PATCH] avahi-discover: make this build with gtk+3>=3.10. --- srcpkgs/avahi-discover/template | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/srcpkgs/avahi-discover/template b/srcpkgs/avahi-discover/template index 17985779932..0187e3c2875 100644 --- a/srcpkgs/avahi-discover/template +++ b/srcpkgs/avahi-discover/template @@ -32,6 +32,15 @@ if [ "$CROSS_BUILD" ]; then msg_error "$pkgver: this package is not cross buildable currently.\n" fi +pre_configure() { + # Disable GTK deprecations and -Werror to let this build with gtk+>=3.10. + sed -e 's,-DG_DISABLE_DEPRECATED=1,,' \ + -e 's,-DGDK_DISABLE_DEPRECATED=1,,' \ + -e 's,-DGTK_DISABLE_DEPRECATED=1,,' \ + -i avahi-ui/Makefile.in + sed -e 's,-Werror,,g' -i configure +} + avahi-python-utils_package() { noarch=yes depends="avahi-python>=$version"