diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2009-04-30 15:12:38 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2009-04-30 15:12:38 +0000 |
commit | 65835b220ba64651cacef447ea138bf1c9b50e62 (patch) | |
tree | f1e573faef19a34a456c5849719a5cbc71f617f2 /media-libs/sdl-image | |
parent | Apply a patch from Fedora CVS to fix translations. Don't run eautoreconf wrt ... (diff) | |
download | gentoo-2-65835b220ba64651cacef447ea138bf1c9b50e62.tar.gz gentoo-2-65835b220ba64651cacef447ea138bf1c9b50e62.tar.bz2 gentoo-2-65835b220ba64651cacef447ea138bf1c9b50e62.zip |
old
(Portage version: 2.1.6.11/cvs/Linux i686)
Diffstat (limited to 'media-libs/sdl-image')
-rw-r--r-- | media-libs/sdl-image/ChangeLog | 6 | ||||
-rw-r--r-- | media-libs/sdl-image/files/sdl-image-1.2.6-DOS.patch | 41 | ||||
-rw-r--r-- | media-libs/sdl-image/sdl-image-1.2.6-r1.ebuild | 52 |
3 files changed, 5 insertions, 94 deletions
diff --git a/media-libs/sdl-image/ChangeLog b/media-libs/sdl-image/ChangeLog index 0b932f9deb28..635eb9b12bc1 100644 --- a/media-libs/sdl-image/ChangeLog +++ b/media-libs/sdl-image/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-libs/sdl-image # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-image/ChangeLog,v 1.50 2009/04/30 12:27:38 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-image/ChangeLog,v 1.51 2009/04/30 15:12:37 mr_bones_ Exp $ + + 30 Apr 2009; Michael Sterrett <mr_bones_@gentoo.org> + -files/sdl-image-1.2.6-DOS.patch, -sdl-image-1.2.6-r1.ebuild: + clean out old files 30 Apr 2009; Jeroen Roovers <jer@gentoo.org> sdl-image-1.2.7.ebuild: Stable for HPPA (bug #264906). diff --git a/media-libs/sdl-image/files/sdl-image-1.2.6-DOS.patch b/media-libs/sdl-image/files/sdl-image-1.2.6-DOS.patch deleted file mode 100644 index ec648a6ecfb3..000000000000 --- a/media-libs/sdl-image/files/sdl-image-1.2.6-DOS.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- trunk/SDL_image/IMG_gif.c 2007/02/13 10:09:17 2970 -+++ trunk/SDL_image/IMG_gif.c 2007/12/28 16:43:56 3462 -@@ -418,6 +418,10 @@ - static int stack[(1 << (MAX_LWZ_BITS)) * 2], *sp; - register int i; - -+ /* Fixed buffer overflow found by Michael Skladnikiewicz */ -+ if (input_code_size > MAX_LWZ_BITS) -+ return -1; -+ - if (flag) { - set_code_size = input_code_size; - code_size = set_code_size + 1; ---- trunk/SDL_image/IMG_lbm.c 2007/07/20 04:37:11 3341 -+++ trunk/SDL_image/IMG_lbm.c 2008/01/03 20:05:34 3521 -@@ -28,6 +28,7 @@ - EHB and HAM (specific Amiga graphic chip modes) support added by Marc Le Douarain - (http://www.multimania.com/mavati) in December 2003. - Stencil and colorkey fixes by David Raulo (david.raulo AT free DOT fr) in February 2004. -+ Buffer overflow fix in RLE decompression by David Raulo in January 2008. - */ - - #include <stdio.h> -@@ -328,7 +329,7 @@ - count ^= 0xFF; - count += 2; /* now it */ - -- if ( !SDL_RWread( src, &color, 1, 1 ) ) -+ if ( ( count > remainingbytes ) || !SDL_RWread( src, &color, 1, 1 ) ) - { - error="error reading BODY chunk"; - goto done; -@@ -339,7 +340,7 @@ - { - ++count; - -- if ( !SDL_RWread( src, ptr, count, 1 ) ) -+ if ( ( count > remainingbytes ) || !SDL_RWread( src, ptr, count, 1 ) ) - { - error="error reading BODY chunk"; - goto done; diff --git a/media-libs/sdl-image/sdl-image-1.2.6-r1.ebuild b/media-libs/sdl-image/sdl-image-1.2.6-r1.ebuild deleted file mode 100644 index 75f81a16d12f..000000000000 --- a/media-libs/sdl-image/sdl-image-1.2.6-r1.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2008 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/sdl-image/sdl-image-1.2.6-r1.ebuild,v 1.2 2008/01/29 21:55:55 grobian Exp $ - -inherit eutils flag-o-matic - -MY_P="${P/sdl-/SDL_}" -DESCRIPTION="image file loading library" -HOMEPAGE="http://www.libsdl.org/projects/SDL_image/index.html" -SRC_URI="http://www.libsdl.org/projects/SDL_image/release/${MY_P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="alpha amd64 hppa ia64 mips ppc ppc64 sparc x86 ~x86-fbsd" -IUSE="gif jpeg tiff png" - -DEPEND="sys-libs/zlib - >=media-libs/libsdl-1.2.10 - png? ( >=media-libs/libpng-1.2.1 ) - jpeg? ( >=media-libs/jpeg-6b ) - tiff? ( media-libs/tiff )" - -S=${WORKDIR}/${MY_P} - -src_unpack() { - unpack ${A} - cd "${S}" - epatch "${FILESDIR}/${P}-DOS.patch" -} - -src_compile() { - econf \ - $(use_enable gif) \ - $(use_enable jpeg jpg) \ - $(use_enable tiff tif) \ - $(use_enable png) \ - $(use_enable png pnm) \ - --enable-bmp \ - --enable-lbm \ - --enable-pcx \ - --enable-tga \ - --enable-xcf \ - --enable-xpm \ - || die - emake || die "emake failed" -} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - dobin .libs/showimage || die "dobin failed" - dodoc CHANGES README -} |