From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [80.91.229.2] (helo=ciao.gmane.org) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1L8CHb-0004TZ-K5 for openembedded-devel@openembedded.org; Thu, 04 Dec 2008 12:22:11 +0100 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L8CE6-0008Pw-94 for openembedded-devel@openembedded.org; Thu, 04 Dec 2008 11:18:34 +0000 Received: from s55917625.adsl.wanadoo.nl ([85.145.118.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Dec 2008 11:18:34 +0000 Received: from k.kooi by s55917625.adsl.wanadoo.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Dec 2008 11:18:34 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: openembedded-devel@openembedded.org From: Koen Kooi Date: Thu, 04 Dec 2008 12:18:27 +0100 Message-ID: References: <1228384295.14968.63.camel@hammer.suse.cz> Mime-Version: 1.0 X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: s55917625.adsl.wanadoo.nl User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b2pre) Gecko/20081125 Shredder/3.0b1pre In-Reply-To: <1228384295.14968.63.camel@hammer.suse.cz> Sender: news Subject: Re: broken shared-mime-info and MIME typing X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2008 11:22:12 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 04-12-08 10:51, Stanislav Brabec wrote: > Looking at MIME binding, I found that it is now completely broken. > > We have mime.class, that provides install-time generating of the > database. > > shared-mime-info attempts to provide compile-time generating of the > database. As it does not contain freedesktop.org.xml, any package using > mime.class calling update-mime-database will remove 99% of entries in > the MIME database. > > Creating database during the build time is not possible yet and would > require significant changes in update-mime-database (or writing a > different tool): > There is no way to create /usr/share/mime/magic, subclasses, mime.cache > during the build time => it must be done during installation. Note that > mime.cache is a binary file. > > > Proposal: > > - Install freedesktop.org.xml again. > - Change mime.class: > - Change scripts: First test, whether update-mime-database is > installed, if yes, then call it. Done > - mime_prerm should be probably postrm => update database after > package removal Done regards, Koen