[Pkg-sugar-devel] Bug#783890: Bug#783890: Solution for conflicting svg file
martin.abente.lahaye at gmail.com
Thu May 21 20:22:11 UTC 2015
On Thu, May 21, 2015 at 4:03 PM, Jonas Smedegaard <dr at jones.dk> wrote:
> Quoting Martin Abente (2015-05-21 21:23:59)
> > By having the application-x-squeak-project.svg file in ./activity/
> > directory, the "setup.py install" step will create a symlink to that
> > file in /usr/share/ icons/sugar/scalable/mimetypes/, in order to
> > install that file as the icon for a custom mime type declared in
> > ./activty/activity.info.
> Thanks for the analysis.
> > That same mime type icon is already provided by sugar-artwork
> > (sugar-icon-theme), so there is no need for Etoys to provide this
> > icon. I have contacted the upstream maintainer, but for the time being
> > I recommend to remove the icon with a patch in debian/patches. I have
> > attached to this reply the patch
> > for https://anonscm.debian.org/cgit/pkg-sugar/sugar-etoys-activity.git/
> > to do so.
> While it might be the best approach upstream to remove the SVG file
> (when possible to ensure that sugar-icon-theme provides it), a smaller
> workaround in Debian packaging is to remove the file after it is
> installed, with something like this in debian/rules:
> # avoid SVG file already included in sugar-*-icon-theme
> (Order is ensured because CDBS per-binary-package install/* targets are
> run after common install target.)
looks ok to me, but it really doesn't make much sense to have different
modules/activities providing the same files.
> ...but, given your analysis, I suspect an even simpler workaround is to
> build-depend on sugar-*-icon-theme to not have the symlink generated at
> all. I will test that now...
> (...and I will also try patch sugar-toolkit-gtk3 to create relative
> symlinks, as they currently reference a path specific to the build
> environment build home).
These  are the bits you might be interested in looking. I am working on
a related patch to prevent update-mime-database from running while we are
building the packages  (a related problem).
> - Jonas
> * Jonas Smedegaard - idealist & Internet-arkitekt
> * Tlf.: +45 40843136 Website: http://dr.jones.dk/
> [x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pkg-sugar-devel