Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 1998 12:41:43 -0700 (PDT)
From:      "J. Han" <hjh@best.com>
To:        freebsd-ports@FreeBSD.ORG
Subject:   new libarary port survey [LONG]
Message-ID:  <199804241941.MAA15259@shell9.ba.best.com>

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

I have just finished porting CII (version 1.1) library to FreeBSD
(2.2.6) and I'd like to ask a few questions to propective users.  CII
is "C Interfaces and Implementations" by David Hanson, published by
Addison-Wesley.  Its URL is http://www.cs.princeton.edu/software/cii/

1.  Right now libcii.a is installed in /usr/local/lib/cii/1 (major
version number 1) and a symlink to it is placed in /usr/local/lib.
Headers are also installed in /usr/local/lib/cii/1/include with a
symlink in /usr/local/include/cii

I used symlinks to preserve "release-independence" for future CII
(following recommendation from the CII installation guide).  What's
your opinion on this matter?  I noticed that no other local headers
are symlinks, though.

2.  If I could, I'd like to try different compilers but two problems
stand in my way:

- FreeBSD doesn't have lcc (3.6) headers.  (lcc doesn't like long long
in FreeBSD headers).

- Another gcc, pgcc is said to be not so good.

For now I'd just use stock cc.  Any comments?  Also there is question
about platforms for heterogeneous environment, eg:

/usr/local/lib/cii/1/{i386-FreeBSD,alpha-osf,..}/{cc,lcc,..}/libcii.a

Frankly, I think all this compiler/platform dependency should be
handled by local installers, not port makers.  What do you think?

3.  Because of the book, I doubt utility of putting the source in the
package.  After all, the source is extracted from literate programs
(the book) and has neither comment nor documentation (other than the book).

Still (instructional) examples can be useful.  They can be placed in
/usr/local/share/doc/cii/examples.  Or would you rather have binaries
instead in /usr/local/lib/cii/1/examples?  Or both?  Or some *other*
location (say /usr/local/bin/cii)?  I'd like to follow hier(7) as
closely as possible...

To summarize:

/usr/local:

lib/libcii.a@ ->	lib/cii/1/libcii.a
include/cii/include@ ->	lib/cii/1/include
			share/doc/cii/<readme, copyright, history etc>
			lib/cii/1/examples/<binaries>	[*]
			bin/cii/<binaries>		[*]
			share/doc/cii/examples/*.c	[*]
			share/doc/cii/src/*.c		[*]

[*] are not yet installed

If anybody's interested in testing the port, let me know privately.
If I don't need to make some drastic changes, I'll submit the port
in a week or so.

Thanks for reading,

	J Han	hjh@best.com

PS: If you reply to me privately, you don't need to quote what I
already wrote here -- it's long enough already.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



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