From b5027d8c85223fe18bae28f41a619715762265e8 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Fri, 1 Nov 2019 17:33:35 +0000 Subject: [PATCH] Fix build with glib2 >= 2.62 (-Werror). --- net/pidgin-sipe/patches/patch-configure | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 net/pidgin-sipe/patches/patch-configure diff --git a/net/pidgin-sipe/patches/patch-configure b/net/pidgin-sipe/patches/patch-configure new file mode 100644 index 00000000000..494babac49a --- /dev/null +++ b/net/pidgin-sipe/patches/patch-configure @@ -0,0 +1,18 @@ +$OpenBSD: patch-configure,v 1.1 2019/11/01 17:33:35 ajacoutot Exp $ + +Fix build with glib2 >= 2.62 +sipe-utils.c:304:3: error: 'GTimeVal' is deprecated: Use 'GDateTime' instead [-Werror,-Wdeprecated-declarations] + GTimeVal currtime; + +Index: configure +--- configure.orig ++++ configure +@@ -12505,7 +12505,7 @@ fi + + + if test "x$enable_quality_check" = xyes; then : +- QUALITY_CFLAGS="$QUALITY_CFLAGS -Werror -Wall" ++ QUALITY_CFLAGS="$QUALITY_CFLAGS -Wall" + + for newflag in \ + "-Wextra" \