Coincidentally, I just sent a patch to John for this very issue. I've
attached it here, it simply updates the setup script and cabal file
for Cabal 1.2.
Thanks,
Greg Heartsfield
On Thu, Oct 18, 2007 at 09:31:51AM -0500, John Goerzen wrote:
> On 2007-10-17, Chris Hayden <[EMAIL PROTECTED]> wrote:
> > Hello!
> >
> > I'm trying to build the most recent version of hslogger and have run
> > into some issues. Below is the error message I receive. (I see that
> > the same error has come up elsewhere:
> > http://haskell.galois.com/packages/archive/hslogger/1.0.2/log).
> >
> > The hslogger (http://software.complete.org/hslogger) website indicates
> > that questions should be posted here - I apologize if this is the
> > wrong venue.
>
> What version of GHC do you have? Have you installed a different version
> of Cabal? And where did you obtain your hslogger source from?
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
New patches:
[Compatibility with Cabal 1.2.
Greg Heartsfield <[EMAIL PROTECTED]>**20071021001919] {
hunk ./Setup.hs 4
- -import Distribution.PackageDescription
- -import Distribution.Simple.LocalBuildInfo
- -import Distribution.Version
- -import System.Info
- -import Data.Maybe
- -import System.Cmd
- -
- -missingHooks = defaultUserHooks {confHook = customConfHook}
- -
- -customConfHook descrip flags =
- - let mydescrip = case System.Info.os of
- - "mingw32" -> descrip
- - _ -> descrip {buildDepends =
- - (Dependency "unix" AnyVersion) :
- - buildDepends descrip}
- - in (confHook defaultUserHooks) mydescrip flags
- -
- -main = defaultMainWithHooks missingHooks
- -
hunk ./Setup.hs 5
+main = defaultMain
hunk ./hslogger.cabal 13
- -Hs-Source-Dirs: src
- -Exposed-Modules:
- - System.Log, System.Log.Handler,
- - System.Log.Handler.Simple, System.Log.Handler.Syslog,
- - System.Log.Handler.Growl, System.Log.Logger
- -Extensions: CPP, ExistentialQuantification
- -Build-Depends: network, base, mtl
- --- Cabal will add Unix here for Posix platforms
- -GHC-Options: -O2
+Cabal-Version: >= 1.2
hunk ./hslogger.cabal 15
- -Executable: runtests
- -Buildable: False
- -Main-Is: runtests.hs
- -HS-Source-Dirs: testsrc, .
- -Extensions: ExistentialQuantification, OverlappingInstances,
- - UndecidableInstances, CPP
+Library {
+ GHC-Options: -O2
+ Build-Depends: network, base, mtl
+ Exposed-Modules:
+ System.Log, System.Log.Handler,
+ System.Log.Handler.Simple, System.Log.Handler.Syslog,
+ System.Log.Handler.Growl, System.Log.Logger
+ Hs-Source-Dirs: src
+ Extensions: CPP, ExistentialQuantification
+ if (!os(mingw32)) {
+ Build-Depends: unix
+ }
+}
hunk ./hslogger.cabal 29
+Executable runtests {
+ Buildable: False
+ Build-Depends: network, base, mtl
+ Main-Is: runtests.hs
+ HS-Source-Dirs: testsrc, .
+ Extensions: ExistentialQuantification, OverlappingInstances,
+ UndecidableInstances, CPP
+ if (!os(mingw32)) {
+ Build-Depends: unix
+ }
+}
}
Context:
[add OPTIONS pragma to System.Log.Logger
[EMAIL PROTECTED]
[TAG DEBIAN_hslogger_1.0.3
John Goerzen <[EMAIL PROTECTED]>**20070601090632]
Patch bundle hash:
8363f7fd5d43e26ddb0c027f9220f1bca37a479c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFHGpxnMc0hSg4SDVERApqIAJ4yb1mdorfNMT+t/EGvtyCAckdn0ACfeKFB
wCkRDZvVowCCHb1FqFwktNg=
=HX6L
-----END PGP SIGNATURE-----
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe