Bläddra i källkod

Merge pull request #1417 from ThomasWaldmann/glibc-check

glibc check improved / faq added
enkore 8 år sedan
förälder
incheckning
e5a3229fd2
2 ändrade filer med 22 tillägg och 1 borttagningar
  1. 19 0
      docs/faq.rst
  2. 3 1
      scripts/glibc_check.py

+ 19 - 0
docs/faq.rst

@@ -414,6 +414,25 @@ If you can reproduce the issue with the proven filesystem, please file an
 issue in the |project_name| issue tracker about that.
 issue in the |project_name| issue tracker about that.
 
 
 
 
+Requirements for the borg single-file binary, esp. (g)libc?
+-----------------------------------------------------------
+
+We try to build the binary on old, but still supported systems - to keep the
+minimum requirement for the (g)libc low. The (g)libc can't be bundled into
+the binary as it needs to fit your kernel and OS, but Python and all other
+required libraries will be bundled into the binary.
+
+If your system fulfills the minimum (g)libc requirement (see the README that
+is released with the binary), there should be no problem. If you are slightly
+below the required version, maybe just try. Due to the dynamic loading (or not
+loading) of some shared libraries, it might still work depending on what
+libraries are actually loaded and used.
+
+In the borg git repository, there is scripts/glibc_check.py that can determine
+(based on the symbols' versions they want to link to) whether a set of given
+(Linux) binaries works with a given glibc version.
+
+
 Why was Borg forked from Attic?
 Why was Borg forked from Attic?
 -------------------------------
 -------------------------------
 
 

+ 3 - 1
scripts/glibc_check.py

@@ -2,7 +2,9 @@
 """
 """
 Check if all given binaries work with the given glibc version.
 Check if all given binaries work with the given glibc version.
 
 
-check_glibc.py 2.11 bin [bin ...]
+glibc_check.py 2.11 bin [bin ...]
+
+rc = 0 means "yes", rc = 1 means "no".
 """
 """
 
 
 import re
 import re