Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356739 - net-wireless/bluez - /etc/init.d/bluetooth should `need hostname'
Summary: net-wireless/bluez - /etc/init.d/bluetooth should `need hostname'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-27 19:16 UTC by Johan Myreen
Modified: 2011-03-20 16:57 UTC (History)
4 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 Johan Myreen 2011-02-27 19:16:47 UTC
The /etc/init.d/bluetooth script should have "hostname" after "need" in the depend() function:

depend() {
  after coldplug
  need dbus localmount hostname
}

The host name may be needed to set the Bluetooth adapter name. See the Name setting in /etc/bluetooth/main.conf: "%h - substituted for hostname".


Reproducible: Always

Steps to Reproduce:
1. Start system with Bluetooth
2. Discover the adapter name using, for instance, a mobile phone
3.

Actual Results:  
The Bluetooth adapters show up as (none)-0, (none)-1, etc.

Expected Results:  
The Bluetooth adapters should have names like mygentoobox-0, mygentoobox-1, etc.
Comment 1 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2011-02-28 19:50:31 UTC
Please add your emerge --info as a comment to this bug report.
What package provides the bluetooth rc script?
Comment 2 Johan Myreen 2011-03-01 07:47:23 UTC
net-wireless/bluez provides /etc/init.d/bluetooth.
Comment 3 Pacho Ramos gentoo-dev 2011-03-20 16:57:15 UTC
+*bluez-4.90 (20 Mar 2011)
+
+  20 Mar 2011; Pacho Ramos <pacho@gentoo.org> +files/bluetooth-conf.d,
+  +files/conf.d-hidd, -files/4.31-as_needed.patch, -bluez-4.39-r2.ebuild,
+  -files/4.34-conditional_libsbc.patch,
+  -files/bluez-4.62-makefile_ipctest.patch, +bluez-4.90.ebuild,
+  -files/bluez-alsa_location.patch, files/bluetooth-init.d:
+  Version bump, remove old, bump to eapi4, don't install .c and .o files (bug
+  #356529 by Alec M.), init script needs hostname (bug #356739 by Johan
+  Myreen), libnl dep is no longer needed (bug #359105 by Yaroslav Isakov).
+