Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 383875 - net-misc/dropbox: missing RDEPEND on x11-themes/hicolor-icon-theme
Summary: net-misc/dropbox: missing RDEPEND on x11-themes/hicolor-icon-theme
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-21 03:20 UTC by Dan Wallis
Modified: 2012-03-02 00:37 UTC (History)
0 users

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


Attachments
equery files x11-themes/hicolor-icon-theme (hicolor-files,20.95 KB, text/plain)
2011-11-07 09:25 UTC, Dan Wallis
Details
Strace output ("strace dropbox start 2>&1 | tee dropbox.strace") (dropbox.strace.bz2,183.82 KB, application/x-bzip2)
2012-01-17 23:59 UTC, Dan Wallis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Wallis 2011-09-21 03:20:03 UTC
I'm not sure if this bug should be assigned to gnome-extra/nautilus-dropbox or (more probably) net-misc/dropbox, but one of these should RDEPEND on x11-themes/hicolor-icon-theme to avoid this message:

(dropbox:18065): Gtk-WARNING **: Could not find the icon 'dropboxstatus-logo'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
	http://icon-theme.freedesktop.org/releases
Comment 1 Naohiro Aota gentoo-dev 2011-09-27 16:01:45 UTC
Seems the package lacks /usr/share/icons/*. I've modified the package to add icons.

Please try 1.2.24-r1 and reopen this bug if it won't solve the problem.

Thanks,
Comment 2 Dan Wallis 2011-09-27 22:14:52 UTC
Didn't seem to help unfortunately. Still getting same error message without x11-themes/hicolor-icon-theme installed.

fredden@gordo ~ $ equery files dropbox | grep dropboxstatus-logo 
/home/fredden/.gentoo/opt/dropbox/icons/hicolor/16x16/status/dropboxstatus-logo.png
/home/fredden/.gentoo/usr/share/icons/hicolor/16x16/status/dropboxstatus-logo.png
fredden@gordo ~ $
Comment 3 Naohiro Aota gentoo-dev 2011-09-28 06:25:01 UTC
(In reply to comment #2)
> Didn't seem to help unfortunately. Still getting same error message without
> x11-themes/hicolor-icon-theme installed.
> 
> fredden@gordo ~ $ equery files dropbox | grep dropboxstatus-logo 
> /home/fredden/.gentoo/opt/dropbox/icons/hicolor/16x16/status/dropboxstatus-logo.png
> /home/fredden/.gentoo/usr/share/icons/hicolor/16x16/status/dropboxstatus-logo.png
> fredden@gordo ~ $

I don't want to add x11-themes/hicolor-icon-theme as RDEPEND because that's a fallback option ... we should fix dropbox package to be able to find its own "dropboxstatus-logo" theme...

BTW, are you using prefix on Linux? and what files get installed by x11-themes/hicolor-icon-theme?
Comment 4 Dan Wallis 2011-11-07 09:25:17 UTC
Created attachment 291875 [details]
equery files x11-themes/hicolor-icon-theme

(In reply to comment #3)
> I don't want to add x11-themes/hicolor-icon-theme as RDEPEND because that's a
> fallback option ... we should fix dropbox package to be able to find its own
> "dropboxstatus-logo" theme...

Right, agreed. I didn't realise that hicolour-icon-theme was a fall-back.

> BTW, are you using prefix on Linux?

Yes. The host is Debian (squeeze) x86.

> and what files get installed by x11-themes/hicolor-icon-theme?

See attachment. I'll try to do some further debugging when I'm back at that machine.
Comment 5 Naohiro Aota gentoo-dev 2011-11-14 19:05:53 UTC
strings icon-theme.cache show me dropbox images are cached into the database..

% strings /usr/share/icons/hicolor/icon-theme.cache|grep dropbox
Ddropboxstatus-busy2
8dropboxstatus-idle
0nXdropboxstatus-logo
G[hdropboxstatus-blank
dropboxstatus-busy
dropboxstatus-x

If you don't get this result, then proberly something wrong with cache process.
Comment 6 Dan Wallis 2012-01-17 04:44:16 UTC
fredden@gordo ~/.gentoo/usr/share/icons/hicolor $ find -print | grep -i dropbox 
./24x24/apps/dropbox.png
./16x16/apps/dropbox.png
./16x16/status/dropboxstatus-logo.png
./16x16/status/dropboxstatus-x.png
./16x16/status/dropboxstatus-blank.png
./16x16/status/dropboxstatus-busy.png
./16x16/status/dropboxstatus-busy2.png
./16x16/status/dropboxstatus-idle.png
./64x64/apps/dropbox.png
./22x22/apps/dropbox.png
./32x32/apps/dropbox.png
./256x256/apps/dropbox.png
./48x48/apps/dropbox.png

$ strings icon-theme.cache | grep -i dropbox 
dropboxstatus-x
* dropboxstatus-busy2
.tdropboxstatus-logo
dropboxstatus-blank
[ldropboxstatus-busy
dropbox
*(dropboxstatus-idle
Comment 7 Dan Wallis 2012-01-17 23:59:41 UTC
Created attachment 299183 [details]
Strace output ("strace dropbox start 2>&1 | tee dropbox.strace")

I tried updating to net-misc/dropbox-1.2.48-r1 (with patch from bug 378719), but still get the same issue.

Not sure if this section from strace helps any:

gettimeofday({1326843321, 743995}, NULL) = 0
stat64("/home/fredden/.icons/hicolor/index.theme", 0xbf91a510) = -1 ENOENT (No such file or directory)
stat64("/home/fredden/.local/share/icons/hicolor/index.theme", 0xbf91a510) = -1 ENOENT (No such file or directory)
stat64("/home/fredden/.gentoo/usr/share/icons/hicolor/index.theme", 0xbf91a510) = -1 ENOENT (No such file or directory)
stat64("/home/fredden/.gentoo/usr/share/pixmaps/hicolor/index.theme", 0xbf91a510) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/gtk20.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "\n(dropbox:9858): Gtk-WARNING **:"..., 222
(dropbox:9858): Gtk-WARNING **: Could not find the icon 'dropboxstatus-logo'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
        http://icon-theme.freedesktop.org/releases
) = 222
stat64("/home/fredden/.gentoo/opt/dropbox/icons/hicolor/16x16/status/dropboxstatus-logo.png", {st_mode=S_IFREG|0644, st_size=918, ...}) = 0
open("/home/fredden/.gentoo/opt/dropbox/icons/hicolor/16x16/status/dropboxstatus-logo.png", O_RDONLY|O_LARGEFILE) = 14



So perhaps the binary is looking for $EPREFIX/usr/share/icons/hicolor/index.theme but should be looking for $EPREFIX/usr/share/icons/hicolor/icon-theme.cache ?
Comment 8 Naohiro Aota gentoo-dev 2012-03-02 00:37:18 UTC
ok, finally I was able to reproduce the problem. You are correct.

Step to reproduce for me is:
1. emerge -C dropbox
2. emerge -C hicolor-icon-theme
3. emerge dropbox

The last time I tried, I just removed hicolor-icon-theme, so that the theme cache not regenerated to drop "dropbox" cache.

and dropbox's icon cache never created when hicolor-icon-theme is not installed.

I've just added the dependency to 1.2.51-r2. Sorry for long delay and thank you for your help.