Warning: file_exists(): open_basedir restriction in effect. File(/srv/http/vhosts/aur.archlinux.org/public/web/locale//en/LC_MESSAGES/aurweb.mo) is not within the allowed path(s): (/srv/http/vhosts/aur-dev.archlinux.org/:/etc/aurweb/) in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/streams.php on line 90
AUR (en) - fb-adb-git

Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: fb-adb-git 20161201.r353.c6e6e4d-1

Git Clone URL: https://aur-dev.archlinux.org/fb-adb-git.git (read-only)
Package Base: fb-adb-git
Description: A better shell to use in place of adb when connecting to Android devices
Upstream URL: https://github.com/facebook/fb-adb
Licenses: GPL3
Submitter: prurigro
Maintainer: prurigro
Last Packager: prurigro
Votes: 6
Popularity: 0.085853
First Submitted: 2014-10-06 10:34
Last Updated: 2017-01-02 17:42

Latest Comments

1 2 Next › Last »

lockheed commented on 2016-06-03 16:40

@yan12125, that did it. Thanks!

yan12125 commented on 2016-06-03 03:33

Maybe a Java version issue. I use jdk8-openjdk. Your log is incomplete and I can't figured out what's happening.

lockheed commented on 2016-06-02 21:01

@yan12125. One step further, but still no dice. Looks like it is not meant to work for me...

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Agent.class: file not found
at com.android.dex.util.FileUtils.readFile(FileUtils.java:51)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:169)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:672)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)
1 error; aborting
Makefile:1281: recipe for target 'agent.dex' failed
make[1]: *** [agent.dex] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/cmd_bash_completion.Tpo .deps/cmd_bash_completion.Po
mv -f .deps/autocmd.Tpo .deps/autocmd.Po
make[1]: Leaving directory '/tmp/fb-adb-git/src/fb-adb/build'
Makefile:780: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
==> ERROR: A failure occurred in build().
Aborting...

yan12125 commented on 2016-06-02 16:51

@lockheed Here's a working version for me: https://gist.github.com/yan12125/3fbc3067f25e416cccc7cae6c9c8be7b. I remove most NDK-relevant lines for simplicity.

lockheed commented on 2016-06-02 15:33

@yan12125, I tried adding "export ANDROID_SDK=$ANDROID_HOME" in build, but still get:

==> Starting build()...
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake line 3936.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: error: Android SDK location not given
==> ERROR: A failure occurred in build().
Aborting...



Could you paste the entire working PKGBUILD?

yan12125 commented on 2016-06-01 05:20

For @lockheed's PKGBUILD, I just have to add "export ANDROID_SDK=$ANDROID_HOME" in build() for a correct build. Yay!

yan12125 commented on 2016-06-01 04:57

Installed android-sdk. It exposes $ANDROID_HOME but not $ANDROID_SDK. I try the following command but fails:

$ ANDROID_SDK=$ANDROID_HOME yaourt fb-adb-git
(...some AUR comments...)
==> Building and installing package
==> Making package: fb-adb-git 20160514.r338.5e970a4-1 (Wed Jun 1 12:54:37 CST 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Updating fb-adb git repo...
Fetching origin
==> Validating source files with sha512sums...
fb-adb ... Skipped
==> Extracting sources...
-> Creating working copy of fb-adb git repo...
Cloning into 'fb-adb'...
done.
==> Starting prepare()...
==> ERROR: A failure occurred in prepare().
Aborting...
==> ERROR: Makepkg was unable to build fb-adb-git.

yan12125 commented on 2016-06-01 04:53

It works but not ideal. Building this package eats 4.4G in my /tmp - I have to enlarge /tmp or use $TMPDIR to build this package correctly.

lockheed commented on 2016-05-21 08:49

@yan12125
Can you verify whether this is how the PKGBUILD needs to be modified? http://pastebin.com/raw/JfVBJGfF

yan12125 commented on 2016-05-21 08:36

Since rev 338 fb-adb requires the Java part of Android SDK:

diff --git a/PKGBUILD b/PKGBUILD
index e35df51..ecc7f42 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@

_pkgname=fb-adb
pkgname=$_pkgname-git
-pkgver=20160421.r337.ae33dc4
+pkgver=20160514.r338.5e970a4
pkgrel=1
pkgdesc='A better shell to use in place of adb when connecting to Android devices'
url='https://github.com/facebook/fb-adb'
license=('GPL3')
arch=('i686' 'x86_64')
depends=('android-tools')
-makedepends=('git' 'vim')
+makedepends=('git' 'vim' 'android-sdk' 'android-platform-19' 'android-sdk-build-tools')
options=('!strip' '!buildflags')
source=("git+$url.git")
sha512sums=('SKIP')
@@ -32,6 +32,8 @@ build() {
[[ -z "$ANDROID_NDK" ]] \
&& export ANDROID_NDK="$srcdir/android-ndk-r$_ndkver"

+ export ANDROID_SDK=$ANDROID_HOME
+
# configure
cd $_pkgname
./autogen.sh