Bug 35364 - cdb port forgets uint32.h
Summary: cdb port forgets uint32.h
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-27 00:30 UTC by Peter van Dijk
Modified: 2003-02-03 14:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)