Ticket #798 (new defect)

Opened 2 years ago

Last modified 17 months ago

install gives "removeLink: does not exist" for a dependency that exists

Reported by: tsueako Owned by:
Priority: normal Milestone:
Component: Cabal library Version: 1.8.0.6
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: 6.12.3 Platform: Linux

Description

In installing regex-pcre in an installation with regex-base already installed, I get:

Registering regex-base-0.93.2... /usr/bin/ghc-pkg update - --global --no-user-package-conf cabal: ghc-pkg: /usr/lib/ghc-6.12.3/package.conf.d/regex-base-0.93.2-93d41c404776e7153a3c56abb15299c9.conf: removeLink: does not exist (No such file or directory)

and regex-pcre does not install. However, prior to running cabal 'ghc-pkg list' had shown that regex-base was already installed.

I suspect this is a problem due to the way haskell is installed on Fedora. Basically, you: 1. install a haskell-platform rpm, which leads to a bunch of ghc rpms being installed. 2. you supplement these rpms with any other Fedora haskell package rpms you may need. At this point everything works. 3. when you cabal install other packages from hackagedb, 1 of 3 things usually happens:

  1. install is successful.
  2. install fails, but can be done by using an older version of the package.
  3. install fails as above.

I have already submitted a bug report to Fedora, and they thought it might be useful to kick it up.

BTW, I have also noticed that the global package.conf.d directory has a mixed format (entries with and w/o a hash) as in:

random-1.0.0.2-f4208c3677aeaaaf41e4d36309c0b4ff.conf

ranges-0.2.3-2cf5a2473b624130e73c098781871f09.conf

regex-base-0.93.2.conf

Attachments

install.txt Download (13.1 KB) - added by tsueako 2 years ago.
Verbose printout of cabal install
ls.txt Download (6.6 KB) - added by tsueako 2 years ago.
odd file names in /usr/lib/ghc-6.12.3/package.conf.d

Change History

Changed 2 years ago by tsueako

Verbose printout of cabal install

Changed 2 years ago by tsueako

odd file names in /usr/lib/ghc-6.12.3/package.conf.d

Changed 2 years ago by tsueako

I should mention I am using haskell-platform-2010.2.0.0-1.fc14.i686 on Fedora 14.

Changed 17 months ago by elga

Note: See TracTickets for help on using tickets.