From c38aedcaf2bdf546fe2b136e53efa2a608d1ce8132fdbc4aa874cb9de7da702d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= Date: Wed, 15 May 2013 12:04:44 +0000 Subject: [PATCH] - fix GCC 4.3 build OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmitool?expand=0&rev=15 --- ipmitool.changes | 5 +++++ ipmitool.spec | 5 +++++ old-gcc-options.patch | 12 ++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 old-gcc-options.patch diff --git a/ipmitool.changes b/ipmitool.changes index ae10163..6c42f3d 100644 --- a/ipmitool.changes +++ b/ipmitool.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 15 12:04:25 UTC 2013 - kkaempf@suse.com + +- fix GCC 4.3 build + ------------------------------------------------------------------- Mon Mar 18 11:29:30 UTC 2013 - dvaleev@suse.com diff --git a/ipmitool.spec b/ipmitool.spec index e9ef256..ad2d1f7 100644 --- a/ipmitool.spec +++ b/ipmitool.spec @@ -39,6 +39,8 @@ Patch8: several_more_compile_fixes.patch Patch9: automake-1.13.patch #PATCH-FIX-UPSTREAM https://sourceforge.net/tracker/?func=detail&aid=3578022&group_id=95200&atid=610550 Patch10: ipmitool-bigendian.patch +#gcc 4.3 does not like -Wno-unused-result -Wno-packed-bitfield-compat, kkaempf@suse.de +Patch11: old-gcc-options.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -71,6 +73,9 @@ and setting LAN configuration, and chassis power control. %patch8 -p1 %patch9 -p1 %patch10 -p1 +%if 0%{?suse_version} < 1140 +%patch11 -p1 +%endif %build touch INSTALL NEWS diff --git a/old-gcc-options.patch b/old-gcc-options.patch new file mode 100644 index 0000000..22f5cd7 --- /dev/null +++ b/old-gcc-options.patch @@ -0,0 +1,12 @@ +diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile ../orig-ipmitool-1.8.12/configure.in ./configure.in +--- ../orig-ipmitool-1.8.12/configure.in 2013-02-28 13:52:11.893152359 +0100 ++++ ./configure.in 2013-05-15 14:01:22.874811257 +0200 +@@ -34,7 +34,7 @@ + AC_CHECK_FUNCS([memmove memset strchr strdup strerror]) + AC_CHECK_FUNCS([getpassphrase]) + +-CFLAGS="$CFLAGS -fno-strict-aliasing -Wreturn-type -Wno-unused-result -Wno-packed-bitfield-compat" ++CFLAGS="$CFLAGS -fno-strict-aliasing -Wreturn-type" + + AM_PROG_LIBTOOL + LIBTOOL="$LIBTOOL --silent"