WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: TC 5 blueman compiled for wrong libraries  (Read 3989 times)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
TC 5 blueman compiled for wrong libraries
« on: February 15, 2015, 03:23:52 PM »
Core 5.4 and blueman.
blueman-applet is looking for libnotify.so.1.
Libnotify is libnotify.so.4

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: TC 5 blueman compiled for wrong libraries
« Reply #1 on: February 16, 2015, 09:20:21 AM »
blueman recompiled and posted for tc-5.x - I couldn't get it to work though...

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: TC 5 blueman compiled for wrong libraries
« Reply #2 on: February 16, 2015, 09:44:56 AM »
It looks like notify-python.tcz is the culprit.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: TC 5 blueman compiled for wrong libraries
« Reply #3 on: February 16, 2015, 10:10:27 AM »
Yeah - I was compiling on tc-6.x so I thought the problem was that pygobject needs libffi5. pygobject-2* will not compile with the gobject-introspection in tc-6.x and pygobject-3* will not work with blueman.

It seem that notify-python-0.1.1 will not compile with anything newer than libnotify-0.5 (the tc-5.x version is 0.7.5) - maybe you could package up libnotify from tc-4.x as libnotify5 and try that?
« Last Edit: February 16, 2015, 10:15:19 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: TC 5 blueman compiled for wrong libraries
« Reply #4 on: February 18, 2015, 02:59:10 AM »
I know blueman was working for me in tc-4.x - I just tried to double-check, but it seems my laptop is too recent to boot tc-4.x  :(

Blueman fails in the same way on both tc-5.x/6.x - from the look of it the problem could be either dbus or pulseaudio.

Until recently blueman was long dead, but it seems to be re-starting in git aimed at gtk3/bluez5 - I'll take a look.

Code: [Select]
Load (/usr/local/lib/python2.7/site-packages/blueman/main/PluginManager.py:68)
['Services', 'PulseAudioProfile']
ERROR:dbus.proxies:Introspect error on org.blueman.Applet:/: dbus.exceptions.DBu.ception: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/local/bin/blueman-applet exited with status 1
Traceback (most recent call last):
  File "/usr/local/bin/blueman-manager", line 301, in <module>
    Blueman()
  File "/usr/local/bin/blueman-manager", line 64, in __init__
    self.Plugins.Load()
  File "/usr/local/lib/python2.7/site-packages/blueman/main/PluginManager.py", line 98, in Load
    __import__(self.module_path.__name__ + ".%s" % plugin, None, None, [])
  File "/usr/local/lib/python2.7/site-packages/blueman/plugins/manager/PulseAudioProfile.py", line 30, in <module>
    if not "PulseAudio" in a.QueryPlugins():
  File "/usr/local/lib/python2.7/site-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/local/lib/python2.7/site-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/local/lib/python2.7/site-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBu.ception: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/local/bin/blueman-applet exited with status 1
_________
save (/usr/local/lib/python2.7/site-packages/blueman/plugins/config/File.py:117)
Saving config
Exception AttributeError: "'NoneType' object has no attribute 'Bus'" in <bound method File.__del__ of <File object at 0xb62ca7d4 (blueman+plugins+ConfigPlugin+ConfigPlugin at 0x9541560)>> ignored

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: TC 5 blueman compiled for wrong libraries
« Reply #5 on: February 18, 2015, 05:27:40 AM »
I compiled blueman-1.99 from git and posted to the tc-6.x repo.

It scans and finds bluetooth devices, but segfaults when I try to pair.

@gerald_clark if you're OK with it, I'll remove blueman from the tc-5.x repo as I don't believe it's (easily) fixable - just let me know.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: TC 5 blueman compiled for wrong libraries
« Reply #6 on: February 18, 2015, 08:41:13 AM »
It's OK with me. 

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: TC 5 blueman compiled for wrong libraries
« Reply #7 on: February 18, 2015, 08:45:48 AM »
I found libnotify still depended on libffi5 - recompiled version now posted in tc-6.x repo.

..and blueman will now pair with bluetooth headphones and (after setting the headphones to "audio sink" in blueman and using pavucontrol to swap the audio output to the headphones) I can use xmms-pulse to play music to the headphones.

However, when trying to pair with an iPhone or a TV - where blueman generates a random pin to be entered on the other device - blueman still segfaults.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: TC 5 blueman compiled for wrong libraries
« Reply #8 on: February 18, 2015, 08:50:11 AM »
It's OK with me.

blueman removed from tc-5.x repo

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: TC 5 blueman compiled for wrong libraries
« Reply #9 on: February 18, 2015, 11:58:36 AM »
I now have music playing to my Phillips Bluetooth stereo through Core 6.  Thanks.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: TC 5 blueman compiled for wrong libraries
« Reply #10 on: February 18, 2015, 11:21:14 PM »
Great  :)

The blueman site mentions notification-daemon as a runtime dep, but I haven't seen any added functionality when it's running...

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: TC 5 blueman compiled for wrong libraries
« Reply #11 on: February 19, 2015, 08:28:28 AM »
Perhaps it is used to popup a dialog when a file transfer to the computer is requested.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: TC 5 blueman compiled for wrong libraries
« Reply #12 on: April 03, 2015, 08:33:11 AM »
In fact blueman requires notification-daemon to pair with an intelligent device (i.e. laptop, iPhone, etc) as it pops-up a message about the pairing pin code and asks for confirmation to go ahead.