From fa1423e489b2099d2be4fa1ee5e128ad1453ebfb Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Oct 18 2019 04:36:57 +0000 Subject: Remove -Werror to be able to build with recent glib See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940164 --- diff --git a/bamf.spec b/bamf.spec index b245751..7d087af 100644 --- a/bamf.spec +++ b/bamf.spec @@ -62,8 +62,13 @@ package contains the bamf daemon and supporting data. %prep %autosetup -p1 +# autotools add -Werror after our flags, and there are glib deprecation warnings +# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=940164 +sed -i 's/ -Werror//' configure* + + %build -CFLAGS="$RPM_OPT_FLAGS -Wno-error=deprecated-declarations" +CFLAGS="$RPM_OPT_FLAGS" export CFLAGS %configure --disable-static --disable-webapps --enable-gtk-doc make %{?_smp_mflags}