diff options
author | Karol Wojtaszek <sekretarz@gentoo.org> | 2005-08-03 20:41:32 +0000 |
---|---|---|
committer | Karol Wojtaszek <sekretarz@gentoo.org> | 2005-08-03 20:41:32 +0000 |
commit | fd6d560cecee5b68bd962ef3aea1660ebc77adc0 (patch) | |
tree | 0c53099a9573afe34eb4ec0396dc39c593b9ea0c /net-p2p | |
parent | fastboot patch fix (diff) | |
download | gentoo-2-fd6d560cecee5b68bd962ef3aea1660ebc77adc0.tar.gz gentoo-2-fd6d560cecee5b68bd962ef3aea1660ebc77adc0.tar.bz2 gentoo-2-fd6d560cecee5b68bd962ef3aea1660ebc77adc0.zip |
Applied patch which makes dclib to hash files propertly, thanks Kevin Borgnis <soft.eng.ice@gmail.com> in bug #91451
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/dclib/ChangeLog | 7 | ||||
-rw-r--r-- | net-p2p/dclib/dclib-0.3.7.ebuild | 3 | ||||
-rw-r--r-- | net-p2p/dclib/files/dclib-0.3.7-hashfix.patch | 17 |
3 files changed, 25 insertions, 2 deletions
diff --git a/net-p2p/dclib/ChangeLog b/net-p2p/dclib/ChangeLog index 4d667c76e3c8..24c015a8ba1d 100644 --- a/net-p2p/dclib/ChangeLog +++ b/net-p2p/dclib/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-p2p/dclib # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/dclib/ChangeLog,v 1.63 2005/06/27 07:23:06 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/dclib/ChangeLog,v 1.64 2005/08/03 20:41:32 sekretarz Exp $ + + 03 Aug 2005; <sekretarz@gentoo.org> +files/dclib-0.3.7-hashfix.patch, + dclib-0.3.7.ebuild: + Applied patch which makes dclib to hash files propertly, thanks Kevin + Borgnis <soft.eng.ice@gmail.com> in bug #91451 27 Jun 2005; Markus Rothe <corsair@gentoo.org> dclib-0.3.7.ebuild: Stable on ppc64 diff --git a/net-p2p/dclib/dclib-0.3.7.ebuild b/net-p2p/dclib/dclib-0.3.7.ebuild index 02365f295fbd..80eacb86b7ba 100644 --- a/net-p2p/dclib/dclib-0.3.7.ebuild +++ b/net-p2p/dclib/dclib-0.3.7.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-p2p/dclib/dclib-0.3.7.ebuild,v 1.4 2005/06/27 07:23:06 corsair Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-p2p/dclib/dclib-0.3.7.ebuild,v 1.5 2005/08/03 20:41:32 sekretarz Exp $ inherit toolchain-funcs eutils @@ -19,6 +19,7 @@ src_unpack() { unpack ${A} cd ${S} [ `gcc-major-version` == 2 ] && epatch ${FILESDIR}/${P}-gcc2.patch + epatch ${FILESDIR}/${P}-hashfix.patch } src_install() { diff --git a/net-p2p/dclib/files/dclib-0.3.7-hashfix.patch b/net-p2p/dclib/files/dclib-0.3.7-hashfix.patch new file mode 100644 index 000000000000..464ec21e9780 --- /dev/null +++ b/net-p2p/dclib/files/dclib-0.3.7-hashfix.patch @@ -0,0 +1,17 @@ +--- dclib/csearchindex.cpp.orig 2005-05-04 12:11:37.000000000 -0400 ++++ dclib/csearchindex.cpp 2005-05-04 12:13:38.000000000 -0400 +@@ -420,9 +420,12 @@ + CBase32 base32; + CByteArray dst,src; + +- if ( hbi < m_pHashIndex->Size() ) ++ struct hashbaseobject * hbo; ++ ++ if ( hbi < m_pHashBaseArray->Size() ) + { +- src.Append(m_pHashIndex->Data()+hbi,TIGERSIZE); ++ hbo = (struct hashbaseobject *)(m_pHashBaseArray->Data()+hbi); ++ src.Append(m_pHashIndex->Data()+hbo->m_nHashIndex,TIGERSIZE); + base32.Encode( &dst, &src ); + if ( dst.Size() > 0 ) + { |