summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2007-09-22 19:14:06 +0000
committerRyan Hill <dirtyepic@gentoo.org>2007-09-22 19:14:06 +0000
commit2764427132aee0f0bb5f8d9f3cd5cec357dffa6c (patch)
treee01b59e885d7f916f0675d8c30d9781fa196168b /media-libs/t1lib
parentAdd epunt_cxx for bug #185602. (diff)
downloadgentoo-2-2764427132aee0f0bb5f8d9f3cd5cec357dffa6c.tar.gz
gentoo-2-2764427132aee0f0bb5f8d9f3cd5cec357dffa6c.tar.bz2
gentoo-2-2764427132aee0f0bb5f8d9f3cd5cec357dffa6c.zip
Revision bump for Secunia SA26241, bug #193437. Version bump for bug #130362.
(Portage version: 2.1.3.9)
Diffstat (limited to 'media-libs/t1lib')
-rw-r--r--media-libs/t1lib/ChangeLog10
-rw-r--r--media-libs/t1lib/files/digest-t1lib-5.0.2-r13
-rw-r--r--media-libs/t1lib/files/digest-t1lib-5.1.13
-rw-r--r--media-libs/t1lib/files/t1lib-5.0.2-SA26241_buffer_overflow.patch20
-rw-r--r--media-libs/t1lib/t1lib-5.0.2-r1.ebuild74
-rw-r--r--media-libs/t1lib/t1lib-5.1.1.ebuild72
6 files changed, 181 insertions, 1 deletions
diff --git a/media-libs/t1lib/ChangeLog b/media-libs/t1lib/ChangeLog
index a190c44ce0cb..9b453bc87008 100644
--- a/media-libs/t1lib/ChangeLog
+++ b/media-libs/t1lib/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for media-libs/t1lib
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/ChangeLog,v 1.54 2007/07/22 09:01:05 drac Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/ChangeLog,v 1.55 2007/09/22 19:14:05 dirtyepic Exp $
+
+*t1lib-5.1.1 (22 Sep 2007)
+*t1lib-5.0.2-r1 (22 Sep 2007)
+
+ 22 Sep 2007; Ryan Hill <dirtyepic@gentoo.org>
+ +files/t1lib-5.0.2-SA26241_buffer_overflow.patch, +t1lib-5.0.2-r1.ebuild,
+ +t1lib-5.1.1.ebuild:
+ Revision bump for Secunia SA26241, bug #193437. Version bump for bug #130362.
22 Jul 2007; Samuli Suominen <drac@gentoo.org> t1lib-5.0.2.ebuild:
Remove virtual/x11 references.
diff --git a/media-libs/t1lib/files/digest-t1lib-5.0.2-r1 b/media-libs/t1lib/files/digest-t1lib-5.0.2-r1
new file mode 100644
index 000000000000..c34c2a37a74e
--- /dev/null
+++ b/media-libs/t1lib/files/digest-t1lib-5.0.2-r1
@@ -0,0 +1,3 @@
+MD5 cc5d4130b25bb8a1c930488b78930e9b t1lib-5.0.2.tar.gz 1697086
+RMD160 d6ff7fa3baca4a4ce78960a145bfa69b4cd771fa t1lib-5.0.2.tar.gz 1697086
+SHA256 34ff6a85d1dae64d06b5aca04fb17822dd26a734f40cd966e3dd980afa4a037a t1lib-5.0.2.tar.gz 1697086
diff --git a/media-libs/t1lib/files/digest-t1lib-5.1.1 b/media-libs/t1lib/files/digest-t1lib-5.1.1
new file mode 100644
index 000000000000..a771f26d49c6
--- /dev/null
+++ b/media-libs/t1lib/files/digest-t1lib-5.1.1
@@ -0,0 +1,3 @@
+MD5 b1b86b5014364d92ab3b7cee6c81e29d t1lib-5.1.1.tar.gz 1838914
+RMD160 4421f5d86de810682304b36ca129b5aeb37bf2a1 t1lib-5.1.1.tar.gz 1838914
+SHA256 08deab80f72427b4457295384698b7f9c719ad1653289baae7123539495a3c64 t1lib-5.1.1.tar.gz 1838914
diff --git a/media-libs/t1lib/files/t1lib-5.0.2-SA26241_buffer_overflow.patch b/media-libs/t1lib/files/t1lib-5.0.2-SA26241_buffer_overflow.patch
new file mode 100644
index 000000000000..766f74cbe624
--- /dev/null
+++ b/media-libs/t1lib/files/t1lib-5.0.2-SA26241_buffer_overflow.patch
@@ -0,0 +1,20 @@
+http://secunia.com/advisories/26241/
+http://www.bugtraq.ir/adv/t1lib.txt
+https://bugs.gentoo.org/193437
+
+diff -Naur t1lib-5.0.2-orig/lib/t1lib/t1env.c t1lib-5.0.2/lib/t1lib/t1env.c
+--- t1lib-5.0.2-orig/lib/t1lib/t1env.c 2002-11-27 19:53:11.000000000 -0600
++++ t1lib-5.0.2/lib/t1lib/t1env.c 2007-09-22 12:57:01.000000000 -0600
+@@ -568,6 +568,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: */
diff --git a/media-libs/t1lib/t1lib-5.0.2-r1.ebuild b/media-libs/t1lib/t1lib-5.0.2-r1.ebuild
new file mode 100644
index 000000000000..fa867797a2a8
--- /dev/null
+++ b/media-libs/t1lib/t1lib-5.0.2-r1.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/t1lib-5.0.2-r1.ebuild,v 1.1 2007/09/22 19:14:05 dirtyepic Exp $
+
+inherit eutils flag-o-matic libtool toolchain-funcs
+
+DESCRIPTION="A Type 1 Font Rasterizer Library for UNIX/X11"
+HOMEPAGE="ftp://metalab.unc.edu/pub/Linux/libs/graphics/"
+SRC_URI="ftp://sunsite.unc.edu/pub/Linux/libs/graphics/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="5"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="X doc"
+
+RDEPEND="X? ( x11-libs/libXaw
+ x11-libs/libX11
+ x11-libs/libXt )"
+DEPEND="${RDEPEND}
+ doc? ( virtual/tetex )
+ X? ( x11-libs/libXfont
+ x11-proto/xproto
+ x11-proto/fontsproto )"
+
+src_unpack() {
+ unpack ${A}
+ use ppc-macos && darwintoolize
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-gentoo.diff
+ epatch "${FILESDIR}"/${P}-asneeded.patch
+ epatch "${FILESDIR}"/${P}-SA26241_buffer_overflow.patch
+
+ sed -i -e "s:dvips:#dvips:" "${S}"/doc/Makefile.in
+ sed -i -e "s:\./\(t1lib\.config\):/etc/t1lib/\1:" "${S}"/xglyph/xglyph.c
+}
+
+src_compile() {
+ local myopt=""
+ tc-export CC
+
+ use alpha && append-flags -mieee
+
+ if ! use doc; then
+ myopt="without_doc"
+ else
+ addwrite /var/cache/fonts
+ fi
+
+ econf \
+ --datadir=/etc \
+ $(use_with X x) \
+ || die "econf failed."
+
+ emake ${myopt} || die "emake failed."
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed."
+ dodoc Changes README*
+ if use doc ; then
+ cd doc
+ insinto /usr/share/doc/${PF}
+ doins *.pdf *.dvi
+ fi
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "You may have to rebuild other packages depending on t1lib."
+ ewarn "You may use revdep-rebuild (from app-portage/gentoolkit)"
+ ewarn "to do all necessary tricks."
+ ewarn
+}
diff --git a/media-libs/t1lib/t1lib-5.1.1.ebuild b/media-libs/t1lib/t1lib-5.1.1.ebuild
new file mode 100644
index 000000000000..5fcc38bfdac4
--- /dev/null
+++ b/media-libs/t1lib/t1lib-5.1.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-libs/t1lib/t1lib-5.1.1.ebuild,v 1.1 2007/09/22 19:14:05 dirtyepic Exp $
+
+inherit eutils flag-o-matic libtool toolchain-funcs
+
+DESCRIPTION="A Type 1 Font Rasterizer Library for UNIX/X11"
+HOMEPAGE="ftp://metalab.unc.edu/pub/Linux/libs/graphics/"
+SRC_URI="ftp://sunsite.unc.edu/pub/Linux/libs/graphics/${P}.tar.gz"
+
+LICENSE="LGPL-2 GPL-2"
+SLOT="5"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
+IUSE="X doc"
+
+RDEPEND="X? ( x11-libs/libXaw
+ x11-libs/libX11
+ x11-libs/libXt )"
+DEPEND="${RDEPEND}
+ doc? ( virtual/tetex )
+ X? ( x11-libs/libXfont
+ x11-proto/xproto
+ x11-proto/fontsproto )"
+
+src_unpack() {
+ unpack ${A}
+ use ppc-macos && darwintoolize
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${PN}-5.0.2-SA26241_buffer_overflow.patch
+
+ sed -i -e "s:dvips:#dvips:" "${S}"/doc/Makefile.in
+ sed -i -e "s:\./\(t1lib\.config\):/etc/t1lib/\1:" "${S}"/xglyph/xglyph.c
+}
+
+src_compile() {
+ local myopt=""
+ tc-export CC
+
+ use alpha && append-flags -mieee
+
+ if ! use doc; then
+ myopt="without_doc"
+ else
+ addwrite /var/cache/fonts
+ fi
+
+ econf \
+ --datadir=/etc \
+ $(use_with X x) \
+ || die "econf failed."
+
+ emake ${myopt} || die "emake failed."
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed."
+ dodoc Changes README*
+ if use doc ; then
+ cd doc
+ insinto /usr/share/doc/${PF}
+ doins *.pdf *.dvi
+ fi
+}
+
+pkg_postinst() {
+ ewarn
+ ewarn "You may have to rebuild other packages depending on t1lib."
+ ewarn "You may use revdep-rebuild (from app-portage/gentoolkit)"
+ ewarn "to do all necessary tricks."
+ ewarn
+}