From eb32494754a9c51aea08be1d0772a9dde2c9d8ca Mon Sep 17 00:00:00 2001 From: lisu Date: Wed, 11 Jan 2012 15:47:16 +0000 Subject: [PATCH] - fix build Changed files: blackbox-headers.patch -> 1.1 blackbox.spec -> 1.98 --- blackbox-headers.patch | 81 ++++++++++++++++++++++++++++++++++++++++++ blackbox.spec | 5 +++ 2 files changed, 86 insertions(+) create mode 100644 blackbox-headers.patch diff --git a/blackbox-headers.patch b/blackbox-headers.patch new file mode 100644 index 0000000..a363e3e --- /dev/null +++ b/blackbox-headers.patch @@ -0,0 +1,81 @@ +--- blackbox-0.70.1/lib/Resource.cc~ 2005-04-06 23:16:50.000000000 +0200 ++++ blackbox-0.70.1/lib/Resource.cc 2012-01-11 15:21:17.675011644 +0100 +@@ -27,6 +27,7 @@ + + #include + #include ++#include + + #include + +--- blackbox-0.70.1/lib/Image.cc~ 2005-04-08 17:41:09.000000000 +0200 ++++ blackbox-0.70.1/lib/Image.cc 2012-01-11 15:27:22.674988031 +0100 +@@ -44,6 +44,7 @@ + #include + #include + #include ++#include + + // #define COLORTABLE_DEBUG + // #define MITSHM_DEBUG +--- blackbox-0.70.1/lib/XDG.cc~ 2005-04-06 16:04:38.000000000 +0200 ++++ blackbox-0.70.1/lib/XDG.cc 2012-01-11 15:42:22.908223679 +0100 +@@ -26,6 +26,7 @@ + #include "XDG.hh" + + #include ++#include + + + // make sure directory names end with a slash +--- blackbox-0.70.1/src/BlackboxResource.cc~ 2005-10-18 09:34:46.000000000 +0200 ++++ blackbox-0.70.1/src/BlackboxResource.cc 2012-01-11 15:47:10.752352766 +0100 +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + + + BlackboxResource::BlackboxResource(const std::string& rc): rc_file(rc) { +--- blackbox-0.70.1/src/ScreenResource.cc~ 2005-04-13 07:54:08.000000000 +0200 ++++ blackbox-0.70.1/src/ScreenResource.cc 2012-01-11 15:48:21.508187413 +0100 +@@ -32,6 +32,7 @@ + #include + + #include ++#include + + + static const int iconify_width = 9; +--- blackbox-0.70.1/src/Screen.cc~ 2005-10-18 10:07:22.000000000 +0200 ++++ blackbox-0.70.1/src/Screen.cc 2012-01-11 15:50:26.161508387 +0100 +@@ -47,6 +47,7 @@ + #include + #include + #include ++#include + + + static bool running = true; +--- blackbox-0.70.1/src/main.cc~ 2005-01-03 10:42:57.000000000 +0100 ++++ blackbox-0.70.1/src/main.cc 2012-01-11 15:51:55.055666254 +0100 +@@ -35,6 +35,7 @@ + #include "../version.h" + + #include ++#include + + + static void showHelp(int exitval) { +--- blackbox-0.70.1/util/bsetroot.cc~ 2005-03-15 08:01:37.000000000 +0100 ++++ blackbox-0.70.1/util/bsetroot.cc 2012-01-11 16:22:52.285480550 +0100 +@@ -31,6 +31,8 @@ + + #include + #include ++#include ++#include + + + // ignore all X errors diff --git a/blackbox.spec b/blackbox.spec index f694840..dbef84a 100644 --- a/blackbox.spec +++ b/blackbox.spec @@ -27,11 +27,13 @@ Patch4: %{name}-etc_dir.patch Patch5: %{name}-nls-codesets.patch Patch6: %{name}-assert.patch Patch7: %{name}-lib64.patch +Patch8: %{name}-headers.patch URL: http://blackboxwm.sourceforge.net/ BuildRequires: autoconf BuildRequires: automake %{?with_epistrophy:Requires: epistrophy} BuildRequires: rpm >= 4.0.2-48 +BuildRequires: sed >= 4.0 BuildRequires: xorg-lib-libX11-devel BuildRequires: xorg-lib-libXft-devel Obsoletes: fluxbox @@ -78,6 +80,9 @@ ist. %if "%{_lib}" == "lib64" %patch7 -p0 %endif +%patch8 -p1 + +%{__sed} -i 's,_XUTIL_H_,_X11&,' lib/Util.hh %build rm -f missing -- 2.44.0