Commit graph

31773 commits

Author SHA1 Message Date
Joey Hess
03b21ea4b4
Merge branch 'master' of ssh://git-annex.branchable.com 2018-04-26 12:06:29 -04:00
Joey Hess
bfa26661d1
import: Avoid buffering all filenames to be imported in memory.
Test case is 24 directories each containing files named 1..10000.
The concat and filterM destroyed what laziness there is in
dirContentsRecursive, making it buffer all the filenames. Memory
use was around 300 mb (possibly growing slightly as it progressed).
After this fix, memory use drops to a constant 59 mb.

Note that dirContentsRecursive still buffers the entire content of a
directory (not subdirectories) so this is still not optimal.
2018-04-26 12:06:12 -04:00
https://openid.stackexchange.com/user/3ee5cf54-f022-4a71-8666-3c2b5ee231dd
d576229ccc Added a comment: Looking forward to trying this 2018-04-26 13:10:30 +00:00
qiang.fang@ddaed0de00c2925f8036e6c61ce6e12654263ada
85c55ca821 Added a comment 2018-04-26 09:14:54 +00:00
qiang.fang@ddaed0de00c2925f8036e6c61ce6e12654263ada
2b977b247b 2018-04-26 08:51:25 +00:00
Horus
68291ce79b 2018-04-26 06:40:10 +00:00
Joey Hess
a81dcfdafd
devblog 2018-04-25 17:58:25 -04:00
Joey Hess
b2accf9da1
Assistant: Fix installation of menus, icons, etc when run from within runshell.
runshell followed by git annex webapp didn't install that stuff, because
GIT_ANNEX_APP_BASE is not set. Running git-annex.linux/git-annex-webapp did
install that stuff, since that script set the env var. I noticed this with
the termux port whose instructions currently go that way.

Seems the right thing to do is to move the env var setting to runshell.
2018-04-25 17:58:00 -04:00
Joey Hess
bed5271d3f
fix path to termux boot file 2018-04-25 17:51:50 -04:00
Joey Hess
3fdfa8f565
avoid installing linux file manager hooks when running in termux 2018-04-25 17:47:49 -04:00
Joey Hess
f5df6244f3
deal with getMounts crashing on android 2018-04-25 17:42:27 -04:00
Joey Hess
f22a8c3485
update 2018-04-25 16:58:12 -04:00
Joey Hess
096bb0aa21
improve comment 2018-04-25 16:57:57 -04:00
Joey Hess
6e862f47dd
deal with uname -o newline 2018-04-25 16:53:17 -04:00
Joey Hess
abbe5fb516
add coreutils to pkg list for ionice 2018-04-25 15:43:20 -04:00
Joey Hess
442d352c70
link to termux tip 2018-04-25 15:40:00 -04:00
Joey Hess
de491ad20f
Termux:Boot integration
Assistant: Integrate with Termux:Boot, so when it's installed, the
assistant is autostarted on boot.

This commit was sponsored by Boyd Stephen Smith Jr. on Patreon.
2018-04-25 15:31:25 -04:00
Joey Hess
9807e5bead
fix webapp opening in termux
Open real url not html shim since android and file:// urls is a nasty
kettle of fish.

This commit was sponsored by John Pellman on Patreon.
2018-04-25 14:38:42 -04:00
Joey Hess
b0df331b4a
adjust webapp paths when run in termux on Android
And display the special case Android UI
2018-04-25 14:17:52 -04:00
Joey Hess
aa652a4933
link to daily arm autobuild for now 2018-04-25 13:52:12 -04:00
Joey Hess
389e15696a
Merge branch 'master' of ssh://git-annex.branchable.com 2018-04-25 13:50:06 -04:00
oliv5kta@248adc7a643dc1f0ecef26925e357de176d0f6f3
eddfe27342 Added a comment 2018-04-25 17:49:48 +00:00
Joey Hess
118ed8f92b
runshell: hacks for termux; add tip
Added some tweaks to make git-annex work in termux on Android. The regular
arm standalone tarball now works in termux.

I guess the test for "$base/bin/git" is not really necessary, since it
tests for git-annex. Since that gets deleted on android, removed that test.

These are pretty hackish hacks, especially adding it to PATH. The goal is
to make it work well enough out of the box on Android.

This commit was sponsored by Eric Drechsel on Patreon.
2018-04-25 13:48:37 -04:00
Joey Hess
dd7ab91f97
runshell: Unset LD_PRELOAD
Preloaded libraries from the host system may not get along with the bundled
linker.

This was observed by users in termux:

ERROR: ld.so: object '/data/data/com.termux/files/usr/lib/libtermux-exec.so' from LD_PRELOAD cannot be preloaded (wrong ELF class:
ELFCLASS64): ignored.
Bad system call

But it could also affect more usual systems; the preloaded library might rely
on symbols from the host libc that are not available or have the wrong versions
in the bundled libc. Unsetting LD_PRELOAD entirely seems safest.
2018-04-25 13:40:48 -04:00
Joey Hess
3753c07204
update 2018-04-25 11:19:59 -04:00
Joey Hess
5a01ebe036
update 2018-04-24 21:28:08 -04:00
Joey Hess
3c6e60dc69
fix build with old http-conduit 2018-04-24 21:23:40 -04:00
Joey Hess
43b4e80bf5
update 2018-04-24 21:22:20 -04:00
Joey Hess
526243d6f5
catch exceptions from getEffectiveUserID
This fixes a crash when using the linux_standalone build in termux on
android.

This commit was sponsored by Jeff Goeke-Smith on Patreon.
2018-04-24 20:10:10 -04:00
Joey Hess
ec7262bb87
notes 2018-04-24 19:53:24 -04:00
Joey Hess
6b68813988
OMG 2018-04-24 19:04:07 -04:00
Joey Hess
45a51d5335
Merge branch 'master' of ssh://git-annex.branchable.com 2018-04-22 14:02:40 -04:00
Joey Hess
6ea356034d
update 2018-04-22 13:58:18 -04:00
Joey Hess
aebf9e6dd5
Fix build with yesod 1.6.
Also avoid some depreaction warnings.
2018-04-22 13:56:35 -04:00
Joey Hess
1cb300e68a
squish build warning when built w/o S3 2018-04-22 13:55:37 -04:00
Joey Hess
891d6d97f7
squash -Wsimplifiable-class-constraints warnings
I have not tested this with older ghc than 8.2.2.
2018-04-22 13:42:21 -04:00
Joey Hess
c0c66e35b2
remove unused import 2018-04-22 13:42:04 -04:00
Joey Hess
f5a5886307
squash build warning with optparse-applicative-0.14.1
It exported some stuff that used to be only in .Internal, IIRC done at
my request..
2018-04-22 13:41:24 -04:00
Joey Hess
256d8f07e8
avoid insertWith' depreaction warning
Switch to Data.Map.Strict everywhere that used it.

There are still lots of lazy maps in git-annex. I think switching these
is safe. The risk is that there might be a map that is used in a way
that relies on the values not being evaluated to WHNF, and switching to
strict might result in bad performance or memory use. So, I have not
switched everything.
2018-04-22 13:28:31 -04:00
Joey Hess
558a0a9328
deal with conduit 1.3 change
I don't know if this will build with older conduit, it may need an
ifdef.
2018-04-22 13:14:55 -04:00
spwhitton
41dc937c77 Added a comment: current status of v6 2018-04-21 19:47:10 +00:00
grawity@2ea26be48562f66fcb9b66307da72b1e2e37453f
8ccbafa917 Added a comment 2018-04-21 09:52:31 +00:00
andrew
9fddca2780 Added a comment: integrating git-annex-turtle into git-annex 2018-04-20 18:24:22 +00:00
andrew
bec70f86c4 Added a comment: git-annex not a cask anymore 2018-04-20 13:21:27 +00:00
svw
faa313122e Added a comment: Passing flags to youtube-dl 2018-04-20 05:57:39 +00:00
moaxey
76bcf0da6e Added a comment: I also found this log 2018-04-17 22:52:15 +00:00
moaxey
ef297b2ecb 2018-04-17 22:34:24 +00:00
lykos@d125a37d89b1cfac20829f12911656c40cb70018
8a681bad73 Added a comment 2018-04-17 08:38:33 +00:00
yarikoptic
82ee2919a3 Added a comment 2018-04-17 03:52:55 +00:00
Joey Hess
c72e9ae568
hmm 2018-04-16 20:41:11 -04:00