Bug in Cabal?
duncan.coutts at worc.ox.ac.uk
Thu Jan 29 18:59:40 EST 2009
On Thu, 2009-01-29 at 11:43 +0000, Duncan Coutts wrote:
> On Wed, 2009-01-28 at 13:13 +0000, Duncan Coutts wrote:
> > The solution I think, is never to copy the read-only attribute when
> > installing files. It's thoroughly unhelpful. I've got a patch to do this
> > which I shall push to Cabal HEAD shortly. If you have a moment to help
> > me test that it would be much appreciated.
> I've attached a darcs patch against the Cabal-1.6 branch (rather than
> the head branch).
> darcs get --partial http://darcs.haskell.org/cabal-branches/cabal-1.6/
The patch is now in the 1.6 branch, along with a fix to make it work
with other ghc versions.
> If you or anyone else can test it on Windows that'd be great. I checked
> it by setting the read-only attribute on a LICENSE file and where
> previously the attribute would get copied (preventing further
> re-installs) it is now not copied.
> On Unix it should solve this problem:
> Though I've not tested that yet.
It appears to fix this problem too.
> The patch for the 1.6 branch is fairly minimal and doesn't change any
> API. In Cabal HEAD I'll do it slightly differently so that the code is
> more consistent and comprehensible, but it involves api changes to
> exposed utility functions.
I've pushed these changes too now so it should also work in Cabal HEAD
and with a saner api.
More information about the cabal-devel