Torsten Keßler pushed to branch main at Arch Linux / Packaging / Packages / 
intel-oneapi-compiler-shared-runtime


Commits:
f0bf505e by Torsten Keßler at 2024-04-28T18:36:23+02:00
upgpkg: 2024.0.2-2

Fix broken symlinks

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
 pkgbase = intel-oneapi-compiler-shared-runtime
        pkgver = 2024.0.2
-       pkgrel = 1
+       pkgrel = 2
        url = 
https://software.intel.com/content/www/us/en/develop/tools/oneapi.html
        arch = x86_64
        license = LicenseRef-Intel-EULA-Developer-Tools


=====================================
PKGBUILD
=====================================
@@ -7,7 +7,7 @@ pkgname=("${_pkgname}-runtime" "${_pkgname}-runtime-libs")
 _pkgver=2024.0
 pkgver=2024.0.2
 _debpkgrel=49895
-pkgrel=1
+pkgrel=2
 _pkgdesc="Intel oneAPI compiler runtime libraries"
 arch=('x86_64')
 url='https://software.intel.com/content/www/us/en/develop/tools/oneapi.html'
@@ -90,6 +90,19 @@ package_intel-oneapi-compiler-shared-runtime() {
     echo "${_lib_path}/latest/linux/lib" > "${_ldso_conf}/${pkgname}.conf"
     echo "${_lib_path}/latest/linux/lib/x64" >> "${_ldso_conf}/${pkgname}.conf"
 
+    # Symlinks to these libraries are shipped by Intel in a different package,
+    # intel-oneapi-compiler-shared. If we install this package, ldconfig
+    # creates the missing symlinks automatically. But they are not owned by
+    # the package and thus not removed with the package. We fix this by
+    # creating the symlinks by hand and remove them from the second package.
+    local _lib_name="${_lib_path}/2024.0/lib/libur_adapter_level_zero.so"
+    ln -s "${_lib_name}" "${pkgdir}/${_lib_name}.0"
+    ln -s "${_lib_name}" "${pkgdir}/${_lib_name}.0.0.0"
+
+    _lib_name="${_lib_path}/2024.0/lib/libur_loader.so"
+    ln -s "${_lib_name}" "${pkgdir}/${_lib_name}.0"
+    ln -s "${_lib_name}" "${pkgdir}/${_lib_name}.0.7.0"
+
     echo '/opt/intel/oneapi/compiler/latest/lib/libintelocl.so' > 
'intelocl.icd'
     install -Dm644 'intelocl.icd' "$pkgdir/etc/OpenCL/vendors/intelocl.icd"
 



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/intel-oneapi-compiler-shared-runtime/-/commit/f0bf505ea14cfa32ced959a441c65d6aa99f4093

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/intel-oneapi-compiler-shared-runtime/-/commit/f0bf505ea14cfa32ced959a441c65d6aa99f4093
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to