On 19. 04. 20 2:16, Jerry James wrote:
What generates the python3dist(module) provides? I ask because I did a build of python-nb2plots today for which those provides were not generated:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1495361
even though they were for the previous build:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1449952
although with questionable values:
python3.8dist(nb2plots) = 0+unknown python3dist(nb2plots) = 0+unknown
This:
https://src.fedoraproject.org/rpms/python-rpm-generators/blob/master/f/pytho... https://src.fedoraproject.org/rpms/python-rpm-generators/blob/master/f/pytho...
Let me try to debug it.
On 19. 04. 20 9:51, Miro Hrončok wrote:
On 19. 04. 20 2:16, Jerry James wrote:
What generates the python3dist(module) provides? I ask because I did a build of python-nb2plots today for which those provides were not generated:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1495361
even though they were for the previous build:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1449952
although with questionable values:
python3.8dist(nb2plots) = 0+unknown python3dist(nb2plots) = 0+unknown
This:
https://src.fedoraproject.org/rpms/python-rpm-generators/blob/master/f/pytho...
https://src.fedoraproject.org/rpms/python-rpm-generators/blob/master/f/pytho...
Let me try to debug it.
My first rough idea is:
The version in upstream metadata is not valid.
Downstream (dep generator):
Before the latest update, it generated something, now it fails.
The behavior with invalid versions is not well defined.
The log says:
Traceback (most recent call last): File "/usr/lib/rpm/pythondistdeps.py", line 379, in <module> spec_list.append(convert(name, spec[0], spec[1])) File "/usr/lib/rpm/pythondistdeps.py", line 125, in convert return OPERATORS[operator](name, operator, version_id) File "/usr/lib/rpm/pythondistdeps.py", line 79, in convert_equal return '{} = {}'.format(name, version) File "/usr/lib/rpm/pythondistdeps.py", line 47, in __str__ while self.version[-1] == 0: IndexError: list index out of range
I wonder if RPMbuild should fail in that case :/
Upstream (invalid version):
The versioneer.py file in the project root seem to not handle this well with git snapshots.
From /usr/lib/python3.8/site-packages/nb2plots-0+unknown-py3.8.egg-info/PKG-INFO
Version: 0+unknown
On 19. 04. 20 10:05, Miro Hrončok wrote:
On 19. 04. 20 9:51, Miro Hrončok wrote:
On 19. 04. 20 2:16, Jerry James wrote:
What generates the python3dist(module) provides? I ask because I did a build of python-nb2plots today for which those provides were not generated:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1495361
even though they were for the previous build:
https://koji.fedoraproject.org/koji/buildinfo?buildID=1449952
although with questionable values:
python3.8dist(nb2plots) = 0+unknown python3dist(nb2plots) = 0+unknown
This:
https://src.fedoraproject.org/rpms/python-rpm-generators/blob/master/f/pytho...
https://src.fedoraproject.org/rpms/python-rpm-generators/blob/master/f/pytho...
Let me try to debug it.
My first rough idea is:
The version in upstream metadata is not valid.
Downstream (dep generator):
...snip...
Upstream (invalid version):
Correction, this is valid:
https://www.python.org/dev/peps/pep-0440/#local-version-identifiers
But in this package case, we don't want version 0, so valid, but wrong.
Followup on the generator problem:
https://github.com/rpm-software-management/rpm/issues/1183
- the traceback should say: Cannot process Python package version: 0+unknown - the build should abort on errors - the version is actually valid
python-devel@lists.fedoraproject.org