Warning: this may break if you're trying to do a global install,
but it seems to help for my case where I have bytestring 0.9.1.3
installed for my user, but the default bytestring 0.9.1.2 shipping
with GHC

Tue Dec  9 22:47:02 GMT 2008  Eric Kow <[EMAIL PROTECTED]>
  * Use latest version of packages in GHC database

New patches:

[Use latest version of packages in GHC database
Eric Kow <[EMAIL PROTECTED]>**20081209224702] {
hunk ./configure 691
 # Test if we can include the bytestring package explicitly
 $hcpkg describe bytestring > /dev/null 2> /dev/null
 case $? in
-  0) bytestringpkgversion=`ghc-pkg field bytestring version | tail -n 1 | sed 's/.* //'`
-     pkgbytestring="-package bytestring-$bytestringpkgversion";;
+  0) bytestringpkgversion=`ghc-pkg latest bytestring`
+     pkgbytestring="-package $bytestringpkgversion";;
   *) pkgbytestring="";;
 esac
 
hunk ./configure 699
 # Test if we can include the containers package explicitly
 $hcpkg describe containers > /dev/null 2> /dev/null
 case $? in
-  0) containerspkgversion=`ghc-pkg field containers version | tail -n 1 | sed 's/.* //'`
-     pkgcontainers="-package containers-$containerspkgversion";;
+  0) containerspkgversion=`ghc-pkg latest containers`
+     pkgcontainers="-package $containerspkgversion";;
   *) pkgcontainers="";;
 esac
 
hunk ./configure 707
 # Test if we can include the parsec package explicitly
 $hcpkg describe parsec > /dev/null 2> /dev/null
 case $? in
-  0) pkgversion=`ghc-pkg field parsec version | tail -n 1 | sed 's/.* //'`
-     pkgparsec="-package parsec-$pkgversion";;
+  0) pkgversion=`ghc-pkg latest parsec`
+     pkgparsec="-package $pkgversion";;
   *) pkgparsec="";;
 esac
 
hunk ./configure 715
 # Test if we can include the time package explicitly
 $hcpkg describe time > /dev/null 2> /dev/null
 case $? in
-  0) pkgversion=`ghc-pkg field time version | tail -n 1 | sed 's/.* //'`
-     pkgtime="-package time-$pkgversion";;
+  0) pkgversion=`ghc-pkg latest time`
+     pkgtime="-package $pkgversion";;
   *) pkgtime="";;
 esac
 
hunk ./configure 723
 # Test if we can include the stm package explicitly
 $hcpkg describe stm > /dev/null 2> /dev/null
 case $? in
-  0) stmpkgversion=`ghc-pkg field stm version | tail -n 1 | sed 's/.* //'`
-     pkgstm="-package stm-$stmpkgversion";;
+  0) stmpkgversion=`ghc-pkg latest stm`
+     pkgstm="-package $stmpkgversion";;
   *) pkgstm="";;
 esac
 
hunk ./configure 1028
 
 # behave like Cabal's configuration.
 if test "$pkgcontainers"; then
-  wxcoredepends="base-$basepkgversion, containers-$containerspkgversion"
+  wxcoredepends="base-$basepkgversion, $containerspkgversion"
 else
   wxcoredepends="base-$basepkgversion"
 fi
hunk ./configure 1069
 	Graphics.UI.WXCore.WxcClassesMZ
 hs-libraries:wxcore,wxcore0,wxcore1,wxcore2
 extra-libraries:${wxclibname}-${binversion}
-depends: ${wxcoredepends}, haskell98-$haskell98pkgversion, bytestring-$bytestringpkgversion, stm-$stmpkgversion
+depends: ${wxcoredepends}, haskell98-$haskell98pkgversion, $bytestringpkgversion, $stmpkgversion
 extra-ld-opts:$extraldopts
 EOF
 cp -f config/wxcore-partial.pkg config/wxcore.pkg
}

Context:

[When use --user option, wxhaskell should install .cabal location.
shelarcy <[EMAIL PROTECTED]>**20081128133122] 
[TAG 0.11.0rc1_2
shelarcy <[EMAIL PROTECTED]>**20081128044152] 
Patch bundle hash:
4f54c12c07a30755284975976b82a884b78b7b86
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
wxhaskell-devel mailing list
wxhaskell-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-devel

Reply via email to