After the latest ebuild updates, it's not possible to compile a static version of lvm2 for my initramfs when udisk2 is installed These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild UD ] sys-apps/util-linux-2.24.1-r3 [2.25.2-r2] USE="caps ncurses nls pam static-libs tty-helpers* udev unicode -bash-completion% -cramfs -cytune% -fdformat -python (-selinux) -slang -suid {-test} (-systemd%)" ABI_X86="(64) (-32) (-x32)" PYTHON_SINGLE_TARGET="python2_7 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 -python3_3 -python3_4" 0 KiB [ebuild R ] sys-fs/lvm2-2.02.109 USE="readline static static-libs (-clvm) (-cman) -device-mapper-only -lvm1 -lvm2create_initrd (-selinux) -systemd -thin -udev*" 0 KiB Total: 2 packages (1 downgrade, 1 reinstall), Size of downloads: 0 KiB !!! Multiple package instances within a single package slot have been pulled !!! into the dependency graph, resulting in a slot conflict: sys-fs/lvm2:0 (sys-fs/lvm2-2.02.109:0/0::gentoo, ebuild scheduled for merge) pulled in by sys-fs/lvm2 (Argument) (sys-fs/lvm2-2.02.109:0/0::gentoo, installed) pulled in by sys-fs/lvm2[udev(+)] required by (sys-fs/udisks-2.1.3:2/2::gentoo, installed) It may be possible to solve this problem by using package.mask to prevent one of those packages from being selected. However, it is also possible that conflicting dependencies exist such that they are impossible to satisfy simultaneously. If such a conflict exists in the dependencies of two different packages, then those packages can not be installed simultaneously. You may want to try a larger value of the --backtrack option, such as --backtrack=30, in order to see if that will solve this conflict automatically. For more information, see MASKED PACKAGES section in the emerge man page or refer to the Gentoo Handbook. Reproducible: Always
maybe compiling just the static version without udev and the none static version with udev enabled would fix the problem.
You need to build sys-fs/lvm2 with USE="udev" to satisfy sys-fs/udisks.
lvm2 has the udev use flag enabled. Calculating dependencies... done! [ebuild R ] sys-apps/util-linux-2.24.1-r3 USE="caps ncurses nls pam static-libs tty-helpers udev unicode -bash-completion -cramfs -cytune -fdformat -python (-selinux) -slang -suid {-test}" ABI_X86="(64) (-32) (-x32)" PYTHON_SINGLE_TARGET="python2_7 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 -python3_3 -python3_4" 0 KiB [ebuild R ] sys-fs/lvm2-2.02.109 USE="readline static static-libs udev (-clvm) (-cman) -device-mapper-only -lvm1 -lvm2create_initrd (-selinux) -systemd -thin" 0 KiB Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict: sys-apps/util-linux:0 (sys-apps/util-linux-2.25.2-r2:0/0::gentoo, ebuild scheduled for merge) conflicts with <sys-apps/util-linux-2.25[static-libs] required by (sys-fs/lvm2-2.02.109:0/0::gentoo, ebuild scheduled for merge)
As per bug #520450, it won't work with util-linux <= 2.24.
*** This bug has been marked as a duplicate of bug 520450 ***