public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fluxbox] epel9: - write and add gcc41 patch
@ 2026-11-09 11:54 Andreas Bierfert
  0 siblings, 0 replies; only message in thread
From: Andreas Bierfert @ 2026-11-09 11:54 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/fluxbox
Branch : epel9
Commit : 8c6b0945b35af92e782d29b1cd8613fe5d19f9d7
Author : Andreas Bierfert <awjb@fedoraproject.org>
Date   : 2006-03-02T00:31:36+00:00
Stats  : +143/-2 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/fluxbox/c/8c6b0945b35af92e782d29b1cd8613fe5d19f9d7?branch=epel9

Log:
- write and add gcc41 patch

---
diff --git a/fluxbox-gcc41.patch b/fluxbox-gcc41.patch
new file mode 100644
index 0000000..9b23b02
--- /dev/null
+++ b/fluxbox-gcc41.patch
@@ -0,0 +1,133 @@
+diff -uhr fluxbox-0.9.14.orig/src/ClockTool.cc fluxbox-0.9.14/src/ClockTool.cc
+--- fluxbox-0.9.14.orig/src/ClockTool.cc	2005-07-03 14:28:08.000000000 +0200
++++ fluxbox-0.9.14/src/ClockTool.cc	2006-03-02 01:14:45.000000000 +0100
+@@ -50,7 +50,7 @@
+ 
+ class ClockMenuItem: public FbTk::MenuItem {
+ public:
+-    explicit ClockMenuItem::ClockMenuItem(ClockTool &tool):
++    explicit ClockMenuItem(ClockTool &tool):
+         FbTk::MenuItem(""), m_tool(tool) { 
+         // determine 12/24 hour format
+         _FB_USES_NLS;
+Only in fluxbox-0.9.14/src: defaults.cc
+diff -uhr fluxbox-0.9.14.orig/src/IconbarTool.cc fluxbox-0.9.14/src/IconbarTool.cc
+--- fluxbox-0.9.14.orig/src/IconbarTool.cc	2005-07-04 20:18:25.000000000 +0200
++++ fluxbox-0.9.14/src/IconbarTool.cc	2006-03-02 01:15:27.000000000 +0100
+@@ -49,6 +49,8 @@
+ #include <iterator>
+ using namespace std;
+ 
++namespace FbTk {
++
+ template<>
+ void FbTk::Resource<IconbarTool::Mode>::setFromString(const char *strval) {
+     if (strcasecmp(strval, "None") == 0) 
+@@ -190,7 +192,7 @@
+     // default string
+     return string("Icons");
+ }
+-
++} // end namespace FbTk
+ namespace {
+ 
+ class ToolbarModeMenuItem : public FbTk::MenuItem {
+Only in fluxbox-0.9.14/src: .IconbarTool.cc.swp
+diff -uhr fluxbox-0.9.14.orig/src/MenuTheme.cc fluxbox-0.9.14/src/MenuTheme.cc
+--- fluxbox-0.9.14.orig/src/MenuTheme.cc	2005-01-24 19:57:02.000000000 +0100
++++ fluxbox-0.9.14/src/MenuTheme.cc	2006-03-02 01:11:36.000000000 +0100
+@@ -26,6 +26,8 @@
+ #include <iostream>
+ using namespace std;
+ 
++namespace FbTk {
++
+ template <>
+ void FbTk::ThemeItem<Shape::ShapePlace>::load(const std::string *name, const std::string *altname) { }
+ 
+@@ -49,6 +51,7 @@
+ 
+     *(*this) = static_cast<Shape::ShapePlace>(places);
+ }
++} // end namespace FbTk
+ 
+ MenuTheme::MenuTheme(int screen_num):FbTk::MenuTheme(screen_num),
+                                      m_shapeplace(*this, "menu.roundCorners", "Menu.RoundCorners") {
+diff -uhr fluxbox-0.9.14.orig/src/Resources.cc fluxbox-0.9.14/src/Resources.cc
+--- fluxbox-0.9.14.orig/src/Resources.cc	2005-05-07 00:00:29.000000000 +0200
++++ fluxbox-0.9.14/src/Resources.cc	2006-03-02 01:12:54.000000000 +0100
+@@ -37,6 +37,8 @@
+ //---- accessors for int, bool, and some enums with Resource ------
+ //-----------------------------------------------------------------
+ 
++namespace FbTk {
++
+ template<>
+ void FbTk::Resource<int>::
+ setFromString(const char* strval) {
+@@ -250,3 +252,4 @@
+     sprintf(tmpstr, "%ld", m_value);
+     return string(tmpstr);
+ }
++} // end namespace FbTk
+diff -uhr fluxbox-0.9.14.orig/src/ScreenResources.cc fluxbox-0.9.14/src/ScreenResources.cc
+--- fluxbox-0.9.14.orig/src/ScreenResources.cc	2005-07-26 19:34:45.000000000 +0200
++++ fluxbox-0.9.14/src/ScreenResources.cc	2006-03-02 01:08:37.000000000 +0100
+@@ -29,6 +29,8 @@
+ #include <string>
+ using namespace std;
+ 
++namespace FbTk {
++
+ template <>
+ void FbTk::Resource<BScreen::PlacementPolicy>::setDefaultValue() {
+     *(*this) = BScreen::ROWSMARTPLACEMENT;
+@@ -357,4 +359,4 @@
+     else
+         setDefaultValue();
+ }
+-
++} // end namespace FbTk
+diff -uhr fluxbox-0.9.14.orig/src/Slit.cc fluxbox-0.9.14/src/Slit.cc
+--- fluxbox-0.9.14.orig/src/Slit.cc	2005-06-23 05:09:15.000000000 +0200
++++ fluxbox-0.9.14/src/Slit.cc	2006-03-02 01:09:46.000000000 +0100
+@@ -80,6 +80,8 @@
+ #include <algorithm>
+ using namespace std;
+ 
++namespace FbTk {
++
+ template<>
+ void FbTk::Resource<Slit::Placement>::setFromString(const char *strval) {
+     if (strcasecmp(strval, "TopLeft")==0)
+@@ -159,7 +161,7 @@
+     // default string
+     return string("Vertical");
+ }
+-
++} // end namespace FbTk
+ namespace { 
+ 
+ class SlitClientMenuItem: public FbTk::MenuItem{
+diff -uhr fluxbox-0.9.14.orig/src/Toolbar.cc fluxbox-0.9.14/src/Toolbar.cc
+--- fluxbox-0.9.14.orig/src/Toolbar.cc	2005-07-03 14:28:08.000000000 +0200
++++ fluxbox-0.9.14/src/Toolbar.cc	2006-03-02 01:14:05.000000000 +0100
+@@ -73,6 +73,8 @@
+ 
+ using namespace std;
+ 
++namespace FbTk {
++
+ template<>
+ void FbTk::Resource<Toolbar::Placement>::
+ setFromString(const char *strval) {
+@@ -148,7 +150,7 @@
+     //default string
+     return string("BottomCenter");
+ }
+-
++} // end namespace FbTk
+ 
+ namespace {
+ class SetToolbarPlacementCmd: public FbTk::Command {
+Only in fluxbox-0.9.14.orig/util: Makefile.in

diff --git a/fluxbox.spec b/fluxbox.spec
index f822f6b..faddd99 100644
--- a/fluxbox.spec
+++ b/fluxbox.spec
@@ -13,6 +13,7 @@ Source1:        Xclients.%{name}
 Source2:        FluxBox
 Source3:        fluxbox.desktop
 Source4:        fluxbox-xdg-menu.py
+Patch0:         fluxbox-gcc41.patch
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot
 BuildRequires:  imlib2-devel
@@ -26,6 +27,7 @@ BuildRequires:  libXinerama-devel
 BuildRequires:  libXpm-devel
 BuildRequires:  libXrandr-devel
 BuildRequires:  libXrender-devel
+BuildRequires:  fontconfig-devel
 
 Requires(post): python
 Requires:       artwiz-aleczapka-fonts
@@ -42,6 +44,7 @@ Have a look at the homepage for more info ;)
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure      --enable-xft \
@@ -49,7 +52,9 @@ Have a look at the homepage for more info ;)
                 --enable-kde \
                 --enable-xinerama \
 		--enable-imlib2 \
-		--enable-nls
+		--enable-nls \
+		--x-includes=%{_includedir} \
+		--x-libraries=%{_libdir}
 
 make %{?_smp_mflags}
 
@@ -90,8 +95,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_sysconfdir}/X11/dm/Sessions/fluxbox.desktop
 
 %changelog
-* Thu Nov 10 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
+* Thu Mar 02 2006 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
 0.9.14-2
+- fix build on gcc41
+
+* Thu Nov 10 2005 Andreas Bierfert <andreas.bierfert[AT]lowlatency.de>
 - enable nls and imlib2
 - require artwizaleczepka instead of providing it...
 - add menu script from Rudolf Kastel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-09 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 11:54 [rpms/fluxbox] epel9: - write and add gcc41 patch Andreas Bierfert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox