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: RESOLVED PKGREMOVED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2011-01-01 17:56 UTC by Sven
Modified: 2025-01-06 19:54 UTC (History)
6 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
Comment 3 Larry the Git Cow gentoo-dev 2025-01-06 19:54:27 UTC
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(-)