Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350302 - dev-util/android-sdk-update-manager: provide use-flag to switch X-dependencies on/off
Summary: dev-util/android-sdk-update-manager: provide use-flag to switch X-dependencie...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Richard Freeman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-01 17:56 UTC by Sven
Modified: 2014-02-03 15:18 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for android-sdk-update-manager-11 (android-sdk-update-manager-11-r1.ebuild,2.93 KB, text/plain)
2011-06-07 21:19 UTC, Frédéric Barthelery
Details

Note You need to log in before you can comment on or make changes to this bug.
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