From: Alex R. <sh...@gr...> - 2005-04-28 21:36:12
|
Richard, On 04/28/2005 04:11:18 PM, Richard Bos wrote: >=20 > Yes, but the thing is can this be supported by the gramps development tea= m? =20 > Now I think about it, it might be more difficult than it actually looks l= ike:=20 > you're calling an AC macro AC_MIME (if I remember correctly by heart), wh= ich=20 > is of course doing all these nice little things. >=20 > It's this macro that should be altered to get everything right...isn't it= ? =20 > That macro should provide the --with(out)-mime configure option... We completely depend on mime types. We cannot do without, that's why --with or --without is not supported. You're right, to support it I would need to modify the AM_SHARED_MIME macro in the acinclude.m4 file. I wrote it based on the gconf macro, so I could probably find out how to modify it. But we cannot do without :-) The only choice you have is where to install mime types and what to give the update-mime-database as the location to update. With the default implementation standartized by freedesktop.org, the choice is really between /usr/share/mime, /usr/local/share/mime, and ~/.local/share. The latter is for local (non-root) installs,=20 a single user thing. > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > > > Similar things should be done with gconf. The install-schemas > > and the uninstall-local targets in Makefile.am have: > > =A0 =A0-GCONF_CONFIG_SOURCE=3D$(GCONF_SCHEMA_CONFIG_SOURCE) \ > > =A0 =A0 =A0 gconftool-2 --makefile-install-rule > > $(top_srcdir)/src/data/gramps.schemas > > > > and > > =A0 =A0-GCONF_CONFIG_SOURCE=3D$(GCONF_SCHEMA_CONFIG_SOURCE) \ > > =A0 =A0 =A0 gconftool-2 --makefile-uninstall-rule > > $(top_srcdir)/src/data/gramps.schemas > > > > For packaging, these should be commented/deleted, and instead the > > following should be inserted into post and postun: > > > > post: > > =A0 =A0GCONF_CONFIG_SOURCE=3Dxml::/etc/gconf/gconf.xml.defaults gconfto= ol-2 \ > > =A0 =A0 =A0 --makefile-install-rule /etc/gconf/schemas/gramps.schemas >= & > > /dev/null pkill gconfd || true > > > > postun: > > =A0 =A0GCONF_CONFIG_SOURCE=3Dxml::/etc/gconf/gconf.xml.defaults gconfto= ol-2 \ > > =A0 =A0 =A0 --makefile-uninstall-rule /etc/gconf/schemas/gramps.schemas= >& > > /dev/null > > > > The above assumes that the default gconf source is > > xml::/etc/gconf/gconf.xml.defaults The actual location for your system > > (might be /opt/... on SuSE, I'm not sure) could be found out this way: > > =A0 =A0$ gconftool-2 --get-default-source > > =A0 =A0xml::/etc/gconf/gconf.xml.defaults > > > > The above also assumes that the schemas are in > > /etc/gconf/schemas/gramps.schemas, which may not be the case on SuSE. T= he > > AM_GCONF_SOURCE_2 macro will determine where the schemas are installed.= You > > may simply examine the install directory, the schemas file should be in= a > > tracklabe location, etc. /opt/gnome/etc/gconf/schemas or somesuch. Or m= aybe > > it is /etc/gconf/schemas :-) >=20 > But here your are in control or not? So would you be able to provide a=20 > configure option --with(out)-GCONF_CONFIG_SOURCE ? Technically, we should be able to do without gconf at this time, because we have an alternate ini backend. I will look into it, but I don't think this is a high priority. Now the only choice, again, is where to put schema file and where to instal= l schemas, given by --with-gconf-schema-file-dir=3D and --with-gconf-source=3D options. > So, this is not option. It's the AC_MIME macro that must be altered, t= o my=20 > opinion. Yes, and we don't want to alter it because we need mime types. Please let me know if you have further troubles with the installation. Generally, it's everybody's curse when it comes to packaging. From the source, one wants to do configure-make-make install and be done. So we have to put all the system things into make install. Then packagers have problems, since they install into /home/user/tmpdir and the postinstall only should happen on the user machine, not on the packager machine. I don't have a good solution for that. Luckily, the changes are not that huge. If you could figure it out for SuSE it would be great, since most of European users are using it. Alex --=20 Alexander Roitman http://www.gramps-project.org |