Skip to content

Commit 74e5eab

Browse files
committed
AppRun: fix lavc warnings on Tumbleweed
suppress ldd warnings: <https://gist.github.com/MartinPulec/ae1dc6b6e0b88f3bd02bb47c1163fdf7> when trying the the bundled libavcodec.so with system deps Probably OK to silence - the system libva from the live OpenSUSE ISO seem to be preloaded.
1 parent 3720721 commit 74e5eab

File tree

1 file changed

+6
-3
lines changed
  • data/scripts/Linux-AppImage

1 file changed

+6
-3
lines changed

data/scripts/Linux-AppImage/AppRun

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,14 @@ libavcodec.so" | grep "$1" | grep -v 'not found' | awk '{print $3}'
197197
AI_LIBAVCODEC_LIB=$(get_ai_lib_path libavcodec.so)
198198
check_libva_deps() { # check if all liva*.so satisfied from sys
199199
[ -n "$1" ] || return 1
200-
! LD_TRACE_LOADED_OBJECTS=1 "$LOADER" "$1" |
200+
! LD_TRACE_LOADED_OBJECTS=1 "$LOADER" "$1" 2>/dev/null |
201201
grep -q 'libva.*not found'
202202
}
203203
check_libva_deps "$AI_LIBAVCODEC_LIB" && check_libva_deps \
204204
"$(get_ai_lib_path libavutil.so)" || return 1
205-
LIBVA_LIB=$(LD_TRACE_LOADED_OBJECTS=1 "$LOADER" "$AI_LIBAVCODEC_LIB" | grep libva.so | grep -v 'not found' | awk '{print $3}')
205+
LIBVA_LIB=$(LD_TRACE_LOADED_OBJECTS=1 "$LOADER" "$AI_LIBAVCODEC_LIB" \
206+
2>/dev/null | grep libva.so | grep -v 'not found' |
207+
awk '{print $3}')
206208
[ -n "$LIBVA_LIB" ] || return 1
207209
libva_libs=$LIBVA_LIB
208210
# add also libva-drm, libva-x11 if present
@@ -214,7 +216,8 @@ libavcodec.so" | grep "$1" | grep -v 'not found' | awk '{print $3}'
214216
done
215217
# preload also VDPAU
216218
libvdpau_lib=$(LD_TRACE_LOADED_OBJECTS=1 "$LOADER" "$AI_LIBAVCODEC_LIB"\
217-
| grep libvdpau.so | grep -v 'not found' | awk '{print $3}')
219+
2>/dev/null | grep libvdpau.so | grep -v 'not found' |
220+
awk '{print $3}')
218221
if [ -n "$libvdpau_lib" ]; then
219222
libva_libs=$libva_libs:$libvdpau_lib
220223
fi

0 commit comments

Comments
 (0)