Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 1996 10:50:52 +0100 (MET)
From:      Martin Cracauer <cracauer@cons.org>
To:        freebsd-ports@freebsd.org
Subject:   Questions about proper port making
Message-ID:  <199611200950.KAA02236@knight.cons.org>

next in thread | raw e-mail | index | archive | help

Suppose I have a library for Common Lisp. Installation require that
one of many Common Lisp implemenations is installed.

What is the right thing to do this? The cleanest solution would be to
have one port for each target implementation, but could be many when
it comes to scheme (10 libararies for 20 implementations would make
200 ports :-)

Should I search the path for installed implemenations and choose the
best? Or ask the user (but I'd rather would keep thinsg
non-interactive)?

I think the right way would be to search for implemenations and if
there is more than one, then ask the user. But how do I implement this
in a FreeBSD port? As far as I know, a port's installation can be
either interactive or not, not "depends".

Second question, I have an implementation to port that has a hardcoded
basedir in it (recompiling is far too heavy for normal users). It
can be changed by an environment variable at run time, but there's no
way to do this with a config file or such.

How do I handle this: 
- As a port that always installs to the default basedir?
- Obey basedir and just emit a warning to the user when he installs
  anywhere else? 
- Or install the executable in a hidden place and generate a shell
  script that calls the real things in a wrapper?
- if the latter, should I always use a wrapper or only when basedir is
  non-default?

Questions over questions...

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@cons.org> http://www.cons.org/cracauer
  cracauer@wavehh.hanse.de (batched, preferred for large mails)
  Tel.: (daytime) +4940 41478712 (sometimes hacker's daytime :-)
  Tel.: (private) +4940 5221829 Fax.: (private) +4940 5228536
  Paper: (private) Waldstrasse 200, 22846 Norderstedt, Germany



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611200950.KAA02236>