diff --git a/icewm-gcc47.patch b/icewm-gcc47.patch new file mode 100644 index 0000000..44b7003 --- /dev/null +++ b/icewm-gcc47.patch @@ -0,0 +1,13 @@ +Index: icewm-1.3.7/src/yarray.h +=================================================================== +--- icewm-1.3.7.orig/src/yarray.h ++++ icewm-1.3.7/src/yarray.h +@@ -152,7 +152,7 @@ public: + } + + virtual void remove(const typename YArray::SizeType index) { +- if (index < YArray::getCount()) delete getItem(index); ++ if (index < YArray::getCount()) delete this->getItem(index); + YArray::remove(index); + } + diff --git a/icewm-x11.patch b/icewm-x11.patch new file mode 100644 index 0000000..b676315 --- /dev/null +++ b/icewm-x11.patch @@ -0,0 +1,21 @@ +Description: Don't use "deprecated" as identifier, will FTBFS if another + library defines functions as deprecated. +Author: Andreas Moog +Bug: https://sourceforge.net/tracker/?func=detail&aid=3494034&group_id=31&atid=100031 +Bug-Ubuntu: https://bugs.launchpad.net/bugs/935179 +Forwarded: Yes + +--- icewm-1.3.7.orig/src/base.h ++++ icewm-1.3.7/src/base.h +@@ -2,9 +2,9 @@ + #define __BASE_H + + #if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3 +-#define deprecated __attribute__((deprecated)) ++#define ICEWM_deprecated __attribute__((deprecated)) + #else +-#define deprecated ++#define ICEWM_deprecated + #endif + + /*** Atomar Data Types ********************************************************/ diff --git a/icewm.changes b/icewm.changes index 4fc7ef9..11d928a 100644 --- a/icewm.changes +++ b/icewm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 22 10:25:52 UTC 2012 - idonmez@suse.com + +- Fix build with gcc 4.7 +- Fix build with new X11 headers + ------------------------------------------------------------------- Tue Dec 20 20:49:49 UTC 2011 - coolo@suse.com diff --git a/icewm.spec b/icewm.spec index 3001613..7e4ce4b 100644 --- a/icewm.spec +++ b/icewm.spec @@ -1,7 +1,7 @@ # # spec file for package icewm # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: icewm BuildRequires: autoconf BuildRequires: gcc-c++ @@ -28,7 +29,9 @@ BuildRequires: pkgconfig(libgnomeui-2.0) BuildRequires: fdupes %endif Provides: windowmanager -Requires: icewm-bin, xdg-menu, desktop-data +Requires: desktop-data +Requires: icewm-bin +Requires: xdg-menu Version: 1.3.7 Release: 0 Source: icewm-%version.tar.bz2 @@ -41,6 +44,8 @@ Patch5: icewm-1.2.35-empty-winmenu.patch Patch6: icewm-1.2.35-unaligned-access.patch Patch7: icewm-1.3.6-winoptions.patch Patch8: icewm-linking.patch +Patch9: icewm-gcc47.patch +Patch10: icewm-x11.patch # applied in %%build Patch99: icewm-preferences.patch Url: http://www.icewm.org/ @@ -111,6 +116,8 @@ Authors: %patch6 %patch7 -p1 %patch8 +%patch9 -p1 +%patch10 -p1 %build autoconf