Max Horn wrote:
> 
> Yeah, config.h should never be installed. Also, installation (during
> package build time I mean) should always occur into %i/include. Files
> should only be moved into %p/include by Fink... maybe you meant that,
> it wasn't quite clear to me.

Yes, that's what I meant. Installation goes to %i/include, I just meant
to say that the headers end up in %p/include.
 
> >The two options I see are:
> >- patch Makefile.def to put the headers somewhere else, not in
> >$(prefix)/include
> >- move the headers to a different directory in the InstallScript
> >
> >Any other hints/suggestions?
> 
> No, what you say makes sense. In these cases, I usually prefer to fix
> the build system of the package. Ideally, you do that in a clear
> fashion, i.e. so that it remains usable on other systems, then you
> can try to submit it back to the upstream maintainer for future
> versions of that software. While you are at it, you could even try to
> implement DESTDIR, but don't bother if it's to much work.
> 
> On Unix, it's sort of a convention to suppor the
> prefix/bindir/libdir/... etc. variables, even in build systems not
> based on autoconf/automake. Supporting it, or a functionaly
> equivalent, is paramount for a truly portable package, try to to
> explain that to them in nice words, and they might listen to you :-)

Hehe, I might try that... but I think I'll first go for a "mv
%i/include" in the InstallScript.

> >Another question is: How do I make sure that the "bad" headers are
> >removed when somebody updates to the new version of the package?
> 
> Where are the "bad" headers located right now? I am not quite sure I
> understood it... do you mean they are in..
> a) /usr/local/include
> b) /sw/include
> c) somewhere else;
> and do they include config.h ? For each scenario I'd treat it
> slightly different.

They are in /sw/include (that's what I meant by %p/include above). What
I have there is

[floyd:/sw/fink/debs] bkuemmer% dpkg -c
dcmtk-ssl_3.5.1-3_darwin-powerpc.deb |grep include
drwxr-xr-x root/wheel        0 2002-03-01 12:44:48 ./sw/include/
-rw-r--r-- root/wheel      947 2002-03-01 12:44:19
./sw/include/osconfig.h
-rw-r--r-- root/wheel    14180 2002-03-01 12:44:19 ./sw/include/config.h
drwxr-xr-x root/wheel        0 2002-03-01 12:44:21 ./sw/include/ofstd/
[snip]
and a bunch of other dirs like ofstd...

So at least config.h and osconfig.h have to go from there!

> >Sorry if some of the questions seem to obvious, but I am just
> >starting...
> 
> No, it's perfectly OK to ask this (sorry, I just kind of overlooked
> your mail previously.)

;-) Too much work and not enough time. Anyway, keep up the good work!

Cheers
        Bernd

_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to