Gentoo Archives: gentoo-commits

From: Aric Belsito <lluixhi@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: dev-util/android-tools/files/, dev-util/android-tools/
Date: Mon, 29 Jan 2018 20:24:10
Message-Id: 1517257414.5fcd64b166b2f212be146da7541114923af83fd9.lluixhi@gentoo
1 commit: 5fcd64b166b2f212be146da7541114923af83fd9
2 Author: Aric Belsito <lluixhi <AT> gmail <DOT> com>
3 AuthorDate: Mon Jan 29 20:23:34 2018 +0000
4 Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com>
5 CommitDate: Mon Jan 29 20:23:34 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=5fcd64b1
7
8 dev-util/android-tools: more musl patches
9
10 .../android-tools/android-tools-8.1.0_p1.ebuild | 1 +
11 .../files/android-tools-8.1.0_p1-musl.patch | 42 ++++++++++++++++++++++
12 2 files changed, 43 insertions(+)
13
14 diff --git a/dev-util/android-tools/android-tools-8.1.0_p1.ebuild b/dev-util/android-tools/android-tools-8.1.0_p1.ebuild
15 index 6160dd3..a1cc4d3 100644
16 --- a/dev-util/android-tools/android-tools-8.1.0_p1.ebuild
17 +++ b/dev-util/android-tools/android-tools-8.1.0_p1.ebuild
18 @@ -74,6 +74,7 @@ src_prepare() {
19 cd "${S}"/core
20 eapply "${WORKDIR}"/arch/trunk/fix_build_core.patch
21 eapply "${FILESDIR}"/${P}-build.patch
22 + eapply "${FILESDIR}"/${P}-musl.patch
23 sed -i '1i#include <sys/sysmacros.h>' adb/client/usb_linux.cpp || die #616508
24
25 cd "${S}"/selinux
26
27 diff --git a/dev-util/android-tools/files/android-tools-8.1.0_p1-musl.patch b/dev-util/android-tools/files/android-tools-8.1.0_p1-musl.patch
28 new file mode 100644
29 index 0000000..4b25964
30 --- /dev/null
31 +++ b/dev-util/android-tools/files/android-tools-8.1.0_p1-musl.patch
32 @@ -0,0 +1,42 @@
33 +--- a/base/logging.cpp
34 ++++ b/base/logging.cpp
35 +@@ -28,7 +28,7 @@
36 + // For getprogname(3) or program_invocation_short_name.
37 + #if defined(__ANDROID__) || defined(__APPLE__)
38 + #include <stdlib.h>
39 +-#elif defined(__GLIBC__)
40 ++#elif defined(__linux__)
41 + #include <errno.h>
42 + #endif
43 +
44 +@@ -90,7 +90,7 @@
45 + }
46 +
47 + namespace {
48 +-#if defined(__GLIBC__)
49 ++#if defined(__linux__)
50 + const char* getprogname() {
51 + return program_invocation_short_name;
52 + }
53 +--- a/adb/diagnose_usb.cpp 2018-01-29 12:05:10.466834056 -0800
54 ++++ b/adb/diagnose_usb.cpp 2018-01-29 12:13:20.980825271 -0800
55 +@@ -33,7 +33,7 @@
56 + // Returns a message describing any potential problems we find with udev, or an empty string if we
57 + // can't find plugdev information (i.e. udev is not installed).
58 + static std::string GetUdevProblem() {
59 +-#if defined(__linux__)
60 ++#if defined(__GLIBC__)
61 + errno = 0;
62 + group* plugdev_group = getgrnam("plugdev");
63 +
64 +--- a/fastboot/socket.cpp 2018-01-29 12:05:10.493834055 -0800
65 ++++ b/fastboot/socket.cpp 2018-01-29 12:17:23.666820925 -0800
66 +@@ -28,6 +28,8 @@
67 +
68 + #include "socket.h"
69 +
70 ++#include <sys/select.h>
71 ++
72 + #include <android-base/errors.h>
73 + #include <android-base/stringprintf.h>
74 +