diff options
Diffstat (limited to 'kde-unstable/kdebindings-smokegen')
-rw-r--r-- | kde-unstable/kdebindings-smokegen/PKGBUILD | 13 | ||||
-rw-r--r-- | kde-unstable/kdebindings-smokegen/fix-crash.patch | 13 |
2 files changed, 22 insertions, 4 deletions
diff --git a/kde-unstable/kdebindings-smokegen/PKGBUILD b/kde-unstable/kdebindings-smokegen/PKGBUILD index ac12f5f64..ba2b2146f 100644 --- a/kde-unstable/kdebindings-smokegen/PKGBUILD +++ b/kde-unstable/kdebindings-smokegen/PKGBUILD @@ -1,8 +1,8 @@ -# $Id: PKGBUILD 143288 2011-11-24 16:13:26Z andrea $ +# $Id: PKGBUILD 144759 2011-12-08 10:24:16Z andrea $ # Maintainer: Andrea Scarpino <andrea@archlinux.org> pkgname=kdebindings-smokegen -pkgver=4.7.80 +pkgver=4.7.90 pkgrel=1 pkgdesc="A general purpose C++ parser with a plugin infrastructure" url="http://kde.org/" @@ -11,10 +11,15 @@ license=('GPL' 'LGPL' 'FDL') depends=('kdebase-runtime') makedepends=('cmake' 'automoc4') conflicts=('kdebindings-smoke') -source=("http://download.kde.org/unstable/${pkgver}/src/smokegen-${pkgver}.tar.bz2") -sha1sums=('da6dd73b0650c0f6e749435c3ae822c236224b00') +source=("http://download.kde.org/unstable/${pkgver}/src/smokegen-${pkgver}.tar.bz2" + 'fix-crash.patch') +sha1sums=('c852cf97a7b2d7516a4995d19ad3be6035aa0c17' + 'b209b2b7017622fea3406c5a9636e2334566af01') build() { + cd "${srcdir}"/smokegen-${pkgver} + patch -p1 -i "${srcdir}"/fix-crash.patch + cd "${srcdir}" mkdir build cd build diff --git a/kde-unstable/kdebindings-smokegen/fix-crash.patch b/kde-unstable/kdebindings-smokegen/fix-crash.patch new file mode 100644 index 000000000..5864da3f3 --- /dev/null +++ b/kde-unstable/kdebindings-smokegen/fix-crash.patch @@ -0,0 +1,13 @@ +diff -up smokegen-4.7.0/parser/type_compiler.cpp.orig smokegen-4.7.0/parser/type_compiler.cpp +diff -up smokegen-4.7.0/type_compiler.cpp.orig smokegen-4.7.0/type_compiler.cpp +--- smokegen-4.7.0/type_compiler.cpp.orig 2011-08-02 14:34:08.000000000 +0200 ++++ smokegen-4.7.0/type_compiler.cpp 2011-08-02 14:34:34.000000000 +0200 +@@ -191,6 +191,8 @@ void TypeCompiler::visitParameterDeclara + + void TypeCompiler::visitPtrOperator(PtrOperatorAST* node) + { ++ if ( ! m_session->token_stream ) return; ++ if ( ! token_text(m_session->token_stream->kind(node->op)) ) return; + if (token_text(m_session->token_stream->kind(node->op))[0] == '*') { + QPair<bool, bool> cv = m_visitor->parseCv(node->cv); + pointerDepth.append(cv.first); |