org.bluez.obex.service contains unresolved '@libexecdir@'

Bug #1945887 reported by Markus Ueberall
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bluez (Ubuntu)
Fix Released
Medium
Daniel van Vugt

Bug Description

After upgrading a machine from Ubuntu Bionic to Ubuntu Focal yesterday, the following error message showed up in the syslog:

Oct 2 23:14:52 desktop01 dbus-daemon[1764]: [session uid=0 pid=1760] Activated service 'org.bluez.obex' failed: Failed to execute program org.bluez.obex: No such file or directory

Upon inspection, this was due to the fact that the service definition contained the line 'Exec=@libexecdir@/obexd' which could not be resolved (this placeholder is supposedly to be replaced at build time).

Replacing '@libexecdir@' with '/usr/lib/bluetooth' resolved this (together with 'systemctl --user daemon-reload; systemctl --user restart obex').

Note that this problem should be part of *all* current versions of the bluez[-obexd] package, regardless of the used architecture (including Focal, Impish):

% wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez-obexd_5.60-0ubuntu2_amd64.deb
[...]
Länge: 217906 (213K) [application/x-debian-package]
Wird in »bluez-obexd_5.60-0ubuntu2_amd64.deb« gespeichert.
[...]
2021-10-03 07:40:36 (1,53 MB/s) - »bluez-obexd_5.60-0ubuntu2_amd64.deb« gespeichert [217906/217906]

% dpkg-deb -R bluez-obexd_5.60-0ubuntu2_amd64.deb impish
% grep '@' impish/usr/share/dbus-1/services/org.bluez.obex.service
Exec=@libexecdir@/obexd
% wget https://launchpad.net/ubuntu/+archive/primary/+files/bluez-obexd_5.53-0ubuntu3.3_arm64.deb
[...]
Länge: 160832 (157K) [application/x-debian-package]
Wird in »bluez-obexd_5.53-0ubuntu3.3_arm64.deb« gespeichert.
[...]
2021-10-03 07:43:13 (2,06 MB/s) - »bluez-obexd_5.53-0ubuntu3.3_arm64.deb« gespeichert [160832/160832]

% dpkg-deb -R bluez-obexd_5.53-0ubuntu3.3_arm64.deb focal
% grep '@' focal/usr/share/dbus-1/services/org.bluez.obex.service
Exec=@libexecdir@/obexd
%

# lsb_release -rd
Description: Ubuntu 20.04.3 LTS
Release: 20.04
# apt-cache policy bluez-obexd
bluez-obexd:
[...]
     5.53-0ubuntu3.3 500
        500 http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
[...]

Tags: focal impish
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Yes the bug seems to exist on impish in:

  /usr/share/dbus-1/services/org.bluez.obex.service

Looks like it might originate from this 2013 patch:

  patches/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch

Perhaps it is meant to be @pkglibexecdir@ ?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bluez (Ubuntu):
status: New → Confirmed
Changed in bluez (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Looks like Debian already fixed it. And their patch names are different :P

Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in bluez (Ubuntu):
status: Triaged → Fix Committed
assignee: nobody → Daniel van Vugt (vanvugt)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bluez - 5.62-0ubuntu1

---------------
bluez (5.62-0ubuntu1) jammy; urgency=medium

  * New upstream release 5.62 (LP: #1941708):
    - Fix issue with handling truncation when loading LTKs.
    - Fix issue with accepting Exchange MTU on EATT bearer.
    - Fix issue with clearing DeviceLost timers on power down.
    - Fix issue with AVCTP browsing channel and missing ERTM.
    - Fix issue with AVDTP and local SEID pool for each adapter.
    - Add support for BR/EDR and LE connection failure reasons.
  * Drop patch git_glibc234_buildfix.patch as it is included in 5.62.
  * New upstream release 5.61:
    - Fix issue with A2DP while waiting for command response.
    - Fix issue with A2DP when SetConfiguration fails.
    - Fix issue with device removal handling.
    - Fix issue with storing discoverable setting.
    - Add support for Central Address Resolution characteristic.
    - Add support for admin policy plugin.
  * Merges from Debian 5.61-1:
    - Change debian/watch to use HTTPS.
    - Add to debian/README.Debian
    - Replace 0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
      with allow-using-obexd-without-systemd-in-the-user-sessio.patch which
      also fixes LP: #1945887.
    - Rename 0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
      to obex-Use-GLib-helper-function-to-manipulate-paths.patch
    - Rename 0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch
      to work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch although
      Ubuntu still carries an additional fix that's not in the Debian branch.

 -- Daniel van Vugt <email address hidden> Fri, 15 Oct 2021 15:18:43 +0800

Changed in bluez (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.