[arch-commits] Commit in android-tools/trunk (PKGBUILD fix_build_core.patch)

Anatol Pomozov anatolik at archlinux.org
Sun Oct 13 16:12:14 UTC 2019


    Date: Sunday, October 13, 2019 @ 16:12:13
  Author: anatolik
Revision: 515322

upgpkg: android-tools 29.0.4-2

FS#63370: reapply patch from upstream. It turned out platform-tools-29.0.4 tag does not contain the fix.

Modified:
  android-tools/trunk/PKGBUILD
  android-tools/trunk/fix_build_core.patch

----------------------+
 PKGBUILD             |    7 +++++--
 fix_build_core.patch |   21 +++++++++++++++++----
 2 files changed, 22 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-10-13 16:06:27 UTC (rev 515321)
+++ PKGBUILD	2019-10-13 16:12:13 UTC (rev 515322)
@@ -4,7 +4,7 @@
 
 pkgname=android-tools
 pkgver=29.0.4
-pkgrel=1
+pkgrel=2
 tag=platform-tools-$pkgver
 pkgdesc='Android platform tools'
 arch=(x86_64)
@@ -27,6 +27,7 @@
         git+https://boringssl.googlesource.com/boringssl#commit=$_boringssl_commit
         generate_build.rb
         fix_build_core.patch
+        fix_sparse_img.patch
         bash_completion.fastboot)
         # Bash completion file was taken from https://github.com/mbrubeck/android-completion
 sha1sums=('SKIP'
@@ -38,7 +39,8 @@
           'SKIP'
           'SKIP'
           'afca7974ad8658e52fd028ead12ad0a959d63273'
-          '6f3d6ca9112b0f2b3049febb46cf311ddc883567'
+          '9d35e4e9c4d1064783f3b1edaae0a2fae49493a4'
+          '2b57a4cf8012473c1a4fc6adae16573756272b02'
           '7004dbd0c193668827174880de6f8434de8ceaee')
 
 prepare() {
@@ -46,6 +48,7 @@
 
   cd "$srcdir"/core
   patch -p1 < ../fix_build_core.patch
+  patch -p1 < ../fix_sparse_img.patch # FS#63370
 
   cd "$srcdir"/avb
   sed -i 's|/usr/bin/env python$|/usr/bin/env python2|g' avbtool

Modified: fix_build_core.patch
===================================================================
--- fix_build_core.patch	2019-10-13 16:06:27 UTC (rev 515321)
+++ fix_build_core.patch	2019-10-13 16:12:13 UTC (rev 515322)
@@ -1,5 +1,5 @@
 diff --git a/adb/adb.cpp b/adb/adb.cpp
-index 24d4292d02..e4ad76b7c3 100644
+index 098ed38f30..d0b2e87e7c 100644
 --- a/adb/adb.cpp
 +++ b/adb/adb.cpp
 @@ -44,8 +44,6 @@
@@ -40,10 +40,10 @@
          usb_init();
      } else {
 diff --git a/adb/client/usb_libusb.cpp b/adb/client/usb_libusb.cpp
-index 53f01a0ce5..5be0d91085 100644
+index 53f01a0ce5..b4c3aadc28 100644
 --- a/adb/client/usb_libusb.cpp
 +++ b/adb/client/usb_libusb.cpp
-@@ -30,7 +31,7 @@
+@@ -30,7 +30,7 @@
  #include <thread>
  #include <unordered_map>
  
@@ -53,7 +53,7 @@
  #include <android-base/file.h>
  #include <android-base/logging.h>
 diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
-index 8923f409df..d245a577ff 100644
+index 8923f409df..5cadb9649b 100644
 --- a/fastboot/fastboot.cpp
 +++ b/fastboot/fastboot.cpp
 @@ -58,9 +58,7 @@
@@ -88,3 +88,16 @@
      std::vector<const char*> mke2fs_args = {mke2fs_path.c_str(), "-t", "ext4", "-b"};
  
      std::string block_size_str = std::to_string(block_size);
+diff --git a/libcutils/include/cutils/threads.h b/libcutils/include/cutils/threads.h
+index ba4846e33b..f3fccc4895 100644
+--- a/libcutils/include/cutils/threads.h
++++ b/libcutils/include/cutils/threads.h
+@@ -33,8 +33,6 @@ extern "C" {
+ // Deprecated: use android::base::GetThreadId instead, which doesn't truncate on Mac/Windows.
+ //
+ 
+-extern pid_t gettid();
+-
+ //
+ // Deprecated: use `_Thread_local` in C or `thread_local` in C++.
+ //



More information about the arch-commits mailing list