Sharing private header files into ldb?

Martin Schwenke martin at meltin.net
Thu Sep 7 11:30:27 UTC 2017


Hi Andrew,

On Thu, 07 Sep 2017 12:12:51 +1200, Andrew Bartlett
<abartlet at samba.org> wrote:

> Is there a good, already established method to share a file
> (binsearch.h in this case) from lib/util into ldb, without making it a
> public header we install and depend on?
> 
> I think we did something like this for ccan, replace et al as a bundled
> library, but I'm just checking what the current experience/best
> practice for essentially an internal copylib is before I dig further.
> 
> We have a lot of these already, like the whole build system, so I feel
> this isn't novel
> 
> I need it to:
>  - work for bundled and standalone builds from git
>  - be present in ldb tarballs
>  - be in only one spot in our git tree
> 
> Any clues most valued!

Check out the use of samba_dist.DIST_DIRS() near the top of
ctdb/wscript - I notice that lib/ldb/wscript has something similar.
I guess you should be able to accomplish something similar with
samba_dist.DIST_FILES() to get that one file bundled?

peace & happiness,
martin



More information about the samba-technical mailing list