diff options
Diffstat (limited to 'dev-util/cutter/files')
-rw-r--r-- | dev-util/cutter/files/cutter-1.10.3-python3-config.patch | 36 | ||||
-rw-r--r-- | dev-util/cutter/files/cutter-1.10.3-qt-5.15.patch | 36 |
2 files changed, 72 insertions, 0 deletions
diff --git a/dev-util/cutter/files/cutter-1.10.3-python3-config.patch b/dev-util/cutter/files/cutter-1.10.3-python3-config.patch new file mode 100644 index 000000000000..f024ba26df03 --- /dev/null +++ b/dev-util/cutter/files/cutter-1.10.3-python3-config.patch @@ -0,0 +1,36 @@ +diff --git a/src/Cutter.pro b/src/Cutter.pro +index 5ea3a78..d99b4a5 100644 +--- a/src/Cutter.pro ++++ b/src/Cutter.pro +@@ -115,10 +115,6 @@ unix { + # Libraries + include(lib_radare2.pri) + +-!win32 { +- CONFIG += link_pkgconfig +-} +- + CUTTER_ENABLE_PYTHON { + win32 { + PYTHON_EXECUTABLE = $$system("where python", lines) +@@ -135,10 +131,17 @@ CUTTER_ENABLE_PYTHON { + LIBS += -F$$PYTHON_FRAMEWORK_DIR -framework Python + DEFINES += MACOS_PYTHON_FRAMEWORK_BUNDLED + } else { +- !packagesExist(python3) { +- error("ERROR: Python 3 could not be found. Make sure it is available to pkg-config.") ++ system(type python3-config) { ++ TMP = $$system(python3-config --libs --embed, true, TMPSTATUS) ++ !equals(TMPSTATUS, 0) { ++ TMP = $$system(python3-config --libs) ++ } ++ LIBS += $$TMP ++ TMP = $$system(python3-config --includes) ++ INCLUDEPATH += $$replace(TMP, "-I", "") ++ } else { ++ error("ERROR: Python 3 could not be found. Make sure it is available to python3-config.") + } +- PKGCONFIG += python3 + } + } + diff --git a/dev-util/cutter/files/cutter-1.10.3-qt-5.15.patch b/dev-util/cutter/files/cutter-1.10.3-qt-5.15.patch new file mode 100644 index 000000000000..0ce08dd798a9 --- /dev/null +++ b/dev-util/cutter/files/cutter-1.10.3-qt-5.15.patch @@ -0,0 +1,36 @@ +diff --git a/src/widgets/ColorPicker.cpp b/src/widgets/ColorPicker.cpp +index 25df2e3ac..fd9ce0875 100644 +--- a/src/widgets/ColorPicker.cpp ++++ b/src/widgets/ColorPicker.cpp +@@ -3,6 +3,7 @@ + + #include <QPaintEvent> + #include <QPainter> ++#include <QPainterPath> + #include <QMouseEvent> + #include <QDesktopWidget> + #include <QPixmap> +diff --git a/src/widgets/ColorThemeListView.cpp b/src/widgets/ColorThemeListView.cpp +index d79b7eb51..6013fa4da 100644 +--- a/src/widgets/ColorThemeListView.cpp ++++ b/src/widgets/ColorThemeListView.cpp +@@ -3,6 +3,7 @@ + #include <QJsonArray> + #include <QMap> + #include <QPainter> ++#include <QPainterPath> + #include <QFontMetrics> + #include <QScreen> + #include <QJsonArray> +diff --git a/src/widgets/DisassemblyWidget.cpp b/src/widgets/DisassemblyWidget.cpp +index 34c1efbe7..25e917e96 100644 +--- a/src/widgets/DisassemblyWidget.cpp ++++ b/src/widgets/DisassemblyWidget.cpp +@@ -14,6 +14,7 @@ + #include <QRegularExpression> + #include <QTextBlockUserData> + #include <QPainter> ++#include <QPainterPath> + #include <QSplitter> + + |