diff --git a/00-no-werror.patch b/00-no-werror.patch new file mode 100644 index 0000000..50ba4f1 --- /dev/null +++ b/00-no-werror.patch @@ -0,0 +1,52 @@ +diff --git a/libdbusmenu-glib/Makefile.am b/libdbusmenu-glib/Makefile.am +index 2dea5f6..01832ce 100644 +--- a/libdbusmenu-glib/Makefile.am ++++ b/libdbusmenu-glib/Makefile.am +@@ -66,7 +66,7 @@ libdbusmenu_glib_la_LDFLAGS = \ + libdbusmenu_glib_la_CFLAGS = \ + $(DBUSMENUGLIB_CFLAGS) \ + $(COVERAGE_CFLAGS) \ +- -Wall -Werror -Wno-error=deprecated-declarations \ ++ -Wall -Wno-error=deprecated-declarations \ + -DG_LOG_DOMAIN="\"LIBDBUSMENU-GLIB\"" + + libdbusmenu_glib_la_LIBADD = \ +diff --git a/libdbusmenu-gtk/Makefile.am b/libdbusmenu-gtk/Makefile.am +index 9a7a2b0..a9a2b49 100644 +--- a/libdbusmenu-gtk/Makefile.am ++++ b/libdbusmenu-gtk/Makefile.am +@@ -66,7 +66,7 @@ libdbusmenu_gtk_la_CFLAGS = \ + $(DBUSMENUGTK_CFLAGS) \ + $(COVERAGE_CFLAGS) \ + -I$(top_srcdir) \ +- -Wall -Werror -Wno-error=deprecated-declarations \ ++ -Wall -Wno-error=deprecated-declarations \ + -DG_LOG_DOMAIN="\"LIBDBUSMENU-GTK\"" + + libdbusmenu_gtk_la_LIBADD = \ +diff --git a/tests/Makefile.am b/tests/Makefile.am +index 64e3e75..699c2c9 100644 +--- a/tests/Makefile.am ++++ b/tests/Makefile.am +@@ -103,7 +103,7 @@ TESTS_ENVIRONMENT = env GI_TYPELIB_PATH=$(top_builddir)/libdbusmenu-glib:$(top_b + ############################################ + + DBUSMENU_GLIB_TEST_CFLAGS = \ +- -Wall -Werror \ ++ -Wall \ + -DG_DISABLE_DEPRECATED \ + -I$(top_srcdir) \ + $(DBUSMENUTESTS_CFLAGS) \ +diff --git a/tools/Makefile.am b/tools/Makefile.am +index 029b73e..2258cca 100644 +--- a/tools/Makefile.am ++++ b/tools/Makefile.am +@@ -16,7 +16,7 @@ dbusmenu_dumper_CFLAGS = \ + -I $(srcdir)/.. \ + $(DBUSMENUGLIB_CFLAGS) \ + $(DBUSMENUDUMPER_CFLAGS) \ +- -Wall -Werror ++ -Wall + + dbusmenu_dumper_LDADD = \ + ../libdbusmenu-glib/libdbusmenu-glib.la \ diff --git a/libdbusmenu.spec b/libdbusmenu.spec index 1a8c331..8e2506b 100644 --- a/libdbusmenu.spec +++ b/libdbusmenu.spec @@ -9,7 +9,7 @@ Name: libdbusmenu Version: %{ubuntu_release}.0 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Library for passing menus over DBus # All files installed in final rpms use C sources with dual licensing headers. @@ -19,6 +19,9 @@ License: LGPLv3 or LGPLv2 and GPLv3 URL: https://launchpad.net/libdbusmenu Source0: https://launchpad.net/libdbusmenu/%{ubuntu_release}/%{version}/+download/%{name}-%{version}.tar.gz +# patch to remove -Werror flag - fixes build despite usage of deprecated things +Patch0: 00-no-werror.patch + BuildRequires: atk-devel BuildRequires: autoconf BuildRequires: automake @@ -135,6 +138,11 @@ that use %{name}. %prep %setup -q -n %{name}-%{version} -c + +pushd %{name}-%{version} +%patch0 -p1 +popd + cp -a %{name}-%{version}/{README,COPYING,COPYING.2.1,COPYING-GPL3,AUTHORS,ChangeLog} . cp -a %{name}-%{version} %{name}-gtk3-%{version} @@ -250,6 +258,9 @@ done %{_datadir}/%{name}/json/test-gtk-label.json %changelog +* Mon Sep 09 2019 Fabio Valentini - 16.04.0-13 +- Remove -Werror flag to fix build despite usage of deprecated things. + * Thu Jul 25 2019 Fedora Release Engineering - 16.04.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild