diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2012-12-24 15:38:04 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2012-12-24 15:38:04 +0000 |
commit | c83f2e2ae1ef77e5207dca0b308e305743653f25 (patch) | |
tree | 4dcdcef664efb3152d20806f9827b25c6a51e421 /dev-haskell/hdbc-postgresql | |
parent | Use QA_PREBUILT. Bug #429504 (diff) | |
download | historical-c83f2e2ae1ef77e5207dca0b308e305743653f25.tar.gz historical-c83f2e2ae1ef77e5207dca0b308e305743653f25.tar.bz2 historical-c83f2e2ae1ef77e5207dca0b308e305743653f25.zip |
Fix against ghc-7.6.
Package-Manager: portage-2.2.0_alpha149_p1/cvs/Linux x86_64
Manifest-Sign-Key: 0x611FF3AA
Diffstat (limited to 'dev-haskell/hdbc-postgresql')
5 files changed, 69 insertions, 71 deletions
diff --git a/dev-haskell/hdbc-postgresql/ChangeLog b/dev-haskell/hdbc-postgresql/ChangeLog index 0d9be085736d..39df7ef7600a 100644 --- a/dev-haskell/hdbc-postgresql/ChangeLog +++ b/dev-haskell/hdbc-postgresql/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-haskell/hdbc-postgresql # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hdbc-postgresql/ChangeLog,v 1.20 2012/12/07 10:35:21 slyfox Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hdbc-postgresql/ChangeLog,v 1.21 2012/12/24 15:35:57 slyfox Exp $ + + 24 Dec 2012; Sergei Trofimovich <slyfox@gentoo.org> + +files/HDBC-postgresql-2.3.2.1-ghc-7.6.patch, -hdbc-postgresql-2.2.3.3.ebuild, + hdbc-postgresql-2.3.2.1.ebuild: + Fix against ghc-7.6. 07 Dec 2012; Sergei Trofimovich <slyfox@gentoo.org> hdbc-postgresql-2.2.3.3.ebuild: diff --git a/dev-haskell/hdbc-postgresql/Manifest b/dev-haskell/hdbc-postgresql/Manifest index 4e8ec7b04818..0f3f54877ea4 100644 --- a/dev-haskell/hdbc-postgresql/Manifest +++ b/dev-haskell/hdbc-postgresql/Manifest @@ -1,16 +1,15 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 -DIST HDBC-postgresql-2.2.3.3.tar.gz 43023 SHA256 561dd9d677a19e82c833fa90f65db8fd7bcc5ef8086104c2269fc6fe30bf03f2 SHA512 f29f9b010992f16ca72b732484321cfb899303f474bab66524758a341c13eb5321b23b31598d6145fd555d0c8329c686f5094c0f63589932b03c13b2595fe680 WHIRLPOOL f840d16ce6f477fb8159013c0f6636ceca60b2e5c60c74db9f75bd561cad4c85e2148189a4f113b2e0c0ad1916610b97408d190a4a1b2e0a0041e685e2319b88 +AUX HDBC-postgresql-2.3.2.1-ghc-7.6.patch 1816 SHA256 b6a36149c8535401bd171a064e1b17ee0047d6a3bdfbe69401510eba76efc30b SHA512 80a5916877e6f6701c065acca9f5fb9d39808ebbe8d78cda8ae1ce0d8f0d5b7e9bdefcf3ab783dcd8e769bcc9ebad2778fd22143b7c764bbea3b2b8965ef3342 WHIRLPOOL 535b4568a5ac01d730e0f43b9b2640222d1faf1303a8c543f3653db8c8115719099df71fcdea6add35ad79801f2aafe6deefc699dbad4a84a5f5edd1189ebb46 DIST HDBC-postgresql-2.3.2.1.tar.gz 24683 SHA256 ebda9d5809d9e24ad67234784df9d75af1b12c6a32d87b221bb785d4080721ca SHA512 12576203936d7c939688946160133174b12082c6684554f6f5a8e3c44251982c13eacdf9a18a45c21e877a220178b303299a3b3e72cb828cf58dede2b9c519cb WHIRLPOOL 08491a2f4ad67fce8ee14fa935499af91bbb0927241bdd51dc0d91acd1543b7ff200abb6d8d05fca43d9df304d4b0ad0450414079eccaec381679c1cbf394552 -EBUILD hdbc-postgresql-2.2.3.3.ebuild 1460 SHA256 c8f1ae6ac9f37fe8f63316deb672e37c83a31ea9edc2c96af5e8504846e4e4b0 SHA512 31096c3867c993d03fdce71494d8ba49f41d2230539aa1043b8ef2efa642b73bd362c35b2977cc89576b75af3676343dfe3e9103ad858040d04bed62e5fd4b89 WHIRLPOOL d904b7d6bbbf171d2b48da8d87541605d29181a05a24c2904a0e427adfaf2484f1fcf5509651625c0a17a3d55e9882cfe537fb037af769cbd713e3c67e9a30bb -EBUILD hdbc-postgresql-2.3.2.1.ebuild 1575 SHA256 547d2b4cb0601cda41b828e3db9ce7580091ac2083f4f1cdf5b5115860796737 SHA512 ed50e547c35dab2a6f7d67dda8ea8877c72add733ceedc43a1957710165033c5e3394eb1a82e4dec7e0733f16519f4db24955491793acb00eadc9b7ac0b987c0 WHIRLPOOL b56e361ede9b540e3b71bc52da9c3ee658acd8cf4200cbbd5fb35000bdc1cf98d23bd5c79225028d8f254f1042440c547403c6533131a3872153a3e12346ac89 -MISC ChangeLog 3726 SHA256 f458828495d165eabeb54e8fd6e02898f89ca8e4b3cfbc36500817057a50f0d6 SHA512 c216900d8165982f27e167e33a5a8c41d62923e9f4bea746fe5a66df2cf6c2aaba872510fd7a1138ce3a517f4e058450ccff12435964c02261a9fd5289526724 WHIRLPOOL 056550a03cef2401cf600556a0210dcb44aa85e2ecb6901f96df682f47ac12e8cc348643280a2eb63f649af4d1766ef9c60172d36eb48f4b202ea2660625877f +EBUILD hdbc-postgresql-2.3.2.1.ebuild 1636 SHA256 623818fa8dbc742497d6a90803b24ba181f37ffacd78b7ea92c6893c8b9a9bfa SHA512 283632b61a8191eef9b87965d19e51342faa2566fe97bb7249fc47721d3fd4cbaa278154d53208eebfdf8212a6e259c35ac1ba00e19970b3b1781fe12eed0594 WHIRLPOOL 6f2d5069d61bb1176131c5de6f8d5636452d9169f0a91777986df57383c6ebb9a3ea179a9b3a10b4391d3cc7a7c80985ea994913977e1b4520fc8cf14f124a9b +MISC ChangeLog 3919 SHA256 86af86cd378d18ceed78a4bfffe08f6768aaef214c1766bbb9dec6bee508faae SHA512 14092028cd9e1d489963a8cac252349a7cb35627b2a91cd40a527f9389a71d88f5afaefc8e24a9a7fed17adfb8c82b5ebc74d7e4cbcc980df8810e18dea117a4 WHIRLPOOL d7df8b9e9219c1e871b50cbdb82afe7c1f6b1a033738f673c48fdc8376abd8681143a0c5e2f1161a32c9b533e3beb85081f6560417c7547910d83f56467ac2d7 MISC metadata.xml 223 SHA256 1d00c8be162a6cb87b3de440b3e63e10b39c12d56e8fbfe592e75aed872b2508 SHA512 24765bbf1cb187cd262aa7fb3824c1cec65e2bf3f2198099de688916d96401a26458265b15408f22b1fbd6d6a2842df814a57ceda80dfa00d130b24423b7544f WHIRLPOOL 8fd6700f6198db6540eb51edf11372faeb6eb8a542a692e515badf236f62444f2c180f7d08e0f98e9fdfa23de14631b31af50543469aaa27084d6b637e2644c7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlDBxnQACgkQcaHudmEf86p2LgCfeeZbKgbRfwGZIjkhJGaZO5tU -ZqIAn2OF6JZWAG/lkYnrt18foTBbIMTh -=oCwr +iEYEAREIAAYFAlDYdkgACgkQcaHudmEf86pK5ACeLH5yHwxjorMX7tqQHfUgMLLV +rLwAn3QPzVeqHDGHPUGc3Uv6VLpf1O3I +=vd+0 -----END PGP SIGNATURE----- diff --git a/dev-haskell/hdbc-postgresql/files/HDBC-postgresql-2.3.2.1-ghc-7.6.patch b/dev-haskell/hdbc-postgresql/files/HDBC-postgresql-2.3.2.1-ghc-7.6.patch new file mode 100644 index 000000000000..2f81f35c1410 --- /dev/null +++ b/dev-haskell/hdbc-postgresql/files/HDBC-postgresql-2.3.2.1-ghc-7.6.patch @@ -0,0 +1,53 @@ +--- HDBC-postgresql-2.3.2.1-orig/testsrc/TestSbasics.hs 2012-03-04 04:08:01.000000000 +1100 ++++ HDBC-postgresql-2.3.2.1/testsrc/TestSbasics.hs 2012-10-13 11:08:27.482597846 +1100 +@@ -1,10 +1,14 @@ ++{-# LANGUAGE CPP, ScopedTypeVariables #-} + module TestSbasics(tests) where + import Test.HUnit + import Data.List + import Database.HDBC + import TestUtils + import System.IO +-import Control.Exception hiding (catch) ++#if !MIN_VERSION_base(4,6,0) ++import Prelude hiding (catch) ++#endif ++import Control.Exception + + openClosedb = sqlTestCase $ + do dbh <- connectDB +@@ -142,7 +146,7 @@ + -- Let's try a rollback. + catch (withTransaction dbh (\_ -> do sExecuteMany sth rows + fail "Foo")) +- (\_ -> return ()) ++ (\(_::IOException) -> return ()) + sExecute qrysth [] + sFetchAllRows qrysth >>= (assertEqual "rollback" [[Just "0"]]) + +--- HDBC-postgresql-2.3.2.1-orig/testsrc/Testbasics.hs 2012-03-04 04:08:01.000000000 +1100 ++++ HDBC-postgresql-2.3.2.1/testsrc/Testbasics.hs 2012-10-13 11:07:43.622396904 +1100 +@@ -1,9 +1,13 @@ ++{-# LANGUAGE CPP, ScopedTypeVariables #-} + module Testbasics(tests) where + import Test.HUnit + import Database.HDBC + import TestUtils + import System.IO +-import Control.Exception hiding (catch) ++#if !MIN_VERSION_base(4,6,0) ++import Prelude hiding (catch) ++#endif ++import Control.Exception + + openClosedb = sqlTestCase $ + do dbh <- connectDB +@@ -140,7 +144,7 @@ + -- Let's try a rollback. + catch (withTransaction dbh (\_ -> do executeMany sth rows + fail "Foo")) +- (\_ -> return ()) ++ (\(_::IOException) -> return ()) + execute qrysth [] + fetchAllRows qrysth >>= (assertEqual "rollback" [[SqlString "0"]]) + diff --git a/dev-haskell/hdbc-postgresql/hdbc-postgresql-2.2.3.3.ebuild b/dev-haskell/hdbc-postgresql/hdbc-postgresql-2.2.3.3.ebuild deleted file mode 100644 index b029aad3f4f5..000000000000 --- a/dev-haskell/hdbc-postgresql/hdbc-postgresql-2.2.3.3.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hdbc-postgresql/hdbc-postgresql-2.2.3.3.ebuild,v 1.3 2012/12/07 10:35:21 slyfox Exp $ - -# ebuild generated by hackport 0.2.12 - -EAPI="2" - -CABAL_FEATURES="bin lib profile haddock hscolour" -inherit haskell-cabal - -MY_PN="HDBC-postgresql" -MY_P="${MY_PN}-${PV}" - -DESCRIPTION="PostgreSQL driver for HDBC" -HOMEPAGE="http://software.complete.org/hdbc-postgresql" -SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="2" -KEYWORDS="~amd64 ~x86" -IUSE="test" -RESTRICT="test" # requires configured postgresql - -hdbc_PV=$(get_version_component_range 1-2) - -RDEPEND=">=dev-lang/ghc-6.8.2 - =dev-haskell/hdbc-${hdbc_PV}* - dev-haskell/mtl - dev-haskell/parsec - dev-haskell/utf8-string - >=dev-db/postgresql-base-8" -DEPEND="${RDEPEND} - >=dev-haskell/cabal-1.8 - test? ( dev-haskell/convertible - dev-haskell/hunit - dev-haskell/quickcheck - dev-haskell/testpack - ) - " - -S="${WORKDIR}/${MY_P}" - -src_configure() { - cabal_src_configure $(cabal_flag test buildtests) -} - -src_test() { - # default tests - haskell-cabal_src_test || die "cabal test failed" - - # built custom tests - "${S}/dist/build/runtests/runtests" || die "unit tests failed" -} - -src_install() { - cabal_src_install - - # if tests were enabled, make sure the unit test driver is deleted - rm -f "${ED}/usr/bin/runtests" -} diff --git a/dev-haskell/hdbc-postgresql/hdbc-postgresql-2.3.2.1.ebuild b/dev-haskell/hdbc-postgresql/hdbc-postgresql-2.3.2.1.ebuild index 829c29f13834..3a8310b3c388 100644 --- a/dev-haskell/hdbc-postgresql/hdbc-postgresql-2.3.2.1.ebuild +++ b/dev-haskell/hdbc-postgresql/hdbc-postgresql-2.3.2.1.ebuild @@ -1,13 +1,13 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hdbc-postgresql/hdbc-postgresql-2.3.2.1.ebuild,v 1.4 2012/12/06 22:54:58 slyfox Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hdbc-postgresql/hdbc-postgresql-2.3.2.1.ebuild,v 1.5 2012/12/24 15:35:57 slyfox Exp $ EAPI=4 # ebuild generated by hackport 0.2.18.9999 CABAL_FEATURES="bin lib profile haddock hoogle hscolour" -inherit haskell-cabal versionator +inherit base haskell-cabal versionator MY_PN="HDBC-postgresql" MY_P="${MY_PN}-${PV}" @@ -43,6 +43,8 @@ DEPEND="${RDEPEND} S="${WORKDIR}/${MY_P}" +PATCHES=("${FILESDIR}/${MY_PN}-2.3.2.1-ghc-7.6.patch") + src_configure() { cabal_src_configure $(cabal_flag test buildtests) } |