Package: libghc6-cabal-dev
Severity: normal

-- I guess this is happening because in order to generate the
register.sh file, we're looking at what verison of GHC cabal is built
with, not which version is installed? --

From: Andres Loeh
Subject: bad register.sh produced by cabal
To: [EMAIL PROTECTED]

reproduce:

unpack cabal-0.5

make setup
./setup configure
./setup build
./setup register --gen-script

Calling the script produces:

adorp cabal # ./register.sh
ghc-pkg: command-line syntax error
Usage:
  ghc-pkg register {filename | -}
    Register the package using the specified installed package
    description. The syntax for the latter is given in the ghc-pkg
    documentation.

  ghc-pkg update {filename | -}
    Register the package, overwriting any other package with the
    same name.

  ghc-pkg unregister {pkg-id}
    Unregister the specified package.

  ghc-pkg expose {pkg-id}
    Expose the specified package.

  ghc-pkg hide {pkg-id}
    Hide the specified package.

  ghc-pkg list
    List registered packages in the global database, and also the
    user database if --user is given.

  ghc-pkg describe {pkg-id}
    Give the registered description for the specified package. The
    description is returned in precisely the syntax required by
    ghc-pkg
    register.

  ghc-pkg field {pkg-id} {field}
    Extract the specified field of the package description for the
    specified package.

 The following optional flags are also accepted:

           --user               use the current user's package
             database
           --global             (default) use the global package
             database
  -f FILE  --package-conf=FILE  act upon specified package config file
             (only)
           --global-conf=FILE   location of the global package config
           --force              ignore missing dependencies,
             directories, and libraries
  -g       --auto-ghci-libs     automatically build libs for GHCi
             (with register)
  -?       --help               display this help and exit
  -V       --version            output version information and exit

------------------------------------------------------------
register.sh:
------------------------------------------------------------

#!/bin/sh

echo 'name: Cabal
version: 0.5
license: BSD3
copyright: 2003-2005, Isaac Jones
maintainer: Isaac Jones <[EMAIL PROTECTED]>
stability:
homepage: http://www.haskell.org/cabal/
package-url:
description: The Haskell Common Architecture for Building Applications and
             Libraries: a framework defining a common interface for authors to 
more
             easily build their Haskell applications in a portable way.
             .
             The Haskell Cabal is meant to be a part of a larger infrastructure
             for distributing, organizing, and cataloging Haskell libraries
             and tools.
category: Distribution
author: Isaac Jones
exposed: True
exposed-modules: Distribution.Compat.ReadP Distribution.Extension
                 Distribution.InstalledPackageInfo Distribution.License
                 Distribution.Make Distribution.Package
                 Distribution.PackageDescription Distribution.ParseUtils
                 Distribution.PreProcess Distribution.PreProcess.Unlit
                 Distribution.Setup Distribution.Simple 
Distribution.Simple.Build
                 Distribution.Simple.Configure 
Distribution.Simple.GHCPackageConfig
                 Distribution.Simple.Install Distribution.Simple.LocalBuildInfo
                 Distribution.Simple.Register Distribution.Simple.SrcDist
                 Distribution.Simple.Utils Distribution.Version
hidden-modules: Distribution.GetOpt Distribution.Compat.Directory
                Distribution.Compat.Exception Distribution.Compat.FilePath
                Distribution.Compat.RawSystem
import-dirs: /usr/local/lib/Cabal-0.5
library-dirs: /usr/local/lib/Cabal-0.5
hs-libraries: HSCabal-0.5
extra-libraries:
include-dirs:
includes:
depends: base-1.0 util-1.0
hugs-options:
cc-options:
ld-options:
framework-dirs:
frameworks:
haddock-interfaces:
haddock-html:' | /usr/bin/ghc-pkg --auto-ghci-libs update


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.21
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to