From 08d5cbe0e2db5e6dc5b815049cc67f906898521a Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 10 Nov 2011 15:09:58 -0600 Subject: [PATCH] Ignore GTK deprecated symbols --- NetworkManager.spec | 2 ++ applet-ignore-deprecated.patch | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 applet-ignore-deprecated.patch diff --git a/NetworkManager.spec b/NetworkManager.spec index 74c3a3f..f9127b4 100644 --- a/NetworkManager.spec +++ b/NetworkManager.spec @@ -29,6 +29,7 @@ Patch3: nm-applet-no-notifications.patch Patch4: nm-polkit-permissive.patch Patch5: nm-applet-wifi-dialog-ui-fixes.patch Patch6: nss-error.patch +Patch7: applet-ignore-deprecated.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires(post): chkconfig @@ -192,6 +193,7 @@ tar -xjf %{SOURCE1} %patch4 -p1 -b .polkit-permissive %patch5 -p1 -b .applet-wifi-ui %patch6 -p1 -b .nss-error +%patch7 -p1 -b .no-deprecated %build diff --git a/applet-ignore-deprecated.patch b/applet-ignore-deprecated.patch new file mode 100644 index 0000000..9b01d27 --- /dev/null +++ b/applet-ignore-deprecated.patch @@ -0,0 +1,12 @@ +diff -up NetworkManager-0.9.2.0/network-manager-applet-0.9.2.0/m4/compiler_warnings.m4.depre NetworkManager-0.9.2.0/network-manager-applet-0.9.2.0/m4/compiler_warnings.m4 +--- NetworkManager-0.9.2.0/network-manager-applet-0.9.2.0/m4/compiler_warnings.m4.depre 2011-11-10 15:03:07.528830185 -0600 ++++ NetworkManager-0.9.2.0/network-manager-applet-0.9.2.0/m4/compiler_warnings.m4 2011-11-10 15:05:28.273070638 -0600 +@@ -7,7 +7,7 @@ if test "$GCC" = "yes" -a "$set_more_war + AC_MSG_RESULT(yes) + CFLAGS="-Wall -Werror -std=gnu89 $CFLAGS" + +- for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \ ++ for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wno-deprecated-declarations -Wno-error=deprecated-declarations \ + -Wdeclaration-after-statement -Wstrict-prototypes \ + -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \ + -fno-strict-aliasing; do