sys-power/powertop should pull net-wireless/bluez only if the bluetooth global useflag is set. Reproducible: Always Steps to Reproduce: 1. Install sys-power/powertop Actual Results: net-wireless/bluez is pulled as a dependency Expected Results: net-wireless/bluez should be uninstalled
1.97 and up are not ready for production yet. If you want a tool to tell you how much power hardware and software parts of your system are using, then please downgrade to 1.13.
Well, powertop-1.13 also uses tools from bluez, but does not RDEPEND on net-wireless/bluez. See powertop-1.13/bluetooth.c, lines 96 and 138. If it is OK in Gentoo not to install the (optional) dependency bluez for powertop-1.13, not installing it should also be OK for powertop-1.97-r1, even if this version is not ready for production yet. In powertop-1.97-r1, the code does not enable bluetooth support if it is disabled in the kernel. So there is no need to pull in bluez anyway. See powertop-1.97/tuning/bluetooth.cpp, lines 200ff. If the kernel has bluetooth support enabled, but bluez is not installed, the test result will be “Bad”, see the same file, lines 139–142, 163, but that does not harm. Lines 177 and 180 do not even evaluate the exit code, so that does not matter as well. So there is need to unconditionally pull in bluez even for powertop-1.97. Please change RDEPEND="… net-wireless/bluez …" to RDEPEND="… bluetooth? ( net-wireless/bluez ) …" in the ebuild file. Thanks.
> So there is need to unconditionally pull in bluez even for powertop-1.97. > Please change RDEPEND="… net-wireless/bluez …" to RDEPEND="… bluetooth? ( > net-wireless/bluez ) …" in the ebuild file. Thanks. Some people are reporting crashes when bluez isn't installed, others are reporting no issues. I will amend this dep set if 3 people can test and comment here that they installed powertop-2.1-r1, without bluez installed, and could use it without issue. Looks like there are three people on the bug already so this should be easy...
Three responses requested, zero received. I will close this bug on Sept 30th 2012 if three people do not confirm bluez is optional and doesn't cause segfault.
Rick, I've tested powertop-2.1-r1 (without bluez) for a day, no crashes occured.
Sorry, I am unable to confirm at this time that bluez is optional.