tdb/talloc/ldb releases

Andrew Bartlett abartlet at samba.org
Wed Jul 11 23:16:48 UTC 2018


On Thu, 2018-07-12 at 01:14 +0200, Stefan Metzmacher wrote:
> Am 11.07.2018 um 22:43 schrieb Andrew Bartlett via samba-technical:
> > On Wed, 2018-07-11 at 22:30 +0200, Stefan Metzmacher via samba-
> > technical wrote:
> > > Hi,
> > > 
> > > here're version bumps required before 4.9.0rc1.
> > > 
> > > This should go in after the tevent related patches with tevent 0.9.37.
> > > 
> > > Please review and push:-)
> > 
> > Before the ldb 1.4.1 we need to make it break Samba 4.8 (the getpid()
> > changes in 1.4.0 break Samba 4.8).  I tried to re-use the existing
> > infrastructure in ldb_module.h but couldn't make it work.
> > 
> > I'll try again today in between the other tasks but I'm clearly missing
> > something or not testing it right.
> 
> Something like this should do it (use just need to replace '...' with
> something useful.
> 
> diff --git a/lib/ldb/include/ldb_module.h b/lib/ldb/include/ldb_module.h
> index fd88c6218ebd..082560bbd153 100644
> --- a/lib/ldb/include/ldb_module.h
> +++ b/lib/ldb/include/ldb_module.h
> @@ -68,6 +68,21 @@
>  #error "Samba < 4.7 is not compatible with this version of ldb due to
> assumptions around read locks"
>  #endif
> 
> +/*
> + * Only Samba versions which expect ldb >= 1.4.0
> + * are compatible with ... behaviour.
> + *
> + * See https://bugzilla.samba.org/show_bug.cgi?id=....
> + */
> +#if EXPECTED_SYSTEM_LDB_VERSION_MAJOR > 1
> +#define __LDB_..._COMPATIBLE__ 1
> +#elif EXPECTED_SYSTEM_LDB_VERSION_MINOR > 3
> +#define __LDB_..._COMPATIBLE__ 1
> +#endif
> +#ifndef __LDB_..._COMPATIBLE__
> +#error "Samba < 4.9 is not compatible with this version of ldb due to
> assumptions around ..."
> +#endif
> +
>  #endif /* defined(_SAMBA_BUILD_) && defined(USING_SYSTEM_LDB) */
> 
>  struct ldb_context;
> 

Thanks.  I had guessed that much, but I'll have another go with that
today and fill in the dots.  Once I work that out I'll push the
release.

Andrew Bartlett
-- 
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   
https://catalyst.net.nz/services/samba







More information about the samba-technical mailing list