Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure adb check seems faulty #39763

Closed
binarycrusader opened this issue Feb 12, 2017 · 2 comments
Closed

configure adb check seems faulty #39763

binarycrusader opened this issue Feb 12, 2017 · 2 comments

Comments

@binarycrusader
Copy link
Contributor

binarycrusader commented Feb 12, 2017

While admittedly most people may never encounter this oddity, adb was not originally known as the android debugger. Instead, adb historically refered to adb(1), a venerable tool (general-purpose debugger) in the UNIX tool chest -- which the 7th Edition of UNIX (from 1979) had a version of.

So on Solaris, ./configure amusingly produces this output when it finds /usr/bin/adb:

configure: looking for target specific programs
configure: 
configure: CFG_ADB              := /usr/bin/adb 

The adb --version check that ./configure runs should be failing since that causes adb to exit with a return code of 2:

$ adb --version; echo $?
adb: illegal option -- version
Usage: adb [-fkmuwyAFKMSUW] [+/-o option] [-p pid] [-s dist] [-I path] [-L path]
        [-P prompt] [-R root] [-V dis-version] [object [core] | core | suffix]
...
2

This doesn't appear to cause any real harm, but since the configure check should be failing, this seems like it should be investigated and fixed.

@alexcrichton
Copy link
Member

Oh dear, sounds bad! Now that we've got rustbuild though we should just remove this logic entirely as I believe it's all unused

@Mark-Simulacrum
Copy link
Member

Today we don't have any verification logic or otherwise in regards to adb, just pulling it from the path here. As such, I guess this isn't a problem in that there is no check anymore, though we will still have problems if a wrong adb is used (which may be cryptic, I don't know). I'm going to close this since the issue it's tracking (configure detection of adb) is gone now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants