[arch-commits] Commit in nvidia-utils/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at gemini.archlinux.org
Tue Feb 22 10:36:07 UTC 2022


    Date: Tuesday, February 22, 2022 @ 10:36:07
  Author: svenstaro
Revision: 437903

Make soname linking slightly safer

Modified:
  nvidia-utils/trunk/PKGBUILD

----------+
 PKGBUILD |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-22 09:41:29 UTC (rev 437902)
+++ PKGBUILD	2022-02-22 10:36:07 UTC (rev 437903)
@@ -25,7 +25,7 @@
     # create soname links
     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/')
+        _base=$(echo ${_soname} | sed -r 's/(.*)\.so.*/\1.so/')
         [[ -e "${_soname}" ]] || ln -s $(basename "${_lib}") "${_soname}"
         [[ -e "${_base}" ]] || ln -s $(basename "${_soname}") "${_base}"
     done



More information about the arch-commits mailing list