The 6.2 version of ghc-pkg is incorrectly parses commas within quotes. 
Here's a simple example:

$ echo 'Package {name="ptest",extra_ld_opts=["a,b,c"]}' | sudo ghc-pkg -a
$ ghc-pkg -s ptest
Package
   {name = "ptest",
    auto = False,
    import_dirs = [],
    source_dirs = [],
    library_dirs = [],
    hs_libraries = [],
    extra_libraries = [],
    include_dirs = [],
    c_includes = [],
    package_deps = [],
    extra_ghc_opts = [],
    extra_cc_opts = [],
    extra_ld_opts = ["a", "b", "c"],
    framework_dirs = [],
    extra_frameworks = []}

This breaks JVM-Bridge, because I have a line that looks like this:

  extra_ld_opts =
     [
     "-Wl,-rpath,/usr/lib/jvm-bridge/lib/",
     "-Wl,-rpath,/usr/lib/j2sdk1.4.1_02/jre/lib/i386/",
     "-Wl,-rpath,/usr/lib/j2sdk1.4.1_02/jre/lib/i386/client/"
     ]

It worked fine in 6.0. I also can't think of a robust workaround, i.e. 
one that would work with a correct ghc-pkg.

-- 
Ashley Yakeley, Seattle WA

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to