diff options
author | 2013-10-27 23:56:44 +0000 | |
---|---|---|
committer | 2013-10-27 23:56:44 +0000 | |
commit | d0a74c62ea1494af214c6c57d0c596cca0b30c95 (patch) | |
tree | 95f5f49d8600c71644061706e417b3143f392e5f | |
parent | 0fd323271a895e8731821e2060f97fabca25a2fe (diff) |
removed
-rw-r--r-- | doc/todo/Build_for_Synology_DSM/comment_14_c92d25fb3ae3b325584c78d6b11c1fc3._comment | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/doc/todo/Build_for_Synology_DSM/comment_14_c92d25fb3ae3b325584c78d6b11c1fc3._comment b/doc/todo/Build_for_Synology_DSM/comment_14_c92d25fb3ae3b325584c78d6b11c1fc3._comment deleted file mode 100644 index e32cd97d5..000000000 --- a/doc/todo/Build_for_Synology_DSM/comment_14_c92d25fb3ae3b325584c78d6b11c1fc3._comment +++ /dev/null @@ -1,31 +0,0 @@ -[[!comment format=mdwn - username="lorenzo" - ip="84.75.27.69" - subject="Running Debian squeeze binaries on libc 2.5 based NAS" - date="2013-10-27T23:55:05Z" - content=""" -Following the suggestions in this page I tried to run the binaries that debian provides on my Lacie NetworkSpace which is another one of these NAS devices with old libc. After uploading the binaries and required libraries and using `LD_LIBRARY_PATH` to force the loader to use the version I uploaded of the libraries I was still having a segfault (similar to what Franck was experiencing) while running git-annex in a chroot was working. - -It turns out that it is possible to solve the problem without having to use chroot by not loading the binary directly but by substituting it with a script that calls the correct `ld-linux.so.3`. Assume you have uncompressed the files from the deb packages in `/opt/git-annex`. - -First create a directory `/opt/git-annex/usr/bin/git-annex.exec` and copy the executable `/opt/git-annex/usr/bin/git-annex` there. - -Then create script `/opt/git-annex/usr/bin/git-annex` with the following contents: - - #!/bin/bash - - PREFIX=/opt/git-annex - - export GCONV_PATH=$PREFIX/usr/lib/gconv - - exec $PREFIX/lib/ld-linux.so.3 --library-path $PREFIX/lib/:$PREFIX/usr/lib/ $PREFIX/usr/bin/git-annex.exec/git-annex \"$@\" - -The `GCONV_PATH` setting is important to prevent the app from failing with the message: - - git-annex.exec: mkTextEncoding: invalid argument (Invalid argument) - -The original executable is moved to a different directory instead of being simply renamed to make sure that `$0` is correct when the executable starts. The parameter for the linker `--library-path` is used instead of the environment variable `LD_LIBRARY_PATH` to make sure that the programs exec'ed by git-annex do not have the variable set. - -Some more info about the approach: [[http://www.novell.com/coolsolutions/feature/11775.html]] - -"""]] |