Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 595474 - dev-util/android-studio should RDEPEND on gnome-extra/zenity
Summary: dev-util/android-studio should RDEPEND on gnome-extra/zenity
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 598722
  Show dependency tree
 
Reported: 2016-09-28 22:05 UTC by Christian Merkle
Modified: 2016-11-05 02:52 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge.info,7.57 KB, text/plain)
2016-10-31 21:30 UTC, Andrei Slavoiu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Merkle 2016-09-28 22:05:47 UTC
I installed dev-util/android-studio-2.2.0.12.145.3276617  an my amd64 system, but android-studio refuses to start withe the message:

which: no zenity in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3:/usr/games/bin)

Installing gnome-extra/zenity resolves the issue. So gnome-extra/zenity needs to be a dependency for dev-util/android-studio
Comment 1 Jason Zaman gentoo-dev 2016-10-31 10:04:54 UTC
Fixed in commit 0f2942f6da243334aac2ad1725b5376b0cba5c99
dev-util/android-studio-2.2.2.0.145.3360264
Thanks!
Comment 2 Andrei Slavoiu 2016-10-31 21:28:29 UTC
I see version 2.2.2.0.145.3360264 has been added to the tree with unconditional dependency on gnome-extra/zenity and I suppose it's because of this bug report. However, I don't believe this is accurate, as android-studio starts on my system without having zenity installed, and indeed it supports several alternatives to it:

# grep -rB3 -A10  zenity `qlist android-studio`
grep: /opt/android-studio/jre: No such file or directory
/opt/android-studio/bin/studio.sh-message()
/opt/android-studio/bin/studio.sh-{
/opt/android-studio/bin/studio.sh-  TITLE="Cannot start Android Studio"
/opt/android-studio/bin/studio.sh:  if [ -n "`which zenity`" ]; then
/opt/android-studio/bin/studio.sh:    zenity --error --title="$TITLE" --text="$1"
/opt/android-studio/bin/studio.sh-  elif [ -n "`which kdialog`" ]; then
/opt/android-studio/bin/studio.sh-    kdialog --error --title "$TITLE" "$1"
/opt/android-studio/bin/studio.sh-  elif [ -n "`which xmessage`" ]; then
/opt/android-studio/bin/studio.sh-    xmessage -center "ERROR: $TITLE: $1"
/opt/android-studio/bin/studio.sh-  elif [ -n "`which notify-send`" ]; then
/opt/android-studio/bin/studio.sh-    notify-send "ERROR: $TITLE: $1"
/opt/android-studio/bin/studio.sh-  else
/opt/android-studio/bin/studio.sh-    echo "ERROR: $TITLE\n$1"
/opt/android-studio/bin/studio.sh-  fi
/opt/android-studio/bin/studio.sh-}

It looks like the only place using zenity is the startup script, only for displaying error messages, and there are alternatives to it.

So the dependency should be changed to || (gnome-extra/zenity kde-apps/kdialog x11-apps/xmessage x11-libs/libnotify) and the cause of android-studio not starting on some systems without zenity be further investigated.
Comment 3 Andrei Slavoiu 2016-10-31 21:30:09 UTC
Created attachment 452051 [details]
emerge --info

result of: emerge --info android-studio zenity kdialog xmessage libnotify