diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-07-10 20:51:27 +0200 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2016-07-12 09:13:57 +0200 |
commit | 8067852f7e000d6a6bb5ebbbb9e20327b54da37e (patch) | |
tree | 81bed4af7f9c35f48dbb114914ed9ed6b17389f4 /testing/android-tools/fix-getcwd.patch | |
parent | b4a92014a6e3e43726905fa2428871a5a1444b9f (diff) | |
download | aports-8067852f7e000d6a6bb5ebbbb9e20327b54da37e.tar.bz2 aports-8067852f7e000d6a6bb5ebbbb9e20327b54da37e.tar.xz |
testing/android-tools: upgrade to 6.0.1_p46
Use the ruby hack written by the arch linux folks to build the entire
thing.
Diffstat (limited to 'testing/android-tools/fix-getcwd.patch')
-rw-r--r-- | testing/android-tools/fix-getcwd.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/android-tools/fix-getcwd.patch b/testing/android-tools/fix-getcwd.patch new file mode 100644 index 0000000000..d96ab42523 --- /dev/null +++ b/testing/android-tools/fix-getcwd.patch @@ -0,0 +1,36 @@ +diff -upr core.orig/adb/adb_utils.cpp core/adb/adb_utils.cpp +--- a/core.orig/adb/adb_utils.cpp 2016-07-10 15:17:54.889682995 +0200 ++++ b/core/adb/adb_utils.cpp 2016-07-10 15:18:04.338747965 +0200 +@@ -30,7 +30,7 @@ + #include "adb_trace.h" + #include "sysdeps.h" + +-bool getcwd(std::string* s) { ++bool agetcwd(std::string* s) { + char* cwd = getcwd(nullptr, 0); + if (cwd != nullptr) *s = cwd; + free(cwd); +diff -upr core.orig/adb/commandline.cpp core/adb/commandline.cpp +--- a/core.orig/adb/commandline.cpp 2016-07-10 15:17:54.889682995 +0200 ++++ b/core/adb/commandline.cpp 2016-07-10 15:18:11.671355701 +0200 +@@ -863,7 +863,7 @@ static std::string find_product_out_path + // make it absolute. + if (adb_dirstart(hint) != nullptr) { + std::string cwd; +- if (!getcwd(&cwd)) { ++ if (!agetcwd(&cwd)) { + fprintf(stderr, "adb: getcwd failed: %s\n", strerror(errno)); + return ""; + } +diff -upr core.orig/adb/adb_utils.h core/adb/adb_utils.h +--- a/core.orig/adb/adb_utils.h 2016-07-10 15:21:09.327109127 +0200 ++++ b/core/adb/adb_utils.h 2016-07-10 15:21:18.272890564 +0200 +@@ -19,7 +19,7 @@ + + #include <string> + +-bool getcwd(std::string* cwd); ++bool agetcwd(std::string* cwd); + bool directory_exists(const std::string& path); + + std::string escape_arg(const std::string& s); |