Bug 35364

Summary: cdb port forgets uint32.h
Product: Ports & Packages Reporter: Peter van Dijk <peter>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Peter van Dijk 2002-02-27 00:30:01 UTC
The databases/cdb port nicely installs all cdb binaries, and also installs
libcdb.a into /usr/local/lib. This, ofcourse, needs cdb.h, which is also
installed into /usr/local/include. That, in turn, needs uint32.h, which
is not installed at all.

Fix: 

Also install uint32.h to /usr/local/include :)
How-To-Repeat: Use /usr/local/include/cdb.h and /usr/local/lib/libcdb.a from an application
according to the specs at http://cr.yp.to/cdb/reading.html and wait for

cdb.h:6: uint32.h: No such file or directory

or similar
Comment 1 Peter van Dijk 2002-02-27 00:42:49 UTC
In addition, any succesful compile with libcdb.a also requires unix.a
and byte.a from the cdb package.

I suggest that either these are also installed somewhere (perhaps in a
subdir of /usr/local/lib?) or that libcdb.a and cdb.h are removed
altogether, which would also be more fitting to
<quote source="http://cr.yp.to/cdb.html">
Packages that need to read cdb files should incorporate the necessary
portions of the cdb library rather than relying on an external cdb
library. 
</quote>

You make the decision. libcdb.a+cdb.h are useless without uint32.h,
unix.a and byte.a, so either all these 3 need to be added, or
libcdb.a+cdb.h need to be removed.

Greetz, Peter
-- 
huk ~ kek
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2003-02-03 14:16:58 UTC
State Changed
From-To: open->closed

Commited, thanks! 
(removed the lib/ and include/ directories, added info for developers 
in pkg-descr)