diff options
author | Victor Ostorga <vostorga@gentoo.org> | 2009-10-18 16:13:57 +0000 |
---|---|---|
committer | Victor Ostorga <vostorga@gentoo.org> | 2009-10-18 16:13:57 +0000 |
commit | 9f3de7b44e563b3f827f6a1a8c6df9d38120d887 (patch) | |
tree | af91c2299be7e7ffe73d82bc543211886e1f1d6d /dev-libs | |
parent | x86 stable, bug #287697 (diff) | |
download | gentoo-2-9f3de7b44e563b3f827f6a1a8c6df9d38120d887.tar.gz gentoo-2-9f3de7b44e563b3f827f6a1a8c6df9d38120d887.tar.bz2 gentoo-2-9f3de7b44e563b3f827f6a1a8c6df9d38120d887.zip |
Removing memory leak patch due to miscompilation in applications depending on libtar. Check bug 228445 for reference
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libtar/ChangeLog | 11 | ||||
-rw-r--r-- | dev-libs/libtar/files/libtar-1.2.11-example-fix.patch | 20 | ||||
-rw-r--r-- | dev-libs/libtar/libtar-1.2.11-r2.ebuild | 29 |
3 files changed, 58 insertions, 2 deletions
diff --git a/dev-libs/libtar/ChangeLog b/dev-libs/libtar/ChangeLog index 0a1844b74286..c101cdb1254d 100644 --- a/dev-libs/libtar/ChangeLog +++ b/dev-libs/libtar/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-libs/libtar -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtar/ChangeLog,v 1.4 2008/12/31 03:20:25 darkside Exp $ +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtar/ChangeLog,v 1.5 2009/10/18 16:13:56 vostorga Exp $ + +*libtar-1.2.11-r2 (18 Oct 2009) + + 18 Oct 2009; Víctor Ostorga <vostorga@gentoo.org> + +libtar-1.2.11-r2.ebuild, +files/libtar-1.2.11-example-fix.patch: + Removing memory leak patch due to miscompilation in applications depending + on libtar. Check bug 228445 for reference 31 Dec 2008; Jeremy Olexa <darkside@gentoo.org> libtar-1.2.11-r1.ebuild: add ~amd64 kw, bug 250566 diff --git a/dev-libs/libtar/files/libtar-1.2.11-example-fix.patch b/dev-libs/libtar/files/libtar-1.2.11-example-fix.patch new file mode 100644 index 000000000000..f7f3bf50911b --- /dev/null +++ b/dev-libs/libtar/files/libtar-1.2.11-example-fix.patch @@ -0,0 +1,20 @@ +--- libtar-1.2.11.orig/libtar/libtar.c ++++ libtar-1.2.11/libtar/libtar.c +@@ -19,6 +19,7 @@ + #include <sys/param.h> + + #ifdef STDC_HEADERS ++# include <stdlib.h> + # include <string.h> + #endif + +@@ -91,6 +92,10 @@ + return -1; + } + ++ /* This is a bad thing to do on big-endian lp64 systems, where the ++ size and placement of integers is different than pointers. ++ However, to fix the problem 4 wrapper functions would be needed and ++ an extra bit of data associating GZF with the wrapper functions. */ + return (int)gzf; + } diff --git a/dev-libs/libtar/libtar-1.2.11-r2.ebuild b/dev-libs/libtar/libtar-1.2.11-r2.ebuild new file mode 100644 index 000000000000..8a17042373f0 --- /dev/null +++ b/dev-libs/libtar/libtar-1.2.11-r2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-libs/libtar/libtar-1.2.11-r2.ebuild,v 1.1 2009/10/18 16:13:56 vostorga Exp $ + +inherit eutils + +DESCRIPTION="C library for manipulating POSIX tar files" +HOMEPAGE="http://www.feep.net/libtar/" +SRC_URI="ftp://ftp.feep.net/pub/software/libtar/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="sys-libs/zlib" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-example-fix.patch + sed -i '/INSTALL_PROGRAM/s: -s$::' */Makefile.in +} + +src_install() { + emake install DESTDIR="${D}" || die + dodoc ChangeLog README TODO +} |