Date: Sunday, December 4, 2011 @ 04:05:55 Author: andrea Revision: 144117
KDE 4.7.4 Added: kdebindings-smokegen/repos/staging-i686/ kdebindings-smokegen/repos/staging-i686/fix-crash.patch Modified: kdebindings-smokegen/repos/staging-i686/PKGBUILD ------------------------------+ PKGBUILD | 11 ++++++++--- staging-i686/fix-crash.patch | 13 +++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) Modified: staging-i686/PKGBUILD =================================================================== --- extra-i686/PKGBUILD 2011-11-25 03:30:50 UTC (rev 143499) +++ staging-i686/PKGBUILD 2011-12-04 09:05:55 UTC (rev 144117) @@ -2,7 +2,7 @@ # Maintainer: Andrea Scarpino <[email protected]> pkgname=kdebindings-smokegen -pkgver=4.7.3 +pkgver=4.7.4 pkgrel=1 pkgdesc="A general purpose C++ parser with a plugin infrastructure" url="http://kde.org/" @@ -11,10 +11,15 @@ depends=('kdebase-runtime') makedepends=('cmake' 'automoc4') conflicts=('kdebindings-smoke') -source=("http://download.kde.org/stable/${pkgver}/src/smokegen-${pkgver}.tar.bz2") -sha1sums=('ede4095fdb190b3bef13b246111e7d79903ad77e') +source=("http://download.kde.org/stable/${pkgver}/src/smokegen-${pkgver}.tar.bz2" + 'fix-crash.patch') +sha1sums=('068d37e2404311b9caa23d78ee7fa262188a8622' + 'b209b2b7017622fea3406c5a9636e2334566af01') build() { + cd "${srcdir}"/smokegen-${pkgver} + patch -p1 -i "${srcdir}"/fix-crash.patch + cd "${srcdir}" mkdir build cd build Added: staging-i686/fix-crash.patch =================================================================== --- staging-i686/fix-crash.patch (rev 0) +++ staging-i686/fix-crash.patch 2011-12-04 09:05:55 UTC (rev 144117) @@ -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);
