Bug ID 1191584
Summary rpmlint2 complains about unstripped-binary-or-object for python modules
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS Other
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee screening-team-bugs@suse.de
Reporter code@bnavigator.de
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

rpmlint2 regularly creates warnings about unstripped-binary-or-object for
compiled python modules in %{_libdir}%{$python_sitearch}, e.g.:


[  194s] python39-cryptography.x86_64: W: unstripped-binary-or-object
/usr/lib64/python3.9/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
[  194s] python39-cryptography.x86_64: W: unstripped-binary-or-object
/usr/lib64/python3.9/site-packages/cryptography/hazmat/bindings/_padding.abi3.so
[  194s] python38-cryptography.x86_64: W: unstripped-binary-or-object
/usr/lib64/python3.8/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
[  194s] python38-cryptography.x86_64: W: unstripped-binary-or-object
/usr/lib64/python3.8/site-packages/cryptography/hazmat/bindings/_padding.abi3.so
[  194s] python36-cryptography.x86_64: W: unstripped-binary-or-object
/usr/lib64/python3.6/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
[  194s] python36-cryptography.x86_64: W: unstripped-binary-or-object
/usr/lib64/python3.6/site-packages/cryptography/hazmat/bindings/_padding.abi3.so


These files are passed to the strip command in
/usr/lib/rpm/brp-suse.d/brp-15-strip-debug, but `file $f` still reports them as
"not stripped":


[   12s] + file
/home/abuild/rpmbuild/BUILDROOT/python-cryptography-3.4.8-0.x86_64/usr/lib64/python3.6/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
[   12s]
/home/abuild/rpmbuild/BUILDROOT/python-cryptography-3.4.8-0.x86_64/usr/lib64/python3.6/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so:
ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked,
BuildID[sha1]=99098525aebee0be660074310ba4e2ec7daa0a46, with debug_info, not
stripped
[   12s] + /usr/lib/rpm/brp-compress
[   12s] + /usr/lib/rpm/brp-suse
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-05-permissions
[   12s] setting / to root:root 0755. (wrong owner/group abuild:abuild)
[   12s] setting /usr/ to root:root 0755. (wrong owner/group abuild:abuild)
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-15-strip-debug
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-25-symlink
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-35-rpath
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-40-rootfs
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-45-tcl
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-50-check-python
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-50-generate-fips-hmac
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-55-boot-scripts
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-60-hook
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-65-lib64-linux
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-70-extract-translations
[   12s] find:
'//home/abuild/rpmbuild/BUILDROOT/python-cryptography-3.4.8-0.x86_64/usr/share/polkit-1/actions/':
No such file or directory
[   12s] find:
'//home/abuild/rpmbuild/BUILDROOT/python-cryptography-3.4.8-0.x86_64/usr/share/mime/':
No such file or directory
[   12s] find:
'//home/abuild/rpmbuild/BUILDROOT/python-cryptography-3.4.8-0.x86_64/usr/share/metainfo/':
No such file or directory
[   12s] find:
'//home/abuild/rpmbuild/BUILDROOT/python-cryptography-3.4.8-0.x86_64/usr/share/appdata/':
No such file or directory
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-72-extract-appdata
[   12s] calling /usr/lib/rpm/brp-suse.d/brp-75-ar
[   12s] Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.VwSkB9
[   12s] + umask 022
[   12s] + cd /home/abuild/rpmbuild/BUILD
[   12s] + cd cryptography-3.4.8
[   12s] + file
/home/abuild/rpmbuild/BUILDROOT/python-cryptography-3.4.8-0.x86_64/usr/lib64/python3.6/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
[   12s]
/home/abuild/rpmbuild/BUILDROOT/python-cryptography-3.4.8-0.x86_64/usr/lib64/python3.6/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so:
ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked,
BuildID[sha1]=99098525aebee0be660074310ba4e2ec7daa0a46, not stripped
[   12s] + readelf -S
/home/abuild/rpmbuild/BUILDROOT/python-cryptography-3.4.8-0.x86_64/usr/lib64/python3.6/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so
[   12s] There are 29 section headers, starting at offset 0xf2ed0:
[   12s] 
[   12s] Section Headers:
[   12s]   [Nr] Name              Type             Address           Offset
[   12s]        Size              EntSize          Flags  Link  Info  Align
[   12s]   [ 0]                   NULL             0000000000000000  00000000
[   12s]        0000000000000000  0000000000000000           0     0     0
[   12s]   [ 1] .note.gnu.bu[...] NOTE             00000000000001c8  000001c8
[   12s]        0000000000000024  0000000000000000   A       0     0     4
[   12s]   [ 2] .hash             HASH             00000000000001f0  000001f0
[   12s]        0000000000001578  0000000000000004   A       4     0     8
[   12s]   [ 3] .gnu.hash         GNU_HASH         0000000000001768  00001768
[   12s]        00000000000000bc  0000000000000000   A       4     0     8
[   12s]   [ 4] .dynsym           DYNSYM           0000000000001828  00001828
[   12s]        0000000000004fc8  0000000000000018   A       5     1     8
[   12s]   [ 5] .dynstr           STRTAB           00000000000067f0  000067f0
[   12s]        000000000000404a  0000000000000000   A       0     0     1
[   12s]   [ 6] .gnu.version      VERSYM           000000000000a83a  0000a83a
[   12s]        00000000000006a6  0000000000000002   A       4     0     2
[   12s]   [ 7] .gnu.version_r    VERNEED          000000000000aee0  0000aee0
[   12s]        00000000000000b0  0000000000000000   A       5     3     8
[   12s]   [ 8] .rela.dyn         RELA             000000000000af90  0000af90
[   12s]        0000000000017580  0000000000000018   A       4     0     8
[   12s]   [ 9] .rela.plt         RELA             0000000000022510  00022510
[   12s]        0000000000004c20  0000000000000018  AI       4    23     8
[   12s]   [10] .init             PROGBITS         0000000000027130  00027130
[   12s]        0000000000000017  0000000000000000  AX       0     0     4
[   12s]   [11] .plt              PROGBITS         0000000000027150  00027150
[   12s]        00000000000032d0  0000000000000010  AX       0     0     16
[   12s]   [12] .plt.got          PROGBITS         000000000002a420  0002a420
[   12s]        0000000000000018  0000000000000008  AX       0     0     8
[   12s]   [13] .text             PROGBITS         000000000002a440  0002a440
[   12s]        000000000006d539  0000000000000000  AX       0     0     16
[   12s]   [14] .fini             PROGBITS         000000000009797c  0009797c
[   12s]        0000000000000009  0000000000000000  AX       0     0     4
[   12s]   [15] .rodata           PROGBITS         0000000000097988  00097988
[   12s]        0000000000007ce8  0000000000000000   A       0     0     8
[   12s]   [16] .eh_frame_hdr     PROGBITS         000000000009f670  0009f670
[   12s]        0000000000004824  0000000000000000   A       0     0     4
[   12s]   [17] .eh_frame         PROGBITS         00000000000a3e98  000a3e98
[   12s]        00000000000101f8  0000000000000000   A       0     0     8
[   12s]   [18] .init_array       INIT_ARRAY       00000000002b4210  000b4210
[   12s]        0000000000000008  0000000000000008  WA       0     0     8
[   12s]   [19] .fini_array       FINI_ARRAY       00000000002b4218  000b4218
[   12s]        0000000000000008  0000000000000008  WA       0     0     8
[   12s]   [20] .data.rel.ro      PROGBITS         00000000002b4220  000b4220
[   12s]        000000000000cb20  0000000000000000  WA       0     0     32
[   12s]   [21] .dynamic          DYNAMIC          00000000002c0d40  000c0d40
[   12s]        0000000000000210  0000000000000010  WA       5     0     8
[   12s]   [22] .got              PROGBITS         00000000002c0f50  000c0f50
[   12s]        00000000000000b0  0000000000000008  WA       0     0     8
[   12s]   [23] .got.plt          PROGBITS         00000000002c1000  000c1000
[   12s]        0000000000001978  0000000000000008  WA       0     0     8
[   12s]   [24] .data             PROGBITS         00000000002c2980  000c2980
[   12s]        00000000000062f0  0000000000000000  WA       0     0     32
[   12s]   [25] .bss              NOBITS           00000000002c8c80  000c8c70
[   12s]        0000000000000140  0000000000000000  WA       0     0     32
[   12s]   [26] .symtab           SYMTAB           0000000000000000  000c8c70
[   12s]        0000000000012b58  0000000000000018          27   2343     8
[   12s]   [27] .strtab           STRTAB           0000000000000000  000db7c8
[   12s]        000000000001760d  0000000000000000           0     0     1
[   12s]   [28] .shstrtab         STRTAB           0000000000000000  000f2dd5
[   12s]        00000000000000f5  0000000000000000           0     0     1
[   12s] Key to Flags:
[   12s]   W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
[   12s]   L (link order), O (extra OS processing required), G (group), T
(TLS),
[   12s]   C (compressed), x (unknown), o (OS specific), E (exclude),
[   12s]   l (large), p (processor specific)

Note the difference between "with debug_info, not stripped" and "not stripped".
Debuginfo has been removed but the .strtab section is still present.


You are receiving this mail because: