aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/README.md
diff options
context:
space:
mode:
authorDevtools Arcadia <arcadia-devtools@yandex-team.ru>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/libs/libc_compat/README.md
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/libs/libc_compat/README.md')
-rw-r--r--contrib/libs/libc_compat/README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/libs/libc_compat/README.md b/contrib/libs/libc_compat/README.md
new file mode 100644
index 0000000000..fe7a22fbb1
--- /dev/null
+++ b/contrib/libs/libc_compat/README.md
@@ -0,0 +1,24 @@
+This library implements a compatibility layer between various libc implementations.
+
+The rationale for the library implementation is described in https://st.yandex-team.ru/IGNIETFERRO-1439.
+
+The code is taken from multiple sources, thus both LICENSE() and VERSION() tags are not very representative.
+
+
+During development one can make use of the following mapping of `OS_SDK` into glibc version.
+
+| Ubuntu | glibc |
+| ------ | ----- |
+| 20.04 | 2.30 |
+| 18.04 | 2.27 |
+| 16.04 | 2.23 |
+| 14.04 | 2.18 |
+| 12.04 | 2.15 |
+| 10.04 | 2.11 |
+
+Use the following commands to update the table above:
+
+1. `ya make util -DOS_SDK=ubuntu-xx -G | grep OS_SDK_ROOT | head -n 1`
+2. `cd ~/.ya/tools/v4/$RESOURCE_ID`
+3. `readelf -V $(find . -name 'libc.so.6')`
+4. Take the latest version from `.gnu.version_d` section prior to `GLIBC_PRIVATE`