[Haskell-cafe] Re: building hslogger

Greg Heartsfield scsibug at imap.cc
Sat Oct 20 21:52:14 EDT 2007


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 <chayden at gmail.com> 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
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


New patches:

[Compatibility with Cabal 1.2.
Greg Heartsfield <scsibug at imap.cc>**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
shae at ScannedInAvian.com**20070521182434] 
[TAG DEBIAN_hslogger_1.0.3
John Goerzen <jgoerzen at complete.org>**20070601090632] 
Patch bundle hash:
8363f7fd5d43e26ddb0c027f9220f1bca37a479c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFHGpxnMc0hSg4SDVERApqIAJ4yb1mdorfNMT+t/EGvtyCAckdn0ACfeKFB
wCkRDZvVowCCHb1FqFwktNg=
=HX6L
-----END PGP SIGNATURE-----


More information about the Haskell-Cafe mailing list