From be31527595526f6124f24cee5fb1fd565ec764f7 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: Nov 09 2016 21:53:56 +0000 Subject: tarballs: convert all symbolic links matching *.so{,.*} to hard links when creating tarballs. --- diff --git a/999.tarballs.build b/999.tarballs.build index 94accaf..19ab7f7 100644 --- a/999.tarballs.build +++ b/999.tarballs.build @@ -37,7 +37,8 @@ secure_rm ${PREFIX_BASENAME}/lib.bak; insecure_mkdir ${PREFIX_BASENAME}/lib.bak; tar -C ${PREFIX_BASENAME}/lib -cpf - . | tar -C ${PREFIX_BASENAME}/lib.bak -xpf -; log_msg info "Backed up ${PREFIX_BASENAME}/lib."; -for __ in $(find native/lib -maxdepth 1 -type l); do +for __ in $(find native/lib \( -iname \*.so -or -iname \*.so.\* \) \ + -type l); do ___="native/lib/$(readlink -- ${__})"; if [ -f "${___}" ]; then secure_rm ${__}; ln -f -- "${___}" "${__}";