summaryrefslogtreecommitdiff
path: root/libraries/plplot
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2022-02-26 18:07:41 -0600
committerRobby Workman <rworkman@slackbuilds.org>2022-02-26 21:58:39 -0600
commite0985ec4053a55805409af7d9203b3ebdc122d8b (patch)
treeb759234297eef04beadce6d75d633fd310e3a175 /libraries/plplot
parentdad88f9273de5a7ae9ce6d6129eb00143fda727e (diff)
downloadslackbuilds-e0985ec4053a55805409af7d9203b3ebdc122d8b.tar.gz
libraries/plplot: Fix build (missing include)
Diffstat (limited to 'libraries/plplot')
-rw-r--r--libraries/plplot/fix-QPainterPath-include.patch11
-rw-r--r--libraries/plplot/plplot.SlackBuild2
2 files changed, 13 insertions, 0 deletions
diff --git a/libraries/plplot/fix-QPainterPath-include.patch b/libraries/plplot/fix-QPainterPath-include.patch
new file mode 100644
index 0000000000..8797aa3e33
--- /dev/null
+++ b/libraries/plplot/fix-QPainterPath-include.patch
@@ -0,0 +1,11 @@
+diff -Nur plplot-5.15.0.orig/bindings/qt_gui/plqt.cpp plplot-5.15.0/bindings/qt_gui/plqt.cpp
+--- plplot-5.15.0.orig/bindings/qt_gui/plqt.cpp 2019-06-01 18:24:33.000000000 -0500
++++ plplot-5.15.0/bindings/qt_gui/plqt.cpp 2022-02-26 18:05:49.916622395 -0600
+@@ -23,6 +23,7 @@
+ //
+
+ #include "qt.h"
++#include <QPainterPath>
+
+ // Global variables for Qt driver.
+ PLDLLIMPEXP_QT_DATA( int ) vectorize = 0;
diff --git a/libraries/plplot/plplot.SlackBuild b/libraries/plplot/plplot.SlackBuild
index f148167451..0b7f23f114 100644
--- a/libraries/plplot/plplot.SlackBuild
+++ b/libraries/plplot/plplot.SlackBuild
@@ -79,6 +79,8 @@ 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/fix-QPainterPath-include.patch
+
mkdir -p build
cd build
cmake \