From 9e774fba706a3a1031ca95840e254a64a9eeebbb Mon Sep 17 00:00:00 2001 From: Jun Aruga Date: Mar 15 2022 22:15:44 +0000 Subject: ruby.rpmlintrc: Ignore zero-length error for gem.build_complete file. This error is gone as false positive in rpmlint 2.0+. However the rpmlint version on Zuul CI running on the Fedora 34 container is still 1.11. After Zuul CI is upgraded to Fedora 35+ container, and uses the rpmlint 2, we can notice this filter is not used by "E: unused-rpmlintrc-filter" error, and remove it. --- diff --git a/ruby.rpmlintrc b/ruby.rpmlintrc index 8a4dde6..d59d364 100644 --- a/ruby.rpmlintrc +++ b/ruby.rpmlintrc @@ -50,3 +50,7 @@ addFilter(r'^rubygem-(bigdecimal|io-console|json|psych)\.\w+: W: no-documentatio # rubygems-devel ships only RPM macros and generators. Their placement is given # by RPM and can't be modified. addFilter(r'rubygems-devel.noarch: W: only-non-binary-in-usr-lib$') + +# The empty gem.build_complete file is false positive. This error is gone in rpmlint 2.0+. +# https://github.com/rpm-software-management/rpmlint/commit/e34ce874f27d733628f51c9884ac951af072bed2 +addFilter(r'^ruby(gem)?-(bigdecimal|bundled-gems|io-console|json|psych|rbs)\.\w+: E: zero-length /usr/lib(64)?/gems/ruby/.*/gem.build_complete')