Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jun 1997 00:33:27 +0800
From:      Peter Wemm <peter@spinner.dialix.com.au>
To:        Chuck Robey <chuckr@glue.umd.edu>
Cc:        =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.pp.ru>, James FitzGibbon <jfitz@freebsd.org>, cvs-committers@freebsd.org, cvs-all@freebsd.org, cvs-ports@freebsd.org
Subject:   Re: cvs commit: ports/databases/db - Imported sources 
Message-ID:  <199706141633.AAA02372@spinner.dialix.com.au>
In-Reply-To: Your message of "Sat, 14 Jun 1997 01:50:04 -0400." <Pine.BSF.3.96.970614014525.14699A-100000@Journey2.mat.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Robey wrote:
> On Sat, 14 Jun 1997, Peter Wemm wrote:
> 
> > =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= wrote:
> > > On Fri, 13 Jun 1997, James FitzGibbon wrote:
> > > 
> > > >   Log Message:
> > > >   Import of Berkely DB 2.0
> > > 
> > > Why not import it in libc instead? (contrib version will be better)
> > 
> > Because:
> > 1) It's not API compatable with the current version in libc
> > 2) It's not compatable with the current .db file format
> > 3) The author[s] explicitly reccomend *against* putting it in libc
> 
> Been looking for that citation, can't find it.

http://www.sleepycat.com/db/faq.html

Note, many systems that distributed DB 1.85 included it as part of the C
library. 
 While that can be done with DB 2.0 as well, we recommend that DB
2.0 be maintained as a separate library from the C library where possible
because of its size and complexity, 

> 
> > 4) It's got commercial use license restrictions if I remember correctly
> > 
> > While I think it's great software, I'm not sure that it's libc material..
> 
> I know he goes to some lengths to point out that he is willling to make
> exceptions to the license, so that folks distributing 1.85 can continue to
> distribute the new release (on his web page it says that), but I can't
> find where it said the code wasn't libc material.  I checked the FAQs and
> the distribution tar file.  Where else might it be?

My suggestion that it wasn't libc material was a personal judgement..  
Mainly because of this:

==
11.What is the memory footprint of the DB library? 

Including everything (e.g., all of the access methods, transactions,
shared memory buffer pools, locking, and logging) it is approximately 150K
of text on a Pentium/x86, using the gcc2 compiler (version 2.7.2.1), and
approximately 180K of text on a Pa/Risc, using the standard HP-UX 9.05
compiler. 

The size can be significantly decreased by using only the functionality
required by the application. 
==

This will make libc.so.xx about 35% bigger...

As for the licensing, my memory was a bit rusty.  The default license is a
"if you distribute DB2.x, you must provide or make available the full
sources of your product".  I guess that doesn't prevent *us* from 
distributing DB2.x with FreeBSD since we provide full sources, and it 
wouldn't prevent a commercial product from being compiled to use our 
dynamic libc since the product would not be distrubuting DB2.x and we 
would not be distributing the commercial products..  But it might be a 
problem if commercial vendor ``X'' wanted to bundle FreeBSD in with their 
product (they would be distributing DB2.x).  Basically, it makes me 
nervous.

> I noted that he's made the function name spaces disjoint, so they can both
> go into the same library (he points that out in an FAQ).  That would make
> moving applications easier.  He did make some comments about thread
> stability, but I didn't think that applied directly to the point (3)
> above.

Yes, it looks like they can, but I don't think we *want* to. :-)  I think 
it'd be better to stick a -ldb2 on the linker command line, unless all the 
system databases (pwd.db, termcap.db etc) are to be converted to the new 
format (ouch!)

> ----------------------------+-----------------------------------------------
> Chuck Robey                 | Interests include any kind of voice or data 
> chuckr@eng.umd.edu          | communications topic, C programming, and Unix.
> 213 Lakeside Drive Apt T-1  |
> Greenbelt, MD 20770         | I run Journey2 and picnic, both FreeBSD
> (301) 220-2114              | version 3.0 current -- and great FUN!
> ----------------------------+-----------------------------------------------

Cheers,
-Peter





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