Setup problem for plt-scheme package

Gérard Milmeister gemi at bluewin.ch
Tue Aug 16 21:29:45 UTC 2005


On Tue, 2005-08-16 at 10:58 -1000, Warren Togami wrote:
> Gérard Milmeister wrote:
> > I am the maintainer of the plt-scheme package, and recently noticed a
> > problem with how the package is set up. As part of the rpm building
> > process, after the files have been installed in $RPM_BUILD_ROOT,
> > setup-plt is executed, which compiles the library scheme files. If this
> > is not done, drscheme starts up very slowly. The problem is that the
> > compiled files have dependencies that contain the $RPM_BUILD_ROOT
> > prefix. Thus the installed rpm does not work correctly, as some library
> > files fail to load. A solution is to omit the setup-plt step, and let
> > the user perform it (as root) after installing the package. Or it can be
> > done as part of the post-install script. However the compilation takes
> > quite a long time. What would be the best way?
> 
> What is the file format of the library scheme files?  Can string 
> substitution simply remove the $RPM_BUILD_ROOT paths safely?

Ok, problem is solved, I think. The file /usr/lib/plt/install is
combined shell and mzscheme script that can be run in %post and does all
the corrections. It does not recompile everything, and thus is fast
enough. The same script is run by the original shell archive.
-- 
Gérard Milmeister
Langackerstrasse 49
CH-8057 Zürich




More information about the fedora-extras-list mailing list