Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 440504

Summary: net-wireless/bluez-4.99: some elog messages should only be shown for the first install.
Product: Gentoo Linux Reporter: poletti.marco
Component: Current packagesAssignee: Mobile Herd (OBSOLETE) <mobile+disabled>
Status: RESOLVED NEEDINFO    
Severity: normal CC: pacho, pda
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 440214    

Description poletti.marco 2012-10-31 10:59:19 UTC
Disclaimer: this bug has been filed in a semi-automated manner.

When emerging the package net-wireless/bluez-4.99, the following elog messages are displayed:

 * If you want to use rfcomm as a normal user, you need to add the user
 * to the uucp group.
 * You will need to add bluetooth service to default runlevel
 * for getting your devices detected from startup without needing
 * to reconnect them. For that please run:
 * 'rc-update add bluetooth default'

Such messages should only be displayed when the package is a new install.
These situations can be checked in the ebuild as follows:

if ! has_version 'net-wireless/bluez'; then

See the tracker bug 440214 for more details.
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-10-31 12:43:40 UTC
The service part should probably check if it has been added to a runlevel and just dropped if bluetooth is supposed to be auto-started when a bluetooth device is detected ?

I have no opinion on the user/group stuff.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-11-03 06:28:48 UTC
Didn't bluez remove the udev rule file it shipped at upstream level and recommended using the init system again?

IIRC.
Comment 3 Pacho Ramos gentoo-dev 2012-11-05 20:00:55 UTC
the part related with adding service to boot is already shown only when needed:
        if [ "$(rc-config list default | grep bluetooth)" = "" ] ; then
                elog "You will need to add bluetooth service to default runlevel"
                elog "for getting your devices detected from startup without needing"
                elog "to reconnect them. For that please run:"
                elog "'rc-update add bluetooth default'"
        fi

Regarding the other message, it's inherited for a long time and I need some docs showing it's no longer needed (as I can't test it myself):
        if use consolekit; then
                elog "If you want to use rfcomm as a normal user, you need to add the user"
                elog "to the uucp group."
        else