New comment by unspecd on void-packages repository https://github.com/void-linux/void-packages/pull/29858#issuecomment-809713511 Comment: There is a possibility to skip runtime dependency on `openjdk` (due to NEEDED libawt.so, libawt_xawt.so, libjava.so, libjvm.so, libjli.so, which are bundled with the package). Here are the changes I'd like to propose. File: common/hooks/pre-pkg/04-generate-runtime-deps.sh ```diff @@ -93,11 +93,14 @@ hook() { # above, the mapping is done thru the common/shlibs file. # for f in ${verify_deps}; do - unset _f j rdep _rdep rdepcnt soname _pkgname _rdepver found + unset _f j rdep _rdep rdepcnt soname _pkgname _rdepver found skipso _f=$(echo "$f"|sed -E 's|\+|\\+|g') rdep="$(grep -E "^${_f}[[:blank:]]+.*$" $mapshlibs|cut -d ' ' -f2)" rdepcnt="$(grep -E "^${_f}[[:blank:]]+.*$" $mapshlibs|cut -d ' ' -f2|wc -l)" - if [ -z "$rdep" ]; then + if [[ "${skipsorequires}" == *"$f"* ]]; then + skipso=1 + fi + if [ -z "$rdep" -o "$skipso" ]; then # Ignore libs by current pkg soname=$(find ${PKGDESTDIR} -name "$f") if [ -z "$soname" ]; then ``` File: srcpkgs/android-studio/template ```diff @@ -24,6 +24,8 @@ nopie=yes nostrip=yes noshlibprovides=yes +# jdk is bundled with the package. +skipsorequires="libawt.so libawt_xawt.so libjava.so libjvm.so libjli.so" # These files are not run or loaded on the host thus skip scanning their runtime deps skiprdeps="/opt/android-studio/plugins/android/resources/perfetto/x86_64/traced_probes ```