Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131940 - kdebluetooth troubles because /usr/share/services is not readable
Summary: kdebluetooth troubles because /usr/share/services is not readable
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: Highest normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-01 11:03 UTC by Andrei Pozolotin
Modified: 2006-06-08 16:22 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 Andrei Pozolotin 2006-05-01 11:03:54 UTC
SYMPTOM:
when you click on kbluetoothd tray icon, you receive a msgbox "bluetooth:/ protocol not found" or "sdp:/ protocol not found"

PROBLEM:
kdebluetooth 1.0_beta1-r2 installs .protocol and .desktop files where kde-meta 3.5.2 can not find them

SOLUTION:
a)
copy files from (kdebluetooth 1.0_beta1-r2 location):
/usr/share/services
to the (kde-base/kde-meta 3.5.2 location)
/usr/kde/3.5/share/services
b)
run sycoca update:
sudo kbuildsycoca --global --noincremental


VERSION INFO:

emerge -s kde-meta kdebluetooth

*  kde-base/kde-meta
      Latest version available: 3.5.2
      Latest version installed: 3.5.2
      Size of files: 0 kB
      Homepage:      http://www.kde.org/
      Description:   kde - merge this to pull in all kde packages
      License:       GPL-2

*  net-wireless/kdebluetooth
      Latest version available: 1.0_beta1-r2
      Latest version installed: 1.0_beta1-r2
      Size of files: 800 kB
      Homepage:      http://kde-bluetooth.sourceforge.net/
      Description:   KDE Bluetooth Framework
      License:       GPL-2

emerge --info

portage 2.1_pre9-r5 (default-linux/x86/2006.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-suspend2-r8 i686)
=================================================================
System uname: 2.6.15-suspend2-r8 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.4.2
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apci arts audiofile avi berkdb bitmap-fonts bluetooth bzip2 cdr cli crypt ctype cups dba dri eds elibc_glibc emboss encode esd ethereal exif expat fam fastbuild foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal idn imlib irmc isdnlog java javascript jpeg kde kernel_linux lcms libg++ libwww lm_sensors mad memlimit mikmod mng motif mozilla mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png posix pppd python qt quicktime rdesktop readline reflection samba scanner sdl session simplexml slang soap sockets spell spl ssl tcltk tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev userland_GNU vorbis wifi xml xml2 xmms xorg xsl xv zlib input_devices_keyboard input_devices_mouse input_devices_evdev video_cards_nv video_cards_nvidia video_cards_vesa"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-05-01 17:21:44 UTC
Unless anyone is in a hurry, I'll take care of this in a few weeks.
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-01 21:50:36 UTC
Packages should _not_ install files in /usr/kde/*/ unless there are bigger problems (see the old amarok 1.3 ebuilds) like requirement to access aRTs database and provide plugins.

KDE is able to load data from /usr/share if it's set correctly.

Please try "echo ${KDEDIRS}" from a konsole, if it doesn't list /usr, then you have probably a broken setup, and you'd need to re-emerge kdelibs usually.
This generally is caused when removing arts from the system.
Comment 3 Andrei Pozolotin 2006-05-03 12:05:56 UTC
a)
result of "echo ${KDEDIRS}":
/usr

b)
this is fresh gentoo 2006.0 install 
with emerge kde-meta per instructions:
http://www.gentoo.org/doc/en/kde-config.xml

c)
also see this comment:
http://bugs.kde.org/show_bug.cgi?id=126578

thank you
Comment 4 Andrei Pozolotin 2006-05-05 14:23:27 UTC
additional info per comments #3 & #4 here: http://bugs.kde.org/show_bug.cgi?id=126578

kde-config --expandvars --install apps
/usr/kde/3.5/share/applnk
kde-config --expandvars --install data
/usr/kde/3.5/share/apps
kde-config --expandvars --install exe
/usr/kde/3.5/bin
kde-config --expandvars --install lib
/usr/kde/3.5/lib
kde-config --expandvars --install services
/usr/kde/3.5/share/services
kde-config --expandvars --install servicetypes
/usr/kde/3.5/share/servicetypes
kde-config --path apps
/home/a-pozolotin/.kde3.5/share/applnk/:/usr/share/applnk/:/usr/kde/3.5/share/applnk/
kde-config --path data
/home/a-pozolotin/.kde3.5/share/apps/:/usr/share/apps/:/usr/kde/3.5/share/apps/
kde-config --path exe
/home/a-pozolotin/.kde/bin/:/usr/bin/:/usr/kde/3.5/bin/
kde-config --path lib
/home/a-pozolotin/.kde/lib/:/usr/lib/:/usr/kde/3.5/lib/
kde-config --path services
/home/a-pozolotin/.kde3.5/share/services/:/usr/share/services/:/usr/kde/3.5/share/services/
kde-config --path servicetypes
/home/a-pozolotin/.kde3.5/share/servicetypes/:/usr/share/servicetypes/:/usr/kde/3.5/share/servicetypes/
kde-config --libsuffix
Comment 5 Tim Weber 2006-05-14 08:35:41 UTC
I can confirm this. System details below.

The interesting thing is, /usr/share/services is only readable by root (mode 0700), is this really correct?

scy@bijaz ~ $ echo $KDEDIRS; ls -ld /usr/share/services/; emerge -pv kdebluetooth kde-meta; emerge --info
/usr
drwx------ 3 root root 4096 14. Mai 17:24 /usr/share/services/

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-wireless/kdebluetooth-1.0_beta1-r2  USE="arts irmc xinerama -debug -xmms" 0 kB
[ebuild   R   ] kde-base/kde-meta-3.5.2  USE="-accessibility" 0 kB

Total size of downloads: 0 kB
Portage 2.1_pre10-r5 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r2, 2.6.16-suspend2-r5 i686)
=================================================================
System uname: 2.6.16-suspend2-r5 i686 Genuine Intel(R) CPU           L2400  @ 1.66GHz
Gentoo Base System version 1.12.0_pre19
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=i686 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=i686 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LC_ALL="de_DE.utf-8"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://aloha.scytale.de/aloha-portage/"
USE="x86 X aac acpi alsa apache2 apm arts avi berkdb bitmap-fonts bluetooth bzip2 cli cpudetection crypt cups dga dri dvd dvdread eds emboss encode esd exif firefox foomaticdb fortran gdbm gif gpm gstreamer gtk gtk2 i8x0 imlib ipv6 irmc isdnlog jpeg kde kdeenablefinal kipi libcaca libg++ libwww mad mikmod mmx mmxext motif mp3 mpeg ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre pdflib perl png pppd python qt quicktime readline real reflection rtc samba sdl session spell spl sqlite sse ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode userlocales vorbis win32codecs xinerama xml xorg xscreensaver xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_de userland_GNU video_cards_i810 video_cards_nv video_cards_radeon video_cards_vesa video_cards_via"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Tim Weber 2006-05-15 13:20:59 UTC
Okay, setting the permissions on /usr/share/services to 0755, running `kbuildsycoca --global --noincremental` and restarting KDE did the trick for me. I'm not quite sure which ebuild set the permissions on that directory, according to my understanding of the following equery output it's been kdebluetooth's fault. I don't know much about ebuilds and therefore reading the ebuild's source in order to find the error didn't help.

scy@bijaz ~ $ equery b /usr/share/services
[ Searching for file(s) /usr/share/services in *... ]
net-wireless/kdebluetooth-1.0_beta1-r2 (/usr/share/services)
Comment 7 Gregorio Guidi (RETIRED) gentoo-dev 2006-06-01 12:31:42 UTC
Maybe it was set by an old package. To have a confirm, you can try to unmerge kdebluetooth, make sure /usr/share/services does not exist and reemerge it.
Comment 8 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-06-08 16:22:22 UTC
For what I can see in your ACCEPT_KEYWORDS is set to x86 instead of ~x86. If you did
ACCEPT_KEYWORDS="~x86" emerge kde-bluetooth
then know that the error that you are experiencing is due to that, because of the fact that you forced the environment to merge an ~x86 ebuild onto an x86 system.

If you are running a stable x86 system, please do _not_ merge the ~x86 version, as it might not work, but merge the stable version instead.

The ~x86 version of kdebluetooth should not be forced to your environment, unless your environment is running an unstable ~x86 as well.

In any case, if the above is not correct, either do as stated in Comment #7 by unmerging and emerging back kdebluetooth or simply emerge any kde-related ebuild.