FS#23060 - [medit] pythonkonsole and konsole don't work
Attached to Project:
Community Packages
Opened by Lutz (lula) - Saturday, 26 February 2011, 23:59 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 28 February 2011, 12:01 GMT
Opened by Lutz (lula) - Saturday, 26 February 2011, 23:59 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 28 February 2011, 12:01 GMT
|
Details
Description:
Older versions of medit had a python konsole and a shell module Additional info: * package version(s) medit 1.0.0-2 * config and/or log files etc. Steps to reproduce: Start medit from a shell and you'll get an error/warning: Moo-WARNING **: in file moopython/moopython-builtin.c, line 45, function _moo_python_builtin_init: could not initialize moo module RuntimeError: could not find _PyGtk_API object I searched for the error message and found this in the Arch forum: https://bbs.archlinux.org/viewtopic.php?id=107320 and a patch (capsule.diff) from ConnorBehan's aur package http://aur.archlinux.org/packages.php?ID=36721 Adjusting the path to the new source directory and rebuilding the package makes the modules work again. --- PKGBUILD.orig 2011-02-27 00:31:56.000000000 +0100 +++ PKGBUILD 2011-02-27 00:32:49.000000000 +0100 @@ -14,11 +14,15 @@ optdepends=('ctags') makedepends=(pkgconfig perlxml intltool gcc-objc) install=medit.install -source=(http://downloads.sourceforge.net/mooedit/medit-$pkgver.tar.bz2) -md5sums=('fa15f74b04185b0423837ab812c66b08') +source=(http://downloads.sourceforge.net/mooedit/medit-$pkgver.tar.bz2 capsule.diff) +md5sums=('fa15f74b04185b0423837ab812c66b08' + 'd3386ca02ba598c73c581bf983a15f23') build() { cd $srcdir/medit-$pkgver + # Fixes the bug that comes from the pygtk patch + patch -Np1 -i $srcdir/capsule.diff || return 1 + export PYTHON=/usr/bin/python2 [ -f Makefile ] || ./configure --prefix=/usr make |
This task depends upon
capsule.diff