commit 8e6c846e066d1eaafc160ec6d2c58877422eb577
Author: M. Vefa Bicakci <email address hidden>
Date: Thu Nov 30 23:47:45 2023 +0000
qat2.0.l: Add version to shared library soname
This commit resolves the following error message printed out during
qat2.0.l and qatzip package builds:
dpkg-shlibdeps: warning: can't extract name and version from \
library name 'libqat_s.so'
This is caused by the lack of a version number in the "libqat_s.so" and
"libusdm_drv_s.so" shared libraries' file names as well as their soname
fields, and it is resolved by adding a placeholder version number to the
soname field of the shared libraries built by the qat2.0.l package. For
further information, please see the description of the included patch.
This commit also adds symbolic links from the non-versioned library file
names to the versioned library file names, to adhere to the shared
library conventions.
Verification:
* An ISO image was successfully built with this commit and a
cherry-picked version of the commit at the following link, and the
build logs for both the qat2.0.l-common and the qatzip packages did
not exhibit the aforementioned warning message:
* The ISO image built with this commit was installed into a
qemu/KVM-based virtual machine in All-in-One simplex low-latency mode,
and running the "cpa_sample_code" and "qzip" executables did not
result in shared library resolution-related error messages.
Furthermore, "ldd" indicated that the libraries were successfully
located by the dynamic linker. An example:
Reviewed: https:/ /review. opendev. org/c/starlingx /kernel/ +/903368 /opendev. org/starlingx/ kernel/ commit/ 8e6c846e066d1ea afc160ec6d2c588 77422eb577
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 8e6c846e066d1ea afc160ec6d2c588 77422eb577
Author: M. Vefa Bicakci <email address hidden>
Date: Thu Nov 30 23:47:45 2023 +0000
qat2.0.l: Add version to shared library soname
This commit resolves the following error message printed out during
qat2.0.l and qatzip package builds:
dpkg- shlibdeps: warning: can't extract name and version from \
library name 'libqat_s.so'
This is caused by the lack of a version number in the "libqat_s.so" and drv_s.so" shared libraries' file names as well as their soname
"libusdm_
fields, and it is resolved by adding a placeholder version number to the
soname field of the shared libraries built by the qat2.0.l package. For
further information, please see the description of the included patch.
This commit also adds symbolic links from the non-versioned library file
names to the versioned library file names, to adhere to the shared
library conventions.
Verification:
* An ISO image was successfully built with this commit and a
cherry-picked version of the commit at the following link, and the
build logs for both the qat2.0.l-common and the qatzip packages did
not exhibit the aforementioned warning message:
https:/ /review. opendev. org/c/starlingx /kernel/ +/890744
* The "qatzip" Debian package resulting from the build automatically
included the qat2.0.l-common package in its dependencies list:
```
/localdisk/ .../std/ qatzip/ qatzip_ 1.1.2-1. stx.1_amd64. deb \
$ dpkg-deb -f \
Depends
libc6 (>= 2.17), liblz4-1 (>= 0.0~r127), \
qat2.0. l-common (>= 1.0.20), zlib1g (>= 1:1.2.2)
```
* The ISO image built with this commit was installed into a KVM-based virtual machine in All-in-One simplex low-latency mode,
qemu/
and running the "cpa_sample_code" and "qzip" executables did not
result in shared library resolution-related error messages.
Furthermore, "ldd" indicated that the libraries were successfully
located by the dynamic linker. An example:
$ ldd /usr/bin/qzip | grep -e libusdm_drv_s -e libqat_s drv_s.so. 0 => /lib/x86_ 64-linux- gnu/libusdm_ drv_s.so. 0 \
(0x00007fd6150 c6000) 64-linux- gnu/libqat_ s.so.0 \
(0x00007fd614f cf000)
libusdm_
libqat_s.so.0 => /lib/x86_
Closes-Bug: 2046175 5540550d94acb77 9a489326dce
Change-Id: I2039b09be89bc7
Signed-off-by: M. Vefa Bicakci <email address hidden>