[arch-commits] Commit in nvidia-340xx-utils/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sun Jan 7 17:15:33 UTC 2018
Date: Sunday, January 7, 2018 @ 17:15:31
Author: svenstaro
Revision: 314227
Use different oneliner for getting library names
Modified:
nvidia-340xx-utils/trunk/PKGBUILD
----------+
PKGBUILD | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-07 17:15:27 UTC (rev 314226)
+++ PKGBUILD 2018-01-07 17:15:31 UTC (rev 314227)
@@ -25,7 +25,7 @@
create_links() {
# create soname links
- for _lib in $(find "${pkgdir}" -type f -name '*.so*' | grep -v 'xorg/'); do
+ find "$pkgdir" -type f -name '*.so*' ! -path '*xorg/*' -print0 | while read -d $'\0' _lib; do
_soname=$(dirname "${_lib}")/$(readelf -d "${_lib}" | grep -Po 'SONAME.*: \[\K[^]]*' || true)
_base=$(echo ${_soname} | sed -r 's/(.*).so.*/\1.so/')
[[ -e "${_soname}" ]] || ln -s $(basename "${_lib}") "${_soname}"
More information about the arch-commits
mailing list