summaryrefslogtreecommitdiff
path: root/source/xap/fluxbox
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/fluxbox')
-rwxr-xr-xsource/xap/fluxbox/fluxbox.SlackBuild3
-rw-r--r--source/xap/fluxbox/fluxbox.gcc11.patch11
2 files changed, 14 insertions, 0 deletions
diff --git a/source/xap/fluxbox/fluxbox.SlackBuild b/source/xap/fluxbox/fluxbox.SlackBuild
index 5bb39832..934b6b0a 100755
--- a/source/xap/fluxbox/fluxbox.SlackBuild
+++ b/source/xap/fluxbox/fluxbox.SlackBuild
@@ -83,6 +83,9 @@ zcat $CWD/fluxbox.startfluxbox.dbus.diff.gz | patch -p1 --verbose || exit 1
# Fix multimedia volume keys:
zcat $CWD/fluxbox.keys.diff.gz | patch -p1 --verbose || exit 1
+# Fix build with gcc11:
+zcat $CWD/fluxbox.gcc11.patch.gz | patch -p1 --verbose || exit 1
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
diff --git a/source/xap/fluxbox/fluxbox.gcc11.patch b/source/xap/fluxbox/fluxbox.gcc11.patch
new file mode 100644
index 00000000..f0184971
--- /dev/null
+++ b/source/xap/fluxbox/fluxbox.gcc11.patch
@@ -0,0 +1,11 @@
+--- ./util/fluxbox-remote.cc.orig 2015-02-08 04:44:45.377187009 -0600
++++ ./util/fluxbox-remote.cc 2021-08-05 23:16:44.301526535 -0500
+@@ -73,7 +73,7 @@
+ if (strcmp(cmd, "result") == 0) {
+ XTextProperty text_prop;
+ if (XGetTextProperty(disp, root, &text_prop, atom_result) != 0
+- && text_prop.value > 0
++ && text_prop.value != 0
+ && text_prop.nitems > 0) {
+
+ printf("%s", text_prop.value);