From 0e04d2e7727bd9e51dfeced76b71cf0ccde6e948 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Fri, 21 Mar 2025 14:52:05 +0100 Subject: [PATCH] Add rpminspect.yaml with expected failures (RHEL-86591) Co-Authored-By: Dodji Seketeli Resolves: RHEL-86591 --- glibc.abignore | 17 +++++++++++++++++ glibc.spec | 1 + rpminspect.yaml | 29 +++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 glibc.abignore create mode 100644 rpminspect.yaml diff --git a/glibc.abignore b/glibc.abignore new file mode 100644 index 0000000..57168e3 --- /dev/null +++ b/glibc.abignore @@ -0,0 +1,17 @@ +[suppress_type] + # From glibc-2.34-173. + type_kind = struct + name = pthread + # The change to add rseq_cs, rseq_flags overlapped with padding. + has_data_member = rseq_area + has_data_member_insert_at = end +[suppress_type] + # From glibc-2.34-175. + type_kind = struct + name = _IO_FILE + has_data_member_inserted_between = {offset_of(_unused2), end} +[suppress_function] + # From glibc-2.34-182. + name = _dl_readonly_area + parameter = '0 void * + parameter = '1 size_t diff --git a/glibc.spec b/glibc.spec index 996c92c..bce2f0e 100644 --- a/glibc.spec +++ b/glibc.spec @@ -198,6 +198,7 @@ Source11: parse-SUPPORTED.py # Include in the source RPM for reference. Source12: ChangeLog.old Source13: nscd-sysusers.conf +Source14: glibc.abignore # glibc_ldso: ABI-specific program interpreter name. Used for debuginfo # extraction (wrap-find-debuginfo.sh) and smoke testing ($run_ldso below). diff --git a/rpminspect.yaml b/rpminspect.yaml new file mode 100644 index 0000000..209d25d --- /dev/null +++ b/rpminspect.yaml @@ -0,0 +1,29 @@ +inspections: + # We edit SourceNNN: files directly. + upstream: off + + # We have expected glibc-internal uses of otherwise banned functions. + badfuncs: off + +rpmdeps: + # glibc-benchtests does not have exact version dependencies so + # that the benchmark package can be installed with other glibc versions. + ignore: + requires: ^lib[a-z]+\.so\.[0-9](\((\)|GLIBC_).*|)$ + +debuginfo: + # ld.so ships with debuginfo to help observability tools. + # rpminspect treats the .symtab in the main DSOs as debuginfo, too. + # https://bugzilla.redhat.com/show_bug.cgi?id=1661513 + # The sysroot packages have full debuginfo because there is + # no separate debuginfo for them. + ignore: + - /usr/lib*/ld*so* + - /usr/lib*/libc.so.6 + - /usr/lib*/glibc-hwcaps/*/libc.so.6 + - /usr/lib*/glibc-hwcaps/*/libm.so.6 + - /usr/*/sys-root/*/usr/lib*/* + +# Suppress changes to internal field members. +abidiff: + suppression_file: glibc.abignore