[arch-commits] Commit in rarian/trunk (3 files)

Pierre Schmitz pierre at archlinux.org
Mon Jul 28 17:30:38 UTC 2008


    Date: Monday, July 28, 2008 @ 13:30:37
  Author: pierre
Revision: 7227

upgpkg: rarian 0.8.0-2
    fixing segfaults (FS#11022)

Added:
  rarian/trunk/info-segfault.patch
  rarian/trunk/user-segfault.patch
Modified:
  rarian/trunk/PKGBUILD

---------------------+
 PKGBUILD            |   11 ++++++++---
 info-segfault.patch |   14 ++++++++++++++
 user-segfault.patch |   14 ++++++++++++++
 3 files changed, 36 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-07-28 15:23:34 UTC (rev 7226)
+++ PKGBUILD	2008-07-28 17:30:37 UTC (rev 7227)
@@ -3,7 +3,7 @@
 
 pkgname=rarian
 pkgver=0.8.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Documentation meta-data library, designed as a replacement for Scrollkeeper."
 arch=('i686' 'x86_64')
 url="http://rarian.freedesktop.org/"
@@ -14,11 +14,16 @@
 provides=('scrollkeeper')
 replaces=('scrollkeeper')
 options=('!libtool')
-source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.8/${pkgname}-${pkgver}.tar.bz2)
-md5sums=('67e2d3ab27edcebdae9b85733712805e')
+source=("http://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.8/${pkgname}-${pkgver}.tar.bz2"
+        'info-segfault.patch' 'user-segfault.patch')
+md5sums=('67e2d3ab27edcebdae9b85733712805e'
+         '322bdbac3a8964e743ce465214a35c07'
+         '457e9827197009cfa360911fe49a5ad7')
 
 build() {
   cd ${startdir}/src/${pkgname}-${pkgver}
+  patch -p0 -i ${srcdir}/info-segfault.patch || return 1
+  patch -p0 -i ${srcdir}/user-segfault.patch || return 1
   ./configure --prefix=/usr --sysconfdir=/etc \
      --localstatedir=/var --disable-static || return 1
   make || return 1

Added: info-segfault.patch
===================================================================
--- info-segfault.patch	                        (rev 0)
+++ info-segfault.patch	2008-07-28 17:30:37 UTC (rev 7227)
@@ -0,0 +1,14 @@
+--- librarian/rarian-info.c	2008-03-30 12:43:17.000000000 -0700
++++ librarian/rarian-info.c	2008-03-30 12:44:22.000000000 -0700
+@@ -668,8 +668,10 @@ rrn_info_find_from_uri (char *uri, char 
+     l = l->next;
+   }
+   
+-  return best_result->reg;
++  if (best_result)
++     return best_result->reg;
+ 
++  return NULL;
+ }
+ 
+ void 

Added: user-segfault.patch
===================================================================
--- user-segfault.patch	                        (rev 0)
+++ user-segfault.patch	2008-07-28 17:30:37 UTC (rev 7227)
@@ -0,0 +1,14 @@
+--- util/rarian-sk-get-cl.cpp~	2008-07-28 19:23:28.000000000 +0200
++++ util/rarian-sk-get-cl.cpp	2008-07-28 19:23:28.000000000 +0200
+@@ -160,6 +160,11 @@
+ {
+   char *filename = NULL;
+   char *user = getenv ("USERNAME");
++
++  if (user == NULL) {
++    user = getenv ("USER");
++  }
++
+   char *basepath = NULL;
+   int i=0;
+   int last = 0;





More information about the arch-commits mailing list