[arch-commits] Commit in kdebindings-smokegen/repos (4 files)
Andrea Scarpino
andrea at archlinux.org
Thu Dec 8 09:18:19 UTC 2011
Date: Thursday, December 8, 2011 @ 04:18:19
Author: andrea
Revision: 144618
db-move: moved kdebindings-smokegen from [staging] to [extra] (i686)
Added:
kdebindings-smokegen/repos/extra-i686/PKGBUILD
(from rev 144608, kdebindings-smokegen/repos/staging-i686/PKGBUILD)
kdebindings-smokegen/repos/extra-i686/fix-crash.patch
(from rev 144608, kdebindings-smokegen/repos/staging-i686/fix-crash.patch)
Deleted:
kdebindings-smokegen/repos/extra-i686/PKGBUILD
kdebindings-smokegen/repos/staging-i686/
-----------------+
PKGBUILD | 65 +++++++++++++++++++++++++++++-------------------------
fix-crash.patch | 13 ++++++++++
2 files changed, 48 insertions(+), 30 deletions(-)
Deleted: extra-i686/PKGBUILD
===================================================================
--- extra-i686/PKGBUILD 2011-12-08 09:18:18 UTC (rev 144617)
+++ extra-i686/PKGBUILD 2011-12-08 09:18:19 UTC (rev 144618)
@@ -1,30 +0,0 @@
-# $Id$
-# Maintainer: Andrea Scarpino <andrea at archlinux.org>
-
-pkgname=kdebindings-smokegen
-pkgver=4.7.3
-pkgrel=1
-pkgdesc="A general purpose C++ parser with a plugin infrastructure"
-url="http://kde.org/"
-arch=('i686' 'x86_64')
-license=('GPL' 'LGPL' 'FDL')
-depends=('kdebase-runtime')
-makedepends=('cmake' 'automoc4')
-conflicts=('kdebindings-smoke')
-source=("http://download.kde.org/stable/${pkgver}/src/smokegen-${pkgver}.tar.bz2")
-sha1sums=('ede4095fdb190b3bef13b246111e7d79903ad77e')
-
-build() {
- cd "${srcdir}"
- mkdir build
- cd build
- cmake ../smokegen-${pkgver} \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr
- make
-}
-
-package() {
- cd "${srcdir}"/build
- make DESTDIR="${pkgdir}" install
-}
Copied: kdebindings-smokegen/repos/extra-i686/PKGBUILD (from rev 144608, kdebindings-smokegen/repos/staging-i686/PKGBUILD)
===================================================================
--- extra-i686/PKGBUILD (rev 0)
+++ extra-i686/PKGBUILD 2011-12-08 09:18:19 UTC (rev 144618)
@@ -0,0 +1,35 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kdebindings-smokegen
+pkgver=4.7.4
+pkgrel=1
+pkgdesc="A general purpose C++ parser with a plugin infrastructure"
+url="http://kde.org/"
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+depends=('kdebase-runtime')
+makedepends=('cmake' 'automoc4')
+conflicts=('kdebindings-smoke')
+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
+ cmake ../smokegen-${pkgver} \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}"/build
+ make DESTDIR="${pkgdir}" install
+}
Copied: kdebindings-smokegen/repos/extra-i686/fix-crash.patch (from rev 144608, kdebindings-smokegen/repos/staging-i686/fix-crash.patch)
===================================================================
--- extra-i686/fix-crash.patch (rev 0)
+++ extra-i686/fix-crash.patch 2011-12-08 09:18:19 UTC (rev 144618)
@@ -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);
More information about the arch-commits
mailing list