Error occurs if static flag is enabled and udev flag is not. Reproducible: Always Steps to Reproduce: 1. USE="static -udev" emerge lvm2 Actual Results: The following USE changes are necessary to proceed: #required by sys-fs/lvm2-2.02.97-r1[static], required by @selected, required by @world (argument) >=virtual/udev-196 static-libs Expected Results: lvm2 merged
This fixes the bug > diff -up lvm2-2.02.97-r1.ebuild lvm2-2.02.97-r2.ebuild --- lvm2-2.02.97-r1.ebuild 2012-12-18 13:31:30.000000000 +0000 +++ lvm2-2.02.97-r2.ebuild 2012-12-27 07:54:50.000000000 +0000 @@ -39,7 +39,7 @@ RDEPEND="${RDEPEND} DEPEND="${DEPEND_COMMON} virtual/pkgconfig >=sys-devel/binutils-2.20.1-r1 - static? ( virtual/udev[static-libs] )" + static? ( udev? ( virtual/udev[static-libs] ) )" S="${WORKDIR}/${PN/lvm/LVM}.${PV}"
What error? Attach the full build.log to this bug, thanks.
The description could have been more clear. There is no build log, the error is under "Actual Results": > The following USE changes are necessary to proceed: > #required by sys-fs/lvm2-2.02.97-r1[static], required by @selected, required by @world (argument) > >=virtual/udev-196 static-libs He has USE="+static -udev" set thus he doesn't want udev, yet emerge proposes an USE change that suggests it would add udev; he wants to emerge lvm2 without emerging udev. This only happens with USE="+static", since only then udev is introduced as a dependency. To solve this unwanted dependency problem, he proposes a patch that would make lvm2 not emerge udev when USE="-udev" (regardless of how the static USE flag is set).
(In reply to comment #3) > The description could have been more clear. > > There is no build log, the error is under "Actual Results": > > > The following USE changes are necessary to proceed: > > #required by sys-fs/lvm2-2.02.97-r1[static], required by @selected, required by @world (argument) > > >=virtual/udev-196 static-libs > > He has USE="+static -udev" set thus he doesn't want udev, yet emerge > proposes an USE change that suggests it would add udev; he wants to emerge > lvm2 without emerging udev. This only happens with USE="+static", since only > then udev is introduced as a dependency. > > To solve this unwanted dependency problem, he proposes a patch that would > make lvm2 not emerge udev when USE="-udev" (regardless of how the static USE > flag is set). Yeah, thanks for clarification. I just wanted to write the same.
any update?
+ 19 Jun 2013; Lars Wendler <polynomial-c@gentoo.org> lvm2-2.02.95-r4.ebuild, + lvm2-2.02.97.ebuild, lvm2-2.02.97-r1.ebuild, lvm2-2.02.98.ebuild: + non-maintainer commit: Fixed dependency for static builds with "-udev" USE + flag (bug #448790). +