rpms/regexxer/devel regexxer.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Michael Schwendt bugs.michael at gmx.net
Wed Oct 5 22:44:19 UTC 2005


On Wed, 05 Oct 2005 23:59:16 +0200, Thorsten Leemhuis wrote:

> Am Mittwoch, den 05.10.2005, 23:34 +0200 schrieb Michael Schwendt:
> > On Tue, 27 Sep 2005 20:18:37 -0400, Christoph Wickert wrote:
> > 
> > > Author: cwickert
> > > 
> > > Update of /cvs/extras/rpms/regexxer/devel
> > 
> > > %pre
> > > if [ "$1" -gt 1 ]; then
> > >     export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
> > >     gconftool-2 --makefile-uninstall-rule \
> > >       %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || :
> > >     killall -HUP gconfd-2 || :
> > > fi
> > > 
> > > 
> > > %post
> > > export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
> > > gconftool-2 --makefile-install-rule \
> > >   %{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || :
> > > killall -HUP gconfd-2 || :
> > > 
> > > 
> > > %preun
> > > if [ "$1" -eq 0 ]; then
> > >     export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
> > >     gconftool-2 --makefile-uninstall-rule \
> > >       %{_sysconfdir}/gconf/schemas/%{name}.schemas > /dev/null || :
> > >     killall -HUP gconfd-2 || :
> > > fi
> > 
> > Ugh! The package ought not killall any process.
> > That looks like something really ugly.
> 
> Well, for me it looks like something taken directly from
> http://www.fedoraproject.org/wiki/ScriptletSnippets#head-ff64cd482595764f672082d5a3b83e1fc22962e8
> 
> I find it rather ugly, too. I mentioned that before long ago (you might
> find it in the archives of this list). But nobody could find any real
> issues with this approach iirc and it seems it even found its way into
> the wiki. 

Hmm, okay, this tracks back to a private collection of RPM scriptlet
hints by Toshio Kuratomi copied into the Wiki.

Mark McLoughlin from Red Hat commented on the GConf2 scriptlets on "Wed,
02 Mar 2005 08:59:48 +0000" on fedora-maintainers list in the following
rather vague way:

    [...] and we should probably also be doing killall -HUP gconfd-2 or
    something so the daemons see the new schemas.

Seeing the word "probably" and seeing that none of the packages installed
on my Rawhide machine does this, I find it questionable.  This would
signal *all* running gconfd-2 processes (also user's) to reload all
databases. I don't like it when package installation "touches" user
processes. This SIGHUP features is implemented since July 2004. Doesn't
gconfd-2 have any other means of detecting database changes at run-time?
If not, why doesn't gconftool-2 communicate with gconfd-2 upon
installing/removing schema files?




More information about the fedora-extras-list mailing list