Changeset View
Changeset View
Standalone View
Standalone View
files/fix_build_core.patch
| diff --git a/adb/adb.cpp b/adb/adb.cpp | diff --git a/adb/adb.cpp b/adb/adb.cpp | ||||
| index 1ec145b25c..b6e943f6ee 100644 | index 08d3904c71..a73362acec 100644 | ||||
| --- a/adb/adb.cpp | --- a/adb/adb.cpp | ||||
| +++ b/adb/adb.cpp | +++ b/adb/adb.cpp | ||||
| @@ -44,8 +44,6 @@ | @@ -45,8 +45,6 @@ | ||||
| #include <android-base/parsenetaddress.h> | #include <android-base/parsenetaddress.h> | ||||
| #include <android-base/stringprintf.h> | #include <android-base/stringprintf.h> | ||||
| #include <android-base/strings.h> | #include <android-base/strings.h> | ||||
| -#include <build/version.h> | -#include <build/version.h> | ||||
| -#include <platform_tools_version.h> | -#include <platform_tools_version.h> | ||||
| #include "adb_auth.h" | #include "adb_auth.h" | ||||
| #include "adb_io.h" | #include "adb_io.h" | ||||
| @@ -66,10 +64,10 @@ std::string adb_version() { | @@ -74,10 +72,10 @@ std::string adb_version() { | ||||
| // Don't change the format of this --- it's parsed by ddmlib. | // Don't change the format of this --- it's parsed by ddmlib. | ||||
| return android::base::StringPrintf( | return android::base::StringPrintf( | ||||
| "Android Debug Bridge version %d.%d.%d\n" | "Android Debug Bridge version %d.%d.%d\n" | ||||
| - "Version %s-%s\n" | - "Version %s-%s\n" | ||||
| + "Version %s\n" | + "Version %s\n" | ||||
| "Installed as %s\n", | "Installed as %s\n", | ||||
| ADB_VERSION_MAJOR, ADB_VERSION_MINOR, ADB_SERVER_VERSION, | ADB_VERSION_MAJOR, ADB_VERSION_MINOR, ADB_SERVER_VERSION, | ||||
| - PLATFORM_TOOLS_VERSION, android::build::GetBuildNumber().c_str(), | - PLATFORM_TOOLS_VERSION, android::build::GetBuildNumber().c_str(), | ||||
| + PLATFORM_TOOLS_VERSION, | + PLATFORM_TOOLS_VERSION, | ||||
| android::base::GetExecutablePath().c_str()); | android::base::GetExecutablePath().c_str()); | ||||
| } | } | ||||
| diff --git a/adb/client/adb_wifi.cpp b/adb/client/adb_wifi.cpp | |||||
| index fa71028115..8c460f24fb 100644 | |||||
| --- a/adb/client/adb_wifi.cpp | |||||
| +++ b/adb/client/adb_wifi.cpp | |||||
| @@ -242,5 +242,6 @@ void adb_wifi_pair_device(const std::string& host, const std::string& password, | |||||
| // Write to adb_known_hosts | |||||
| write_known_host_to_file(device_guid); | |||||
| // Try to auto-connect. | |||||
| - adb_secure_connect_by_service_name(device_guid.c_str()); | |||||
| + // ARCH: following function requires mdns code that is not compatible with mdns system library | |||||
| + // adb_secure_connect_by_service_name(device_guid.c_str()); | |||||
| } | |||||
| diff --git a/adb/client/main.cpp b/adb/client/main.cpp | diff --git a/adb/client/main.cpp b/adb/client/main.cpp | ||||
| index 0c5c28f1b3..b6a1281521 100644 | index 05e210f607..99192831c5 100644 | ||||
| --- a/adb/client/main.cpp | --- a/adb/client/main.cpp | ||||
| +++ b/adb/client/main.cpp | +++ b/adb/client/main.cpp | ||||
| @@ -118,10 +118,6 @@ int adb_server_main(int is_daemon, const std::string& socket_spec, int ack_reply | @@ -126,9 +126,6 @@ int adb_server_main(int is_daemon, const std::string& socket_spec, int ack_reply | ||||
| init_transport_registration(); | |||||
| init_reconnect_handler(); | init_reconnect_handler(); | ||||
| adb_wifi_init(); | |||||
| - if (!getenv("ADB_MDNS") || strcmp(getenv("ADB_MDNS"), "0") != 0) { | - if (!getenv("ADB_MDNS") || strcmp(getenv("ADB_MDNS"), "0") != 0) { | ||||
| - init_mdns_transport_discovery(); | - init_mdns_transport_discovery(); | ||||
| - } | - } | ||||
| - | |||||
| if (!getenv("ADB_USB") || strcmp(getenv("ADB_USB"), "0") != 0) { | if (!getenv("ADB_USB") || strcmp(getenv("ADB_USB"), "0") != 0) { | ||||
| usb_init(); | usb_init(); | ||||
| } else { | |||||
| diff --git a/adb/client/usb_libusb.cpp b/adb/client/usb_libusb.cpp | diff --git a/adb/client/usb_libusb.cpp b/adb/client/usb_libusb.cpp | ||||
| index 53f01a0ce5..b4c3aadc28 100644 | index 07cbc9418c..6145392194 100644 | ||||
| --- a/adb/client/usb_libusb.cpp | --- a/adb/client/usb_libusb.cpp | ||||
| +++ b/adb/client/usb_libusb.cpp | +++ b/adb/client/usb_libusb.cpp | ||||
| @@ -30,7 +30,7 @@ | @@ -30,7 +30,7 @@ | ||||
| #include <thread> | #include <thread> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| -#include <libusb/libusb.h> | -#include <libusb/libusb.h> | ||||
| +#include <libusb-1.0/libusb.h> | +#include <libusb-1.0/libusb.h> | ||||
| #include <android-base/file.h> | #include <android-base/file.h> | ||||
| #include <android-base/logging.h> | #include <android-base/logging.h> | ||||
| diff --git a/adb/crypto/x509_generator.cpp b/adb/crypto/x509_generator.cpp | |||||
| index 43b8153048..6900b3a497 100644 | |||||
| --- a/adb/crypto/x509_generator.cpp | |||||
| +++ b/adb/crypto/x509_generator.cpp | |||||
| @@ -17,6 +17,7 @@ | |||||
| #include "adb/crypto/x509_generator.h" | |||||
| #include <vector> | |||||
| +#include <string.h> | |||||
| #include <android-base/logging.h> | |||||
| #include <crypto_utils/android_pubkey.h> | |||||
| diff --git a/adb/pairing_auth/aes_128_gcm.cpp b/adb/pairing_auth/aes_128_gcm.cpp | |||||
| index 51520d814d..2d5f86fa81 100644 | |||||
| --- a/adb/pairing_auth/aes_128_gcm.cpp | |||||
| +++ b/adb/pairing_auth/aes_128_gcm.cpp | |||||
| @@ -23,6 +23,8 @@ | |||||
| #include <openssl/hkdf.h> | |||||
| #include <openssl/rand.h> | |||||
| +#include <string.h> | |||||
| + | |||||
| namespace adb { | |||||
| namespace pairing { | |||||
| diff --git a/adb/pairing_auth/pairing_auth.cpp b/adb/pairing_auth/pairing_auth.cpp | |||||
| index 0ac04e6913..de2aa740ea 100644 | |||||
| --- a/adb/pairing_auth/pairing_auth.cpp | |||||
| +++ b/adb/pairing_auth/pairing_auth.cpp | |||||
| @@ -21,6 +21,7 @@ | |||||
| #include <openssl/curve25519.h> | |||||
| #include <openssl/mem.h> | |||||
| +#include <string.h> | |||||
| #include <iomanip> | |||||
| #include <sstream> | |||||
| #include <vector> | |||||
| diff --git a/adb/tls/tls_connection.cpp b/adb/tls/tls_connection.cpp | |||||
| index 853cdac08c..3613c3768b 100644 | |||||
| --- a/adb/tls/tls_connection.cpp | |||||
| +++ b/adb/tls/tls_connection.cpp | |||||
| @@ -18,6 +18,7 @@ | |||||
| #include <algorithm> | |||||
| #include <vector> | |||||
| +#include <limits.h> | |||||
| #include <android-base/logging.h> | |||||
| #include <android-base/strings.h> | |||||
| diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp | diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp | ||||
| index 2fe3b1a9e0..a61b221ce3 100644 | index 7f6e7230f4..808f2e0671 100644 | ||||
| --- a/fastboot/fastboot.cpp | --- a/fastboot/fastboot.cpp | ||||
| +++ b/fastboot/fastboot.cpp | +++ b/fastboot/fastboot.cpp | ||||
| @@ -59,10 +59,8 @@ | @@ -59,10 +59,8 @@ | ||||
| #include <android-base/stringprintf.h> | #include <android-base/stringprintf.h> | ||||
| #include <android-base/strings.h> | #include <android-base/strings.h> | ||||
| #include <android-base/unique_fd.h> | #include <android-base/unique_fd.h> | ||||
| -#include <build/version.h> | -#include <build/version.h> | ||||
| #include <libavb/libavb.h> | #include <libavb/libavb.h> | ||||
| #include <liblp/liblp.h> | #include <liblp/liblp.h> | ||||
| -#include <platform_tools_version.h> | -#include <platform_tools_version.h> | ||||
| #include <sparse/sparse.h> | #include <sparse/sparse.h> | ||||
| #include <ziparchive/zip_archive.h> | #include <ziparchive/zip_archive.h> | ||||
| @@ -1783,7 +1781,7 @@ int FastBootTool::Main(int argc, char* argv[]) { | @@ -1799,7 +1797,7 @@ int FastBootTool::Main(int argc, char* argv[]) { | ||||
| setvbuf(stdout, nullptr, _IONBF, 0); | setvbuf(stdout, nullptr, _IONBF, 0); | ||||
| setvbuf(stderr, nullptr, _IONBF, 0); | setvbuf(stderr, nullptr, _IONBF, 0); | ||||
| } else if (name == "version") { | } else if (name == "version") { | ||||
| - fprintf(stdout, "fastboot version %s-%s\n", PLATFORM_TOOLS_VERSION, android::build::GetBuildNumber().c_str()); | - fprintf(stdout, "fastboot version %s-%s\n", PLATFORM_TOOLS_VERSION, android::build::GetBuildNumber().c_str()); | ||||
| + fprintf(stdout, "fastboot version %s\n", PLATFORM_TOOLS_VERSION); | + fprintf(stdout, "fastboot version %s\n", PLATFORM_TOOLS_VERSION); | ||||
| fprintf(stdout, "Installed as %s\n", android::base::GetExecutablePath().c_str()); | fprintf(stdout, "Installed as %s\n", android::base::GetExecutablePath().c_str()); | ||||
| return 0; | return 0; | ||||
| #if !defined(_WIN32) | #if !defined(_WIN32) | ||||
| Show All 17 Lines | |||||
| @@ -33,8 +33,6 @@ extern "C" { | @@ -33,8 +33,6 @@ extern "C" { | ||||
| // Deprecated: use android::base::GetThreadId instead, which doesn't truncate on Mac/Windows. | // Deprecated: use android::base::GetThreadId instead, which doesn't truncate on Mac/Windows. | ||||
| // | // | ||||
| -extern pid_t gettid(); | -extern pid_t gettid(); | ||||
| - | - | ||||
| // | // | ||||
| // Deprecated: use `_Thread_local` in C or `thread_local` in C++. | // Deprecated: use `_Thread_local` in C or `thread_local` in C++. | ||||
| // | // | ||||
| No newline at end of file | diff --git a/libziparchive/zip_cd_entry_map.h b/libziparchive/zip_cd_entry_map.h | ||||
| index 4957f754e7..1cfb74dd5b 100644 | |||||
| --- a/libziparchive/zip_cd_entry_map.h | |||||
| +++ b/libziparchive/zip_cd_entry_map.h | |||||
| @@ -17,6 +17,7 @@ | |||||
| #pragma once | |||||
| #include <stdint.h> | |||||
| +#include <stdlib.h> | |||||
| #include <map> | |||||
| #include <memory> | |||||
Copyright © 2015-2021 Solus Project. The Solus logo is Copyright © 2016-2021 Solus Project. All Rights Reserved.