On lun, 2024-04-01 at 21:42 +0200, Ben Greiner wrote:
Am 01.04.24 um 20:47 schrieb Matthias Bach:
Hi
On Mon Apr 1, 2024 at 7:05 PM CEST, Matthias Bach wrote:
Trying to adjust the openSUSE package, I have into the following error being> reported from rpmlint: python310-typer-cli.noarch: E: no-dependency-on python-base 3.10 python311-typer-cli.noarch: E: no-dependency-on python-base 3.11 python312-typer-cli.noarch: E: no-dependency-on python-base 3.12 Is it breaking the build? Otherwise, I would just say that rpmlint is not The Holy Writ™ and it can very well be wrong. No, it is not breaking the build and I deem it a false positive. But I had the impression that branches often have relaxed badness calculations versus Factory. Thus, I was wondering whether there might be a different best
Am Montag, 1. April 2024, 20:34:54 CEST schrieb Matěj Cepl: practice for how to handle such cases, or if I can ignore this as a false positive.
It's not really a false positive, as it correctly detects the missing dependency on python3xx-base or python(abi) = 3.XX.
You can add that manually when you mask the python string not to be rewritten by the multiflavor rewriter.
%define plainpython python ... Requires: %{plainpython}(abi) = %{python_version} %python_subpackages
rpmlint is checking for files in the path "/usr/lib/pythonXXX/site- packages" and indeed, I can see that these packages has the usual python module metadata installed there. If this package just provides the binary, maybe this metadata folder can be removed from the package. $ rpm -ql python312-typer-cli-0.12.0-2.1.noarch.rpm /etc/alternatives/typer /usr/bin/typer /usr/bin/typer-3.12 /usr/lib/python3.12/site-packages/typer_cli-0.12.0.dist-info /usr/lib/python3.12/site-packages/typer_cli-0.12.0.dist-info/INSTALLER /usr/lib/python3.12/site-packages/typer_cli-0.12.0.dist-info/METADATA /usr/lib/python3.12/site-packages/typer_cli-0.12.0.dist-info/RECORD /usr/lib/python3.12/site-packages/typer_cli-0.12.0.dist-info/REQUESTED /usr/lib/python3.12/site-packages/typer_cli-0.12.0.dist-info/WHEEL /usr/lib/python3.12/site-packages/typer_cli-0.12.0.dist- info/entry_points.txt /usr/lib/python3.12/site-packages/typer_cli-0.12.0.dist-info/licenses /usr/lib/python3.12/site-packages/typer_cli-0.12.0.dist- info/licenses/LICENSE /usr/share/doc/packages/python312-typer-cli /usr/share/doc/packages/python312-typer-cli/README.md /usr/share/licenses/python312-typer-cli /usr/share/licenses/python312-typer-cli/LICENSE