diff --git a/NetworkManager.spec b/NetworkManager.spec index d4cbef2..15e6d6e 100644 --- a/NetworkManager.spec +++ b/NetworkManager.spec @@ -24,6 +24,7 @@ Source1: nm-applet-%{version}.%{applet_snapshot}.tar.gz Source2: nm-system-settings.conf Patch1: NetworkManager-0.6.5-fixup-internal-applet-build.patch Patch2: nm-applet-0.7.0-disable-stuff.patch +Patch3: no-strict-aliasing.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) PreReq: chkconfig @@ -132,6 +133,7 @@ NetworkManager functionality from applications that use glib. tar -xzf %{SOURCE1} %patch1 -p1 -b .buildfix %patch2 -p1 -b .disable-stuff +%patch3 -p1 -b .no-strict-aliasing %build # Even though we don't require named, we still build with it diff --git a/no-strict-aliasing.patch b/no-strict-aliasing.patch new file mode 100644 index 0000000..6f9d46e --- /dev/null +++ b/no-strict-aliasing.patch @@ -0,0 +1,13 @@ +diff -up NetworkManager-0.7.0/configure.in.foo NetworkManager-0.7.0/configure.in +--- NetworkManager-0.7.0/configure.in.foo 2008-02-07 22:12:04.000000000 -0500 ++++ NetworkManager-0.7.0/configure.in 2008-02-07 22:12:57.000000000 -0500 +@@ -238,7 +238,8 @@ if test "$GCC" = "yes" -a "$set_more_war + + for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \ + -Wdeclaration-after-statement -Wstrict-prototypes \ +- -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare; do ++ -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \ ++ -Wno-strict-aliasing; do + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $option" + AC_MSG_CHECKING([whether gcc understands $option])