[arch-commits] Commit in scim/trunk (PKGBUILD gcc45.patch)

Ionut Biru ibiru at archlinux.org
Sat Jul 3 19:29:41 UTC 2010


    Date: Saturday, July 3, 2010 @ 15:29:41
  Author: ibiru
Revision: 84723

upgpkg: scim 1.4.9-2 fix compilation with latest toolchain

Added:
  scim/trunk/gcc45.patch
Modified:
  scim/trunk/PKGBUILD

-------------+
 PKGBUILD    |   15 +++++++++------
 gcc45.patch |   12 ++++++++++++
 2 files changed, 21 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-07-03 19:29:35 UTC (rev 84722)
+++ PKGBUILD	2010-07-03 19:29:41 UTC (rev 84723)
@@ -4,7 +4,7 @@
 
 pkgname=scim
 pkgver=1.4.9
-pkgrel=1
+pkgrel=2
 pkgdesc="A Input Method development platform"
 arch=("i686" "x86_64")
 url="http://www.scim-im.org/projects/scim"
@@ -14,13 +14,16 @@
 backup=('etc/scim/config' 'etc/scim/global')
 options=('!libtool')
 install=scim.install
-source=(http://downloads.sourceforge.net/sourceforge/scim/$pkgname-$pkgver.tar.gz)
-md5sums=('975ba34b01304ea8166ac8ea27aa9e88')
+source=(http://downloads.sourceforge.net/sourceforge/scim/$pkgname-$pkgver.tar.gz
+        gcc45.patch)
+md5sums=('975ba34b01304ea8166ac8ea27aa9e88'
+         '9d7b41421424cedcbc5740098afa4921')
 
 build() {
   cd $srcdir/$pkgname-$pkgver
+  patch -Np1 -i $srcdir/gcc45.patch
   ./configure --prefix=/usr --sysconfdir=/etc \
-    --with-gnu-ld --with-x --disable-static || return 1
-  make || return 1
-  make DESTDIR=$startdir/pkg install || return 1
+    --with-gnu-ld --with-x --disable-static
+  make
+  make DESTDIR=$pkgdir install
 }

Added: gcc45.patch
===================================================================
--- gcc45.patch	                        (rev 0)
+++ gcc45.patch	2010-07-03 19:29:41 UTC (rev 84723)
@@ -0,0 +1,12 @@
+diff -Nur scim-1.4.9.orig//src/ltdl.cpp scim-1.4.9/src/ltdl.cpp
+--- scim-1.4.9.orig//src/ltdl.cpp	2008-11-02 01:42:40.000000000 -0500
++++ scim-1.4.9/src/ltdl.cpp	2010-07-04 00:19:58.924925581 -0500
+@@ -3361,7 +3361,7 @@
+ {
+   lt_dlhandle	handle		= 0;
+   char *	tmp		= 0;
+-  char *	ext		= 0;
++  const char *	ext		= 0;
+   size_t	len;
+   int		errors		= 0;
+ 




More information about the arch-commits mailing list