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
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.
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
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6e182df1ae49872cd8bc166d6cdee7f3fd423d0 commit b6e182df1ae49872cd8bc166d6cdee7f3fd423d0 Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2025-01-06 19:48:01 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2025-01-06 19:49:59 +0000 dev-util/android-sdk-update-manager: treeclean Closes: https://bugs.gentoo.org/350302 (pkgremoved) Closes: https://bugs.gentoo.org/366739 (pkgremoved) Closes: https://bugs.gentoo.org/501586 (pkgremoved) Closes: https://bugs.gentoo.org/517744 (pkgremoved) Closes: https://bugs.gentoo.org/637422 (pkgremoved) Closes: https://bugs.gentoo.org/704198 (pkgremoved) Closes: https://bugs.gentoo.org/738898 (pkgremoved) Closes: https://bugs.gentoo.org/757543 (pkgremoved) Closes: https://bugs.gentoo.org/845294 (pkgremoved) Signed-off-by: Florian Schmaus <flow@gentoo.org> dev-util/android-sdk-update-manager/Manifest | 1 - .../android-sdk-update-manager-24.4.1-r2.ebuild | 97 ---------------------- .../files/80-android.rules | 4 - .../files/android-sdk-update-manager.desktop | 10 --- dev-util/android-sdk-update-manager/metadata.xml | 5 -- profiles/package.mask | 10 --- 6 files changed, 127 deletions(-)