Am 30.05.22 um 17:16 schrieb Jan Engelhardt:
On Monday 2022-05-30 16:56, Martin Wilck wrote:
Requires: (NetworkManager-ovs if openvswitch) Why should NetworkManager Require NetworkManager-ovs? I thought it meant "requires NetworkManager-ovs if openvswitch is also installed". That's what I intended to express, at least. And that's what I think it does.
Let's stop thinking and guessing. Here is an experiment: https://build.opensuse.org/package/show/home:bnavigator:testbool/testbool skylab:~ #zypper lr 9 Alias : home_bnavigator_testbool Name : test rpm boolean deps (openSUSE_Tumbleweed) URI : https://download.opensuse.org/repositories/home:/bnavigator:/testbool/openSU... weed/ Enabled : Yes GPG Check : (r ) Yes Priority : 99 (default priority) Autorefresh : Off Keep Packages : Off Type : rpm-md GPG Key URI : https://download.opensuse.org/repositories/home:/bnavigator:/testbool/openSU... weed/repodata/repomd.xml.key Path Prefix : Parent Service : Keywords : --- Repo Info Path : /etc/zypp/repos.d/home_bnavigator_testbool.repo MD Cache Path : /var/cache/zypp/raw/home_bnavigator_testbool skylab:~ #zypper info --requires testbool Loading repository data... Reading installed packages... Information for package testbool: --------------------------------- Repository : test rpm boolean deps (openSUSE_Tumbleweed) Name : testbool Version : 0.1-2.1 Arch : noarch Vendor : obs://build.opensuse.org/home:bnavigator Installed Size : 9 B Installed : No Status : not installed Source package : testbool-0.1-2.1.src Summary : Test rpm bool Description : Test how rpm boolean dependencies are resolved Requires : [2] (testbool-A if testbool-C) (testbool-B if testbool-D) skylab:~ #zypper in testbool-C Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: testbool-C 1new package to install. Overall download size: 7.1 KiB. Already cached: 0 B. After the operation, additional 2.0 B will be used. Continue? [y/n/v/...? shows all options] (y): Retrieving package testbool-C-0.1-2.1.noarch (1/1), 7.1 KiB ( 2 B unpacked) Retrieving: testbool-C-0.1-2.1.noarch.rpm ......................................................[done] Checking for file conflicts: ...................................................................[done] (1/1) Installing: testbool-C-0.1-2.1.noarch ....................................................[done] skylab:~ #rpm -qi testbool-C Name : testbool-C Version : 0.1 Release : 2.1 Architecture: noarch Install Date: Mon May 30 18:47:58 2022 Group : Unspecified Size : 2 License : WTFPL Signature : RSA/SHA256, Mon May 30 18:41:41 2022, Key ID 795aeda43db1b31d Source RPM : testbool-0.1-2.1.src.rpm Build Date : Mon May 30 18:41:38 2022 Build Host : build75 Vendor : obs://build.opensuse.org/home:bnavigator Summary : C Description : Pkg C Distribution: home:bnavigator:testbool / openSUSE_Tumbleweed skylab:~ #rpm -qi testbool-D package testbool-D is not installed skylab:~ #zypper in testbool Loading repository data... Reading installed packages... Resolving package dependencies... The following 2 NEW packages are going to be installed: testbool testbool-A 2new packages to install. Overall download size: 14.4 KiB. Already cached: 0 B. After the operation, additional 11.0 B will be used. Continue? [y/n/v/...? shows all options] (y): n skylab:~ #zypper in testbool-D Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: testbool-D 1new package to install. Overall download size: 7.1 KiB. Already cached: 0 B. After the operation, additional 2.0 B will be used. Continue? [y/n/v/...? shows all options] (y): Retrieving package testbool-D-0.1-2.1.noarch (1/1), 7.1 KiB ( 2 B unpacked) Retrieving: testbool-D-0.1-2.1.noarch.rpm ......................................................[done] Checking for file conflicts: ...................................................................[done] (1/1) Installing: testbool-D-0.1-2.1.noarch ....................................................[done] skylab:~ #zypper in testbool Loading repository data... Reading installed packages... Resolving package dependencies... The following 3 NEW packages are going to be installed: testbool testbool-A testbool-B 3new packages to install. Overall download size: 21.5 KiB. Already cached: 0 B. After the operation, additional 13.0 B will be used. Continue? [y/n/v/...? shows all options] (y): n I stand corrected. testbool-B is not pulled in automatically. That holds only true for BuildRequires in obs builds. - Ben