Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257221 - kde-base/kdelibs-4*: mime-database not updated when built with kdeprefix
Summary: kde-base/kdelibs-4*: mime-database not updated when built with kdeprefix
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kdeprefix
  Show dependency tree
 
Reported: 2009-02-01 14:36 UTC by Matěj Laitl
Modified: 2011-05-26 22:24 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 Matěj Laitl 2009-02-01 14:36:19 UTC
Hi,
I've noticed that update-mime-database is not run for /usr/kde/4.{1,2}/share/mime, which is the mime dir when kde is built with kdeprefix use-flag set. The ebuild calls fdo-mime_mime_database_update from fdo-mime.eclass, but this command hardcodes mime path to /usr/share/mime.

One symptom of this problem is that java applets do not work in konqueror until you run update-mime-database /usr/kde/4.{1,2}/share/mime - see [1]

Regards, Matěj

[1] https://bugs.kde.org/show_bug.cgi?id=161825
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2009-02-01 15:03:26 UTC
How about symlink between /usr/kde/4.X/share/mime and /usr/share/mime.
That should work right?
Comment 2 Matěj Laitl 2009-02-01 15:12:53 UTC
(In reply to comment #1)
> How about symlink between /usr/kde/4.X/share/mime and /usr/share/mime.
> That should work right?
> 

I don't think so - as kde 4.1 and 4.2 install slightly different mime packages here, potentially interfering with each other. So symlinking before installation is not really a solution. I don't think the problem is that the mimo info is in separate dir, as it's just some kde-specific stuff.

My proposed solution is to extend fdo-mime eclass to allow updating custom directories.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-11-01 00:20:23 UTC
In that case making it use XDG_DATA_DIRS as a reference would probably be a good idea.
Comment 4 Romain Perier (RETIRED) gentoo-dev 2009-11-01 18:37:28 UTC
scarab I agree with Matěj... and if a directory like that exists on upstream (I meant if upstream devs want to install mime in this dir) I suppose there is a good reason... :)

idea for XDG_DATA_DIRS looks good, for example :

XDG_DATA_DIRS=${XDG_DATA_DIRS:-${ROOT}/usr/share/mime}

fdo-mime_mime_database_update() {
	if [ -x "/usr/bin/update-mime-database" ]
	then
		einfo "Updating shared mime info database ..."
		"/usr/bin/update-mime-database" "${XDG_DATA_DIRS}"
	fi
}

something like that...
 
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2010-03-12 16:58:51 UTC
Resolving since kdeprefix is use-masked and will go away. 
Comment 6 Maciej Mrozowski gentoo-dev 2010-03-12 17:18:03 UTC
It may rot, but let's not shuffle it under the carpet.
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2011-05-26 22:24:41 UTC
kdeprefix is going away. Now really.