Subject: CVS commit: pkgsrc
From: Hauke Fath
Date: 2019-09-05 14:39:57
Message id: 20190905123957.2E7C8FBF4@cvs.NetBSD.org

Log Message:
Solarish pthreads expect mutex datastructures to be properly zeroed
out, unlike the Linux implementation, which upstream mainly
targets. This leads to "tdb_open_ex: tdb_mutex_init failed for
/var/samba/lock/gencache.tdb: Device busy" errors, described in
<https://illumos.topicbox.com/groups/developer/T28dcabf2f69cac04>.

Illumos kernel code attempted to mitigate the problem as of
<https://www.illumos.org/issues/9959>, but the changes have yet to
show up in releases.

The patches originate from
<https://github.com/oposs/pkg.oetiker.ch-build/blob/master/build/samba4/patches/pthread_mutex_init>,
modified appropriately.

Tested on omniosce r151030.

Files:
RevisionActionfile
1.41modifypkgsrc/databases/tdb/Makefile
1.22modifypkgsrc/databases/tdb/distinfo
1.80modifypkgsrc/net/samba4/Makefile
1.36modifypkgsrc/net/samba4/distinfo
1.2modifypkgsrc/net/samba4/patches/patch-buildtools_wafsamba_wscript
1.1addpkgsrc/databases/tdb/patches/patch-common_mutex.c
1.1addpkgsrc/net/samba4/patches/patch-lib_pthreadpool_pthreadpool.c
1.1addpkgsrc/net/samba4/patches/patch-lib_tdb_common_mutex.c
1.1addpkgsrc/net/samba4/patches/patch-lib_tevent_tevent.c
1.1addpkgsrc/net/samba4/patches/patch-lib_tevent_tevent__threads.c
1.1addpkgsrc/net/samba4/patches/patch-lib_util_smb__threads.h
1.1addpkgsrc/net/samba4/patches/patch-lib_util_tfork.c
1.1addpkgsrc/net/samba4/patches/patch-nsswitch_stress-nss-libwbclient.c
1.1addpkgsrc/net/samba4/patches/patch-source3_libsmb_pylibsmb.c
1.1addpkgsrc/net/samba4/patches/patch-source3_smbd_process.c
1.1addpkgsrc/net/samba4/patches/patch-source4_heimdal_include_heim__threads.h
1.1addpkgsrc/net/samba4/patches/patch-third__party_socket__wrapper_socket__wrapper.c