sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Flavien Bridault <vlaaad AT sourcemage.org>
- To: sm-discuss AT lists.ibiblio.org
- Subject: Re: [SM-Discuss] About mime database...
- Date: Mon, 13 Nov 2006 18:55:17 +0100
Le dimanche 12 novembre 2006 à 14:08 -0800, Andrew Stitt a écrit :
> If you're adding stuff to it during installation you probably should be
> removing that stuff in POST_REMOVE. Regardless of any other infrastructure.
>
> If having the file removed entirely prevents you from removing that
> stuff then you can put it in the 'protected' filter, that will make
> dispel ignore it. Alternatively if every time you update-mime-database
> its a full database rebuild then protection isn't necessary.
>
> You probably also want to have it in the volatiles filter (regardless
> of protectedness), since cleanse will complain when the file is modified.
> And in this case modification is ok.
>
I opened a bug to track the spells :
http://bugs.sourcemage.org/show_bug.cgi?id=13259
I realized that most spells propose configure options to not launch
update-mime-database, so I think the best is to do that, then launch it
in FINAL and in POST_REMOVE.
> -Andrew
>
> On Sun, Nov 12, 2006 at 11:12:56PM +0100, Flavien Bridault wrote:
> > Hello people,
> >
> > Once again I request your opinion... :-)
> >
> > I realized that several spells seem to launch 'update-mime-database'
> > during INSTALL, because it is contained in the install target of the
> > Makefile. Therefore, all these spells possess the mime database
> > in /usr/share/mime/. So if one of these spells is removed, the database
> > is broken and must be rebuild. An effect of this is that launching
> > applications according to the file type in nautilus no longer works.
> >
> > So we have two solutions to fix this :
> > - the easiest would be to rebuild the database in POST_REMOVE, this is
> > quite fast,
> > - patch/sedit Makefile to avoid the launch of update-mime-database and
> > do it in FINAL
> >
> > Unless STAGE_ROOT magically solves the problem ?? I must admit I'm not
> > really aware of the advantages... (yes I didn't take the time to read
> > docs...)
> >
> > If you want to see it on your own, try :
> > grep -l '/usr/share/mime' /var/log/sorcery/install/*
> >
> > Here is the result on my box :
> > bluefish
> > brasero
> > bug
> > comix
> > dia
> > emerald
> > evolution2
> > gdesklets
> > gimp
> > gnome
> > jdk1.5
> > nautilus2
> > seahorse
> > shared-mime-info
> >
> > --
> > Flavien Bridault
> >
> > Disk, Graphics, Graphics-libs sections Guru
> > Source Mage GNU/Linux - http://www.sourcemage.org
> >
> > irc: vlaaad
> > jabber: vlaaad AT amessage.be
>
>
>
> > _______________________________________________
> > SM-Discuss mailing list
> > SM-Discuss AT lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>
> _______________________________________________
> SM-Discuss mailing list
> SM-Discuss AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-discuss
>
--
Flavien Bridault
Disk, Graphics, Graphics-libs sections Guru
Source Mage GNU/Linux - http://www.sourcemage.org
irc: vlaaad
jabber: vlaaad AT amessage.be
Attachment:
signature.asc
Description: Ceci est une partie de message numériquement signée
-
[SM-Discuss] About mime database...,
Flavien Bridault, 11/12/2006
-
Re: [SM-Discuss] About mime database...,
Andrew Stitt, 11/12/2006
- Re: [SM-Discuss] About mime database..., Flavien Bridault, 11/13/2006
-
Re: [SM-Discuss] About mime database...,
Andrew Stitt, 11/12/2006
Archive powered by MHonArc 2.6.24.