From 2e0e97f7f0b0ea319bc2ac5e1c25c7393bdcbb8d Mon Sep 17 00:00:00 2001 From: compile_success <980965867@qq.com> Date: Mon, 13 Jan 2020 23:17:34 +0800 Subject: [PATCH] fix problem --- libappindicator.spec | 6 ++---- no-Werror-deprecated.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 no-Werror-deprecated.patch diff --git a/libappindicator.spec b/libappindicator.spec index d4614ca..e84beb3 100644 --- a/libappindicator.spec +++ b/libappindicator.spec @@ -7,7 +7,7 @@ URL: https://launchpad.net/libappindicator Source0: https://launchpad.net/libappindicator/12.10/12.10.0/+download/libappindicator-12.10.0.tar.gz Patch0001: 0001_Fix_mono_dir.patch Patch0002: incompatible_pointer_build_fix.patch - +Patch0003: no-Werror-deprecated.patch BuildRequires: autoconf automake gtk-doc vala-tools dbus-glib-devel libdbusmenu-devel BuildRequires: libdbusmenu-gtk2-devel libdbusmenu-gtk3-devel gobject-introspection-devel BuildRequires: gtk2-devel gtk3-devel libindicator-devel libindicator-gtk3-devel @@ -68,9 +68,7 @@ This package contains the development files for the appindicator-sharp library. %endif %prep -%setup -q -%patch0001 -p1 -b .monodir -%patch0002 -p1 -b .incompatible_pointer_build_fix +%autosetup -p1 sed -i "s#gmcs#mcs#g" configure.ac sed -i 's/--nogtkinit//' docs/reference/Makefile.am gtkdocize --copy diff --git a/no-Werror-deprecated.patch b/no-Werror-deprecated.patch new file mode 100644 index 0000000..4816e31 --- /dev/null +++ b/no-Werror-deprecated.patch @@ -0,0 +1,12 @@ +diff -aurN libappindicator-12.10.0/src/Makefile.am libappindicator-12.10.0-mod/src/Makefile.am +--- libappindicator-12.10.0/src/Makefile.am 2012-07-11 19:28:34.415113869 +0200 ++++ libappindicator-12.10.0-mod/src/Makefile.am 2019-12-24 13:38:57.015051155 +0100 +@@ -76,7 +76,7 @@ + libappindicator_la_CFLAGS = \ + $(LIBRARY_CFLAGS) \ + $(COVERAGE_CFLAGS) \ +- -Wall -Werror \ ++ -Wall -Wno-deprecated-declarations \ + -DG_LOG_DOMAIN=\"libappindicator\" + + libappindicator_la_LIBADD = \