Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264749 - x11-misc/shared-mime-info-0.60: update-mime-database should check for directory existence
Summary: x11-misc/shared-mime-info-0.60: update-mime-database should check for directo...
Status: RESOLVED DUPLICATE of bug 258824
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
: 273153 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-03 11:33 UTC by Martin Mokrejš
Modified: 2009-06-08 21:28 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Mokrejš 2009-04-03 11:33:03 UTC
* Messages for package x11-misc/shared-mime-info-0.60:

 * 
 * The database format has changed between 0.30 and 0.40.
 * You may need to update all your local databases and caches.
 * To do so, please run the following commands:
 * (for each user) $ update-mime-database ~/.local/share/mime/
 * (as root)       # update-mime-database /usr/local/share/mime/



So I went ahead and did as root:

# update-mime-database /usr/local/share/mime/
update-mime-database: I don't have write permission on /usr/local/share/mime.
Try rerunning me as root.

# ls -la /usr/local/share/mime/
ls: cannot access /usr/local/share/mime/: No such file or directory
#

I don't think anybody has a /usr/local/ created by any ebuild.


# update-mime-database /usr/share/mime/
# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
# 

So what am I supposed to do with my mime/ dirs?

# find / -name mime
/usr/lib/python2.5/email/mime
/usr/lib/seamonkey/include/mime
/usr/share/mime
/usr/share/terminfo/m/mime
/opt/sun-jdk-1.6.0.13/jre/lib/desktop/mime
/opt/sun-jre-bin-1.6.0.12/lib/desktop/mime
#
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-04-04 17:29:03 UTC
see bug 258824 or bug 258490 comments

*** This bug has been marked as a duplicate of bug 258824 ***
Comment 2 Martin Mokrejš 2009-04-08 20:29:15 UTC
(In reply to comment #1)
> see bug 258824 or bug 258490 comments
> 
> *** This bug has been marked as a duplicate of bug 258824 ***
> 

Giles, the ewarn() should be clearer:

- * You may need to update all your local databases and caches.
+ * You may need to update all your *local* databases and caches (if they exist).
+ * Portage automagically cared of /usr/share/mime/.



Still, I do not know whether I should play with /usr/lib/seamonkey/include/mime
and other dirs.
Comment 3 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-04-09 11:14:58 UTC
(In reply to comment #2)
> Still, I do not know whether I should play with /usr/lib/seamonkey/include/mime
> and other dirs.
> 

Those are not the mime dirs you're looking for.

The ewarn message clearly mentions which ones need to be updated. 
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-06-08 21:28:50 UTC
*** Bug 273153 has been marked as a duplicate of this bug. ***