summaryrefslogtreecommitdiff
path: root/extra/t1lib
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-10 23:14:36 +0000
committerroot <root@rshg054.dnsready.net>2011-09-10 23:14:36 +0000
commit1dc1efa50ce9926a6ed832bda2ebe3319485ac09 (patch)
tree25b059dc89bbd5f44377c1df6f612cf6556a6076 /extra/t1lib
parent42db4a0cf3a829fcd1bc2150669c6aa3c2984815 (diff)
Sat Sep 10 23:14:36 UTC 2011
Diffstat (limited to 'extra/t1lib')
-rw-r--r--extra/t1lib/PKGBUILD18
-rw-r--r--extra/t1lib/overflow.patch15
2 files changed, 26 insertions, 7 deletions
diff --git a/extra/t1lib/PKGBUILD b/extra/t1lib/PKGBUILD
index 96f0c7a6d..50d8a4c8e 100644
--- a/extra/t1lib/PKGBUILD
+++ b/extra/t1lib/PKGBUILD
@@ -1,22 +1,26 @@
-# $Id: PKGBUILD 18717 2008-11-08 21:45:38Z giovanni $
+# $Id: PKGBUILD 137602 2011-09-10 01:36:02Z allan $
# Maintainer: tobias <tobias@archlinux.org>
# Contributor: Rainer Moll <renari@arcor.de>
pkgname=t1lib
pkgver=5.1.2
-pkgrel=2
+pkgrel=3
pkgdesc="Library for generating character- and string-glyphs from Adobe Type 1 fonts"
-arch=(i686 x86_64)
-license=("GPL")
+arch=('i686' 'x86_64')
+url="http://www.ibiblio.org/pub/Linux/libs/graphics/!INDEX.html"
+license=('GPL')
depends=('libxaw')
options=(!libtool)
-url="http://www.ibiblio.org/pub/Linux/libs/graphics/!INDEX.html"
source=(http://www.ibiblio.org/pub/Linux/libs/graphics/${pkgname}-${pkgver}.tar.gz )
md5sums=('a5629b56b93134377718009df1435f3c')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr
- make without_doc || return 1
- make DESTDIR="${pkgdir}" install || return 1
+ make without_doc
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
}
diff --git a/extra/t1lib/overflow.patch b/extra/t1lib/overflow.patch
new file mode 100644
index 000000000..9f033c0de
--- /dev/null
+++ b/extra/t1lib/overflow.patch
@@ -0,0 +1,15 @@
+--- t1env.c.orig 2007-09-16 19:56:38.319184208 +0200
++++ t1env.c 2007-09-16 20:05:02.057070439 +0200
+@@ -611,6 +611,12 @@
+ #endif
+ strcat( pathbuf, DIRECTORY_SEP);
+ /* And finally the filename: */
++ /* If current pathbuf + StrippedName + 1 byte for NULL is bigger than pathbuf
++ let's try next pathbuf */
++ if( strlen(pathbuf) + strlen(StrippedName) + 1 > sizeof(pathbuf) ) {
++ i++;
++ continue;
++ }
+ strcat( pathbuf, StrippedName);
+
+ /* Check for existence of the path: */