[Pkg-sugar-devel] Packaging activities with mimetypes.xml files in Debian
tony_anderson at usa.net
Sat May 2 11:30:45 UTC 2015
Is this a necessary change from listing mimetypes in the activity.info.
Do existing activities have to create a mimetypes.xml file. Where does
it go? What is the requirement for its content? Which release of Sugar
requires this change?
On 04/30/2015 11:07 PM, Martin Abente wrote:
> Hello everyone,
> While packaging activities that contained a "mimetypes.xml" file like
> in FotoToon , I noticed in the resulting package some "unexpected"
> files being included under "/usr/share/mime/".
> These files are created by "update-mime-database"  when running
> bundlebuilder via "python setup.py install" for installing activities
> [3,4]. In the context of packaging activities with CDBS helpers, this
> happens during "install" routine .
> The issue with these files is that they clash with the same files
> provided by other packages (ie., a package for another activity with a
> "mimetypes.xml" file like StopWatch ), and this prevents the
> packages from being installed.
> The problem seems to be that bundlebuilder wasn't prepared to be used
> like this. I prepared a patch  to prevent update-mime-database
> execution, it will requires to include a "--no-mime-update" argument
> to "./setup.py install" and to run update-mime-database in a further
> step, after the package is being installed. What do you guys think of
> this approach?
> There is also another issue with symlinks created by bundlebuilder 
> when installing mimetypes.xml, but not sure how it can be solved yet.
More information about the pkg-sugar-devel