[darcs-users] darcs patch: DRAFT: Teach Cabal to install manpage.
Trent W. Buck
trentbuck at gmail.com
Sun Mar 15 11:38:31 UTC 2009
On Sun, Mar 15, 2009 at 10:59:44AM +0100, Petr Rockai wrote:
> Trent W.Buck <trentbuck at gmail.com> writes:
> > postConf isn't working here, and I don't know why. I get the
> > following, but ls can see doc/darcs.1, and I confirmed with
> > getCurrentDirectory that $PWD is in the right place. So WTF?
> Do you mean postBuild instead of postConf?
>
> > $ cabal copy --destdir=`mktemp -d`
> > [2 of 2] Compiling Main ( Setup.lhs, dist/setup/Main.o )
> > Linking ./dist/setup/setup ...
> > Installing library in
> > /tmp/tmp.HMnIvPPrnP/home/twb/.cabal/lib/darcs-2.2.0/ghc-6.10.1
> > Installing executable(s) in /tmp/tmp.HMnIvPPrnP/home/twb/.cabal/bin
> > setup: doc/darcs.1 : copyFile: does not exist (No such file or directory)
> Yes, this is pretty weird. Can you strace?
Here's what I guess is the pertinent bit. There are no calls to chdir
anywhere in the trace.
[...]
stat("dist/build/darcs/darcs", {st_mode=S_IFREG|0755, st_size=11858429, ...}) = 0
chmod("/tmp/tmp.FgqOdqtEUI/home/twb/.cabal/bin/.copyFile21676.tmp", 0100755) = 0
lstat("/tmp/tmp.FgqOdqtEUI/home/twb/.cabal/bin/.copyFile21676.tmp", {st_mode=S_IFREG|0755, st_size=11858429, ...}) = 0
rename("/tmp/tmp.FgqOdqtEUI/home/twb/.cabal/bin/.copyFile21676.tmp", "/tmp/tmp.FgqOdqtEUI/home/twb/.cabal/bin/darcs") = 0
close(3) = 0
stat("dist/build/darcs/darcs.dyn", 0x7fd46e4b02a8) = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
rt_sigaction(SIGINT, {SIG_IGN}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [QUIT], [], 8) = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
vfork() = 21678
wait4(21678, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 21678
--- SIGCHLD (Child exited) @ 0 (0) ---
rt_sigprocmask(SIG_BLOCK, [INT], [], 8) = 0
rt_sigaction(SIGINT, {0x6fb530, [], SA_RESTORER, 0x7fd46e9daf60}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [QUIT], [], 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
open("doc/darcs.1 ", O_RDONLY|O_NOCTTY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
[...]
More information about the darcs-users
mailing list