[SM-Discuss] File filters and haskell spells

Andrew afrayedknot at thefrayedknot.armory.com
Wed Aug 22 08:40:10 EDT 2007


On Wed, Aug 22, 2007 at 03:51:52PM +0500, Alexander Tsamutali wrote:
> Hi!
> 
> I found one problem with recently created haskell section:
> 
> astsmtl at alpha:~$ gaze from package.conf
> ghc-6.6.1:/usr/lib/ghc-6.6.1/package.conf
> haskell-html-1.0:/usr/lib/ghc-6.6.1/package.conf
> haskell-mtl-1.0:/usr/lib/ghc-6.6.1/package.conf
> haskell-quickcheck-1.0:/usr/lib/ghc-6.6.1/package.conf
> haskell-x11-1.2.2:/usr/lib/ghc-6.6.1/package.conf
> haskell-x11-extras-0.2:/usr/lib/ghc-6.6.1/package.conf
> astsmtl at alpha:~$ 
> 
> This file is essential because if it's removed on dispel you cannot
> install haskell packages anymore. ruskie suggested that this can be
> solved using excluded/protected/volatiles/configs file filters. But i
> can't understand how to do it right. Personally i think that this file
> should belong to ghc only and should be excluded from install logs of
> other spells. Any suggestions?
> 

You dont want to be excluding things, that leads to many
problems. Exclusion filter is a last resort.

Instead protect the file so its not removed on dispel, mark it volatile so
cleanse will understand that it may be modified. Then handle it whatever
way you see best fit in POST_DISPEL.

-Andrew


More information about the SM-Discuss mailing list