diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2016-07-04 03:45:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-04 03:45:58 +0300 |
commit | 92d5a606ea20905aed84f71ab6d76799138dc06b (patch) | |
tree | 1621eceec3935d7f31ccd69579f94fb97e573287 /test/test-functions | |
parent | b1e67dfe31c6911820eac753f6461e1c9a00f26c (diff) | |
parent | 11ea3431265f4b20e18997e5b27187ab4db77e87 (diff) |
Merge pull request #3650 from fsateler/shared-basic-fallout
fix fallout from libsystemd-shared
Diffstat (limited to 'test/test-functions')
-rw-r--r-- | test/test-functions | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/test-functions b/test/test-functions index 4583c02f97..567a000b8d 100644 --- a/test/test-functions +++ b/test/test-functions @@ -275,10 +275,15 @@ install_systemd() { echo LogLevel=debug >> $initdir/etc/systemd/system.conf } +get_ldpath() { + local _bin="$1" + objdump -p "$_bin" 2>/dev/null | awk "/R(UN)?PATH/ { print \"$initdir\" \$2 }" | paste -sd : +} + install_missing_libraries() { # install possible missing libraries - for i in $initdir/{sbin,bin}/* $initdir/lib/systemd/*; do - inst_libs $i + for i in $initdir{,/usr}/{sbin,bin}/* $initdir{,/usr}/lib/systemd/*; do + LD_LIBRARY_PATH=$(get_ldpath $i) inst_libs $i done } |