From a24c690462f18f0850cffb45023f09a967f73449 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz Date: Jan 13 2021 14:49:36 +0000 Subject: dist/dist_minipix.dist: fail non-silently given non-existent shared object in ${PREFIX_NATIVE}/lib. --- diff --git a/dist/dist_minipix.dist b/dist/dist_minipix.dist index 8577511..17d9627 100644 --- a/dist/dist_minipix.dist +++ b/dist/dist_minipix.dist @@ -34,8 +34,10 @@ pkg_dist_minipix_all() { libssl.so.48 libtasn1.so.6 libtinfo.so.6 libtinfo.so \ libtinfow.so.6 libu16ports.so.0 libunistring.so.2 libuuid.so.1 \ libz.so.1; do - if [ -e "${PREFIX_NATIVE}/lib/${_fname}" ]\ - && rtl_is_newer "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin/${_fname}"\ + if [ ! -e "${PREFIX_NATIVE}/lib/${_fname}" ]; then + rtl_log_msg fatal "Error: shared object \`%s' non-existent on copy." "${PREFIX_NATIVE}/lib/${_fname}"; + return 1; + elif rtl_is_newer "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin/${_fname}"\ && ! rtl_fileop cp_follow "${PREFIX_NATIVE}/lib/${_fname}" "${PREFIX_MINIPIX}/bin"; then return 1; fi;