GNU bug report logs -
#41025
blueman does not start
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 41025 in the body.
You can then email your comments to 41025 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Sat, 02 May 2020 13:40:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Pierre Neidhardt <mail <at> ambrevar.xyz>
:
New bug report received and forwarded. Copy sent to
bug-guix <at> gnu.org
.
(Sat, 02 May 2020 13:40:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi!
It seems that the blueman package is missing a wrapper unless I'm
missing something:
--8<---------------cut here---------------start------------->8---
> blueman-tray
Traceback (most recent call last):
File "/gnu/store/yhbnsjay66w7kky1i7ldki2ljcc1ws9i-blueman-2.1.2/bin/.blueman-tray-real", line 13, in <module>
from blueman.Functions import set_proc_title, create_parser, create_logger
ModuleNotFoundError: No module named 'blueman'
> blueman-applet
Traceback (most recent call last):
File "/gnu/store/yhbnsjay66w7kky1i7ldki2ljcc1ws9i-blueman-2.1.2/bin/.blueman-applet-real", line 15, in <module>
from blueman.Functions import create_logger, create_parser, set_proc_title
ModuleNotFoundError: No module named 'blueman'
> blueman-assistant
Traceback (most recent call last):
File "/gnu/store/yhbnsjay66w7kky1i7ldki2ljcc1ws9i-blueman-2.1.2/bin/.blueman-assistant-real", line 9, in <module>
import gi
ModuleNotFoundError: No module named 'gi'
> blueman-services
Traceback (most recent call last):
File "/gnu/store/yhbnsjay66w7kky1i7ldki2ljcc1ws9i-blueman-2.1.2/bin/.blueman-services-real", line 8, in <module>
import gi
ModuleNotFoundError: No module named 'gi'
--8<---------------cut here---------------end--------------->8---
--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Sat, 02 May 2020 13:58:01 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Pierre!
> It seems that the blueman package is missing a wrapper unless I'm
> missing something:
When I packaged it, all I got was error regarding dbus. But now it seems there
are more errors. I am wondering if it has to do with updates in gtk and/or glib
and/or gobject-introspection.
Also, I found out that python references are not getting patched during
the build. I have made a patch to fix it, which I attached with this email.
Regards,
RG.
[0001-gnu-blueman-Fix-python-references.patch (text/x-patch, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Sat, 02 May 2020 18:46:01 GMT)
Full text and
rfc822 format available.
Message #11 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thanks! Sadly your patch does not fix the issue for me.
You can reproduce with
--8<---------------cut here---------------start------------->8---
./pre-inst-env guix environment --pure --ad-hoc blueman -- blueman-tray
--8<---------------cut here---------------end--------------->8---
I had a quick look at the package definition: it's a
glib-or-gtk-build-system but the package is in python, so you need to
set the PYTHONPATH manually I think. Look at the other GNOME package
written in Python, my guess is that it's the same thing.
--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Sun, 03 May 2020 15:26:02 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Pierre!
> Thanks! Sadly your patch does not fix the issue for me.
>
> You can reproduce with
>
> --8<---------------cut here---------------start------------->8---
> ./pre-inst-env guix environment --pure --ad-hoc blueman -- blueman-tray
> --8<---------------cut here---------------end--------------->8---
>
> I had a quick look at the package definition: it's a
> glib-or-gtk-build-system but the package is in python, so you need to
> set the PYTHONPATH manually I think. Look at the other GNOME package
> written in Python, my guess is that it's the same thing.
Thanks! I was able to fix "gi" error. But "No module 'blueman', I could not
fix. Any ideas?
I have attached a new patch.
Regards,
RG.
[0004-gnu-blueman-Test-patch.patch (text/x-patch, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Sun, 03 May 2020 16:14:02 GMT)
Full text and
rfc822 format available.
Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Suggestion: instead of adding one phase per wrapper, use a single phase,
loop over the executables to generate the wrapper. This should shorten
your code.
I think the "gi" issue is because "(getenv ...)" does not include the
output "out". I'm guessing you need to add (string-append out
"/lib/python...blueman...") to the PYTHONPATH.
Cheers!
--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Mon, 04 May 2020 03:20:02 GMT)
Full text and
rfc822 format available.
Message #20 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Pierre!
> Suggestion: instead of adding one phase per wrapper, use a single phase,
> loop over the executables to generate the wrapper. This should shorten
> your code.
>
> I think the "gi" issue is because "(getenv ...)" does not include the
> output "out". I'm guessing you need to add (string-append out
> "/lib/python...blueman...") to the PYTHONPATH.
I tried using (string-append (assoc-ref outputs "out")
"/lib/python3.7/site-packages/blueman"); instead of (getenv PYTHONPATH). I got
the same error.
Regards,
RG.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Mon, 04 May 2020 08:49:01 GMT)
Full text and
rfc822 format available.
Message #23 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Sorry if I misled you with the ellipsis. You need to add
/lib/python3.7/site-packages without the "blueman" part.
With the definition below I can start blueman-services. But all
programs report that blueman-applet fails.
Indeed, blueman-applet fails with
--8<---------------cut here---------------start------------->8---
blueman-applet version 2.1.2 starting
blueman-applet 10.41.17 ERROR PluginManager:90 load_plugin: Unable to load plugin module NMPANSupport
Traceback (most recent call last):
File "/gnu/store/1f9x9hwfjpkq4h79dwsi06m3zrzdm8fp-blueman-2.1.2/lib/python3.7/site-packages/blueman/main/NetworkManager.py", line 6, in <module>
gi.require_version('NM', '1.0')
File "/gnu/store/y4qwsw06ynvw3fjk2lrspp89mfmjzj5i-python-pygobject-3.28.3/lib/python3.7/site-packages/gi/__init__.py", line 130, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace NM not available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/gnu/store/1f9x9hwfjpkq4h79dwsi06m3zrzdm8fp-blueman-2.1.2/lib/python3.7/site-packages/blueman/main/PluginManager.py", line 88, in load_plugin
importlib.import_module(self.module_path.__name__ + ".%s" % plugin)
File "/gnu/store/c0ysvb6s92kwwnmkgdhnspllxvd3f231-python-3.7.4/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/gnu/store/1f9x9hwfjpkq4h79dwsi06m3zrzdm8fp-blueman-2.1.2/lib/python3.7/site-packages/blueman/plugins/applet/NMPANSupport.py", line 3, in <module>
from blueman.main.NetworkManager import NMPANConnection
File "/gnu/store/1f9x9hwfjpkq4h79dwsi06m3zrzdm8fp-blueman-2.1.2/lib/python3.7/site-packages/blueman/main/NetworkManager.py", line 8, in <module>
raise ImportError('NM python bindings not found.')
ImportError: NM python bindings not found.
blueman-applet 10.41.17 ERROR PluginManager:90 load_plugin: Unable to load plugin module NMDUNSupport
Traceback (most recent call last):
File "/gnu/store/1f9x9hwfjpkq4h79dwsi06m3zrzdm8fp-blueman-2.1.2/lib/python3.7/site-packages/blueman/main/NetworkManager.py", line 6, in <module>
gi.require_version('NM', '1.0')
File "/gnu/store/y4qwsw06ynvw3fjk2lrspp89mfmjzj5i-python-pygobject-3.28.3/lib/python3.7/site-packages/gi/__init__.py", line 130, in require_version
raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace NM not available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/gnu/store/1f9x9hwfjpkq4h79dwsi06m3zrzdm8fp-blueman-2.1.2/lib/python3.7/site-packages/blueman/main/PluginManager.py", line 88, in load_plugin
importlib.import_module(self.module_path.__name__ + ".%s" % plugin)
File "/gnu/store/c0ysvb6s92kwwnmkgdhnspllxvd3f231-python-3.7.4/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/gnu/store/1f9x9hwfjpkq4h79dwsi06m3zrzdm8fp-blueman-2.1.2/lib/python3.7/site-packages/blueman/plugins/applet/NMDUNSupport.py", line 3, in <module>
from blueman.main.NetworkManager import NMDUNConnection
File "/gnu/store/1f9x9hwfjpkq4h79dwsi06m3zrzdm8fp-blueman-2.1.2/lib/python3.7/site-packages/blueman/main/NetworkManager.py", line 8, in <module>
raise ImportError('NM python bindings not found.')
ImportError: NM python bindings not found.
Traceback (most recent call last):
File "/gnu/store/1f9x9hwfjpkq4h79dwsi06m3zrzdm8fp-blueman-2.1.2/lib/python3.7/site-packages/blueman/plugins/applet/StatusIcon.py", line 116, in _on_plugins_changed
launch('blueman-tray', icon_name='blueman', sn=False)
File "/gnu/store/1f9x9hwfjpkq4h79dwsi06m3zrzdm8fp-blueman-2.1.2/lib/python3.7/site-packages/blueman/Functions.py", line 137, in launch
launched = appinfo.launch(files, context)
GLib.Error: g-exec-error-quark: Failed to execute child process “gio-launch-desktop” (No such file or directory) (8)
blueman-applet 10.41.17 WARNING DiscvManager:109 update_menuitems: warning: Adapter is None
killed
--8<---------------cut here---------------end--------------->8---
It seems that network-manager bindings for python are missing.
We may need to package this: https://github.com/seveas/python-networkmanager
Maybe I'm not starting it the right way.
Have you got blueman to work on your system? Are you using a foreign
distribution?
New package definition:
--8<---------------cut here---------------start------------->8---
(define-public blueman
(package
(name "blueman")
(version "2.1.2")
(source
(origin
(method url-fetch)
(uri
(string-append "https://github.com/blueman-project/blueman/releases/"
"download/2.1.2/blueman-2.1.2.tar.gz"))
(sha256
(base32 "0wamxdw36c8i3aqwmja5q70fajqwd7inpkvlpkldd54wdxbcd38d"))))
(build-system glib-or-gtk-build-system)
(arguments
`(#:configure-flags
(list
"--enable-polkit"
"--disable-appindicator" ; Deprecated
"--with-systemdsystemunitdir=no" ; Not required
"--with-systemduserunitdir=no") ; Not required
#:phases
(modify-phases %standard-phases
;; Python references are not being patched in patch-phase of build;
;; despite using python-wrapper as input. So patching them manually.
(add-after 'unpack 'patch-python-references
(lambda* (#:key inputs #:allow-other-keys)
(for-each
(lambda (name)
(substitute* (format #f "apps/blueman-~a.in" name)
(("@PYTHON@") (string-append (assoc-ref inputs "python")
"/bin/python3.7"))))
'("adapters" "applet" "assistant" "manager" "mechanism" "report"
"rfcomm-watcher" "sendto" "services" "tray"))
#t))
(add-after 'glib-or-gtk-wrap 'wrap-blueman
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin/blueman-"))
(lib (string-append out "/lib/python3.7/site-packages/")))
(for-each
(lambda (program)
(pk program)
(pk (string-append bin program))
(wrap-program (string-append bin program)
`("PYTHONPATH" = (,(getenv "PYTHONPATH")
,lib))
`("GI_TYPELIB_PATH" = (,(getenv "GI_TYPELIB_PATH")))))
'("adapters" "applet" "assistant" "manager" "report"
"sendto" "services" "tray"))
#t))))))
(native-inputs
`(("cython" ,python-cython)
("glib:bin" ,glib "bin")
("gtk+:bin" ,gtk+ "bin")
("intltool" ,intltool)
("libtool" ,libtool)
("pkg-config" ,pkg-config)))
(inputs
`(("adwaita-icon-theme" ,adwaita-icon-theme)
("bluez" ,bluez)
("dbus" ,dbus)
("gdkpixbuf" ,gdk-pixbuf)
("glib" ,glib)
("gtk+" ,gtk+)
("iproute2" ,iproute)
("net-tools" ,net-tools)
("pango" ,pango)
("polkit" ,polkit)
("pulseaudio" ,pulseaudio)
("pycairo" ,python-pycairo)
("pygobject" ,python-pygobject)
("python" ,python-wrapper)
("libnm" ,libnma)))
(synopsis "GTK+ Bluetooth manager")
(description "Blueman is a Bluetooth management utility using the Bluez
D-Bus backend. It is designed to be easy to use for most common Bluetooth
tasks.")
(home-page "https://github.com/blueman-project/blueman")
(license license:gpl3+)))
--8<---------------cut here---------------end--------------->8---
--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Mon, 04 May 2020 09:13:02 GMT)
Full text and
rfc822 format available.
Message #26 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
We should not hardcode the python version but instead use something like
--8<---------------cut here---------------start------------->8---
(string-append dir "/lib/python"
,(version-major+minor
(package-version python))
"/site-packages")
--8<---------------cut here---------------end--------------->8---
--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Sat, 09 May 2020 06:30:02 GMT)
Full text and
rfc822 format available.
Message #29 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Pierre!
Please find the new patch attached with this email. It fixes the
discussed issues. Now, blueman just needs "dbus-launch", which I think
provided by %desktop-services.
If you could push this patch, that would be great.
Thank you!
Regards,
RG.
[0001-gnu-blueman-Update-package-definition.patch (text/x-patch, attachment)]
[0xAE6EF3046D6F7B57.asc (application/pgp-keys, attachment)]
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Sat, 09 May 2020 09:14:02 GMT)
Full text and
rfc822 format available.
Message #32 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Thanks, looking good!
- Could you remove the `pk' lines?
- Looks like pulseaudio is missing for blueman-manager:
--8<---------------cut here---------------start------------->8---
> /gnu/store/6s8d3di9k4vwxwjvv45rznam6a0l3vfn-blueman-2.1.3/bin/blueman-manager
blueman-manager 11.06.01 ERROR PluginManager:90 load_plugin: Unable to load plugin module PulseAudioProfile
Traceback (most recent call last):
File "/gnu/store/6s8d3di9k4vwxwjvv45rznam6a0l3vfn-blueman-2.1.3/lib/python3.7/site-packages/blueman/main/PulseAudioUtils.py", line 10, in <module>
libpulse = CDLL("libpulse.so.0")
File "/gnu/store/c0ysvb6s92kwwnmkgdhnspllxvd3f231-python-3.7.4/lib/python3.7/ctypes/__init__.py", line 364, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libpulse.so.0: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/gnu/store/6s8d3di9k4vwxwjvv45rznam6a0l3vfn-blueman-2.1.3/lib/python3.7/site-packages/blueman/main/PluginManager.py", line 88, in load_plugin
importlib.import_module(self.module_path.__name__ + ".%s" % plugin)
File "/gnu/store/c0ysvb6s92kwwnmkgdhnspllxvd3f231-python-3.7.4/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/gnu/store/6s8d3di9k4vwxwjvv45rznam6a0l3vfn-blueman-2.1.3/lib/python3.7/site-packages/blueman/plugins/manager/PulseAudioProfile.py", line 5, in <module>
from blueman.main.PulseAudioUtils import PulseAudioUtils, EventType
File "/gnu/store/6s8d3di9k4vwxwjvv45rznam6a0l3vfn-blueman-2.1.3/lib/python3.7/site-packages/blueman/main/PulseAudioUtils.py", line 13, in <module>
raise ImportError("Could not load pulseaudio shared library")
ImportError: Could not load pulseaudio shared library
blueman-manager version 2.1.3 starting
--8<---------------cut here---------------end--------------->8---
--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Sat, 09 May 2020 21:52:01 GMT)
Full text and
rfc822 format available.
Message #35 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Pierre!
> Thanks, looking good!
>
> - Could you remove the `pk' lines?
> - Looks like pulseaudio is missing for blueman-manager:
Please find the revised patch attached with this email.
Regards,
RG.
[0001-gnu-blueman-Update-package-definition.patch (text/x-patch, attachment)]
[0xAE6EF3046D6F7B57.asc (application/pgp-keys, attachment)]
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Sat, 09 May 2020 22:05:02 GMT)
Full text and
rfc822 format available.
Message #38 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Pierre!
>> Thanks, looking good!
>>
>> - Could you remove the `pk' lines?
>> - Looks like pulseaudio is missing for blueman-manager:
>
> Please find the revised patch attached with this email.
Sorry, I sent the wrong patch. I have attached the correct one with this
email. I hope this patch does not have any blocker for merging. :-)
Regards,
RG.
[blueman-revised.patch (text/x-patch, attachment)]
[0xAE6EF3046D6F7B57.asc (application/pgp-keys, attachment)]
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Sun, 10 May 2020 09:29:01 GMT)
Full text and
rfc822 format available.
Message #41 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Sorry to disappoint :p Sadly this patch does not work yet ;)
- You've hardcoded the python version (3.7) while you should get it
dynamically from the one you are using.
You can try using something like
--8<---------------cut here---------------start------------->8---
,(version-major+minor (package-version python))
--8<---------------cut here---------------end--------------->8---
- You've hardcoded paths to ~/.guix-profile which should be avoided
because profiles can be anywhere.
--8<---------------cut here---------------start------------->8---
+ (substitute*
+ '("apps/blueman-mechanism.in" "blueman/Functions.py")
+ (("/usr/bin:/bin:/usr/sbin:/sbin")
+ (string-append
+ "~/.guix-profile/bin:"
+ "/run/current-system/profile/bin:"
+ "~/.guix-profile/sbin:"
+ "/run/current-system/profile/sbin"))
+ ((":/sbin:/usr/sbin")
+ (string-append
+ ":/run/current-system/profile/sbin:"
+ "~/.guix-profile/sbin")))
--8<---------------cut here---------------end--------------->8---
I think this should be replace by the Python equivalent of `(getenv "PATH")`.
- In the following comment, the ';' should be a colon. "patching"
should probably be something like "we patch".
--8<---------------cut here---------------start------------->8---
+ ;; Python references are not being patched in patch-phase of build;
+ ;; despite using python-wrapper as input. So patching them manually.
--8<---------------cut here---------------end--------------->8---
Stay put, almost there! :)
--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Sun, 10 May 2020 21:30:02 GMT)
Full text and
rfc822 format available.
Message #44 received at 41025 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Raghav Gururajan <raghavgururajan <at> disroot.org> writes:
> + ;; Prevent the autogen.sh script to carry out the configure
> + ;; script, which has not yet been patched to replace /bin/sh.
> + (add-before 'bootstrap 'setenv
> + (lambda _
> + (setenv "NOCONFIGURE" "TRUE")
> + #t))
This phase is no longer necessary after the recent 'core-updates' merge.
> + ;; PATH is hard-coded for FHS directories.
> + ;; Patch it to PATH used by Guix.
> + (add-after 'patch-python-references 'patch-os-path
> + (lambda _
> + (substitute*
> + '("apps/blueman-mechanism.in" "blueman/Functions.py")
> + (("/usr/bin:/bin:/usr/sbin:/sbin")
> + (string-append
> + "~/.guix-profile/bin:"
> + "/run/current-system/profile/bin:"
> + "~/.guix-profile/sbin:"
> + "/run/current-system/profile/sbin"))
> + ((":/sbin:/usr/sbin")
> + (string-append
> + ":/run/current-system/profile/sbin:"
> + "~/.guix-profile/sbin")))
> + #t))
These paths are "impure": the contents will differ from system to
system, and are also unavailable in e.g. 'guix environment -container'.
It might be better to patch these directories to something nonsensical
like "/no-such-path": that ensures we catch any missing references.
That's not always feasible though, but hopefully works for this
package.
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Mon, 11 May 2020 10:07:02 GMT)
Full text and
rfc822 format available.
Message #47 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Pierre!
> Sorry to disappoint :p Sadly this patch does not work yet ;)
> Stay put, almost there! :)
No worries! I have attached updated patch.
No all it needs is "dbus-launch" and "Blueman.Mechanism.service". The
former should be provided by (dbus-service). For the latter, the service
should be run at system-level. So we may need to create a service for
that by extending dbus-root-service. Also, I think it would be good to
add this service as an option to bluetooth-service-type. Like an option
"blueman? #t|#f". When its true, the bluetooth service adds and enables
the blueman-dbus-service. I do not know how to work with services. Help?
Thank you!
Regards,
RG.
[0001-gnu-blueman-Update-package-definition.patch (text/x-patch, attachment)]
[0xAE6EF3046D6F7B57.asc (application/pgp-keys, attachment)]
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Mon, 11 May 2020 10:08:01 GMT)
Full text and
rfc822 format available.
Message #50 received at 41025 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Marius!
> This phase is no longer necessary after the recent 'core-updates' merge.
I don't know, when I tried it did not work.
> These paths are "impure": the contents will differ from system to
> system, and are also unavailable in e.g. 'guix environment -container'.
> It might be better to patch these directories to something nonsensical
> like "/no-such-path": that ensures we catch any missing references.
>
> That's not always feasible though, but hopefully works for this
> package.
I see. Thanks :-)
Regards,
RG.
[0xAE6EF3046D6F7B57.asc (application/pgp-keys, attachment)]
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Thu, 14 May 2020 17:17:01 GMT)
Full text and
rfc822 format available.
Message #53 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I've pushed your latest patch here:
c5a9b16dbdc8849560fb43095e090ba0952277b6.
The only change I've done beside indentation is patching the scripts in libexec/.
Thanks for your patience!
--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]
bug closed, send any further explanations to
41025 <at> debbugs.gnu.org and Pierre Neidhardt <mail <at> ambrevar.xyz>
Request was from
Pierre Neidhardt <mail <at> ambrevar.xyz>
to
control <at> debbugs.gnu.org
.
(Thu, 14 May 2020 17:17:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Thu, 14 May 2020 23:39:01 GMT)
Full text and
rfc822 format available.
Message #58 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Pierre!
> I've pushed your latest patch here:
> c5a9b16dbdc8849560fb43095e090ba0952277b6.
>
> The only change I've done beside indentation is patching the scripts in libexec/.
>
> Thanks for your patience!
Thank you!
Do you still get the following error, while starting blueman-manager or
blueman-applet?
Failed to apply network settings
You might not be able to connect to the Bluetooth network via this machine
Exception
g-dbus-error-quark:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.blueman.Mechanism was not provided by any .service files
Regards,
RG.
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Fri, 15 May 2020 00:58:02 GMT)
Full text and
rfc822 format available.
Message #61 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi Pierre!
>> I've pushed your latest patch here:
>> c5a9b16dbdc8849560fb43095e090ba0952277b6.
>>
>> The only change I've done beside indentation is patching the scripts in libexec/.
>>
>> Thanks for your patience!
>
> Thank you!
>
> Do you still get the following error, while starting blueman-manager or
> blueman-applet?
>
> Failed to apply network settings
> You might not be able to connect to the Bluetooth network via this machine
> Exception
> g-dbus-error-quark:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
> org.blueman.Mechanism was not provided by any .service files
Also, please find the attached patch to enable appindicator in blueman.
Regards,
RG.
[0001-gnu-blueman-Enable-AppIndicator.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, attachment)]
Information forwarded
to
bug-guix <at> gnu.org
:
bug#41025
; Package
guix
.
(Fri, 15 May 2020 09:53:02 GMT)
Full text and
rfc822 format available.
Message #64 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Pushed as 729cfbdd07f95e60a44dfcdccdbda6696b265b5d.
--
Pierre Neidhardt
https://ambrevar.xyz/
[signature.asc (application/pgp-signature, inline)]
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 12 Jun 2020 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 91 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.