From ef048c17274b6afc9a5f95efd37ccaaed9699fea Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Mon, 3 Oct 2016 23:50:54 +0200 Subject: [PATCH] anjuta: fix gcc6 build --- srcpkgs/anjuta/template | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/srcpkgs/anjuta/template b/srcpkgs/anjuta/template index 46ff4905598..02099c4aead 100644 --- a/srcpkgs/anjuta/template +++ b/srcpkgs/anjuta/template @@ -1,7 +1,7 @@ # Template file for 'anjuta' pkgname=anjuta version=3.22.0 -revision=1 +revision=2 build_style=gnu-configure build_options="gir" configure_args="$(vopt_enable gir introspection)" @@ -26,6 +26,14 @@ if [ -z "$CROSS_BUILD" ]; then build_options_default="gir" fi +CFLAGS="-O2 -Wno-deprecated-declarations" + +_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }') +if [ "${_gccver%%.*}" -gt 5 ]; then + CFLAGS+=" -Wno-error=format-nonliteral -Wno-error=format-y2k" +fi +CXXFLAGS="${CFLAGS}" + anjuta-devel_package() { replaces="anjuta-docs>=0" short_desc+=" - development files"