Files
android-tools/fix-install-completion.patch
Paolo Panto d29eee870d - Exclude ppc ppc64 and ppc64le: Bundled boringssl doesn't support
the big endian architectures and dropped ppc64le support
- Simplify python3 requirements
- Simplify fix-install-completion.patch

OBS-URL: https://build.opensuse.org/package/show/hardware/android-tools?expand=0&rev=74
2024-11-09 05:18:46 +00:00

42 lines
1.2 KiB
Diff

diff -ruN a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,8 +14,7 @@
option(ANDROID_TOOLS_LIBUSB_ENABLE_UDEV "Enable udev for device enumeration and hotplug support" OFF)
# Install bash/zsh completion files.
-set(COMPLETION_COMMON_DIR "${CMAKE_INSTALL_FULL_DATADIR}/android-tools/completions")
-add_subdirectory(completions)
+set(COMPLETION_COMMON_DIR "${CMAKE_INSTALL_FULL_DATADIR}/bash-completion/completions")
# Android provides it's own version of mke2fs which is incompatible with
# the version shipped by e2fsprogs. To prevent a name clash we install
diff -ruN a/vendor/adb/adb.bash b/vendor/adb/adb.bash
--- a/vendor/adb/adb.bash
+++ b/vendor/adb/adb.bash
@@ -15,6 +15,10 @@
# limitations under the License.
#
+check_type() {
+ type -t "$1"
+}
+
_adb() {
if ! check_type "$1" >/dev/null; then
return
diff -ruN a/vendor/core/fastboot/fastboot.bash b/vendor/core/fastboot/fastboot.bash
--- a/vendor/core/fastboot/fastboot.bash
+++ b/vendor/core/fastboot/fastboot.bash
@@ -15,6 +15,10 @@
# limitations under the License.
#
+check_type() {
+ type -t "$1"
+}
+
_fastboot() {
if ! check_type "$1" >/dev/null; then
return