BIND 10 #2359: restruct libb10-util

BIND 10 Development do-not-reply at isc.org
Tue Oct 16 06:19:52 UTC 2012


#2359: restruct libb10-util
-------------------------------------+-------------------------------------
            Reporter:  jinmei        |                        Owner:
                Type:  defect        |  UnAssigned
            Priority:  medium        |                       Status:  new
           Component:  build system  |                    Milestone:  Next-
           Sensitive:  0             |  Sprint-Proposed
         Sub-Project:  DNS           |                     Keywords:
Estimated Difficulty:  0             |              Defect Severity:  N/A
         Total Hours:  0             |  Feature Depending on Ticket:
                                     |          Add Hours to Ticket:  0
                                     |                    Internal?:  0
-------------------------------------+-------------------------------------
 In #1870, I noticed only buffer.h from lib/util (headers) was really
 necessary to build sample b10-host program.  Some others are used
 internally in libb10-dns++, but I suspect many others are not
 necessary.  In particular, it shouldn't need interprocess locks
 (which now requires libb10-thread) or memory segment stuff.

 Since we've been wanting to make dns++ as standalone as possible it's
 not really a good trend.

 I suggest we reorganize lib(b10)util as follows:

 - libb10-util: containing minimal set that is necessary to be
   published
 - libb10-util-internal (or something): all others

 Further, I suggest merging libb10-exceptions to libb10-util.  Now that
 having generic "util" library, which would be needed to be linked
 for any BIND 10 related programs I don't see advantage of keeping the
 very tiny separate library for the exception definitions.

 And, if possible, I suggest we revisit the current way of creating
 ad hoc sub libraries like util-io or util-thread, clarifying the
 categorization policy (and document it).  But that would be a topic of
 a separate ticket.

-- 
Ticket URL: <http://bind10.isc.org/ticket/2359>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list