Repositories

Isaac Jones ijones at syntaxpolice.org
Sat Sep 2 18:03:00 EDT 2006


Paolo Martini <paolo at nemail.it> writes:

> Hello,
>
> I've published a number of repositories so that people can try cabal-
> install more easily, I need to know wether it's working for you too,
> and what are the important things to do to towards the goal of
> shipping it with ghc-6.6.
>
> My Cabal repository: <http://hackage.haskell.org/~paolo/darcs/Cabal/>

I get an error for some patches:

darcs get http://hackage.haskell.org/~paolo/darcs/Cabal/ cabal-cabal-install
Copying patch 108 of 794...
darcs failed:  Failed to download URL http://hackage.haskell.org/~paolo/darcs/Cabal/_darcs/patches/20060113145826-760e2-80a1c095b06bdda09414c2fffd08bb34b80396e3.gz

...

ssh hackage.haskell.org...

darcs get /home/paolo/public_html/darcs/Cabal
Copying patch 108 of 794...
Fail: /home/paolo/projects/Cabal/_darcs/patches/20060113145826-760e2-80a1c095b06bdda09414c2fffd08bb34b80396e3.gz: openBinaryFile: does not exist (No such file or directory)

this works:

% darcs get --partial http://hackage.haskell.org/~paolo/darcs/Cabal/ cabal-cabal-install2
Copying patch 107 of 107... done!
Applying patch 106 of 106... done.
Finished getting.

During install, can you just modify the Setup script to copy
etc-cabal-install into place?

Everything pretty much built & installed cleanly, but:

sudo cabal-install update
configure: searching for ghc in path.
configure: found ghc at /usr/local/bin/ghc
"/usr/local/bin/ghc" --version >tmp17128
configure: looking for package tool: ghc-pkg near compiler in /usr/local/bin/ghcconfigure: found package tool in /usr/local/bin/ghc-pkg
Using config dir: /etc/cabal-install
Downloading package list from server 'http://hackage.haskell.org/~paolo/darcs/packages/unstable'
cabal-install: Failed to extract tar file '/etc/cabal-install/packages/00-index.tar.gz': 127.

Don't know why this failed.  The tarball is there, I can unpack it
locally.

strace shows me:

open("/etc/cabal-install/packages/00-index.tar.gz", O_WRONLY|O_NONBLOCK|O_CREAT|O_NOCTTY|O_LARGEFILE, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=223018, ...}) = 0
fcntl64(3, F_GETFL)                     = 0x8801 (flags O_WRONLY|O_NONBLOCK|O_LARGEFILE)
fcntl64(3, F_SETFL, O_WRONLY|O_NONBLOCK|O_LARGEFILE) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=223018, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xafa7be94) = -1 ENOTTY (Inappropriate ioctl for device)

% cabal-install list
configure: searching for ghc in path.
configure: found ghc at /usr/local/bin/ghc
"/usr/local/bin/ghc" --version >tmp17158
configure: looking for package tool: ghc-pkg near compiler in /usr/local/bin/ghcconfigure: found package tool in /usr/local/bin/ghc-pkg
Using config dir: /etc/cabal-install

Why doesn't this give an error message?

Also, the "plugins" tarball seems to have the entire program!

Here's a suggestion: Write a shell script that you can post to the
mailing list.  Here's what it should look like (untested):

darcs get http://hackage.haskell.org/~paolo/darcs/Cabal/ \
 && cd Cabal \
 && sudo make install \
 && sudo cabal-install update \
 && sudo cabal-install install hello-world # or whatever

Write this script.  Test it yourself.  Tweak it until it works.  We
need to make this dead easy for people.  Then post the script to -cafe
and cabal-devel and ask people to try it and send bug reports!  Tell
them "all you have to do is copy and paste these four lines and tell
me whether or not it works, and send the error message."

:)

peace,

  isaac


More information about the cabal-devel mailing list