diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-04-23 14:19:41 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-04-23 14:19:41 +0000 |
commit | b44dc1f928239c6f7278ccf540077c5a549eb457 (patch) | |
tree | ba93061db47409ec6952468916b36603ceb459a9 /sci-chemistry/molmol | |
parent | Migrate to EAPI3, add keywords/patch as testing in the prefix overlay (diff) | |
download | gentoo-2-b44dc1f928239c6f7278ccf540077c5a549eb457.tar.gz gentoo-2-b44dc1f928239c6f7278ccf540077c5a549eb457.tar.bz2 gentoo-2-b44dc1f928239c6f7278ccf540077c5a549eb457.zip |
fix instance of cast from pointer to integer of different size, stolen from fink
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-chemistry/molmol')
-rw-r--r-- | sci-chemistry/molmol/ChangeLog | 7 | ||||
-rw-r--r-- | sci-chemistry/molmol/files/cast.patch | 13 | ||||
-rw-r--r-- | sci-chemistry/molmol/molmol-2k_p2-r2.ebuild | 4 |
3 files changed, 22 insertions, 2 deletions
diff --git a/sci-chemistry/molmol/ChangeLog b/sci-chemistry/molmol/ChangeLog index 457597cafeb4..077529eca7a7 100644 --- a/sci-chemistry/molmol/ChangeLog +++ b/sci-chemistry/molmol/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-chemistry/molmol # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molmol/ChangeLog,v 1.19 2010/03/30 19:55:26 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molmol/ChangeLog,v 1.20 2010/04/23 14:19:41 jlec Exp $ + + 23 Apr 2010; Justin Lecher <jlec@gentoo.org> molmol-2k_p2-r2.ebuild, + +files/cast.patch: + fix instance of cast from pointer to integer of different size, stolen + from fink *molmol-2k_p2-r2 (30 Mar 2010) diff --git a/sci-chemistry/molmol/files/cast.patch b/sci-chemistry/molmol/files/cast.patch new file mode 100644 index 000000000000..643b92d2a4cf --- /dev/null +++ b/sci-chemistry/molmol/files/cast.patch @@ -0,0 +1,13 @@ +diff --git a/src/data/DataDist.c b/src/data/DataDist.c +index 7f7121f..d303e9e 100644 +--- a/src/data/DataDist.c ++++ b/src/data/DataDist.c +@@ -89,7 +89,7 @@ hashInter(void *p, unsigned size) + { + TabEntryInter *entryP = p; + +- return ((unsigned) entryP->atom1P + (unsigned) entryP->atom2P) % size; ++ return ((unsigned)(uintptr_t) entryP->atom1P + (unsigned)(uintptr_t) entryP->atom2P) % size; + } + + static int diff --git a/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild b/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild index 5e6d3ba2cae3..3278d5632256 100644 --- a/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild +++ b/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild,v 1.1 2010/03/30 19:55:26 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-chemistry/molmol/molmol-2k_p2-r2.ebuild,v 1.2 2010/04/23 14:19:41 jlec Exp $ EAPI="3" @@ -59,6 +59,8 @@ src_prepare() { -e "s:^MCFLAGS.*:MCFLAGS = ${CFLAGS}:" \ -e "s:^CC.*:CC = $(tc-getCC):" \ "${S}"/makedef + + epatch "${FILESDIR}"/cast.patch } src_compile() { |