Skip to content

Commit

Permalink
package bluez
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Sep 28, 2019
1 parent 35195d9 commit cf412fb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pkgs/bluez/SIOCGSTAMP.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- old/tools/l2test.c 2016-10-28 14:57:27.000000000 +0200
+++ new/tools/l2test.c 2019-09-14 18:11:06.048024360 +0200
@@ -906,7 +906,7 @@
if (timestamp) {
struct timeval tv;

- if (ioctl(sk, SIOCGSTAMP, &tv) < 0) {
+ if (ioctl(sk, SIOCGSTAMP_OLD, &tv) < 0) {
timestamp = 0;
memset(ts, 0, sizeof(ts));
} else {
--- old/tools/rctest.c 2015-09-04 03:19:36.000000000 +0200
+++ new/tools/rctest.c 2019-09-14 18:11:06.060024102 +0200
@@ -504,7 +504,7 @@
if (timestamp) {
struct timeval tv;

- if (ioctl(sk, SIOCGSTAMP, &tv) < 0) {
+ if (ioctl(sk, SIOCGSTAMP_OLD, &tv) < 0) {
timestamp = 0;
memset(ts, 0, sizeof(ts));
} else {
18 changes: 18 additions & 0 deletions pkgs/bluez/build.textproto
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
source: "http://www.kernel.org/pub/linux/bluetooth/bluez-5.50.tar.xz"
hash: "5ffcaae18bbb6155f1591be8c24898dc12f062075a40b538b745bfd477481911"
version: "5.50-5"

cherry_pick: "SIOCGSTAMP.patch"

cbuilder: <
extra_configure_flag: "--disable-obex"
extra_configure_flag: "--with-systemdsystemunitdir=${prefix}/lib/systemd/system"
extra_configure_flag: "--with-systemduserunitdir=${prefix}/lib/systemd/user"
extra_configure_flag: "--localstatedir=/var"
extra_configure_flag: "--enable-library"
copy_to_builddir: true
>

# build dependencies:
dep: "dbus"
dep: "readline"

0 comments on commit cf412fb

Please sign in to comment.