From 2a64b8d1a39b891dd757256e289f1cd4bd77a789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 9 Jan 2024 23:13:16 +0100 Subject: [PATCH] rpminspect: Disable the unicode inspection rpminspect reported: A forbidden code point, 0x202E, was found in the pip-21.2.3/AUTHORS.txt source file on line 635 at column 0. This issue was already found and fixed upstream when pip was added to CentOS Stream for Python 3.11. https://github.com/pypa/pip/pull/12046 However, the fix got overridden by upstream automation (which creates the file from git log). The regression was reported upstream in https://github.com/pypa/pip/issues/12467 The patch still applies, so we could reuse it again. However, rpminspect then not only does not stop reporting this, but it starts reporting the same problem for the patch (from python3.12-pip): A forbidden code point, 0x202E, was found in the 12046.patch source file on line 19 at column 11. This source file is used by (null). A forbidden code point, 0x202E, was found in the 12046.patch source file on line 28 at column 1. This source file is used by (null). A forbidden code point, 0x202E, was found in the pip-23.2.1/AUTHORS.txt source file on line 482 at column 10. This source file is used by python3.12-pip.spec. A forbidden code point, 0x202E, was found in the pip-23.2.1/AUTHORS.txt source file on line 738 at column 0. This source file is used by python3.12-pip.spec. The file is fine. It's not code. Note that ideally, we would only exclude AUTHORS.txt, somehow like this: unicode: exclude: ^AUTHORS\.txt$ However, it does not work (at least on CentOS Zuul CI). Cherry-picked from https://gitlab.com/redhat/centos-stream/rpms/python3.12-pip/-/commit/fd85d3c16a1de425ebb1b8973dd5777ddbc71f48 --- rpminspect.yaml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 rpminspect.yaml diff --git a/rpminspect.yaml b/rpminspect.yaml new file mode 100644 index 0000000..5816707 --- /dev/null +++ b/rpminspect.yaml @@ -0,0 +1,5 @@ +# completely disabled inspections: +inspections: + # we know about RIGHT-TO-LEFT OVERRIDE in AUTHORS.txt + # (fine tuning of this inspection does not seem to work) + unicode: off