From 700aaba2039ad8b2ed00f86be0217fa73ddc2360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Thu, 6 Jan 2022 17:02:52 +0100 Subject: [PATCH] Ignore `no-library-dependency-{on,for}` rpmlint check. Upstream suggest to ignore these checks on Fedora: https://github.com/rpm-software-management/rpmlint/issues/781 --- ruby.rpmlintrc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ruby.rpmlintrc b/ruby.rpmlintrc index 87622e0..e3f06e0 100644 --- a/ruby.rpmlintrc +++ b/ruby.rpmlintrc @@ -35,3 +35,15 @@ addFilter(r'^ruby-libs\.\w+: W: library-not-linked-against-libc /usr/lib(64)?/ru # Rake ships some examples. addFilter(r'^rubygem-rake.noarch: W: devel-file-in-non-devel-package /usr/share/gems/gems/rake-[\d\.]+/doc/example/\w+.c$') + +# The -devel package depends on package containing libruby.so.x.y. That should +# be enough: +# ~~~ +# $ rpm -qpR /var/lib/mock/ruby/result/ruby-devel-3.1.0-1.fc36.x86_64.rpm | grep libruby +# libruby.so.3.1()(64bit) +# ~~~ +# https://github.com/rpm-software-management/rpmlint/issues/781 +# +# Unfortunately, this filter triggers another error: +# https://github.com/rpm-software-management/rpmlint/issues/782 +addFilter(r'^ruby-devel\.\w+: E: no-library-dependency-(for|on ruby-libs) /usr/lib(64)?/libruby.so.\d.\d.0$')