Commit 2dc10f5b authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm repack Telegram/64Gram: add deps from ldd output for the main binary

parent 4168ddd9
...@@ -70,7 +70,7 @@ cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop ...@@ -70,7 +70,7 @@ cat <<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop
Version=1.0 Version=1.0
Name=64Gram Name=64Gram
Comment=64Gram (unofficial Telegram Desktop) Comment=64Gram (unofficial Telegram Desktop)
Exec=$PRODUCTCUR -- %u Exec=$PRODUCT -- %u
Icon=$iconname Icon=$iconname
StartupWMClass=64Gram StartupWMClass=64Gram
Type=Application Type=Application
...@@ -81,4 +81,4 @@ X-GNOME-UsesNotifications=true ...@@ -81,4 +81,4 @@ X-GNOME-UsesNotifications=true
EOF EOF
pack_file /usr/share/applications/$PRODUCT.desktop pack_file /usr/share/applications/$PRODUCT.desktop
set_autoreq 'yes' add_by_ldd_deps
...@@ -83,4 +83,4 @@ X-GNOME-UsesNotifications=true ...@@ -83,4 +83,4 @@ X-GNOME-UsesNotifications=true
EOF EOF
pack_file /usr/share/applications/$PRODUCT.desktop pack_file /usr/share/applications/$PRODUCT.desktop
set_autoreq 'yes' add_by_ldd_deps
...@@ -313,6 +313,17 @@ install_requires() ...@@ -313,6 +313,17 @@ install_requires()
fi fi
} }
add_by_ldd_deps()
{
local exe="$1"
[ -n "$exe" ] || exe="$PRODUCTDIR/$PRODUCT"
if is_abs_path "$exe" ; then
exe="$BUILDROOT$exe"
fi
[ -x "$exe" ] || fatal "Can't get requires via ldd for non executable $1"
add_unirequires "$(ldd "$exe" | sed -e 's|[[:space:]]*||' | grep "^lib.*[[:space:]]=>[[:space:]]\(/usr/lib\|/lib\)" | sed -e 's|[[:space:]].*||')" #"
}
filter_from_requires() filter_from_requires()
{ {
local i local i
......
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