FS#63216 - Radare2-cutter can't load python plugins
Attached to Project:
Community Packages
Opened by Łukasz Gromanowski (lgromanowski) - Wednesday, 17 July 2019, 15:52 GMT
Last edited by Levente Polyak (anthraxx) - Wednesday, 07 August 2019, 20:42 GMT
Opened by Łukasz Gromanowski (lgromanowski) - Wednesday, 17 July 2019, 15:52 GMT
Last edited by Levente Polyak (anthraxx) - Wednesday, 07 August 2019, 20:42 GMT
|
Details
Description:
Radare2-cutter package have disabled python bindings (CUTTER_ENABLE_PYTHON and CUTTER_ENABLE_PYTHON_BINDINGS qmake flags), so one can't use python plugins for cutter. Additional info: * package version(s) 2feb8d12-1 * config and/or log files etc. As you can see here: https://github.com/radareorg/cutter/blob/f830fc17fbf6bf84117bc6e444a57048bb900a56/src/plugins/PluginManager.cpp#L79 python plugins support is enabled if mentioned earlier qmake flags are set. Ł * link to upstream bug report, if any Steps to reproduce: Try to use any python plugin, ie. https://github.com/JavierYuste/radare2-deep-graph |
This task depends upon
Closed by Levente Polyak (anthraxx)
Wednesday, 07 August 2019, 20:42 GMT
Reason for closing: Fixed
Additional comments about closing: 1.8.3-1
Wednesday, 07 August 2019, 20:42 GMT
Reason for closing: Fixed
Additional comments about closing: 1.8.3-1
below is a diff to the current PKGBUILD which enables python support and plugins:
--- PKGBUILD.orig 2019-07-23 11:56:56.053803316 +0200
+++ PKGBUILD 2019-07-23 11:52:29.520476498 +0200
@@ -9,7 +9,7 @@
url='https://github.com/radareorg/cutter'
arch=('x86_64')
license=('GPL3')
-depends=('radare2' 'capstone' 'qt5-base' 'qt5-svg' 'qt5-webengine' 'icu' 'python' 'jupyter')
+depends=('radare2' 'capstone' 'qt5-base' 'qt5-svg' 'qt5-webengine' 'icu' 'python' 'jupyter' 'pyside2' 'shiboken2' 'python-shiboken2')
makedepends=('git' 'cmake')
source=(${pkgname}::"git+https://github.com/radareorg/cutter#commit=${_gitcommit}")
sha512sums=('SKIP')
@@ -22,7 +22,7 @@
build() {
mkdir -p ${pkgname}/build
cd ${pkgname}/build
- qmake ../src/Cutter.pro
+ qmake ../src/Cutter.pro CUTTER_ENABLE_PYTHON=true CUTTER_ENABLE_PYTHON_BINDINGS=true
make
}