[Bug 1217840] New: rpmlint does not check anymore for packages built without distro %{optflags}
https://bugzilla.suse.com/show_bug.cgi?id=1217840 Bug ID: 1217840 Summary: rpmlint does not check anymore for packages built without distro %{optflags} Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: guillaume.gardet@arm.com QA Contact: qa-bugs@suse.de CC: dimstar@opensuse.org, dmueller@suse.com, fvogt@suse.com Target Milestone: --- Found By: --- Blocker: --- At some point, rpmlint checked for packages built without distro %{optflags}. This is not the case anymore. It was added upstream in https://github.com/rpm-software-management/rpmlint/issues/341 So, this should be a matter of setting MandatoryOptflags to the right settings? -- You are receiving this mail because: You are on the CC list for the bug.
file libjson-c.so.5.3.0
https://bugzilla.suse.com/show_bug.cgi?id=1217840 https://bugzilla.suse.com/show_bug.cgi?id=1217840#c1 --- Comment #1 from Dominique Leuenberger <dimstar@opensuse.org> --- did some work on this and am surprised this ever worked in any reliable way: * build does bot pass the -debuginfo packages to rpmlint (the files with the relevant info are in -debuginfo though) https://github.com/openSUSE/obs-build/blob/9ae0e9ebdc4e447123386214a3735ccd8... * rpmlint has no configuration for MandatoryOptflags (so the test is skipped in all cases) something like MandatoryOptFlags = ['-O2', '-Wall', '-D_FORTIFY_SOURCE=3', '-funwind-tables', '-fstack-clash-protection' ] If debuginfo is not enabled in the prj, then the binary/library would be expected to have the dwarf info embedded - but somehow that was also not true in my tests: libjson-c.so.5.3.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=c98247ef95683cbaa5c37abc9acf4e67b54da8a6, not stripped
objdump libjson-c.so.5.3.0 --dwarf=info
libjson-c.so.5.3.0: file format elf64-x86-64 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1217840 Jan Engelhardt <jengelh@inai.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jengelh@inai.de -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com