diff --git a/doc/bugs/Fix_for_opening_a_browser_on_a_mac___40__or_xdg-open_on_linux__47__bsd__63____41__.mdwn b/doc/bugs/Fix_for_opening_a_browser_on_a_mac___40__or_xdg-open_on_linux__47__bsd__63____41__.mdwn new file mode 100644 index 0000000000..29537cfa31 --- /dev/null +++ b/doc/bugs/Fix_for_opening_a_browser_on_a_mac___40__or_xdg-open_on_linux__47__bsd__63____41__.mdwn @@ -0,0 +1,19 @@ +Utility/WebApp.hs, didn't quite have the right definition to use 'open' instead of 'xdg-open' on OSX, the follow fixes that + +
+diff --git a/Utility/WebApp.hs b/Utility/WebApp.hs +index 6936c66..0593dda 100644 +--- a/Utility/WebApp.hs ++++ b/Utility/WebApp.hs +@@ -42,7 +42,7 @@ localhost = "localhost" + runBrowser :: String -> IO Bool + runBrowser url = boolSystem cmd [Param url] + where +-#if MAC ++#if OSX + cmd = "open" + #else + cmd = "xdg-open" ++ +I guess I should really clone the repo and submit a stream of minor changes :P, @joeyh please let me know if you're getting annoyed with copy and pasting the small fixes from the bug/forums section. diff --git a/doc/bugs/Missing_dependancy_in_commit_6cecc26206c4a539999b04664136c6f785211a41.mdwn b/doc/bugs/Missing_dependancy_in_commit_6cecc26206c4a539999b04664136c6f785211a41.mdwn new file mode 100644 index 0000000000..a0e9ed845c --- /dev/null +++ b/doc/bugs/Missing_dependancy_in_commit_6cecc26206c4a539999b04664136c6f785211a41.mdwn @@ -0,0 +1,31 @@ +Seems commit 6cecc26206c4a539999b04664136c6f785211a41 missed on dependancy, that is blaze-markup + +
+Assistant/Threads/WebApp.hs:25:8: + Could not find module `Text.Blaze.Renderer.String' + It is a member of the hidden package `blaze-markup-0.5.1.0'. + Perhaps you need to add `blaze-markup' to the build-depends in your .cabal file. + Use -v to see a list of the files searched for. +cabal: Error: some packages failed to install: +git-annex-3.20120721 failed during the building phase. The exception was: +ExitFailure 1 ++ +This should fix it + +
+x00:git-annex jtang$ git diff +diff --git a/git-annex.cabal b/git-annex.cabal +index c7d9bf5..4f98d2a 100644 +--- a/git-annex.cabal ++++ b/git-annex.cabal +@@ -76,7 +76,7 @@ Executable git-annex + if flag(Webapp) + Build-Depends: yesod, yesod-static, case-insensitive, http-types, + transformers, wai, wai-logger, warp, blaze-builder, blaze-html, +- crypto-api, hamlet ++ blaze-markup, crypto-api, hamlet + CPP-Options: -DWITH_WEBAPP + + if (os(darwin)) +diff --git a/doc/bugs/Watch_command_as_of_commit_6cecc26206c4a539999b04664136c6f785211a41_segfaults.mdwn b/doc/bugs/Watch_command_as_of_commit_6cecc26206c4a539999b04664136c6f785211a41_segfaults.mdwn new file mode 100644 index 0000000000..96bfe4c52c --- /dev/null +++ b/doc/bugs/Watch_command_as_of_commit_6cecc26206c4a539999b04664136c6f785211a41_segfaults.mdwn @@ -0,0 +1,17 @@ +After fixing a few things - see [[bugs/the tip at commit 6cecc26206c4a539999b04664136c6f785211a41 disables the watch command on OSX]], [[bugs/Missing dependancy in commit 6cecc26206c4a539999b04664136c6f785211a41]] and [[bugs/Fix for opening a browser on a mac (or xdg-open on linux/bsd?)]] I tried the watch command on my ~180gig annex of stuff. This might be yet again related to the issue of [[bugs/Issue on OSX with some system limits]] + +the watch command segfaults + +
+x00:annex jtang$ git annex watch --foreground -d +watch . [2012-07-26 12:27:16 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","show-ref","git-annex"] +[2012-07-26 12:27:16 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","show-ref","--hash","refs/heads/git-annex"] +[2012-07-26 12:27:16 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..38d3f769ef004b96b6d640cfb59a45f7b4edf5f6","--oneline","-n1"] +[2012-07-26 12:27:16 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..ebabe9c92516c350a30126037173080648f5930b","--oneline","-n1"] +[2012-07-26 12:27:16 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..d36d8d88847decc2320f0be22892ad94a8abe594","--oneline","-n1"] +[2012-07-26 12:27:16 IST] read: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","log","refs/heads/git-annex..aaa62a8191b3c964fdf546077049f626e8561b22","--oneline","-n1"] +[2012-07-26 12:27:16 IST] chat: git ["--git-dir=/Users/jtang/annex/.git","--work-tree=/Users/jtang/annex","cat-file","--batch"] +(scanning...) error: git-annex died of signal 11 ++ +The above was done on the usual OSX 10.7 system that I have. diff --git a/doc/bugs/git_annex_initremote_needs_some___34__error_checking__34__.mdwn b/doc/bugs/git_annex_initremote_needs_some___34__error_checking__34__.mdwn new file mode 100644 index 0000000000..3521038d74 --- /dev/null +++ b/doc/bugs/git_annex_initremote_needs_some___34__error_checking__34__.mdwn @@ -0,0 +1,62 @@ +_git annex initremote_ without a complete command set still adds an entry to the uuid.log etc... and thus clutters up the state of the annex. I would not have expected this behaviour as a user. + +_initremote_ should fail and not do anything if the commands that it has been given are incomplete or incorrect. I was initialising a few rsync repos and noticed that i ended up having mutiple rsync remotes with the same name but different uuid's. I know its hard if not impossible to remove these uuid's so I have just marked them as "dead" in my live annexes. + +Here's a transcript of the problem + +
+x00:sandbox jtang$ mkdir atest +x00:sandbox jtang$ cd atest/ +x00:atest jtang$ git init +Initialized empty Git repository in /Users/jtang/sandbox/atest/.git/ +x00:atest jtang$ git annex init +init ok +(Recording state in git...) +x00:atest jtang$ git annex status +supported backends: SHA256 SHA1 SHA512 SHA224 SHA384 SHA256E SHA1E SHA512E SHA224E SHA384E WORM URL +supported remote types: git S3 bup directory rsync web hook +trusted repositories: 0 +semitrusted repositories: 2 + 00000000-0000-0000-0000-000000000001 -- web + cbb58e1c-d737-11e1-b682-83239d5ff2e0 -- here +untrusted repositories: 0 +dead repositories: 0 +transfers in progress: none +available local disk space: 185 gigabytes (+1 megabyte reserved) +local annex keys: 0 +local annex size: 0 bytes +known annex keys: 0 +known annex size: 0 bytes +bloom filter size: 16 mebibytes (0% full) +backend usage: +x00:atest jtang$ git annex initremote foo +git-annex: Specify the type of remote with type= +x00:atest jtang$ git annex initremote foo type=rsync +(Recording state in git...) +initremote foo git-annex: Specify encryption=key or encryption=none or encryption=shared +x00:atest jtang$ git annex initremote foo type=rsync +(Recording state in git...) +initremote foo git-annex: Specify encryption=key or encryption=none or encryption=shared +x00:atest jtang$ git annex status +supported backends: SHA256 SHA1 SHA512 SHA224 SHA384 SHA256E SHA1E SHA512E SHA224E SHA384E WORM URL +supported remote types: git S3 bup directory rsync web hook +trusted repositories: (Recording state in git...) +0 +semitrusted repositories: 5 + 00000000-0000-0000-0000-000000000001 -- web + cbb58e1c-d737-11e1-b682-83239d5ff2e0 -- here + d3adfcd0-d737-11e1-b15b-b7032388f8aa -- foo + d6d8e1e0-d737-11e1-956a-0b3d3451226a -- foo + d78d795c-d737-11e1-ac98-4fe3d6fdfd54 -- foo +untrusted repositories: 0 +dead repositories: 0 +transfers in progress: none +available local disk space: 185 gigabytes (+1 megabyte reserved) +local annex keys: 0 +local annex size: 0 bytes +known annex keys: 0 +known annex size: 0 bytes +bloom filter size: 16 mebibytes (0% full) +backend usage: +x00:atest jtang$ +diff --git a/doc/bugs/haskell-dbus_problems_on_OSX___40__or_this_a_general_problem__41__.mdwn b/doc/bugs/haskell-dbus_problems_on_OSX___40__or_this_a_general_problem__41__.mdwn new file mode 100644 index 0000000000..4a05080ebe --- /dev/null +++ b/doc/bugs/haskell-dbus_problems_on_OSX___40__or_this_a_general_problem__41__.mdwn @@ -0,0 +1,100 @@ +Building commit 805d50c69d40be97baa28735371778df63b5fed6 + +
+x00:git-annex jtang$ cabal install +Resolving dependencies... +Configuring dbus-0.10... +Building dbus-0.10... +Preprocessing library dbus-0.10... +[1 of 9] Compiling DBus.Types ( lib/DBus/Types.hs, dist/build/DBus/Types.o ) +[2 of 9] Compiling DBus.Message ( lib/DBus/Message.hs, dist/build/DBus/Message.o ) +[3 of 9] Compiling DBus.Wire ( lib/DBus/Wire.hs, dist/build/DBus/Wire.o ) +[4 of 9] Compiling DBus.Address ( lib/DBus/Address.hs, dist/build/DBus/Address.o ) +[5 of 9] Compiling DBus ( lib/DBus.hs, dist/build/DBus.o ) +[6 of 9] Compiling DBus.Introspection ( lib/DBus/Introspection.hs, dist/build/DBus/Introspection.o ) +[7 of 9] Compiling DBus.Transport ( lib/DBus/Transport.hs, dist/build/DBus/Transport.o ) + +lib/DBus/Transport.hs:196:72: Not in scope: `getPeerCred' +cabal: Error: some packages failed to install: +dbus-0.10 failed during the building phase. The exception was: +ExitFailure 1 +git-annex-3.20120721 depends on dbus-0.10 which failed to install. ++ +The above isn't a git-annex problem but a dbus problem, at first I thought I didn't have the network package installed, but did. I should probably report this problem to the haskell dbus author. + +On a slightly different note, based on the makefile DBUS is not enabled on OSX/BSD so I did not expect the cabal file to use dbus as well, I'm currently interested in poking at the webapp stuff ;) + +Although DBUS is available on OSX from macports I get the feeling that the haskell-dbus package might need some poking before it works properly. + +To continue, pulling, installing the dependancies (dbus is still boned) and building commit 6cecc26206c4a539999b04664136c6f785211a41 + +
+[ 92 of 205] Compiling Utility.Url ( Utility/Url.hs, tmp/Utility/Url.o ) + +Utility/Url.hs:39:14: Not in scope: `parseURI' + +Utility/Url.hs:73:14: Not in scope: `parseURI' + +Utility/Url.hs:88:12: Not in scope: type constructor or class `URI' + +Utility/Url.hs:91:30: Not in scope: type constructor or class `URI' + +Utility/Url.hs:107:38: Not in scope: `parseURIReference' + +Utility/Url.hs:111:95: Not in scope: `relativeTo' +make: *** [git-annex] Error 1 ++ +Which then lead me to doing a "cabal install -f-DBus" which spits out the following when trying to link the binary + +
+[206 of 206] Compiling Main ( git-annex.hs, dist/build/git-annex/git-annex-tmp/Main.o ) +Linking dist/build/git-annex/git-annex ... +Undefined symbols for architecture x86_64: + "_addfds_kqueue", referenced from: + _s16v6_info in Kqueue.o + "_init_kqueue", referenced from: + _s16v3_info in Kqueue.o + "_waitchange_kqueue", referenced from: + _UtilityziKqueue_zdwa1_info in Kqueue.o +ld: symbol(s) not found for architecture x86_64 +collect2: ld returned 1 exit status +cabal: Error: some packages failed to install: +git-annex-3.20120721 failed during the building phase. The exception was: +ExitFailure 1 ++ +I then just tried to build commit with 6cecc26206c4a539999b04664136c6f785211a41 (i have the needed dependancies installed), gives me this... + +
+x00:git-annex jtang$ make +ghc -O2 -threaded -Wall -ignore-package monads-fd -ignore-package monads-tf -outputdir tmp -IUtility -DWITH_ASSISTANT -DWITH_S3 -DWITH_WEBAPP --make git-annex Utility/libdiskfree.o Utility/libmounts.o Utility/libkqueue.o + +Assistant/Threads/MountWatcher.hs:39:0: + warning: #warning Building without dbus support; will use mtab polling +[ 92 of 205] Compiling Utility.Url ( Utility/Url.hs, tmp/Utility/Url.o ) + +Utility/Url.hs:98:65: + Couldn't match expected type `network-2.3.0.13:Network.URI.URI' + with actual type `URI' + In the second argument of `mkRequest', namely `u' + In the expression: mkRequest requesttype u :: Request_String + In an equation for `req': + req = mkRequest requesttype u :: Request_String +make: *** [git-annex] Error 1 ++ +The latest version of the network package in hackage is network-2.3.0.14 which I have installed, this might also be the reason why dbus is broken. removing network-2.3.0.14 at least makes it happy again. + +to remove the network-2.3.0.14 package + +
+ghc-pkg unregister network-2.3.0.14 ++ +Hope the above isn't too random of bug/issue report. + +---- + +going through
+x00:git-annex jtang$ git diff +diff --git a/Makefile b/Makefile +index 9f312dc..4a74e71 100644 +--- a/Makefile ++++ b/Makefile +@@ -27,7 +27,7 @@ endif + endif + + PREFIX=/usr +-GHCFLAGS=-O2 $(BASEFLAGS) $(FEATURES) ++GHCFLAGS=-O2 $(BASEFLAGS) $(FEATURES) $(OPTFLAGS) + + ifdef PROFILE + GHCFLAGS=-prof -auto-all -rtsopts -caf-all -fforce-recomp $(BASEFLAGS) $(FEATURES) $(OPTFLAGS) +