[Pkg-sugar-devel] Bug#783890: Bug#783890: Solution for conflicting svg file

Martin Abente 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
> install/$(pkg)::
>         rm
> $(cdbs_curdestdir)usr/share/icons/sugar/scalable/mimetypes/application-x-squeak-project.svg


> (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).
>

+1

These [1] 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 [2] (a related problem).

Refs:
1.
https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/bundle/activitybundle.py#L331
2.
https://github.com/tchx84/sugar-toolkit-gtk3/commit/a92b61d6d213cec74485b5dd5aa11acc3a72732b


>
>  - 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...
URL: <http://lists.alioth.debian.org/pipermail/pkg-sugar-devel/attachments/20150521/4c9a7a9c/attachment.html>


More information about the pkg-sugar-devel mailing list