Bug 46447

Summary: /usr/lib/rpm/provided_symbols ignores symbols with <OS specific> type
Product: Sisyphus Reporter: Gleb F-Malinovskiy <glebfm>
Component: rpm-buildAssignee: placeholder <placeholder>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: arseny, bircoph, glebfm, imz, lakostis, ldv, nenderus, placeholder, vt
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Gleb F-Malinovskiy 2023-06-08 13:20:53 MSK
$ rpmpeek /ALT/Sisyphus/files/x86_64/RPMS/libjcpkcs11-2.8.0-alt2.x86_64.rpm /usr/lib/rpm/provided_symbols ./usr/lib64/libjcPKCS11ds.so 2>/dev/null | grep _ZNSt7collateIwE2idE
$ rpmpeek /ALT/Sisyphus/files/x86_64/RPMS/libjcpkcs11-2.8.0-alt2.x86_64.rpm readelf --wide --dyn-syms ./usr/lib64/libjcPKCS11ds.so 2>/dev/null | grep _ZNSt7collateIwE2idE
  2572: 00000000002df9c8     8 OBJECT  <OS specific>: 10 DEFAULT   26 _ZNSt7collateIwE2idE

This issue affects llvm16 on armh, see:
https://lore.altlinux.org/sisyphus-incominger/girar.task.322427.1.1@gyle.mskdc.altlinux.org
https://lore.altlinux.org/sisyphus-incominger/girar.task.322113.8.1@gyle.mskdc.altlinux.org
Comment 1 Repository Robot 2023-06-09 13:37:25 MSK
rpm-build-4.0.4.189-alt1 -> sisyphus:

 Thu Jun 08 2023 Gleb F-Malinovskiy <glebfm@altlinux> 4.0.4.189-alt1
 - rpm-build: provided_symbols: switched to eu-readelf to fix missing provides
   for symbols with peculiar bits that affect the output format of readelf from
   the binutils package (ALT#46447).