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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Levente Polyak (anthraxx)
Filipe Laíns (FFY00)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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
Comment by Łukasz Gromanowski (lgromanowski) - Tuesday, 23 July 2019, 10:00 GMT
Hi,
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
}

Loading...