[packages/poldek] - add basic support for boolean deps, rel 10
Jan Palus
atler at pld-linux.org
Wed Jun 8 19:55:34 CEST 2022
On 20.05.2022 22:22, Jan Rękorajski wrote:
> On Fri, 20 May 2022, baggins wrote:
>
> > commit 2d94f8f7056fbe16b90a171b66282cae45b9070b
> > Author: Jan Rękorajski <baggins at pld-linux.org>
> > Date: Fri May 20 17:13:44 2022 +0200
> >
> > - add basic support for boolean deps, rel 10
> >
> > https://rpm-software-management.github.io/rpm/manual/boolean_dependencies.html
> >
> > Only Requires are supported, 'with' and 'without' don't check if
> > the dependency is satisfied by the same package, 'or' could be improved
> > to do lazy evaluation.
>
> If anyone feels like doing some hacking, feel free to build up on this.
>
> And, of course, please test.
Regarding testing looks like I'm not able to install python3-packaging
now:
poldek:/all-avail> install python3-packaging
...
Processing dependencies...
((python3.10dist(pyparsing) < 3.0.5 or python3.10dist(pyparsing) > 3.0.5) with python3.10dist(pyparsing) >= 2.0.2) required by python3-packaging
error: python3-packaging-21.3-4.noarch: req python3.10dist(pyparsing) < 3.0.5 not found
python3-packaging-21.3-4.noarch marks python3-pyparsing-3.0.7-3.noarch (cap python3.10dist(pyparsing) > 3.0.5)
There are 2 packages to install (1 marked by dependencies):
A python3-packaging-21.3-4.noarch python3-pyparsing-3.0.7-3.noarch
This operation will use 1.4MB of disk space.
Need to get 277.3KB of archives (277.3KB to download).
error: 1 unresolved dependency
There were errors
So if I'm reading it right packaging needs any pyparsing version but 3.0.5?
Let's install it manually:
poldek:/all-avail> install python3-pyparsing
warn: python3-pyparsing: ambiguous name
Processing dependencies...
There are 1 package to install:
A python3-pyparsing-3.0.7-3.noarch
This operation will use 1.1MB of disk space.
Need to get 209.3KB of archives (209.3KB to download).
th::python3-pyparsing-3.0.7-3.noarch.rpm [209.3K (209.3K/s)]
python3-pyparsing-3.0.7-3.noarch.rpm: digests OK
Executing pm-command.sh --upgrade -vh --root / --define _check_dirname_deps 0...
warning: /root/.poldek-cache/https_ftp.th.pld-linux.org.dists.th.PLD.noarch.RPMS/python3-pyparsing-3.0.7-3.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID e4f1bc2d: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:python3-pyparsing-3.0.7-3 ################################# [100%]
And try again:
poldek:/all-avail> install python3-packaging
Processing dependencies...
((python3.10dist(pyparsing) < 3.0.5 or python3.10dist(pyparsing) > 3.0.5) with python3.10dist(pyparsing) >= 2.0.2) required by python3-packaging
error: python3-packaging-21.3-4.noarch: req python3.10dist(pyparsing) < 3.0.5 not found
There are 1 package to install:
A python3-packaging-21.3-4.noarch
This operation will use 280.3KB of disk space.
Need to get 68.0KB of archives (68.0KB to download).
error: 1 unresolved dependency
rpm is happy though:
# rpm -Uvh python3-packaging-21.3-4.noarch.rpm
warning: python3-packaging-21.3-4.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID e4f1bc2d: NOKEY
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:python3-packaging-21.3-4 ################################# [100%]
And regarding hacking, what's the ownership status for poldek? Any chance on
broader write access to upstream repo?
More information about the pld-devel-en
mailing list