Commit 81f01fff authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack: add is_soname_present and use it for chat-gpt

parent 5765c576
......@@ -10,3 +10,5 @@ libssl.so.3 libcrypto.so.3
libgcc_s.so.1 libm.so.6 libc.so.6"
. $(dirname $0)/common.sh
is_soname_present libssl.so.3 | fatal "This package needs OpenSSL 3."
......@@ -375,6 +375,16 @@ add_libs_requires()
done
}
# TODO: improve for other arch
is_soname_present()
{
local libdir
for libdir in /usr/lib/x86_64-linux-gnu /usr/lib64 /lib64 ; do
[ -r $libdir/$1 ] && return 0
done
return 1
}
add_by_ldd_deps()
{
......@@ -404,12 +414,6 @@ add_findreq_skiplist()
done
}
# ignore embedded libs
drop_embedded_reqs()
{
filter_from_requires "libGLESv2.so()" "libEGL.so()" "libffmpeg.so()"
}
set_autoreq()
{
if cat $SPEC | grep -q "^AutoReq:" ; then
......
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