Bugzilla – Bug 1201288
Consider weakening/dropping some dependencies of libbd_* packages
Last modified: 2022-07-07 21:19:53 UTC
Currently all TW installations with udisks2 (or other users of libblockdev) have a hard dependency on packages such as lvm2, mdadm and thin-provisioning-tools. In the case of udisks2 at least, those plugins are only really used if devices of that type are detected, which is not the case on most systems. So it might be a good idea to weaken those dependencies or drop them entirely. This is somehwat related to bug 1194771.
I did a quick grepping around the source tree and it seems to be worth it to investigate about those sweet requirements weakening/dropping. Comparing our libblockdev spec with Fedora's, they don't have a requirement in thin-provisioning-tools anymore, so we can get rid of it. Now, mdadm and lvm2 are two oddities, they are not looked for by configure script, but are being listed in tests/utils.py. For instance, the libblockdev's mdraid plugin will fail to load without mdadm (at least, according to a comment in tests/mdraid_test.py, line 642). And the same thing for libblockdev's lvm pluging (tests/lvm_test.py, line 1834). I'm going to poke upstream a little bit before we proceed.