[NetworkManager] Ignore GTK deprecated symbols

Daniel Williams dcbw at fedoraproject.org
Thu Nov 10 21:11:36 UTC 2011


commit 08d5cbe0e2db5e6dc5b815049cc67f906898521a
Author: Dan Williams <dcbw at redhat.com>
Date:   Thu Nov 10 15:09:58 2011 -0600

    Ignore GTK deprecated symbols

 NetworkManager.spec            |    2 ++
 applet-ignore-deprecated.patch |   12 ++++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
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


More information about the scm-commits mailing list