Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 350302

Summary: dev-util/android-sdk-update-manager: provide use-flag to switch X-dependencies on/off
Product: Gentoo Linux Reporter: Sven <sven.koehler>
Component: New packagesAssignee: No maintainer - Look at if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: normal CC: admwiggin, alex_y_xu, da_risk, kingjon3377, kripton, nelchael
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: ebuild for android-sdk-update-manager-11

Description Sven 2011-01-01 17:56:51 UTC
The android-sdk-update-manager seem to run from the command line quite fine. In particular, I would like to install android SDKs it on my built server. However, this server doesn't have X and actually I wouldn't like to refrain from installing any X dependencies.

However, android-sdk-update-manager statically depends on dev-java/swt, which depends on cairo, etc.

I tricked portage into installing android-sdk-update-manage without installing dev-java/swt (--nodeps and friends). When I tried to run it, it complained that the env-variable ANDROID_SWT wasn't set. However, after that variable pointed to a valid directory, the android command succeeded in downloading and installed android SDKs. For example:

ANDROID_SWT="/tmp/" android update sdk -u

worked without a hassle.

So I would appreciate a headless flag, along with some simple patches to make the wrapper scripts in case swt isn't installed.

I will try to find somebody upstream to implement proper support.

Reproducible: Always
Comment 1 Tianon 2011-02-05 06:36:44 UTC
When installing swt, I noticed that it has several use flags (including gnome and cairo).  If you take those off, does it result in a smaller build?  It's not headless, but it might be more lightweight.  Would be cool to not need it for a server environment, though, since you can do most things from the command line.
Comment 2 Frédéric Barthelery 2011-06-07 21:19:14 UTC
Created attachment 276209 [details]
ebuild for android-sdk-update-manager-11

I just hack the ebuild to :
 - to use the X useflag to switch the dependencies on/off
 - be dependant on swt-3.5 or swt-3.6 

Note : when you use the -X flag the following commands may break : 
ddms, android, emulator