diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/bluez/APKBUILD | 6 | ||||
-rw-r--r-- | user/bluez/time64.patch | 82 |
2 files changed, 87 insertions, 1 deletions
diff --git a/user/bluez/APKBUILD b/user/bluez/APKBUILD index 001fcb72e..9745dc4e0 100644 --- a/user/bluez/APKBUILD +++ b/user/bluez/APKBUILD @@ -24,9 +24,12 @@ source="https://www.kernel.org/pub/linux/bluetooth/bluez-$pkgver.tar.xz bluez-5.40-obexd_without_systemd-1.patch disable-lock-test.patch fix-endianness.patch + time64.patch " prepare() { + default_prepare + cd "$srcdir"/readline-8.0 ./configure \ --build=$CBUILD \ @@ -134,4 +137,5 @@ d5fd1c962bd846eaa6fff879bab85f753eb367d514f82d133b5d3242e1da989af5eddd942c60a87d 42ac04044a8c66e07487598b3a75ef52efc32999ebce4e7c63f6198e2f603f4a1442e74600e43a0938cb4f52d4db0298aa99050b18144b84990cda71748e9de5 004-Move-the-43xx-firmware-into-lib-firmware.patch b7640a78cb33b3628564ebb2d8bcaf4255bddf5a25068838a9cc5fbd26d5d8dbf51e4b6b6fd2137fccae593482b2927ba13cb166be255be02d72a245ea60c3ff bluez-5.40-obexd_without_systemd-1.patch 04c4889372c8e790bb338dde7ffa76dc32fcf7370025c71b9184fcf17fd01ade4a6613d84d648303af3bbc54043ad489f29fc0cd4679ec8c9029dcb846d7e026 disable-lock-test.patch -118d55183860f395fc4bdc93efffb13902ebf7388cad722b9061cd2860d404333e500af521741c3d92c0f8a161f6810348fbeb6682e49c372383f417aed8c76a fix-endianness.patch" +118d55183860f395fc4bdc93efffb13902ebf7388cad722b9061cd2860d404333e500af521741c3d92c0f8a161f6810348fbeb6682e49c372383f417aed8c76a fix-endianness.patch +51c8c0f9db7c416eed8b8e9c7a5d420acc793f4796edab235e5c19d1cc7d35cdae883c372916807bdc1be14582ac8dd4ea7b64c41f8774950a4dece3f6395f5d time64.patch" diff --git a/user/bluez/time64.patch b/user/bluez/time64.patch new file mode 100644 index 000000000..d3fe2a04e --- /dev/null +++ b/user/bluez/time64.patch @@ -0,0 +1,82 @@ +--- bluez-5.53/monitor/packet.c.old 2020-02-15 18:33:56.000000000 +0000 ++++ bluez-5.53/monitor/packet.c 2020-02-25 09:24:09.629224611 +0000 +@@ -364,7 +364,7 @@ + } + + if (filter_mask & PACKET_FILTER_SHOW_TIME) { +- n = sprintf(ts_str + ts_pos, " %02d:%02d:%02d.%06lu", ++ n = sprintf(ts_str + ts_pos, " %02d:%02d:%02"PRId64".%06"PRIu64, + tm.tm_hour, tm.tm_min, tm.tm_sec, tv->tv_usec); + if (n > 0) { + ts_pos += n; +@@ -373,7 +373,7 @@ + } + + if (filter_mask & PACKET_FILTER_SHOW_TIME_OFFSET) { +- n = sprintf(ts_str + ts_pos, " %lu.%06lu", ++ n = sprintf(ts_str + ts_pos, " %"PRIu64".%06"PRIu64, + tv->tv_sec - time_offset, tv->tv_usec); + if (n > 0) { + ts_pos += n; +--- bluez-5.53/tools/parser/parser.h.old 2015-10-30 03:30:13.000000000 +0000 ++++ bluez-5.53/tools/parser/parser.h 2020-02-25 09:26:51.471579651 +0000 +@@ -26,6 +26,7 @@ + #define __PARSER_H + + #include <time.h> ++#include <inttypes.h> + #include <sys/time.h> + #include <netinet/in.h> + +@@ -133,11 +134,11 @@ + struct tm tm; + time_t t = f->ts.tv_sec; + localtime_r(&t, &tm); +- printf("%04d-%02d-%02d %02d:%02d:%02d.%06lu ", ++ printf("%04d-%02d-%02d %02d:%02d:%02d.%06"PRIu64" ", + tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, + tm.tm_hour, tm.tm_min, tm.tm_sec, f->ts.tv_usec); + } else +- printf("%8lu.%06lu ", f->ts.tv_sec, f->ts.tv_usec); ++ printf("%8"PRIu64".%06"PRIu64" ", f->ts.tv_sec, f->ts.tv_usec); + } + printf("%c ", (f->in ? '>' : '<')); + parser.state = 1; +--- bluez-5.53/tools/rctest.c.old 2019-09-19 18:51:03.000000000 +0000 ++++ bluez-5.53/tools/rctest.c 2020-02-25 09:24:56.994060632 +0000 +@@ -36,6 +36,7 @@ + #include <getopt.h> + #include <syslog.h> + #include <signal.h> ++#include <inttypes.h> + #include <sys/time.h> + #include <sys/ioctl.h> + #include <sys/socket.h> +@@ -513,7 +514,7 @@ + timestamp = 0; + memset(ts, 0, sizeof(ts)); + } else { +- sprintf(ts, "[%ld.%ld] ", ++ sprintf(ts, "[%"PRId64".%"PRId64"] ", + tv.tv_sec, tv.tv_usec); + } + } +--- bluez-5.53/tools/l2test.c.old 2019-09-19 18:51:03.000000000 +0000 ++++ bluez-5.53/tools/l2test.c 2020-02-25 09:27:47.325490145 +0000 +@@ -38,6 +38,7 @@ + #include <getopt.h> + #include <syslog.h> + #include <signal.h> ++#include <inttypes.h> + #include <sys/time.h> + #include <poll.h> + #include <sys/ioctl.h> +@@ -915,7 +916,7 @@ + timestamp = 0; + memset(ts, 0, sizeof(ts)); + } else { +- sprintf(ts, "[%ld.%ld] ", ++ sprintf(ts, "[%"PRId64".%"PRId64"] ", + tv.tv_sec, tv.tv_usec); + } + } |