[plt-scheme] Source compiles

From: Panagiotis Vossos (P.Vossos at postgrad.umist.ac.uk)
Date: Sat Aug 23 06:16:10 EDT 2003

MJ Ray <markj at cloaked.freeserve.co.uk> writes:

> Are there plans to put a configure script and Makefile in the top
> directory of the PLT-Scheme distribution?  This would make it a lot
> easier for autobuilders to handle, especially if it can become
> "./configure <options> ; make install" type of install in most
> cases.

I have put together a generic .spec file for building RPMS for
drscheme and I don't see the problem; you just need to `cd src' first.
The configure script there supports the usual `--prefix' option.

> A possible bug I just noticed today: if the prefix dir doesn't
> exist, mkdir is called, but without the -p option, so it can still
> fail.  Not sure if that's right.

Yes, you are right.  The way I do it in my spec file is:

cd src
mkdir -p %{buildroot}%{_prefix}
make prefix=%{buildroot}%{_prefix} install
perl -p -i -e "s|$RPM_BUILD_ROOT||" %{buildroot}%{_bindir}/setup-plt


Posted on the users mailing list.