tdb/talloc/ldb releases

Stefan Metzmacher metze at samba.org
Thu Jul 12 05:47:36 UTC 2018


Am 12.07.2018 um 04:15 schrieb Andrew Bartlett via samba-technical:
> On Thu, 2018-07-12 at 14:10 +1200, Andrew Bartlett via samba-technical
> wrote:
>> On Thu, 2018-07-12 at 11:16 +1200, Andrew Bartlett via samba-technical
>> wrote:
>>> 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.
>>
>> I'll include the attached (based on the above) in the that push once I
>> get a review, as well as a patch to stop this happening again, but
>> requiring that of ldb release X.Y.Z Samba matches the X.Y parts.  This
>> will keep happening and we should catch it earlier.
>>
>> Can another team member please review the enclosed?
> 
> Ahh, I swear that wasn't zero length, but anyway...

Thanks! Pushed with the library versions.

metze


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180712/05a56e0c/signature.sig>


More information about the samba-technical mailing list