Merge ~valentin.david/snappy-hwe-snaps:valentindavid/core22 into ~snappy-hwe-team/snappy-hwe-snaps/+git/bluez:snap-22

Proposed by Valentin David
Status: Merged
Approved by: Alfonso Sanchez-Beato
Approved revision: 248c79669e11e406556d7d6f7583f30f0bf3c61b
Merged at revision: 5554b6e9c2c2011972731b1554b29ad347d87e79
Proposed branch: ~valentin.david/snappy-hwe-snaps:valentindavid/core22
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/bluez:snap-22
Diff against target: 1037 lines (+13/-66)
8 files modified
dev/null (+0/-31)
docs/metadata.yaml (+0/-2)
docs/reference/available-commands.md (+1/-3)
docs/reference/introduction.md (+0/-1)
run-tests.sh (+1/-1)
snapcraft.yaml (+8/-24)
spread.yaml (+3/-3)
tests/main/aliases/task.yaml (+0/-1)
Reviewer Review Type Date Requested Status
Alfonso Sanchez-Beato Approve
System Enablement Bot continuous-integration Approve
Review via email: mp+418499@code.launchpad.net

Description of the change

Removed meshctl because bluetooth-meshd is not distributed

Removed obex, because it has many patches to run obexd as root. We should rework that.

Tested bluetooth LE from an Intel NUC.

```
# sudo bluez.bluetoothctl
[bluetooth]# power on
[bluetooth]# scan le
...
[NEW] Device 4C:EB:D6:4C:79:4A BatteryMonitor
...
[bluetooth]# connect 4C:EB:D6:4C:79:4A
Attempting to connect to 4C:EB:D6:4C:79:4A
[CHG] Device 4C:EB:D6:4C:79:4A Connected: yes
Connection successful
[NEW] Primary Service (Handle 0x0000)
 /org/bluez/hci0/dev_4C_EB_D6_4C_79_4A/service0006
 00001801-0000-1000-8000-00805f9b34fb
 Generic Attribute Profile
[NEW] Characteristic (Handle 0x0000)
 /org/bluez/hci0/dev_4C_EB_D6_4C_79_4A/service0006/char0007
 00002a05-0000-1000-8000-00805f9b34fb
 Service Changed
[NEW] Descriptor (Handle 0x0000)
 /org/bluez/hci0/dev_4C_EB_D6_4C_79_4A/service0006/char0007/desc0009
 00002902-0000-1000-8000-00805f9b34fb
 Client Characteristic Configuration
[NEW] Primary Service (Handle 0x0000)
 /org/bluez/hci0/dev_4C_EB_D6_4C_79_4A/service000a
 0000180f-0000-1000-8000-00805f9b34fb
 Battery Service
[NEW] Characteristic (Handle 0x0000)
 /org/bluez/hci0/dev_4C_EB_D6_4C_79_4A/service000a/char000b
 00002a19-0000-1000-8000-00805f9b34fb
 Battery Level
[NEW] Descriptor (Handle 0x0000)
 /org/bluez/hci0/dev_4C_EB_D6_4C_79_4A/service000a/char000b/desc000d
 00002902-0000-1000-8000-00805f9b34fb
 Client Characteristic Configuration
[CHG] Device 4C:EB:D6:4C:79:4A UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device 4C:EB:D6:4C:79:4A UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device 4C:EB:D6:4C:79:4A UUIDs: 0000180f-0000-1000-8000-00805f9b34fb
[CHG] Device 4C:EB:D6:4C:79:4A ServicesResolved: yes
[CHG] Device 4C:EB:D6:4C:79:4A Name: Arduino
[CHG] Device 4C:EB:D6:4C:79:4A Alias: Arduino
[BatteryMonitor]# menu gatt
[BatteryMonitor]# select-attribute /org/bluez/hci0/dev_4C_EB_D6_4C_79_4A/service000a/char000b
[Arduino:/service000a/char000b]# notify on
[CHG] Attribute /org/bluez/hci0/dev_4C_EB_D6_4C_79_4A/service000a/char000b Notifying: yes
Notify started
[CHG] Attribute /org/bluez/hci0/dev_4C_EB_D6_4C_79_4A/service000a/char000b Value:
  28 (
[CHG] Attribute /org/bluez/hci0/dev_4C_EB_D6_4C_79_4A/service000a/char000b Value:
  2a *
...
```

To post a comment you must log in.
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 6f2abf0ac1a529c0de4a6415e480296f589a9ea1

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1477/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 6f2abf0ac1a529c0de4a6415e480296f589a9ea1

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1480/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 6f2abf0ac1a529c0de4a6415e480296f589a9ea1

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1481/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: d856c6a2ca8dccbe134c52c7f5531795162a3987

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1482/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: d856c6a2ca8dccbe134c52c7f5531795162a3987

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1483/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: d856c6a2ca8dccbe134c52c7f5531795162a3987

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1484/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: d856c6a2ca8dccbe134c52c7f5531795162a3987

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1485/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 601beda47c6bd65115aaa1a352649ee51bbbaed7

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1486/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 601beda47c6bd65115aaa1a352649ee51bbbaed7

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1489/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: cd3527a4ec902e8229794d65f1f9b0d26d2836ec

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1492/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: cd3527a4ec902e8229794d65f1f9b0d26d2836ec

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1493/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: aceb1023d651db2e4b352b2d965447c8abf9fa72

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1496/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: b11cbc192b615891dc6b12179e7a4650889d9273

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1497/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: a6d153d4b3b143a17d39fed4d9ce4a8e23b7b21c

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1498/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: f42ea6bff143edbf41ed64387f502ef53835a76a

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1499/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: a6d153d4b3b143a17d39fed4d9ce4a8e23b7b21c

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1501/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Looks good! I have some minor comments.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Also, I am a bit worried about people using obexd, but I guess that if somebody is using it we will find out soon enough.

Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) :
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 89f43c9a1a327b83d0c6300c8f14c3c77fdbc85c

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1515/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 5d5e5d8f92345a1a83a6c4940d07d9c972d27b08

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1518/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :

PASSED: Successfully build documentation, rev: 248c79669e11e406556d7d6f7583f30f0bf3c61b

Generated documentation is available at https://jenkins.canonical.com/system-enablement/job/snappy-hwe-snaps-snap-docs/1519/

Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

Thanks for the changes!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/docs/metadata.yaml b/docs/metadata.yaml
index 73dacac..ff98af5 100644
--- a/docs/metadata.yaml
+++ b/docs/metadata.yaml
@@ -32,8 +32,6 @@ navigation:
32 location: reference/pairing/outbound.md32 location: reference/pairing/outbound.md
33 - title: Inbound Pairing33 - title: Inbound Pairing
34 location: reference/pairing/inbound.md34 location: reference/pairing/inbound.md
35 - title: Sending Files
36 location: reference/sending-files.md
37 - title: Accessing GATT Services35 - title: Accessing GATT Services
38 location: reference/gatt-services.md36 location: reference/gatt-services.md
39 - title: Device Enablement37 - title: Device Enablement
diff --git a/docs/reference/available-commands.md b/docs/reference/available-commands.md
index d29dece..01b5f1d 100644
--- a/docs/reference/available-commands.md
+++ b/docs/reference/available-commands.md
@@ -16,9 +16,7 @@ table lists the commands that are provided by the *bluez* snap:
16| Command | Short description |16| Command | Short description |
17|--------------|---------------------------------------------------------------|17|--------------|---------------------------------------------------------------|
18| bluez | The *bluetoothd* Bluetooth daemon |18| bluez | The *bluetoothd* Bluetooth daemon |
19| obex | The *obexd* OBEX daemon |
20| bluetoothctl | A command-line interface to the BlueZ |19| bluetoothctl | A command-line interface to the BlueZ |
21| obexctl | A command-line interface to the BlueZ for file transfers |
22| hciconfig | HCI device configuration utility |20| hciconfig | HCI device configuration utility |
23| hcidump | Reads raw HCI data and prints it on screen |21| hcidump | Reads raw HCI data and prints it on screen |
24| hciattach | Attach a serial UART to the BT stack as a transport interface |22| hciattach | Attach a serial UART to the BT stack as a transport interface |
@@ -40,6 +38,6 @@ available commands:
40```38```
41$ bluez.39$ bluez.
42bluez.bluetoothctl bluez.hciattach bluez.hciconfig bluez.hcidump40bluez.bluetoothctl bluez.hciattach bluez.hciconfig bluez.hcidump
43bluez.hcitool bluez.obexctl bluez.sdptool 41bluez.hcitool bluez.sdptool
44$ bluez.42$ bluez.
45```43```
diff --git a/docs/reference/introduction.md b/docs/reference/introduction.md
index aaa4119..c72924e 100644
--- a/docs/reference/introduction.md
+++ b/docs/reference/introduction.md
@@ -28,6 +28,5 @@ In particular this section will discuss:
28* [Prerequisites](using-prerequisites.html)28* [Prerequisites](using-prerequisites.html)
29* [Available commands](available-commands.md)29* [Available commands](available-commands.md)
30* [How to pair with remote devices](pairing/introduction.md)30* [How to pair with remote devices](pairing/introduction.md)
31* [How to send files using OPP](sending-files.md)
32* [Accessing the GATT services](gatt-services.md)31* [Accessing the GATT services](gatt-services.md)
33* [Device Enablement with Bluetooth](enablement/introduction.md)32* [Device Enablement with Bluetooth](enablement/introduction.md)
diff --git a/docs/reference/sending-files.md b/docs/reference/sending-files.md
34deleted file mode 10064433deleted file mode 100644
index 19d00bd..0000000
--- a/docs/reference/sending-files.md
+++ /dev/null
@@ -1,206 +0,0 @@
1---
2title: "Sending Files Using OPP"
3table_of_contents: True
4---
5
6# Using Bluetooth to Send Files on Ubuntu Core
7
8This section describes the required steps to be able to send files over
9Bluetooth using an Ubuntu Core device. It will focus on the [OBEX Object
10Push](https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=309007&vId=346844)
11profile which is a standard Bluetooth profile for such a use case.
12
13## Prerequisites
14
15Make sure that:
16
17* The bluez snap is installed.
18* Service is up and running.
19* Both devices are paired.
20
21Refer to the previous sections in order to learn how to do it.
22
23The files will be sent to the server which is a Bluetooth-enabled device with
24the Object Push profile enabled. If this is not fulfilled then Ubuntu Core will
25fail to connect.
26
27The minimal set of the Bluetooth profiles that must be available on the server
28device is:
29
30| Profile | UUID |
31|------------------|:------:|
32| GAP Service | 0x1800 |
33| GATT Server | 0x1801 |
34| OBEX Object Push | 0x1105 |
35
36If you are unsure about which profiles are enabled, then check this using the
37*sdptool* utility:
38
39```
40% sdptool browse 00:1A:7D:DA:71:0F
41Browsing 00:1A:7D:DA:71:0F ...
42Service Name: GAP Service
43Service RecHandle: 0x10001
44Service Class ID List:
45  "Generic Access" (0x1800)
46Protocol Descriptor List:
47  "L2CAP" (0x0100)
48    PSM: 31
49  "ATT" (0x0007)
50    uint16: 0x0001
51    uint16: 0x0007
52Language Base Attr List:
53  code_ISO639: 0x656e
54  encoding:    0x6a
55  base_offset: 0x100
56
57Service Name: GATT Server
58Service RecHandle: 0x10002
59Service Class ID List:
60  "Generic Attribute" (0x1801)
61Protocol Descriptor List:
62  "L2CAP" (0x0100)
63    PSM: 31
64  "ATT" (0x0007)
65    uint16: 0x000c
66    uint16: 0x000f
67Language Base Attr List:
68  code_ISO639: 0x656e
69  encoding:    0x6a
70  base_offset: 0x100
71
72Failed to connect to SDP server on 00:1A:7D:DA:71:0F: Connection refused
73Service Name: OBEX Object Push
74Service RecHandle: 0x10004
75Service Class ID List:
76  "OBEX Object Push" (0x1105)
77Protocol Descriptor List:
78  "L2CAP" (0x0100)
79  "RFCOMM" (0x0003)
80    Channel: 1
81  "OBEX" (0x0008)
82Language Base Attr List:
83  code_ISO639: 0x656e
84  encoding:    0x6a
85  base_offset: 0x100
86Profile Descriptor List:
87  "OBEX Object Push" (0x1105)
88    Version: 0x0102
89```
90
91## Connect OPP Profile
92
93Make sure that the pairing is successfully completed. You can learn how to do it
94on the [Pairing page](pairing/introduction.html)
95
96Once the pairing is successfully completed, it is time to connect the OBEX
97Object Push profile. To interact with OBEX, the obexctl tool is used. Open
98another terminal and type
99
100```
101$ sudo bluez.obexctl
102```
103
104You will see output like this:
105
106```
107$ sudo obexctl
108[NEW] Client /org/bluez/obex
109[obex]#
110```
111
112This indicates that the OBEX client has been properly initialized and is
113awaiting interactive commands. The first thing to do is to get it connected to
114the remote server which is the device that has been paired in the previous
115step. Type:
116
117```
118[obex]# connect 00:25:56:D1:36:6B
119```
120
121You will see output like:
122
123```
124Attempting to connect to 00:25:56:D1:36:6B
125[NEW] Session /org/bluez/obex/client/session4 [default]
126[NEW] ObjectPush /org/bluez/obex/client/session4
127Connection successful
128[00:25:56:D1:36:6B]#
129```
130
131The above indicates that the connection has been established. Check the address
132of the remote device in the prompt. It is now possible to send files.
133
134## Sending Files
135
136In order to send files use the *send* command while connected to the OBEX Object
137Push profile. For sending a file type:
138
139```
140[00:25:56:D1:36:6B]# send <path to file>
141```
142
143Note that the file you are about to send should be accessible to the snap,
144therefore it must be placed in a readable location. For example:
145/var/snap/bluez/current.
146
147Also keep in mind that the regular use of the OPP shall be accomplished through
148the [D-Bus OBEX
149API](https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/obex-api.txt)
150therefore the bluez snap itself does not need access to other snaps data.
151
152Below is example output of sending a file:
153
154```
155[00:25:56:D1:36:6B]# send /var/snap/bluez/current/f.txt
156Attempting to send /var/snap/bluez/current/f.txt to /org/bluez/obex/client/session5
157[NEW] Transfer /org/bluez/obex/client/session5/transfer10
158Transfer /org/bluez/obex/client/session5/transfer10
159        Status: queued
160        Name: f.txt
161        Size: 4
162        Filename: /var/snap/bluez/current/f.txt
163        Session: /org/bluez/obex/client/session5
164[CHG] Transfer /org/bluez/obex/client/session5/transfer10 Status: complete
165[DEL] Transfer /org/bluez/obex/client/session5/transfer10
166```
167
168## Receiving Files
169
170By default there is no way to receive a file using Bluetooth on Ubuntu Core
171unless the application snap implements the receiving side. This is because the
172incoming transfer has to be allowed and the obexctl tool does not provide
173such an agent. It is assumed that the application will implement this. For
174reference, here is the [OBEX D-Bus Agent
175API](https://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/obex-agent-api.txt)
176description.
177
178For convenience, there is a bluez-tests snap that packages the
179[simple-obex-agent](https://git.kernel.org/cgit/bluetooth/bluez.git/tree/test/simple-obex-agent)
180Python script that implements the mentioned API. It can be used to allow
181incoming file transfers through OBEX. The script itself has small
182modifications to make it compatible with Ubuntu Core specifics (Ubuntu Core uses
183the system, not session bus).
184
185This feature has not been yet released, however, it is available in the edge
186channel for testing.
187
188Install the bluez-tests snap
189
190```
191$ sudo snap install --edge bluez-tests
192```
193
194When the above operation successfully finishes, you are able to use the
195simple-obex-agent and experiment with receiving file transfers. Open another
196shell on the device and start the simple-obex-agent by typing:
197
198```
199$ sudo bluez-tests.simple-obex-agent
200```
201
202From now on it will listen for incoming OBEX transfers and when such transfers
203happen, it will prompt for a decision: accept or deny.
204
205Please note that the software in the edge channel is for testing purposes only,
206therefore, do not hesitate to report any bugs or inconveniences found.
diff --git a/patch/0001-obexd-use-system-bus-for-communication.patch b/patch/0001-obexd-use-system-bus-for-communication.patch
207deleted file mode 1006440deleted file mode 100644
index 488f573..0000000
--- a/patch/0001-obexd-use-system-bus-for-communication.patch
+++ /dev/null
@@ -1,125 +0,0 @@
1From 02bc79bcd0eea1bd5d76c612f14586b8baa60517 Mon Sep 17 00:00:00 2001
2From: Simon Fels <simon.fels@canonical.com>
3Date: Fri, 22 Jul 2016 11:36:44 +0200
4Subject: [PATCH 1/2] obexd: use system bus for communication
5
6On snappy systems we don't nessarily have a session bus available so we
7will run obexd on the system bus.
8---
9 obexd/client/ftp.c | 2 +-
10 obexd/client/map.c | 2 +-
11 obexd/client/opp.c | 2 +-
12 obexd/client/pbap.c | 2 +-
13 obexd/client/session.c | 2 +-
14 obexd/client/sync.c | 2 +-
15 obexd/src/manager.c | 2 +-
16 tools/obexctl.c | 2 +-
17 8 files changed, 8 insertions(+), 8 deletions(-)
18
19diff --git a/obexd/client/ftp.c b/obexd/client/ftp.c
20index 5e30654..3b82f3e 100644
21--- a/obexd/client/ftp.c
22+++ b/obexd/client/ftp.c
23@@ -476,7 +476,7 @@ int ftp_init(void)
24
25 DBG("");
26
27- conn = dbus_bus_get(DBUS_BUS_SESSION, NULL);
28+ conn = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
29 if (!conn)
30 return -EIO;
31
32diff --git a/obexd/client/map.c b/obexd/client/map.c
33index 23be2d6..28e60fe 100644
34--- a/obexd/client/map.c
35+++ b/obexd/client/map.c
36@@ -2076,7 +2076,7 @@ int map_init(void)
37
38 DBG("");
39
40- conn = dbus_bus_get(DBUS_BUS_SESSION, NULL);
41+ conn = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
42 if (!conn)
43 return -EIO;
44
45diff --git a/obexd/client/opp.c b/obexd/client/opp.c
46index 92785f6..36fd4db 100644
47--- a/obexd/client/opp.c
48+++ b/obexd/client/opp.c
49@@ -191,7 +191,7 @@ int opp_init(void)
50
51 DBG("");
52
53- conn = dbus_bus_get(DBUS_BUS_SESSION, NULL);
54+ conn = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
55 if (!conn)
56 return -EIO;
57
58diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c
59index 3f5665f..e4b7d59 100644
60--- a/obexd/client/pbap.c
61+++ b/obexd/client/pbap.c
62@@ -1314,7 +1314,7 @@ int pbap_init(void)
63
64 DBG("");
65
66- conn = dbus_bus_get(DBUS_BUS_SESSION, NULL);
67+ conn = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
68 if (!conn)
69 return -EIO;
70
71diff --git a/obexd/client/session.c b/obexd/client/session.c
72index 5bd2d26..cf4cb2c 100644
73--- a/obexd/client/session.c
74+++ b/obexd/client/session.c
75@@ -596,7 +596,7 @@ struct obc_session *obc_session_create(const char *source,
76 if (driver == NULL)
77 return NULL;
78
79- conn = dbus_bus_get(DBUS_BUS_SESSION, NULL);
80+ conn = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
81 if (conn == NULL)
82 return NULL;
83
84diff --git a/obexd/client/sync.c b/obexd/client/sync.c
85index 548c318..8c30908 100644
86--- a/obexd/client/sync.c
87+++ b/obexd/client/sync.c
88@@ -237,7 +237,7 @@ int sync_init(void)
89
90 DBG("");
91
92- conn = dbus_bus_get(DBUS_BUS_SESSION, NULL);
93+ conn = dbus_bus_get(DBUS_BUS_SYSTEM, NULL);
94 if (!conn)
95 return -EIO;
96
97diff --git a/obexd/src/manager.c b/obexd/src/manager.c
98index c172c59..9b5bdde 100644
99--- a/obexd/src/manager.c
100+++ b/obexd/src/manager.c
101@@ -499,7 +499,7 @@ gboolean manager_init(void)
102
103 dbus_error_init(&err);
104
105- connection = g_dbus_setup_bus(DBUS_BUS_SESSION, OBEXD_SERVICE, &err);
106+ connection = g_dbus_setup_bus(DBUS_BUS_SYSTEM, OBEXD_SERVICE, &err);
107 if (connection == NULL) {
108 if (dbus_error_is_set(&err) == TRUE) {
109 fprintf(stderr, "%s\n", err.message);
110diff --git a/tools/obexctl.c b/tools/obexctl.c
111index 0709f69..9ed336a 100644
112--- a/tools/obexctl.c
113+++ b/tools/obexctl.c
114@@ -2152,7 +2152,7 @@ int main(int argc, char *argv[])
115 bt_shell_set_menu(&main_menu);
116 bt_shell_set_prompt(PROMPT_OFF);
117
118- dbus_conn = g_dbus_setup_bus(DBUS_BUS_SESSION, NULL, NULL);
119+ dbus_conn = g_dbus_setup_bus(DBUS_BUS_SYSTEM, NULL, NULL);
120
121 client = g_dbus_client_new(dbus_conn, "org.bluez.obex",
122 "/org/bluez/obex");
123--
1242.17.1
125
diff --git a/patch/0003-Add-snappy-runtime-directory-support.patch b/patch/0003-Add-snappy-runtime-directory-support.patch
126deleted file mode 1006440deleted file mode 100644
index d1f1db0..0000000
--- a/patch/0003-Add-snappy-runtime-directory-support.patch
+++ /dev/null
@@ -1,38 +0,0 @@
1From 003384851dfff3efe5c16aafb274ef5cd3bc3078 Mon Sep 17 00:00:00 2001
2From: Simon Fels <simon.fels@canonical.com>
3Date: Fri, 22 Jul 2016 11:36:12 +0200
4Subject: [PATCH] Add snappy runtime directory support
5
6---
7 obexd/src/main.c | 12 ++++++++++--
8 1 file changed, 10 insertions(+), 2 deletions(-)
9
10diff --git a/obexd/src/main.c b/obexd/src/main.c
11index 139f141..9f6c67a 100644
12--- a/obexd/src/main.c
13+++ b/obexd/src/main.c
14@@ -286,11 +286,19 @@ int main(int argc, char *argv[])
15 }
16
17 if (option_root == NULL) {
18- option_root = g_build_filename(g_get_user_cache_dir(), "obexd",
19- NULL);
20+ option_root = getenv("SNAP_USER_DATA");
21+
22+ if (!option_root)
23+ option_root = g_build_filename(g_get_user_cache_dir(),
24+ "obexd", NULL);
25 g_mkdir_with_parents(option_root, 0700);
26 }
27
28+ /*
29+ * FIXME: a relative path option_root is specified on the command line,
30+ * will not be properly re-located to $SNAP_USER_DATA. Since this is
31+ * not used in the snap's obexd service file, this should be a no-op.
32+ */
33 if (option_root[0] != '/') {
34 const char *home = getenv("HOME");
35 if (home) {
36--
372.17.1
38
diff --git a/patch/0004-Remove-some-obex-plugins-so-we-do-not-need-libical.patch b/patch/0004-Remove-some-obex-plugins-so-we-do-not-need-libical.patch
39deleted file mode 1006440deleted file mode 100644
index 2205a78..0000000
--- a/patch/0004-Remove-some-obex-plugins-so-we-do-not-need-libical.patch
+++ /dev/null
@@ -1,391 +0,0 @@
1From cde0bec4000d561edbeab8317d6d815b84125aa5 Mon Sep 17 00:00:00 2001
2From: Alfonso Sanchez-Beato <alfonso.sanchez-beato@canonical.com>
3Date: Mon, 30 Mar 2020 12:28:47 +0200
4Subject: [PATCH] Remove some obex plugins so we do not need libical
5
6Remove some obex plugins so we do not need libical. This library
7was in turn pulling libicu, which is a 12MB dependency. The use case
8for obex pbap/irmc in IoT is not strong, so better to remove it from
9the snap.
10---
11 Makefile.in | 125 ++---------------------------------------
12 Makefile.obexd | 14 +----
13 configure.ac | 6 --
14 obexd/client/manager.c | 2 -
15 4 files changed, 7 insertions(+), 140 deletions(-)
16
17diff --git a/Makefile.in b/Makefile.in
18index 35fd6fd..64313bf 100644
19--- a/Makefile.in
20+++ b/Makefile.in
21@@ -966,9 +966,6 @@ am__obexd_src_obexd_SOURCES_DIST = btio/btio.h btio/btio.c \
22 obexd/plugins/filesystem.c obexd/plugins/filesystem.h \
23 obexd/plugins/bluetooth.c obexd/plugins/pcsuite.c \
24 obexd/plugins/opp.c obexd/plugins/ftp.c obexd/plugins/ftp.h \
25- obexd/plugins/irmc.c obexd/plugins/pbap.c \
26- obexd/plugins/vcard.h obexd/plugins/vcard.c \
27- obexd/plugins/phonebook.h obexd/plugins/phonebook-dummy.c \
28 obexd/plugins/mas.c obexd/src/map_ap.h \
29 obexd/plugins/messages.h obexd/plugins/messages-dummy.c \
30 obexd/client/mns.c obexd/client/map-event.h obexd/src/main.c \
31@@ -982,7 +979,7 @@ am__obexd_src_obexd_SOURCES_DIST = btio/btio.h btio/btio.c \
32 obexd/client/manager.c obexd/client/session.h \
33 obexd/client/session.c obexd/client/bluetooth.h \
34 obexd/client/bluetooth.c obexd/client/sync.h \
35- obexd/client/sync.c obexd/client/pbap.h obexd/client/pbap.c \
36+ obexd/client/sync.c \
37 obexd/client/ftp.h obexd/client/ftp.c obexd/client/opp.h \
38 obexd/client/opp.c obexd/client/map.h obexd/client/map.c \
39 obexd/client/map-event.c obexd/client/transfer.h \
40@@ -1001,10 +998,6 @@ am__objects_9 = gobex/obexd-gobex.$(OBJEXT) \
41 @OBEX_TRUE@ obexd/plugins/obexd-bluetooth.$(OBJEXT) \
42 @OBEX_TRUE@ $(am__objects_10) obexd/plugins/obexd-opp.$(OBJEXT) \
43 @OBEX_TRUE@ obexd/plugins/obexd-ftp.$(OBJEXT) \
44-@OBEX_TRUE@ obexd/plugins/obexd-irmc.$(OBJEXT) \
45-@OBEX_TRUE@ obexd/plugins/obexd-pbap.$(OBJEXT) \
46-@OBEX_TRUE@ obexd/plugins/obexd-vcard.$(OBJEXT) \
47-@OBEX_TRUE@ obexd/plugins/obexd-phonebook-dummy.$(OBJEXT) \
48 @OBEX_TRUE@ obexd/plugins/obexd-mas.$(OBJEXT) \
49 @OBEX_TRUE@ obexd/plugins/obexd-messages-dummy.$(OBJEXT) \
50 @OBEX_TRUE@ obexd/client/obexd-mns.$(OBJEXT)
51@@ -1023,7 +1016,6 @@ am__objects_9 = gobex/obexd-gobex.$(OBJEXT) \
52 @OBEX_TRUE@ obexd/client/obexd-session.$(OBJEXT) \
53 @OBEX_TRUE@ obexd/client/obexd-bluetooth.$(OBJEXT) \
54 @OBEX_TRUE@ obexd/client/obexd-sync.$(OBJEXT) \
55-@OBEX_TRUE@ obexd/client/obexd-pbap.$(OBJEXT) \
56 @OBEX_TRUE@ obexd/client/obexd-ftp.$(OBJEXT) \
57 @OBEX_TRUE@ obexd/client/obexd-opp.$(OBJEXT) \
58 @OBEX_TRUE@ obexd/client/obexd-map.$(OBJEXT) \
59@@ -2044,7 +2036,6 @@ am__depfiles_remade = android/$(DEPDIR)/a2dp-sink.Po \
60 obexd/client/$(DEPDIR)/obexd-map.Po \
61 obexd/client/$(DEPDIR)/obexd-mns.Po \
62 obexd/client/$(DEPDIR)/obexd-opp.Po \
63- obexd/client/$(DEPDIR)/obexd-pbap.Po \
64 obexd/client/$(DEPDIR)/obexd-session.Po \
65 obexd/client/$(DEPDIR)/obexd-sync.Po \
66 obexd/client/$(DEPDIR)/obexd-transfer.Po \
67@@ -2052,14 +2043,10 @@ am__depfiles_remade = android/$(DEPDIR)/a2dp-sink.Po \
68 obexd/plugins/$(DEPDIR)/obexd-bluetooth.Po \
69 obexd/plugins/$(DEPDIR)/obexd-filesystem.Po \
70 obexd/plugins/$(DEPDIR)/obexd-ftp.Po \
71- obexd/plugins/$(DEPDIR)/obexd-irmc.Po \
72 obexd/plugins/$(DEPDIR)/obexd-mas.Po \
73 obexd/plugins/$(DEPDIR)/obexd-messages-dummy.Po \
74 obexd/plugins/$(DEPDIR)/obexd-opp.Po \
75- obexd/plugins/$(DEPDIR)/obexd-pbap.Po \
76 obexd/plugins/$(DEPDIR)/obexd-pcsuite.Po \
77- obexd/plugins/$(DEPDIR)/obexd-phonebook-dummy.Po \
78- obexd/plugins/$(DEPDIR)/obexd-vcard.Po \
79 obexd/src/$(DEPDIR)/obexd-log.Po \
80 obexd/src/$(DEPDIR)/obexd-main.Po \
81 obexd/src/$(DEPDIR)/obexd-manager.Po \
82@@ -2750,8 +2737,6 @@ GLIB_LIBS = @GLIB_LIBS@
83 GREP = @GREP@
84 GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
85 GTHREAD_LIBS = @GTHREAD_LIBS@
86-ICAL_CFLAGS = @ICAL_CFLAGS@
87-ICAL_LIBS = @ICAL_LIBS@
88 INSTALL = @INSTALL@
89 INSTALL_DATA = @INSTALL_DATA@
90 INSTALL_PROGRAM = @INSTALL_PROGRAM@
91@@ -3568,15 +3553,12 @@ unit_tests = $(am__append_54) unit/test-eir unit/test-uuid \
92 @SYSTEMD_TRUE@dbussessionbus_DATA = obexd/src/org.bluez.obex.service
93 @OBEX_TRUE@obex_plugindir = $(libdir)/obex/plugins
94 @OBEX_TRUE@obexd_builtin_modules = filesystem bluetooth \
95-@OBEX_TRUE@ $(am__append_48) opp ftp irmc pbap mas mns
96+@OBEX_TRUE@ $(am__append_48) opp ftp mas mns
97 @OBEX_TRUE@obexd_builtin_sources = obexd/plugins/filesystem.c \
98 @OBEX_TRUE@ obexd/plugins/filesystem.h \
99 @OBEX_TRUE@ obexd/plugins/bluetooth.c $(am__append_49) \
100 @OBEX_TRUE@ obexd/plugins/opp.c obexd/plugins/ftp.c \
101-@OBEX_TRUE@ obexd/plugins/ftp.h obexd/plugins/irmc.c \
102-@OBEX_TRUE@ obexd/plugins/pbap.c obexd/plugins/vcard.h \
103-@OBEX_TRUE@ obexd/plugins/vcard.c obexd/plugins/phonebook.h \
104-@OBEX_TRUE@ obexd/plugins/phonebook-dummy.c obexd/plugins/mas.c \
105+@OBEX_TRUE@ obexd/plugins/mas.c \
106 @OBEX_TRUE@ obexd/src/map_ap.h obexd/plugins/messages.h \
107 @OBEX_TRUE@ obexd/plugins/messages-dummy.c obexd/client/mns.c \
108 @OBEX_TRUE@ obexd/src/map_ap.h obexd/client/map-event.h
109@@ -3596,7 +3578,6 @@ unit_tests = $(am__append_54) unit/test-eir unit/test-uuid \
110 @OBEX_TRUE@ obexd/client/session.h obexd/client/session.c \
111 @OBEX_TRUE@ obexd/client/bluetooth.h obexd/client/bluetooth.c \
112 @OBEX_TRUE@ obexd/client/sync.h obexd/client/sync.c \
113-@OBEX_TRUE@ obexd/client/pbap.h obexd/client/pbap.c \
114 @OBEX_TRUE@ obexd/client/ftp.h obexd/client/ftp.c \
115 @OBEX_TRUE@ obexd/client/opp.h obexd/client/opp.c \
116 @OBEX_TRUE@ obexd/client/map.h obexd/client/map.c \
117@@ -3608,11 +3589,11 @@ unit_tests = $(am__append_54) unit/test-eir unit/test-uuid \
118
119 @OBEX_TRUE@obexd_src_obexd_LDADD = lib/libbluetooth-internal.la \
120 @OBEX_TRUE@ gdbus/libgdbus-internal.la \
121-@OBEX_TRUE@ $(ICAL_LIBS) $(DBUS_LIBS) $(GLIB_LIBS) -ldl
122+@OBEX_TRUE@ $(DBUS_LIBS) $(GLIB_LIBS) -ldl
123
124 @OBEX_TRUE@obexd_src_obexd_LDFLAGS = $(AM_LDFLAGS) -Wl,--export-dynamic
125 @OBEX_TRUE@obexd_src_obexd_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(DBUS_CFLAGS) \
126-@OBEX_TRUE@ $(ICAL_CFLAGS) -DOBEX_PLUGIN_BUILTIN \
127+@OBEX_TRUE@ -DOBEX_PLUGIN_BUILTIN \
128 @OBEX_TRUE@ -DPLUGINDIR=\""$(obex_plugindir)"\" \
129 @OBEX_TRUE@ -D_FILE_OFFSET_BITS=64 \
130 @OBEX_TRUE@ -I$(builddir)/lib -I$(builddir)/obexd/src
131@@ -5105,15 +5086,6 @@ obexd/plugins/obexd-opp.$(OBJEXT): obexd/plugins/$(am__dirstamp) \
132 obexd/plugins/$(DEPDIR)/$(am__dirstamp)
133 obexd/plugins/obexd-ftp.$(OBJEXT): obexd/plugins/$(am__dirstamp) \
134 obexd/plugins/$(DEPDIR)/$(am__dirstamp)
135-obexd/plugins/obexd-irmc.$(OBJEXT): obexd/plugins/$(am__dirstamp) \
136- obexd/plugins/$(DEPDIR)/$(am__dirstamp)
137-obexd/plugins/obexd-pbap.$(OBJEXT): obexd/plugins/$(am__dirstamp) \
138- obexd/plugins/$(DEPDIR)/$(am__dirstamp)
139-obexd/plugins/obexd-vcard.$(OBJEXT): obexd/plugins/$(am__dirstamp) \
140- obexd/plugins/$(DEPDIR)/$(am__dirstamp)
141-obexd/plugins/obexd-phonebook-dummy.$(OBJEXT): \
142- obexd/plugins/$(am__dirstamp) \
143- obexd/plugins/$(DEPDIR)/$(am__dirstamp)
144 obexd/plugins/obexd-mas.$(OBJEXT): obexd/plugins/$(am__dirstamp) \
145 obexd/plugins/$(DEPDIR)/$(am__dirstamp)
146 obexd/plugins/obexd-messages-dummy.$(OBJEXT): \
147@@ -5159,8 +5131,6 @@ obexd/client/obexd-bluetooth.$(OBJEXT): obexd/client/$(am__dirstamp) \
148 obexd/client/$(DEPDIR)/$(am__dirstamp)
149 obexd/client/obexd-sync.$(OBJEXT): obexd/client/$(am__dirstamp) \
150 obexd/client/$(DEPDIR)/$(am__dirstamp)
151-obexd/client/obexd-pbap.$(OBJEXT): obexd/client/$(am__dirstamp) \
152- obexd/client/$(DEPDIR)/$(am__dirstamp)
153 obexd/client/obexd-ftp.$(OBJEXT): obexd/client/$(am__dirstamp) \
154 obexd/client/$(DEPDIR)/$(am__dirstamp)
155 obexd/client/obexd-opp.$(OBJEXT): obexd/client/$(am__dirstamp) \
156@@ -6472,7 +6442,6 @@ distclean-compile:
157 @AMDEP_TRUE@@am__include@ @am__quote@obexd/client/$(DEPDIR)/obexd-map.Po@am__quote@ # am--include-marker
158 @AMDEP_TRUE@@am__include@ @am__quote@obexd/client/$(DEPDIR)/obexd-mns.Po@am__quote@ # am--include-marker
159 @AMDEP_TRUE@@am__include@ @am__quote@obexd/client/$(DEPDIR)/obexd-opp.Po@am__quote@ # am--include-marker
160-@AMDEP_TRUE@@am__include@ @am__quote@obexd/client/$(DEPDIR)/obexd-pbap.Po@am__quote@ # am--include-marker
161 @AMDEP_TRUE@@am__include@ @am__quote@obexd/client/$(DEPDIR)/obexd-session.Po@am__quote@ # am--include-marker
162 @AMDEP_TRUE@@am__include@ @am__quote@obexd/client/$(DEPDIR)/obexd-sync.Po@am__quote@ # am--include-marker
163 @AMDEP_TRUE@@am__include@ @am__quote@obexd/client/$(DEPDIR)/obexd-transfer.Po@am__quote@ # am--include-marker
164@@ -6480,14 +6449,10 @@ distclean-compile:
165 @AMDEP_TRUE@@am__include@ @am__quote@obexd/plugins/$(DEPDIR)/obexd-bluetooth.Po@am__quote@ # am--include-marker
166 @AMDEP_TRUE@@am__include@ @am__quote@obexd/plugins/$(DEPDIR)/obexd-filesystem.Po@am__quote@ # am--include-marker
167 @AMDEP_TRUE@@am__include@ @am__quote@obexd/plugins/$(DEPDIR)/obexd-ftp.Po@am__quote@ # am--include-marker
168-@AMDEP_TRUE@@am__include@ @am__quote@obexd/plugins/$(DEPDIR)/obexd-irmc.Po@am__quote@ # am--include-marker
169 @AMDEP_TRUE@@am__include@ @am__quote@obexd/plugins/$(DEPDIR)/obexd-mas.Po@am__quote@ # am--include-marker
170 @AMDEP_TRUE@@am__include@ @am__quote@obexd/plugins/$(DEPDIR)/obexd-messages-dummy.Po@am__quote@ # am--include-marker
171 @AMDEP_TRUE@@am__include@ @am__quote@obexd/plugins/$(DEPDIR)/obexd-opp.Po@am__quote@ # am--include-marker
172-@AMDEP_TRUE@@am__include@ @am__quote@obexd/plugins/$(DEPDIR)/obexd-pbap.Po@am__quote@ # am--include-marker
173 @AMDEP_TRUE@@am__include@ @am__quote@obexd/plugins/$(DEPDIR)/obexd-pcsuite.Po@am__quote@ # am--include-marker
174-@AMDEP_TRUE@@am__include@ @am__quote@obexd/plugins/$(DEPDIR)/obexd-phonebook-dummy.Po@am__quote@ # am--include-marker
175-@AMDEP_TRUE@@am__include@ @am__quote@obexd/plugins/$(DEPDIR)/obexd-vcard.Po@am__quote@ # am--include-marker
176 @AMDEP_TRUE@@am__include@ @am__quote@obexd/src/$(DEPDIR)/obexd-log.Po@am__quote@ # am--include-marker
177 @AMDEP_TRUE@@am__include@ @am__quote@obexd/src/$(DEPDIR)/obexd-main.Po@am__quote@ # am--include-marker
178 @AMDEP_TRUE@@am__include@ @am__quote@obexd/src/$(DEPDIR)/obexd-manager.Po@am__quote@ # am--include-marker
179@@ -7834,62 +7799,6 @@ obexd/plugins/obexd-ftp.obj: obexd/plugins/ftp.c
180 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
181 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/plugins/obexd-ftp.obj `if test -f 'obexd/plugins/ftp.c'; then $(CYGPATH_W) 'obexd/plugins/ftp.c'; else $(CYGPATH_W) '$(srcdir)/obexd/plugins/ftp.c'; fi`
182
183-obexd/plugins/obexd-irmc.o: obexd/plugins/irmc.c
184-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/plugins/obexd-irmc.o -MD -MP -MF obexd/plugins/$(DEPDIR)/obexd-irmc.Tpo -c -o obexd/plugins/obexd-irmc.o `test -f 'obexd/plugins/irmc.c' || echo '$(srcdir)/'`obexd/plugins/irmc.c
185-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/plugins/$(DEPDIR)/obexd-irmc.Tpo obexd/plugins/$(DEPDIR)/obexd-irmc.Po
186-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obexd/plugins/irmc.c' object='obexd/plugins/obexd-irmc.o' libtool=no @AMDEPBACKSLASH@
187-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
188-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/plugins/obexd-irmc.o `test -f 'obexd/plugins/irmc.c' || echo '$(srcdir)/'`obexd/plugins/irmc.c
189-
190-obexd/plugins/obexd-irmc.obj: obexd/plugins/irmc.c
191-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/plugins/obexd-irmc.obj -MD -MP -MF obexd/plugins/$(DEPDIR)/obexd-irmc.Tpo -c -o obexd/plugins/obexd-irmc.obj `if test -f 'obexd/plugins/irmc.c'; then $(CYGPATH_W) 'obexd/plugins/irmc.c'; else $(CYGPATH_W) '$(srcdir)/obexd/plugins/irmc.c'; fi`
192-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/plugins/$(DEPDIR)/obexd-irmc.Tpo obexd/plugins/$(DEPDIR)/obexd-irmc.Po
193-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obexd/plugins/irmc.c' object='obexd/plugins/obexd-irmc.obj' libtool=no @AMDEPBACKSLASH@
194-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
195-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/plugins/obexd-irmc.obj `if test -f 'obexd/plugins/irmc.c'; then $(CYGPATH_W) 'obexd/plugins/irmc.c'; else $(CYGPATH_W) '$(srcdir)/obexd/plugins/irmc.c'; fi`
196-
197-obexd/plugins/obexd-pbap.o: obexd/plugins/pbap.c
198-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/plugins/obexd-pbap.o -MD -MP -MF obexd/plugins/$(DEPDIR)/obexd-pbap.Tpo -c -o obexd/plugins/obexd-pbap.o `test -f 'obexd/plugins/pbap.c' || echo '$(srcdir)/'`obexd/plugins/pbap.c
199-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/plugins/$(DEPDIR)/obexd-pbap.Tpo obexd/plugins/$(DEPDIR)/obexd-pbap.Po
200-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obexd/plugins/pbap.c' object='obexd/plugins/obexd-pbap.o' libtool=no @AMDEPBACKSLASH@
201-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
202-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/plugins/obexd-pbap.o `test -f 'obexd/plugins/pbap.c' || echo '$(srcdir)/'`obexd/plugins/pbap.c
203-
204-obexd/plugins/obexd-pbap.obj: obexd/plugins/pbap.c
205-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/plugins/obexd-pbap.obj -MD -MP -MF obexd/plugins/$(DEPDIR)/obexd-pbap.Tpo -c -o obexd/plugins/obexd-pbap.obj `if test -f 'obexd/plugins/pbap.c'; then $(CYGPATH_W) 'obexd/plugins/pbap.c'; else $(CYGPATH_W) '$(srcdir)/obexd/plugins/pbap.c'; fi`
206-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/plugins/$(DEPDIR)/obexd-pbap.Tpo obexd/plugins/$(DEPDIR)/obexd-pbap.Po
207-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obexd/plugins/pbap.c' object='obexd/plugins/obexd-pbap.obj' libtool=no @AMDEPBACKSLASH@
208-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
209-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/plugins/obexd-pbap.obj `if test -f 'obexd/plugins/pbap.c'; then $(CYGPATH_W) 'obexd/plugins/pbap.c'; else $(CYGPATH_W) '$(srcdir)/obexd/plugins/pbap.c'; fi`
210-
211-obexd/plugins/obexd-vcard.o: obexd/plugins/vcard.c
212-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/plugins/obexd-vcard.o -MD -MP -MF obexd/plugins/$(DEPDIR)/obexd-vcard.Tpo -c -o obexd/plugins/obexd-vcard.o `test -f 'obexd/plugins/vcard.c' || echo '$(srcdir)/'`obexd/plugins/vcard.c
213-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/plugins/$(DEPDIR)/obexd-vcard.Tpo obexd/plugins/$(DEPDIR)/obexd-vcard.Po
214-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obexd/plugins/vcard.c' object='obexd/plugins/obexd-vcard.o' libtool=no @AMDEPBACKSLASH@
215-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
216-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/plugins/obexd-vcard.o `test -f 'obexd/plugins/vcard.c' || echo '$(srcdir)/'`obexd/plugins/vcard.c
217-
218-obexd/plugins/obexd-vcard.obj: obexd/plugins/vcard.c
219-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/plugins/obexd-vcard.obj -MD -MP -MF obexd/plugins/$(DEPDIR)/obexd-vcard.Tpo -c -o obexd/plugins/obexd-vcard.obj `if test -f 'obexd/plugins/vcard.c'; then $(CYGPATH_W) 'obexd/plugins/vcard.c'; else $(CYGPATH_W) '$(srcdir)/obexd/plugins/vcard.c'; fi`
220-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/plugins/$(DEPDIR)/obexd-vcard.Tpo obexd/plugins/$(DEPDIR)/obexd-vcard.Po
221-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obexd/plugins/vcard.c' object='obexd/plugins/obexd-vcard.obj' libtool=no @AMDEPBACKSLASH@
222-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
223-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/plugins/obexd-vcard.obj `if test -f 'obexd/plugins/vcard.c'; then $(CYGPATH_W) 'obexd/plugins/vcard.c'; else $(CYGPATH_W) '$(srcdir)/obexd/plugins/vcard.c'; fi`
224-
225-obexd/plugins/obexd-phonebook-dummy.o: obexd/plugins/phonebook-dummy.c
226-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/plugins/obexd-phonebook-dummy.o -MD -MP -MF obexd/plugins/$(DEPDIR)/obexd-phonebook-dummy.Tpo -c -o obexd/plugins/obexd-phonebook-dummy.o `test -f 'obexd/plugins/phonebook-dummy.c' || echo '$(srcdir)/'`obexd/plugins/phonebook-dummy.c
227-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/plugins/$(DEPDIR)/obexd-phonebook-dummy.Tpo obexd/plugins/$(DEPDIR)/obexd-phonebook-dummy.Po
228-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obexd/plugins/phonebook-dummy.c' object='obexd/plugins/obexd-phonebook-dummy.o' libtool=no @AMDEPBACKSLASH@
229-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
230-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/plugins/obexd-phonebook-dummy.o `test -f 'obexd/plugins/phonebook-dummy.c' || echo '$(srcdir)/'`obexd/plugins/phonebook-dummy.c
231-
232-obexd/plugins/obexd-phonebook-dummy.obj: obexd/plugins/phonebook-dummy.c
233-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/plugins/obexd-phonebook-dummy.obj -MD -MP -MF obexd/plugins/$(DEPDIR)/obexd-phonebook-dummy.Tpo -c -o obexd/plugins/obexd-phonebook-dummy.obj `if test -f 'obexd/plugins/phonebook-dummy.c'; then $(CYGPATH_W) 'obexd/plugins/phonebook-dummy.c'; else $(CYGPATH_W) '$(srcdir)/obexd/plugins/phonebook-dummy.c'; fi`
234-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/plugins/$(DEPDIR)/obexd-phonebook-dummy.Tpo obexd/plugins/$(DEPDIR)/obexd-phonebook-dummy.Po
235-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obexd/plugins/phonebook-dummy.c' object='obexd/plugins/obexd-phonebook-dummy.obj' libtool=no @AMDEPBACKSLASH@
236-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
237-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/plugins/obexd-phonebook-dummy.obj `if test -f 'obexd/plugins/phonebook-dummy.c'; then $(CYGPATH_W) 'obexd/plugins/phonebook-dummy.c'; else $(CYGPATH_W) '$(srcdir)/obexd/plugins/phonebook-dummy.c'; fi`
238-
239 obexd/plugins/obexd-mas.o: obexd/plugins/mas.c
240 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/plugins/obexd-mas.o -MD -MP -MF obexd/plugins/$(DEPDIR)/obexd-mas.Tpo -c -o obexd/plugins/obexd-mas.o `test -f 'obexd/plugins/mas.c' || echo '$(srcdir)/'`obexd/plugins/mas.c
241 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/plugins/$(DEPDIR)/obexd-mas.Tpo obexd/plugins/$(DEPDIR)/obexd-mas.Po
242@@ -8114,20 +8023,6 @@ obexd/client/obexd-sync.obj: obexd/client/sync.c
243 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
244 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/client/obexd-sync.obj `if test -f 'obexd/client/sync.c'; then $(CYGPATH_W) 'obexd/client/sync.c'; else $(CYGPATH_W) '$(srcdir)/obexd/client/sync.c'; fi`
245
246-obexd/client/obexd-pbap.o: obexd/client/pbap.c
247-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/client/obexd-pbap.o -MD -MP -MF obexd/client/$(DEPDIR)/obexd-pbap.Tpo -c -o obexd/client/obexd-pbap.o `test -f 'obexd/client/pbap.c' || echo '$(srcdir)/'`obexd/client/pbap.c
248-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/client/$(DEPDIR)/obexd-pbap.Tpo obexd/client/$(DEPDIR)/obexd-pbap.Po
249-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obexd/client/pbap.c' object='obexd/client/obexd-pbap.o' libtool=no @AMDEPBACKSLASH@
250-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
251-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/client/obexd-pbap.o `test -f 'obexd/client/pbap.c' || echo '$(srcdir)/'`obexd/client/pbap.c
252-
253-obexd/client/obexd-pbap.obj: obexd/client/pbap.c
254-@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/client/obexd-pbap.obj -MD -MP -MF obexd/client/$(DEPDIR)/obexd-pbap.Tpo -c -o obexd/client/obexd-pbap.obj `if test -f 'obexd/client/pbap.c'; then $(CYGPATH_W) 'obexd/client/pbap.c'; else $(CYGPATH_W) '$(srcdir)/obexd/client/pbap.c'; fi`
255-@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/client/$(DEPDIR)/obexd-pbap.Tpo obexd/client/$(DEPDIR)/obexd-pbap.Po
256-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='obexd/client/pbap.c' object='obexd/client/obexd-pbap.obj' libtool=no @AMDEPBACKSLASH@
257-@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
258-@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -c -o obexd/client/obexd-pbap.obj `if test -f 'obexd/client/pbap.c'; then $(CYGPATH_W) 'obexd/client/pbap.c'; else $(CYGPATH_W) '$(srcdir)/obexd/client/pbap.c'; fi`
259-
260 obexd/client/obexd-ftp.o: obexd/client/ftp.c
261 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(obexd_src_obexd_CPPFLAGS) $(CPPFLAGS) $(obexd_src_obexd_CFLAGS) $(CFLAGS) -MT obexd/client/obexd-ftp.o -MD -MP -MF obexd/client/$(DEPDIR)/obexd-ftp.Tpo -c -o obexd/client/obexd-ftp.o `test -f 'obexd/client/ftp.c' || echo '$(srcdir)/'`obexd/client/ftp.c
262 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) obexd/client/$(DEPDIR)/obexd-ftp.Tpo obexd/client/$(DEPDIR)/obexd-ftp.Po
263@@ -10584,7 +10479,6 @@ distclean: distclean-am
264 -rm -f obexd/client/$(DEPDIR)/obexd-map.Po
265 -rm -f obexd/client/$(DEPDIR)/obexd-mns.Po
266 -rm -f obexd/client/$(DEPDIR)/obexd-opp.Po
267- -rm -f obexd/client/$(DEPDIR)/obexd-pbap.Po
268 -rm -f obexd/client/$(DEPDIR)/obexd-session.Po
269 -rm -f obexd/client/$(DEPDIR)/obexd-sync.Po
270 -rm -f obexd/client/$(DEPDIR)/obexd-transfer.Po
271@@ -10592,14 +10486,10 @@ distclean: distclean-am
272 -rm -f obexd/plugins/$(DEPDIR)/obexd-bluetooth.Po
273 -rm -f obexd/plugins/$(DEPDIR)/obexd-filesystem.Po
274 -rm -f obexd/plugins/$(DEPDIR)/obexd-ftp.Po
275- -rm -f obexd/plugins/$(DEPDIR)/obexd-irmc.Po
276 -rm -f obexd/plugins/$(DEPDIR)/obexd-mas.Po
277 -rm -f obexd/plugins/$(DEPDIR)/obexd-messages-dummy.Po
278 -rm -f obexd/plugins/$(DEPDIR)/obexd-opp.Po
279- -rm -f obexd/plugins/$(DEPDIR)/obexd-pbap.Po
280 -rm -f obexd/plugins/$(DEPDIR)/obexd-pcsuite.Po
281- -rm -f obexd/plugins/$(DEPDIR)/obexd-phonebook-dummy.Po
282- -rm -f obexd/plugins/$(DEPDIR)/obexd-vcard.Po
283 -rm -f obexd/src/$(DEPDIR)/obexd-log.Po
284 -rm -f obexd/src/$(DEPDIR)/obexd-main.Po
285 -rm -f obexd/src/$(DEPDIR)/obexd-manager.Po
286@@ -11170,7 +11060,6 @@ maintainer-clean: maintainer-clean-am
287 -rm -f obexd/client/$(DEPDIR)/obexd-map.Po
288 -rm -f obexd/client/$(DEPDIR)/obexd-mns.Po
289 -rm -f obexd/client/$(DEPDIR)/obexd-opp.Po
290- -rm -f obexd/client/$(DEPDIR)/obexd-pbap.Po
291 -rm -f obexd/client/$(DEPDIR)/obexd-session.Po
292 -rm -f obexd/client/$(DEPDIR)/obexd-sync.Po
293 -rm -f obexd/client/$(DEPDIR)/obexd-transfer.Po
294@@ -11178,14 +11067,10 @@ maintainer-clean: maintainer-clean-am
295 -rm -f obexd/plugins/$(DEPDIR)/obexd-bluetooth.Po
296 -rm -f obexd/plugins/$(DEPDIR)/obexd-filesystem.Po
297 -rm -f obexd/plugins/$(DEPDIR)/obexd-ftp.Po
298- -rm -f obexd/plugins/$(DEPDIR)/obexd-irmc.Po
299 -rm -f obexd/plugins/$(DEPDIR)/obexd-mas.Po
300 -rm -f obexd/plugins/$(DEPDIR)/obexd-messages-dummy.Po
301 -rm -f obexd/plugins/$(DEPDIR)/obexd-opp.Po
302- -rm -f obexd/plugins/$(DEPDIR)/obexd-pbap.Po
303 -rm -f obexd/plugins/$(DEPDIR)/obexd-pcsuite.Po
304- -rm -f obexd/plugins/$(DEPDIR)/obexd-phonebook-dummy.Po
305- -rm -f obexd/plugins/$(DEPDIR)/obexd-vcard.Po
306 -rm -f obexd/src/$(DEPDIR)/obexd-log.Po
307 -rm -f obexd/src/$(DEPDIR)/obexd-main.Po
308 -rm -f obexd/src/$(DEPDIR)/obexd-manager.Po
309diff --git a/Makefile.obexd b/Makefile.obexd
310index 73004a3..7119ac9 100644
311--- a/Makefile.obexd
312+++ b/Makefile.obexd
313@@ -33,15 +33,6 @@ obexd_builtin_sources += obexd/plugins/opp.c
314 obexd_builtin_modules += ftp
315 obexd_builtin_sources += obexd/plugins/ftp.c obexd/plugins/ftp.h
316
317-obexd_builtin_modules += irmc
318-obexd_builtin_sources += obexd/plugins/irmc.c
319-
320-obexd_builtin_modules += pbap
321-obexd_builtin_sources += obexd/plugins/pbap.c \
322- obexd/plugins/vcard.h obexd/plugins/vcard.c \
323- obexd/plugins/phonebook.h \
324- obexd/plugins/phonebook-dummy.c
325-
326 obexd_builtin_modules += mas
327 obexd_builtin_sources += obexd/plugins/mas.c obexd/src/map_ap.h \
328 obexd/plugins/messages.h \
329@@ -68,7 +59,6 @@ obexd_src_obexd_SOURCES = $(btio_sources) $(gobex_sources) \
330 obexd/client/session.h obexd/client/session.c \
331 obexd/client/bluetooth.h obexd/client/bluetooth.c \
332 obexd/client/sync.h obexd/client/sync.c \
333- obexd/client/pbap.h obexd/client/pbap.c \
334 obexd/client/ftp.h obexd/client/ftp.c \
335 obexd/client/opp.h obexd/client/opp.c \
336 obexd/client/map.h obexd/client/map.c \
337@@ -79,12 +69,12 @@ obexd_src_obexd_SOURCES = $(btio_sources) $(gobex_sources) \
338 obexd/src/map_ap.h
339 obexd_src_obexd_LDADD = lib/libbluetooth-internal.la \
340 gdbus/libgdbus-internal.la \
341- $(ICAL_LIBS) $(DBUS_LIBS) $(GLIB_LIBS) -ldl
342+ $(DBUS_LIBS) $(GLIB_LIBS) -ldl
343
344 obexd_src_obexd_LDFLAGS = $(AM_LDFLAGS) -Wl,--export-dynamic
345
346 obexd_src_obexd_CPPFLAGS = $(AM_CPPFLAGS) $(GLIB_CFLAGS) $(DBUS_CFLAGS) \
347- $(ICAL_CFLAGS) -DOBEX_PLUGIN_BUILTIN \
348+ -DOBEX_PLUGIN_BUILTIN \
349 -DPLUGINDIR=\""$(obex_plugindir)"\" \
350 -D_FILE_OFFSET_BITS=64 \
351 -I$(builddir)/lib -I$(builddir)/obexd/src
352diff --git a/configure.ac b/configure.ac
353index b7452fa..70677ea 100644
354--- a/configure.ac
355+++ b/configure.ac
356@@ -249,12 +249,6 @@ fi
357
358 AC_ARG_ENABLE(obex, AC_HELP_STRING([--disable-obex],
359 [disable OBEX profile support]), [enable_obex=${enableval}])
360-if (test "${enable_obex}" != "no"); then
361- PKG_CHECK_MODULES(ICAL, libical, dummy=yes,
362- AC_MSG_ERROR(libical is required))
363- AC_SUBST(ICAL_CFLAGS)
364- AC_SUBST(ICAL_LIBS)
365-fi
366 AM_CONDITIONAL(OBEX, test "${enable_obex}" != "no")
367
368 AC_ARG_ENABLE(btpclient, AC_HELP_STRING([--enable-btpclient],
369diff --git a/obexd/client/manager.c b/obexd/client/manager.c
370index fbcad6d..ad4a9ff 100644
371--- a/obexd/client/manager.c
372+++ b/obexd/client/manager.c
373@@ -42,7 +42,6 @@
374 #include "bluetooth.h"
375 #include "opp.h"
376 #include "ftp.h"
377-#include "pbap.h"
378 #include "sync.h"
379 #include "map.h"
380 #include "manager.h"
381@@ -262,7 +261,6 @@ static struct obc_module {
382 { "bluetooth", bluetooth_init, bluetooth_exit },
383 { "opp", opp_init, opp_exit },
384 { "ftp", ftp_init, ftp_exit },
385- { "pbap", pbap_init, pbap_exit },
386 { "sync", sync_init, sync_exit },
387 { "map", map_init, map_exit },
388 { }
389--
3902.17.1
391
diff --git a/patch/0005-obexd-don-t-free-environment-variable.patch b/patch/0005-obexd-don-t-free-environment-variable.patch
392deleted file mode 1006440deleted file mode 100644
index c66c68d..0000000
--- a/patch/0005-obexd-don-t-free-environment-variable.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From 8ef25c6ffef5786529b6dd292f6f5597c1dbfd4f Mon Sep 17 00:00:00 2001
2From: Dan Dedrick <dan_dedrick@jabil.com>
3Date: Wed, 9 Dec 2020 11:57:36 -0500
4Subject: [PATCH] obexd: don't free environment variable
5
6Use g_strdup for option_root since it is expected to be freeable. When
7this was assigned to an environement variable it would then be passed to
8g_free and cause a crash because it wasn't memory that had been
9malloced.
10---
11 obexd/src/main.c | 4 +++-
12 1 file changed, 3 insertions(+), 1 deletion(-)
13
14diff --git a/obexd/src/main.c b/obexd/src/main.c
15index 118b5a1a9..ddea9fbd5 100644
16--- a/obexd/src/main.c
17+++ b/obexd/src/main.c
18@@ -285,7 +285,9 @@ int main(int argc, char *argv[])
19 }
20
21 if (option_root == NULL) {
22- option_root = getenv("SNAP_USER_DATA");
23+ const char * root_env = getenv("SNAP_USER_DATA");
24+ if (root_env)
25+ option_root = g_strdup(root_env);
26
27 if (!option_root)
28 option_root = g_build_filename(g_get_user_cache_dir(),
29--
302.29.2
31
diff --git a/run-tests.sh b/run-tests.sh
index 3fd257c..b5a4d11 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -94,4 +94,4 @@ done < <(yq eval '.backends.qemu.systems[]' spread.yaml | sed -e '/^ /d' -e 's/:
94echo "INFO: Executing tests runner"94echo "INFO: Executing tests runner"
95# shellcheck disable=SC208695# shellcheck disable=SC2086
96cd $TESTS_EXTRAS_PATH &&96cd $TESTS_EXTRAS_PATH &&
97 ./tests-runner.sh "$@" --snap="$snap" "$backends" $EXTRA_ARGS97 ./tests-runner.sh "$@" --channel=edge --snap="$snap" "$backends" $EXTRA_ARGS
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 2b6512e..3c39703 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -1,5 +1,5 @@
1name: bluez1name: bluez
2version: 5.53-7-dev2version: 5.64-dev
3type: app3type: app
4summary: Bluetooth tools and daemons4summary: Bluetooth tools and daemons
5description: |5description: |
@@ -9,8 +9,8 @@ description: |
9 License (GPL). See the project homepage for more details:9 License (GPL). See the project homepage for more details:
10 https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/bluez10 https://code.launchpad.net/~snappy-hwe-team/snappy-hwe-snaps/+git/bluez
11confinement: strict11confinement: strict
12grade: stable12grade: devel
13base: core2013base: core22
1414
15layout:15layout:
16 /usr/var/lib/bluetooth:16 /usr/var/lib/bluetooth:
@@ -22,18 +22,12 @@ apps:
22 bluetoothctl:22 bluetoothctl:
23 command: bin/client-wrapper usr/bin/bluetoothctl23 command: bin/client-wrapper usr/bin/bluetoothctl
24 plugs: [client, uhid]24 plugs: [client, uhid]
25 obexctl:
26 command: bin/client-wrapper usr/bin/obexctl
27 plugs: [client]
28 bluez:25 bluez:
29 command: bin/bluetoothd-wrapper26 command: bin/bluetoothd-wrapper
30 daemon: simple27 daemon: dbus
28 bus-name: org.bluez
31 slots: [service]29 slots: [service]
32 plugs: [uhid, uinput, kernel-crypto-api]30 plugs: [uhid, uinput, kernel-crypto-api]
33 obex:
34 command: "usr/lib/bluetooth/obexd"
35 daemon: simple
36 slots: [service]
37 hciconfig:31 hciconfig:
38 command: usr/bin/hciconfig32 command: usr/bin/hciconfig
39 plugs: [bluetooth-control]33 plugs: [bluetooth-control]
@@ -58,9 +52,6 @@ apps:
58 btmgmt:52 btmgmt:
59 command: usr/bin/btmgmt53 command: usr/bin/btmgmt
60 plugs: [bluetooth-control, network-control]54 plugs: [bluetooth-control, network-control]
61 meshctl:
62 command: usr/bin/meshctl
63 plugs: [bluetooth-control, network-control]
6455
65plugs:56plugs:
66 client:57 client:
@@ -96,9 +87,9 @@ parts:
96 build-packages:87 build-packages:
97 - dpkg-dev88 - dpkg-dev
98 - git89 - git
90 - python3-docutils
99 stage-packages:91 stage-packages:
100 - bluez92 - bluez
101 - bluez-obexd
102 - bluez-hcidump93 - bluez-hcidump
103 override-build: |94 override-build: |
104 set -ex95 set -ex
@@ -110,7 +101,6 @@ parts:
110 cp build-tools/* "$SNAPCRAFT_PART_INSTALL"/build-tools101 cp build-tools/* "$SNAPCRAFT_PART_INSTALL"/build-tools
111 prime:102 prime:
112 - usr/share/doc/bluez103 - usr/share/doc/bluez
113 - usr/share/doc/bluez-obexd
114 - usr/share/doc/bluez-hcidump104 - usr/share/doc/bluez-hcidump
115105
116 bluez:106 bluez:
@@ -118,19 +108,17 @@ parts:
118 plugin: autotools108 plugin: autotools
119 source: https://git.launchpad.net/ubuntu/+source/bluez109 source: https://git.launchpad.net/ubuntu/+source/bluez
120 source-type: git110 source-type: git
121 source-branch: applied/ubuntu/focal-updates111 source-branch: applied/ubuntu/jammy
122 autotools-configure-parameters:112 autotools-configure-parameters:
123 - --prefix=/usr113 - --prefix=/usr
124 - --libexec=/usr/lib/114 - --libexec=/usr/lib/
125 - --enable-experimental115 - --enable-experimental
126 - --enable-threads116 - --enable-threads
127 - --disable-cups117 - --disable-cups
128 - --enable-obex
129 - --disable-systemd118 - --disable-systemd
130 - --disable-silent-rules119 - --disable-silent-rules
131 - --enable-test120 - --enable-test
132 - --enable-deprecated121 - --enable-deprecated
133 - --enable-mesh
134 build-packages:122 build-packages:
135 - flex123 - flex
136 - bison124 - bison
@@ -145,9 +133,7 @@ parts:
145 - check133 - check
146 prime:134 prime:
147 - usr/lib/bluetooth/bluetoothd135 - usr/lib/bluetooth/bluetoothd
148 - usr/lib/bluetooth/obexd
149 - usr/bin/bluetoothctl136 - usr/bin/bluetoothctl
150 - usr/bin/obexctl
151 - usr/bin/hciconfig137 - usr/bin/hciconfig
152 - usr/bin/hcidump138 - usr/bin/hcidump
153 - usr/bin/hciattach139 - usr/bin/hciattach
@@ -156,7 +142,6 @@ parts:
156 - usr/bin/sdptool142 - usr/bin/sdptool
157 - usr/bin/btmon143 - usr/bin/btmon
158 - usr/bin/btmgmt144 - usr/bin/btmgmt
159 - usr/bin/meshctl
160 override-build: |145 override-build: |
161 set -ex146 set -ex
162 "$SNAPCRAFT_STAGE"/build-tools/check-versions bluez yes147 "$SNAPCRAFT_STAGE"/build-tools/check-versions bluez yes
@@ -165,6 +150,5 @@ parts:
165 git am "$SNAPCRAFT_PROJECT_DIR"/patch/*150 git am "$SNAPCRAFT_PROJECT_DIR"/patch/*
166 snapcraftctl build151 snapcraftctl build
167 cp tools/btmgmt "$SNAPCRAFT_PART_INSTALL"/usr/bin/152 cp tools/btmgmt "$SNAPCRAFT_PART_INSTALL"/usr/bin/
168 cp tools/obexctl "$SNAPCRAFT_PART_INSTALL"/usr/bin/
169 # Run all tests shiped by default153 # Run all tests shiped by default
170 #make check154 make check
diff --git a/spread.yaml b/spread.yaml
index ee293b4..5a5a777 100644
--- a/spread.yaml
+++ b/spread.yaml
@@ -22,13 +22,13 @@ environment:
22 SNAP_ARCH: amd6422 SNAP_ARCH: amd64
23 # Allow the host to pass the channel to use for the test run23 # Allow the host to pass the channel to use for the test run
24 SNAP_CHANNEL: $(HOST:echo $SNAP_CHANNEL)24 SNAP_CHANNEL: $(HOST:echo $SNAP_CHANNEL)
25 SNAP_AUTO_ALIASES: bluetoothctl obexctl hciconfig hcidump hciattach hcitool25 SNAP_AUTO_ALIASES: bluetoothctl hciconfig hcidump hciattach hcitool
2626
27backends:27backends:
28 qemu:28 qemu:
29 memory: 4G29 memory: 4G
30 systems:30 systems:
31 - ubuntu-core-20:31 - ubuntu-core-22:
32 bios: /usr/share/OVMF/OVMF_CODE.fd32 bios: /usr/share/OVMF/OVMF_CODE.fd
33 username: test33 username: test
34 password: test34 password: test
@@ -46,7 +46,7 @@ suites:
46 tests/main/:46 tests/main/:
47 summary: Full-system tests for BlueZ47 summary: Full-system tests for BlueZ
48 systems:48 systems:
49 - ubuntu-core-2049 - ubuntu-core-22
50 prepare: |50 prepare: |
51 . $TESTSLIB/prepare.sh51 . $TESTSLIB/prepare.sh
52 restore-each: |52 restore-each: |
diff --git a/tests/main/aliases/task.yaml b/tests/main/aliases/task.yaml
index 3813735..883624c 100644
--- a/tests/main/aliases/task.yaml
+++ b/tests/main/aliases/task.yaml
@@ -3,7 +3,6 @@ summary: Verify aliases provided by the snap are correctly enabled
3execute: |3execute: |
4 . $TESTSLIB/utilities.sh4 . $TESTSLIB/utilities.sh
5 test -e /snap/bin/bluetoothctl5 test -e /snap/bin/bluetoothctl
6 test -e /snap/bin/obexctl
7 test -e /snap/bin/hciconfig6 test -e /snap/bin/hciconfig
8 test -e /snap/bin/hcidump7 test -e /snap/bin/hcidump
9 test -e /snap/bin/hciattach8 test -e /snap/bin/hciattach

Subscribers

People subscribed via source and target branches