[arch-commits] Commit in nvidia-utils/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sun Jan 7 17:15:41 UTC 2018
Date: Sunday, January 7, 2018 @ 17:15:39
Author: svenstaro
Revision: 314229
Use different oneliner for getting library names
Modified:
nvidia-utils/trunk/PKGBUILD
----------+
PKGBUILD | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-01-07 17:15:34 UTC (rev 314228)
+++ PKGBUILD 2018-01-07 17:15:39 UTC (rev 314229)
@@ -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