summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
author Matteo Bernardini2022-02-08 10:46:56 +0100
committer Willy Sudiarto Raharjo2022-02-09 03:35:58 +0100
commitf5dde89f8ea37ff8aa54dfa405bbcfb5ff781635 (patch)
treeb0e2564144e24363a017e339994f4c1ca59de997 /desktop
parent6747b040c9106c034e995ab5d10b077972872beb (diff)
downloadslackbuilds-f5dde89f8ea37ff8aa54dfa405bbcfb5ff781635.tar.gz
desktop/XDecorations: Patch for the newer gcc.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/XDecorations/XDecorations.SlackBuild1
-rw-r--r--desktop/XDecorations/gcc.patch18
2 files changed, 19 insertions, 0 deletions
diff --git a/desktop/XDecorations/XDecorations.SlackBuild b/desktop/XDecorations/XDecorations.SlackBuild
index 8dcd9a1d47..8ef275ea12 100644
--- a/desktop/XDecorations/XDecorations.SlackBuild
+++ b/desktop/XDecorations/XDecorations.SlackBuild
@@ -79,6 +79,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 < $CWD/gcc.patch
patch < $CWD/makefile.patch
make
diff --git a/desktop/XDecorations/gcc.patch b/desktop/XDecorations/gcc.patch
new file mode 100644
index 0000000000..a2b95a08bd
--- /dev/null
+++ b/desktop/XDecorations/gcc.patch
@@ -0,0 +1,18 @@
+diff -Naur XDecorations-0.1.7.orig/xdecorations.cpp XDecorations-0.1.7/xdecorations.cpp
+--- XDecorations-0.1.7.orig/xdecorations.cpp 2014-12-21 16:32:53.000000000 +0100
++++ XDecorations-0.1.7/xdecorations.cpp 2022-02-08 10:43:41.415924000 +0100
+@@ -1,4 +1,4 @@
+-#if 0
++/*
+ ©Keith Hedger Mon 20 Oct 14:21:11 BST 2014 kdhedger68713@gmail.com
+ * This program is free software;
+ you can redistribute it and/or modify
+@@ -19,7 +19,7 @@
+ * Foundation,Inc.,59 Temple Place,Suite 330,Boston,MA 02111-1307 USA
+
+ * toon_root.c Copyright (C) 1999-2001 Robin Hogan
+-#endif
++*/
+
+ #include <X11/Intrinsic.h>
+ #include <X11/Xlib.h>