Commit 195ef991 authored by Andrei Vagin's avatar Andrei Vagin Committed by Pavel Emelyanov

zdtm: fix collecting libraries on Alpine Linux

Here is an example of ldd output:

/musl # ldd /usr/lib/libxtables.so.12
	ldd (0x7fae8e06c000)
	libc.musl-x86_64.so.1 => ldd (0x7fae8e06c000)

We need to skip the "ldd (0x7fae8e06c000)" line.
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 6c169c51
...@@ -183,7 +183,7 @@ class ns_flavor: ...@@ -183,7 +183,7 @@ class ns_flavor:
def __copy_libs(self, binary): def __copy_libs(self, binary):
ldd = subprocess.Popen(["ldd", binary], stdout = subprocess.PIPE) ldd = subprocess.Popen(["ldd", binary], stdout = subprocess.PIPE)
xl = re.compile('^(linux-gate.so|linux-vdso(64)?.so|not a dynamic)') xl = re.compile('^(linux-gate.so|linux-vdso(64)?.so|not a dynamic|.*\s*ldd\s)')
# This Mayakovsky-style code gets list of libraries a binary # This Mayakovsky-style code gets list of libraries a binary
# needs minus vdso and gate .so-s # needs minus vdso and gate .so-s
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment