Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440504 - net-wireless/bluez-4.99: some elog messages should only be shown for the first install.
Summary: net-wireless/bluez-4.99: some elog messages should only be shown for the firs...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: first-time-messages
  Show dependency tree
 
Reported: 2012-10-31 10:59 UTC by poletti.marco
Modified: 2012-11-05 20:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 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 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