diff options
author | Daniel Black <dragonheart@gentoo.org> | 2006-08-03 00:25:02 +0000 |
---|---|---|
committer | Daniel Black <dragonheart@gentoo.org> | 2006-08-03 00:25:02 +0000 |
commit | a671900f271102a6943bfac3cc3052bc47c1d194 (patch) | |
tree | 39bb36a958b73808e26c8d534e2cac49528a9bba /net-ftp | |
parent | Digests (diff) | |
download | gentoo-2-a671900f271102a6943bfac3cc3052bc47c1d194.tar.gz gentoo-2-a671900f271102a6943bfac3cc3052bc47c1d194.tar.bz2 gentoo-2-a671900f271102a6943bfac3cc3052bc47c1d194.zip |
patch to fix segv on gnutls as per bug #142405.
(Portage version: 2.1.1_pre4)
Diffstat (limited to 'net-ftp')
-rw-r--r-- | net-ftp/lftp/ChangeLog | 29 | ||||
-rw-r--r-- | net-ftp/lftp/files/digest-lftp-3.5.2-r1 | 3 | ||||
-rw-r--r-- | net-ftp/lftp/files/lftp-3.5.2-gnutls-segv.patch | 17 | ||||
-rw-r--r-- | net-ftp/lftp/lftp-3.5.2-r1.ebuild | 75 | ||||
-rw-r--r-- | net-ftp/lftp/lftp-3.5.2.ebuild | 4 |
5 files changed, 118 insertions, 10 deletions
diff --git a/net-ftp/lftp/ChangeLog b/net-ftp/lftp/ChangeLog index 05cf8739e000..f3487db030c3 100644 --- a/net-ftp/lftp/ChangeLog +++ b/net-ftp/lftp/ChangeLog @@ -1,14 +1,27 @@ # ChangeLog for net-ftp/lftp # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/lftp/ChangeLog,v 1.112 2006/08/02 14:17:59 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-ftp/lftp/ChangeLog,v 1.113 2006/08/03 00:25:01 dragonheart Exp $ + +*lftp-3.5.2-r1 (03 Aug 2006) + + 03 Aug 2006; Daniel Black <dragonheart@gentoo.org> lftp-3.5.2-r1.ebuild files/digest-lftp-3.5.2-r1 + patch to fix segv on gnutls as per bug #142405. + +*lftp-3.5.2-r1 (03 Aug 2006) + + 03 Aug 2006; Daniel Black <dragonheart@gentoo.org> +lftp-3.5.2-r1.ebuild, + +files/lftp-3.5.2-gnutls-segv.patch: + patch to fix segv on gnutls as per bug #142405. Thanks to José Valentín + Gutiérrez Boquete for the bug report and test server. Thanks to author + Alexander Lukyanov for the patch 02 Aug 2006; Daniel Black <dragonheart@gentoo.org> +files/lftp-3.5.2-install_data_hook.patch, +files/lftp-3.5.2-noautoflags.patch, +files/lftp-3.5.2-socklib.patch, lftp-3.5.2.ebuild: added patch from upstream. Moved ebuild to use modules mode. Fixed bug - #142435 that resulted in automatically stripped executables thanks to José - Valentín Gutiérrez Boquete. Fixed compile problem with USE=socks5 thanks + #142435 that resulted in automatically stripped executables thanks to José + ValentÃn Gutiérrez Boquete. Fixed compile problem with USE=socks5 thanks to me. *lftp-3.5.2 (31 Jul 2006) @@ -181,7 +194,7 @@ version bump to 3.1.0 as per bug #83682. x86 keyword for lftp-3.0.13. Bug thanks to Jeffrey Litvin <litvin.j@neu.edu> - 22 Jan 2005; Bryan Ãstergaard <kloeri@gentoo.org> lftp-3.0.12-r1.ebuild: + 22 Jan 2005; Bryan ÃÂstergaard <kloeri@gentoo.org> lftp-3.0.12-r1.ebuild: Stable on alpha, bug 78620. 27 Dec 2004; Guy Martin <gmsoft@gentoo.org> lftp-3.0.12-r1.ebuild: @@ -203,7 +216,7 @@ 19 Dec 2004; Daniel Black <dragonheart@gentoo.org> +lftp-3.0.12-r1.ebuild, +files/lftp-3.0.12.patch, -lftp-3.0.12.ebuild: Patch added to prevent segfault. Thanks to Jeffrey Litvin <litvin.j@neu.edu> - for the patch reference and Thomas Jäger <tjjr@tj.no> for Bug #74815 + for the patch reference and Thomas Jäger <tjjr@tj.no> for Bug #74815 *lftp-3.0.12 (07 Dec 2004) @@ -212,7 +225,7 @@ version bump as per bug #73582 by rockoo. Removed one old version. added ppc keyword to 3.0.9 - 01 Nov 2004; Bryan Ãstergaard <kloeri@gentoo.org> lftp-3.0.9.ebuild: + 01 Nov 2004; Bryan ÃÂstergaard <kloeri@gentoo.org> lftp-3.0.9.ebuild: Stable on alpha. 29 Oct 2004; Jason Wever <weeve@gentoo.org> lftp-3.0.9.ebuild: @@ -268,7 +281,7 @@ Memory leak fixed - thanks to Luke Macken in bug #61335. OSX fix thanks to Miguel Sousa Filipe in bug #61349 - 22 Aug 2004; Bryan Ãstergaard <kloeri@gentoo.org> lftp-3.0.6.ebuild: + 22 Aug 2004; Bryan ÃÂstergaard <kloeri@gentoo.org> lftp-3.0.6.ebuild: Stable on alpha. 18 Aug 2004; Gustavo Zacarias <gustavoz@gentoo.org> lftp-3.0.7.ebuild: @@ -302,7 +315,7 @@ Version bump thanks to #gentoo.pl Team - sekretarz <sekretarz@dukato.net> in bug #53720 - 05 Jun 2004; Bryan Ãstergaard <kloeri@gentoo.org> lftp-3.0.3.ebuild: + 05 Jun 2004; Bryan ÃÂstergaard <kloeri@gentoo.org> lftp-3.0.3.ebuild: Stable on alpha. *lftp-3.0.5 (04 Jun 2004) diff --git a/net-ftp/lftp/files/digest-lftp-3.5.2-r1 b/net-ftp/lftp/files/digest-lftp-3.5.2-r1 new file mode 100644 index 000000000000..9498af098730 --- /dev/null +++ b/net-ftp/lftp/files/digest-lftp-3.5.2-r1 @@ -0,0 +1,3 @@ +MD5 60327450c824b47fe6f3217e83f604a5 lftp-3.5.2.tar.gz 1789513 +RMD160 c9339a8fb4709b2c2be1f5a71ff08882425b9b22 lftp-3.5.2.tar.gz 1789513 +SHA256 2e8329a642b0132ee8e593f5e7b3f69dbbdc14264bd6a67f2aaaa146f99b871f lftp-3.5.2.tar.gz 1789513 diff --git a/net-ftp/lftp/files/lftp-3.5.2-gnutls-segv.patch b/net-ftp/lftp/files/lftp-3.5.2-gnutls-segv.patch new file mode 100644 index 000000000000..45d082ca7c7e --- /dev/null +++ b/net-ftp/lftp/files/lftp-3.5.2-gnutls-segv.patch @@ -0,0 +1,17 @@ +Index: lftp_ssl.cc +=================================================================== +RCS file: /home/lav/cvsroot/lftp/src/lftp_ssl.cc,v +retrieving revision 1.30 +diff -u -p -r1.30 lftp_ssl.cc +--- lftp_ssl.cc 6 Jul 2006 13:52:02 -0000 1.30 ++++ lftp_ssl.cc 2 Aug 2006 14:23:08 -0000 +@@ -311,7 +311,8 @@ lftp_ssl_gnutls::~lftp_ssl_gnutls() + if(handshake_done) + gnutls_bye(session,GNUTLS_SHUT_RDWR); // FIXME - E_AGAIN + #endif +- gnutls_certificate_free_credentials(cred); ++ if(cred) ++ gnutls_certificate_free_credentials(cred); + gnutls_deinit(session); + } + diff --git a/net-ftp/lftp/lftp-3.5.2-r1.ebuild b/net-ftp/lftp/lftp-3.5.2-r1.ebuild new file mode 100644 index 000000000000..fcb385c1dd2b --- /dev/null +++ b/net-ftp/lftp/lftp-3.5.2-r1.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-ftp/lftp/lftp-3.5.2-r1.ebuild,v 1.1 2006/08/03 00:25:02 dragonheart Exp $ + +inherit eutils autotools + +DESCRIPTION="A sophisticated ftp/http client, file transfer program" +HOMEPAGE="http://lftp.yar.ru/" + +#SRC_URI="http://the.wiretapped.net/mirrors/lftp/${P}.tar.bz2" +# Was a bit too slow and unreliable last time I tried (dragonheart) +SRC_URI="ftp://lftp.yar.ru/lftp/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd" +IUSE="ssl gnutls socks5 nls" + +RDEPEND=">=sys-libs/ncurses-5.1 + socks5? ( + >=net-proxy/dante-1.1.12 + virtual/pam ) + ssl? ( + gnutls? ( >=net-libs/gnutls-1.2.3 ) + !gnutls? ( >=dev-libs/openssl-0.9.6 ) + ) + virtual/libc + !ppc-macos? ( >=sys-libs/readline-5.1 )" + +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + dev-lang/perl" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-install_data_hook.patch + epatch "${FILESDIR}"/${P}-socklib.patch + epatch "${FILESDIR}"/${P}-noautoflags.patch + EPATCH_OPTS="-d ${S}/src" epatch "${FILESDIR}"/${P}-gnutls-segv.patch + AT_M4DIR="m4" eaclocal + eautoconf + eautomake +} + + +src_compile() { + local myconf="$(use_enable nls) --enable-packager-mode" + + if use ssl && use gnutls ; then + myconf="${myconf} --without-openssl" + elif use ssl && ! use gnutls ; then + myconf="${myconf} --without-gnutls --with-openssl=/usr" + else + myconf="${myconf} --without-gnutls --without-openssl" + fi + + use socks5 && myconf="${myconf} --with-socksdante=/usr" \ + || myconf="${myconf} --without-socksdante" + + use ppc-macos && myconf="${myconf} --with-included-readline" + econf \ + --sysconfdir=/etc/lftp \ + --with-modules \ + ${myconf} || die "econf failed" + + emake || die "compile problem" +} + +src_install() { + emake install DESTDIR="${D}" || die + + dodoc BUGS ChangeLog FAQ FEATURES MIRRORS \ + NEWS README* THANKS TODO +} diff --git a/net-ftp/lftp/lftp-3.5.2.ebuild b/net-ftp/lftp/lftp-3.5.2.ebuild index ad6a62341b7d..1c690eb796c6 100644 --- a/net-ftp/lftp/lftp-3.5.2.ebuild +++ b/net-ftp/lftp/lftp-3.5.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-ftp/lftp/lftp-3.5.2.ebuild,v 1.2 2006/08/02 14:17:59 dragonheart Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-ftp/lftp/lftp-3.5.2.ebuild,v 1.3 2006/08/03 00:25:02 dragonheart Exp $ inherit eutils autotools @@ -17,7 +17,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc-macos ~ppc64 ~s390 ~spa IUSE="ssl gnutls socks5 nls" RDEPEND=">=sys-libs/ncurses-5.1 - socks5? ( + socks5? ( >=net-proxy/dante-1.1.12 virtual/pam ) ssl? ( |