[darcs-devel] [issue1034] darcs 2 and ghc..

Claus Reinke bugs at darcs.net
Sun Aug 24 20:53:21 UTC 2008


New submission from Claus Reinke <claus.reinke at talk21.com>:

Following up on the discussion in the thread "darcs and ghc", and
now having Simon's darcs2 for windows executable, I'm still running 
into all the old issues.. this is all on windows xp, using cygwin.

To summarize:
    A ghc's "darcs-all" script needs changing, to unblock "packages"
    B darcs2 still messes up pending

The longer story:

1. I have a local copy of ghc head + corelibs + extralibs repos, 
    obtained a while ago by the usual hack of downloading tar-file, 
    then ./darcs-all pull and get from the main ghc repos to get uptodate.

    The last ghc I built in those repos is 6.9.20080816, which gives
    an approximate date for the repos.

2. I have a copy of those local repos, for ghc head + corelibs
    (this is used for validating any patches to ghc, and as a reference
    point for ghc's testsuite), obtained via ./darcs-all from (1)

    The last ghc I built in those repos is 6.9.20080807, which gives
    an approximate date for the repos.

3. Today, I tried updating (./darcs-all pull -a) (2) from (1), to keep 
    a buildable ghc version around before bringing (1) up to date with 
    the main ghc repos. Below is what I got:

    - the ./driver/ghc warning is not a darcs issue

    - "Warning: ./packages-0: renameFile: permission denied (Permission denied)"

 Ian: this might actually be an issue with ghc's "darcs-all" script: it probably 
        comes about because "darcs-all" is reading _incrementally_ from "packages",
        interfering with "darcs pull" trying to update "packages"? Reading "packages"
        in full and closing the file before looping over the entries might help to avoid this.

        My opinion on the darcs "Warning" is recorded in darcs Issue1010.

    - errors in pending is something that I had hoped to see fixed in darcs2:

        ..
        == running darcs pull -a --repodir libraries/Cabal
        Pulling from "c:/fptools/ghc/libraries/Cabal"...
        We have conflicts in the following files:
        ./Distribution/PackageDescription/QA.hs
        You have conflicting local changes to:
        ./Distribution/PackageDescription/QA.hs
        Proceed? [yn]
        ..

        I answered no, and attach the bogus libraries/Cabal/_darcs/patches/pending
        (there is also a pending.tentative, same contents)

Below is the "darcs-all" log and darcs2 version.

Claus

$ ./darcs-all pull -a
== running darcs pull -a --repodir .
Pulling from "c:/fptools/ghc"...
Warning: Not deleting ./driver/ghc because it is not empty.
Warning: ./packages-0: renameFile: permission denied (Permission denied)
Finished pulling and applying.
== running darcs pull -a --repodir utils/hsc2hs
Pulling from "c:/fptools/ghc/utils/hsc2hs"...
Finished pulling and applying.
== running darcs pull -a --repodir libraries/array
Pulling from "c:/fptools/ghc/libraries/array"...
Finished pulling and applying.
== running darcs pull -a --repodir libraries/base
Pulling from "c:/fptools/ghc/libraries/base"...
Finished pulling and applying.
== running darcs pull -a --repodir libraries/bytestring
Pulling from "c:/fptools/ghc/libraries/bytestring"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/Cabal
Pulling from "c:/fptools/ghc/libraries/Cabal"...
We have conflicts in the following files:
./Distribution/PackageDescription/QA.hs
You have conflicting local changes to:
./Distribution/PackageDescription/QA.hs
Proceed? [yn]
== running darcs pull -a --repodir libraries/containers
Pulling from "c:/fptools/ghc/libraries/containers"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/directory
Pulling from "c:/fptools/ghc/libraries/directory"...
Finished pulling and applying.
== running darcs pull -a --repodir libraries/editline
Pulling from "c:/fptools/ghc/libraries/editline"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/filepath
Pulling from "c:/fptools/ghc/libraries/filepath"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/ghc-prim
Pulling from "c:/fptools/ghc/libraries/ghc-prim"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/haskell98
Pulling from "c:/fptools/ghc/libraries/haskell98"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/hpc
Pulling from "c:/fptools/ghc/libraries/hpc"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/integer-gmp
Pulling from "c:/fptools/ghc/libraries/integer-gmp"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/old-locale
Pulling from "c:/fptools/ghc/libraries/old-locale"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/old-time
Pulling from "c:/fptools/ghc/libraries/old-time"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/packedstring
Pulling from "c:/fptools/ghc/libraries/packedstring"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/pretty
Pulling from "c:/fptools/ghc/libraries/pretty"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/process
Pulling from "c:/fptools/ghc/libraries/process"...
Finished pulling and applying.
== running darcs pull -a --repodir libraries/random
Pulling from "c:/fptools/ghc/libraries/random"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/template-haskell
Pulling from "c:/fptools/ghc/libraries/template-haskell"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/unix
Pulling from "c:/fptools/ghc/libraries/unix"...
No remote changes to pull in!
== running darcs pull -a --repodir libraries/Win32
Pulling from "c:/fptools/ghc/libraries/Win32"...
No remote changes to pull in!
== libraries/HUnit repo not present; skipping
== libraries/QuickCheck repo not present; skipping
== libraries/haskell-src repo not present; skipping
== libraries/html repo not present; skipping
== libraries/mtl repo not present; skipping
== libraries/network repo not present; skipping
== libraries/parsec repo not present; skipping
== libraries/parallel repo not present; skipping
== libraries/regex-base repo not present; skipping
== libraries/regex-compat repo not present; skipping
== libraries/regex-posix repo not present; skipping
== libraries/stm repo not present; skipping
== libraries/time repo not present; skipping
== libraries/xhtml repo not present; skipping
== libraries/dph repo not present; skipping
== running darcs pull -a --repodir testsuite
Pulling from "c:/fptools/ghc/testsuite"...
Finished pulling and applying.
== nofib repo not present; skipping

$ darcs --version
2.0.2 (+ 76 patches)

----------
files: pending
messages: 5685
nosy: claus.reinke, cvs-ghc, dagit, igloo, kowey
status: unread
title: darcs 2 and ghc..

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1034>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pending
Type: application/octet-stream
Size: 52637 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20080824/c6c8fe3b/attachment-0001.obj 


More information about the darcs-devel mailing list