On Mon, Jan 05, 2004 at 09:18:14PM +0100, Max Horn wrote:
> 
> Am 05.01.2004 um 18:51 schrieb Daniel Macks:
> 
> >I want to have a way for arbitrary programs to learn about fink's
> >pathname configs. Some kind of config script that would return things
> >like '/sw'. What would be a desireable way for me to implement this?
> >The traditional 'fink-config --prefix' (where bin/fink-config is
> >bundled with fink and/or in its own package) or a new --config flag to
> >fink itself? Or use pkg-config?
> 
> Note:
> 
> 1) For a hypothetical fink-config to work the fink bin path has to be 
> in PATH (e.g. /sw/bin)
> 
> 2) If this is the case, you get the fink prefix via
>     which fink | xargs dirname | xargs dirname

Yes. I would assume that people that have fink will have %p/bin in PATH.


I'm thinking of a situation I've seen a bunch, namely programs
not-in-fink that give OS X compile instructions "first, install the
following packages using fink" and then hard-code /sw into their
configure/compile scripts. Programmers are comfortable using -config
scripts for other support libraries, so no reason to learn a new
not-obvious (until you see it:) trick.

It would also allow some fink packages to have a static patch instead
of the trick of using @PREFIX@ then running .patch through sed to get
%p. From a package maintainer's perspective, it can be annoying that I
can't just manually apply a patchfile to a tarball and hand-compile.
Or, after getting a patchfile that works for a manual compile finding
that it's littered with hard-coded /sw in it (i.e., dpkg until last
week:).

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to