fix deprecated error

This commit is contained in:
yanzh_h 2020-01-13 23:43:15 +08:00
parent 21711ab588
commit 9e24efbded
2 changed files with 28 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Name: libindicator
Version: 12.10.1
Release: 14
Release: 15
Summary: Shared functions for Ayatana indicators
License: GPLv3
URL: https://launchpad.net/libindicator
@ -9,7 +9,7 @@ BuildRequires: chrpath gtk-doc libtool pkgconfig dbus-glib-devel gtk2-devel gtk3
Requires: pkgconfig
Provides: %{name}-tools = %{version}-%{release}
Obsoletes: %{name}-tools < %{version}-%{release}
Patch0001: no-Werror-deprecated.patch
%description
A set of symbols and convenience functions that all Ayatana indicators are likely to use.
@ -150,5 +150,8 @@ done
%changelog
* Mon Jan 13 2020 yanzhihua<yanzhihua4@huawei.com> - 12.10.1-15
- Fix deprecated error
* Sat Dec 21 2019 zoushuangshuang<zoushuangshuang@huawei.com> - 12.10.1-14
- Package init

View File

@ -0,0 +1,23 @@
diff -aurN libindicator-12.10.1/libindicator/Makefile.am libindicator-12.10.1-mod/libindicator/Makefile.am
--- libindicator-12.10.1/libindicator/Makefile.am 2012-09-19 17:38:05.113919565 +0200
+++ libindicator-12.10.1-mod/libindicator/Makefile.am 2019-12-24 12:49:00.616622404 +0100
@@ -57,7 +57,7 @@
$(LIBINDICATOR_CFLAGS) \
$(COVERAGE_CFLAGS) \
-DG_LOG_DOMAIN=\"libindicator\" \
- -Wall -Werror
+ -Wall -Wno-deprecated-declarations
libindicator_la_LIBADD = \
$(LIBINDICATOR_LIBS)
diff -aurN libindicator-12.10.1/tools/Makefile.am libindicator-12.10.1-mod/tools/Makefile.am
--- libindicator-12.10.1/tools/Makefile.am 2012-09-19 17:38:04.933829559 +0200
+++ libindicator-12.10.1-mod/tools/Makefile.am 2019-12-24 12:49:56.087444990 +0100
@@ -17,7 +17,7 @@
indicator-loader.c
indicator_loader_CFLAGS = \
- -Wall -Werror \
+ -Wall -Wno-deprecated-declarations \
$(LIBINDICATOR_CFLAGS) -I$(top_srcdir) \
-DBUILD_DIR="\"$(builddir)\""