[arch-commits] Commit in raptor/trunk (PKGBUILD fix-soprano-bug.patch)

Andrea Scarpino andrea at archlinux.org
Wed Jul 6 11:19:51 UTC 2011


    Date: Wednesday, July 6, 2011 @ 07:19:50
  Author: andrea
Revision: 130397

upgpkg: raptor 2.0.3-2
fix a bug with soprano (raptor fault)

Added:
  raptor/trunk/fix-soprano-bug.patch
Modified:
  raptor/trunk/PKGBUILD

-----------------------+
 PKGBUILD              |   13 +++++++++----
 fix-soprano-bug.patch |   20 ++++++++++++++++++++
 2 files changed, 29 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-07-06 10:10:36 UTC (rev 130396)
+++ PKGBUILD	2011-07-06 11:19:50 UTC (rev 130397)
@@ -5,19 +5,24 @@
 
 pkgname=raptor
 pkgver=2.0.3
-pkgrel=1
+pkgrel=2
 pkgdesc="A C library that parses RDF/XML/N-Triples into RDF triples"
 arch=('i686' 'x86_64')
 url="http://librdf.org/raptor"
-depends=('libxml2>=2.7.8' 'curl>=7.21.2' 'zlib>=1.2.5' 'libxslt>=1.1.26')
+depends=('libxml2>=2.7.8' 'curl>=7.21.7' 'zlib>=1.2.5' 'libxslt>=1.1.26')
 license=('LGPL')
 options=('!libtool')
-source=(http://librdf.org/dist/source/raptor2-$pkgver.tar.gz)
-md5sums=('46eff4b20f8752d1146a3e0c8b2168dd')
+source=("http://librdf.org/dist/source/raptor2-$pkgver.tar.gz"
+        'fix-soprano-bug.patch')
+md5sums=('46eff4b20f8752d1146a3e0c8b2168dd'
+         'fd63150d1e9f83bb59af0d86c373c8fa')
 
 build() {
   cd ${srcdir}/raptor2-${pkgver}
 
+  # see http://bugs.librdf.org/mantis/view.php?id=451
+  patch -p1 -i "${srcdir}"/fix-soprano-bug.patch
+
   # fix build with curl >= 7.21.2
   sed -i '/#include <curl\/types.h>/d' src/raptor_internal.h
 

Added: fix-soprano-bug.patch
===================================================================
--- fix-soprano-bug.patch	                        (rev 0)
+++ fix-soprano-bug.patch	2011-07-06 11:19:50 UTC (rev 130397)
@@ -0,0 +1,20 @@
+diff --git a/src/turtle_lexer.l b/src/turtle_lexer.l
+index c2f249b..f133747 100644
+--- a/src/turtle_lexer.l
++++ b/src/turtle_lexer.l
+@@ -381,9 +381,13 @@ EXPONENT [eE][+-]?[0-9]+
+                while(1) {
+                   int c = yytext[yyleng - 1];
+                   if(c == '{' || c == ' ' || c=='\t' || c == '\v' || c == '\n' ||
+-                     c == ':' || c == '-') {
++                     c == '=' ) {
+                     yyleng--;
+-                  } else
++                  } 
++                  else if ( yyleng >= 2 && ( c == '-' && yytext[yyleng - 2] == ':' ) ) { 
++                    yyleng -= 2;
++                  }
++                  else
+                     break;
+                 }
+                 yytext[yyleng] = '\0';




More information about the arch-commits mailing list