mirror of
https://github.com/openwrt/packages.git
synced 2026-12-02 00:45:30 +04:00
libdevmapper and libdevmapper-selinux both install /usr/lib/libdevmapper.so.1.02, and lvm2 and lvm2-selinux both install /sbin/lvm, /sbin/dmsetup and /etc/lvm/lvm.conf. The selinux variants provide the plain names, so apk never installs both of a pair, but Kconfig lets both be selected, and the image then silently gets only the selinux variant. Declare the conflicts on libdevmapper and lvm2 and mark them as the default variant, as include/package-pack.mk asks for variants that share a provide. cryptsetup, autopart and nfs-utils-v4 depend on them, and Kconfig selects them depending on the selinux variants, so a conflict in the other direction creates a Kconfig dependency cycle. Checked with defconfig: libdevmapper drops to m when libdevmapper-selinux is selected, and lvm2 drops to m when lvm2-selinux is selected. Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>