This seems to be a recurring problem, and I'm not sure how to deal with it.

Say we have hslogger, and MissingH.  MissingH build-deps and deps on 
hslogger.

When hslogger gets a new version in its cabal file, GHC no longer sees it 
when you try to use MissingH because it has a different version.  Then 
MissingH has to be rebuilt, and in the meantime, things are broken.

Is there any nice automatic way to prevent this problem?
--- Begin Message ---
found 464013 1.0.0.1
thanks

On Mon, Feb 04, 2008 at 06:53:34PM +0100, Kurt Roeckx wrote:
> Package: libghc6-missingh-dev
> Version: 1.0.0.0
> Severity: serious
> 
> Hi,
> 
> Your package is failing to install with the following error:
> Setting up libghc6-missingh-dev (1.0.0.0) ...
> Reading package info from 
> "/usr/lib/haskell-packages/ghc6/lib/MissingH-1.0.0/installed-pkg-config" ... 
> done.
> ghc-pkg: dependency regex-compat-0.91 doesn't exist (use --force to override)
> dpkg: error processing libghc6-missingh-dev (--configure):
>  subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>  libghc6-missingh-dev
> E: Sub-process /usr/bin/dpkg returned an error code (1)

Now it's failing to install with:
Setting up libghc6-missingh-dev (1.0.0.1) ...
Reading package info from 
"/usr/lib/haskell-packages/ghc6/lib/MissingH-1.0.0/installed-pkg-config" ...  
done.
ghc-pkg: dependency hslogger-1.0.4 doesn't exist (use --force to override)
dpkg: error processing libghc6-missingh-dev (--configure):
 subprocess post-installation script returned error exit status 1

> And then fail to remove with:
> Removing libghc6-missingh-dev ...
> ghc-pkg: cannot find package MissingH-1.0.0
> dpkg: error processing libghc6-missingh-dev (--purge):
>  subprocess pre-removal script returned error exit status 1
> Reading package info from 
> "/usr/lib/haskell-packages/ghc6/lib/MissingH-1.0.0/installed-pkg-config" ... 
> done.
> ghc-pkg: dependency regex-compat-0.91 doesn't exist (use --force to override)
> dpkg: error while cleaning up:
>  subprocess post-installation script returned error exit status 1

And fails to remove with:
Removing libghc6-hslogger-dev ...
Saving old package config file... done.
Writing new package config file... done.
Removing libghc6-hunit-dev ...
Saving old package config file... done.
Writing new package config file... done.
Removing libghc6-missingh-dev ...
ghc-pkg: cannot find package MissingH-1.0.0
dpkg: error processing libghc6-missingh-dev (--purge):
 subprocess pre-removal script returned error exit status 1
Reading package info from 
"/usr/lib/haskell-packages/ghc6/lib/MissingH-1.0.0/installed-pkg-config" ...  
done.
ghc-pkg: dependency HUnit-1.2.0.0 doesn't exist (use --force to override)
dpkg: error while cleaning up:
 subprocess post-installation script returned error exit status 1


> Pretty please make some kind of policy to avoid such errors in the
> future.  I had to file too many bugs for such problems.

I want to repeat that request.  Atleast make sure that packages end up
in such a state that they can be removed.


Kurt





--- End Message ---
_______________________________________________
debian-haskell mailing list
[email protected]
http://urchin.earth.li/mailman/listinfo/debian-haskell

Reply via email to