summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-02-25 16:31:01 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-02-25 16:31:01 -0400
commit7b269a14f5e041a747bf4071fda0b019b8dc8dd9 (patch)
tree7b450455b939d4b48136d21507f6b2996e18a166
parent073fa1887c3c0fe15f102a209d444fc1a7ffeba5 (diff)
Linux standalone: Set LOCPATH=/dev/null to work around https://ghc.haskell.org/trac/ghc/ticket/7695
This prevents localization from working, but git-annex is not localized anyway.
-rw-r--r--debian/changelog4
-rw-r--r--doc/bugs/git-annex_on_NAS_eats_all_memory.mdwn4
-rwxr-xr-xstandalone/linux/skel/runshell4
3 files changed, 12 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index eb6a2940e..55fed8d0b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,10 @@ git-annex (5.2015022) UNRELEASED; urgency=medium
since in this case there must be staged changes in the index
(if there is anything to unannex), and the unannex code path
needs to run with a clean index.
+ * Linux standalone: Set LOCPATH=/dev/null to work around
+ https://ghc.haskell.org/trac/ghc/ticket/7695
+ This prevents localization from working, but git-annex
+ is not localized anyway.
-- Joey Hess <id@joeyh.name> Thu, 19 Feb 2015 14:16:03 -0400
diff --git a/doc/bugs/git-annex_on_NAS_eats_all_memory.mdwn b/doc/bugs/git-annex_on_NAS_eats_all_memory.mdwn
index 080291fc3..c1777223f 100644
--- a/doc/bugs/git-annex_on_NAS_eats_all_memory.mdwn
+++ b/doc/bugs/git-annex_on_NAS_eats_all_memory.mdwn
@@ -33,3 +33,7 @@ and the current bundle on the NAS
# End of transcript or log.
"""]]
+
+> Went ahead with setting LOCPATH=/dev/null in runshell, so it won't
+> run into whatever problem with the locales is causing it to hit this GHC
+> bug. [[done]] (I hope) --[[Joey]]
diff --git a/standalone/linux/skel/runshell b/standalone/linux/skel/runshell
index 886ffd714..f6db1da13 100755
--- a/standalone/linux/skel/runshell
+++ b/standalone/linux/skel/runshell
@@ -74,6 +74,10 @@ export ORIG_GCONV_PATH
GCONV_PATH=$base/$(cat $base/gconvdir)
export GCONV_PATH
+# workaround for https://ghc.haskell.org/trac/ghc/ticket/7695
+LOCPATH=/dev/null
+export LOCPATH
+
ORIG_GIT_EXEC_PATH="$GIT_EXEC_PATH"
export ORIG_GIT_EXEC_PATH
GIT_EXEC_PATH=$base/git-core