pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc



Module Name:    pkgsrc
Committed By:   nia
Date:           Tue Jun 22 09:36:41 UTC 2021

Modified Files:
        pkgsrc/databases/ldb: Makefile distinfo
        pkgsrc/net/samba4: Makefile PLIST buildlink3.mk distinfo
        pkgsrc/net/samba4/patches: patch-lib_tevent_tevent.c
            patch-lib_util_smb__threads.h
Added Files:
        pkgsrc/net/samba4/patches: patch-source3_libsmb_libsmb__stat.c
            patch-source4_torture_libsmbclient_libsmbclient.c

Log Message:
samba4: downgrade to 4.13.9, as discussed on netbsd-users@


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 pkgsrc/databases/ldb/Makefile
cvs rdiff -u -r1.13 -r1.14 pkgsrc/databases/ldb/distinfo
cvs rdiff -u -r1.126 -r1.127 pkgsrc/net/samba4/Makefile
cvs rdiff -u -r1.37 -r1.38 pkgsrc/net/samba4/PLIST
cvs rdiff -u -r1.9 -r1.10 pkgsrc/net/samba4/buildlink3.mk
cvs rdiff -u -r1.62 -r1.63 pkgsrc/net/samba4/distinfo
cvs rdiff -u -r1.2 -r1.3 pkgsrc/net/samba4/patches/patch-lib_tevent_tevent.c \
    pkgsrc/net/samba4/patches/patch-lib_util_smb__threads.h
cvs rdiff -u -r0 -r1.3 \
    pkgsrc/net/samba4/patches/patch-source3_libsmb_libsmb__stat.c \
    pkgsrc/net/samba4/patches/patch-source4_torture_libsmbclient_libsmbclient.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/ldb/Makefile
diff -u pkgsrc/databases/ldb/Makefile:1.22 pkgsrc/databases/ldb/Makefile:1.23
--- pkgsrc/databases/ldb/Makefile:1.22  Tue May 11 10:57:34 2021
+++ pkgsrc/databases/ldb/Makefile       Tue Jun 22 09:36:41 2021
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile,v 1.22 2021/05/11 10:57:34 hauke Exp $
+# $NetBSD: Makefile,v 1.23 2021/06/22 09:36:41 nia Exp $
 
 # Before updating, make sure net/samba4 supports the newer version.
-DISTNAME=      ldb-2.3.0
-PKGREVISION=   1
+DISTNAME=      ldb-2.2.1
 CATEGORIES=    databases
-MASTER_SITES=  http://www.samba.org/ftp/ldb/
+MASTER_SITES=  https://www.samba.org/ftp/ldb/
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://ldb.samba.org/

Index: pkgsrc/databases/ldb/distinfo
diff -u pkgsrc/databases/ldb/distinfo:1.13 pkgsrc/databases/ldb/distinfo:1.14
--- pkgsrc/databases/ldb/distinfo:1.13  Tue May 11 10:57:34 2021
+++ pkgsrc/databases/ldb/distinfo       Tue Jun 22 09:36:41 2021
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.13 2021/05/11 10:57:34 hauke Exp $
+$NetBSD: distinfo,v 1.14 2021/06/22 09:36:41 nia Exp $
 
-SHA1 (ldb-2.3.0.tar.gz) = 71c12e1c5914172c450c992dae3b90c1f01b2419
-RMD160 (ldb-2.3.0.tar.gz) = b4a58a8a118420a334ecf94a6262684321fa7752
-SHA512 (ldb-2.3.0.tar.gz) = 7e389c0b4700a809893276d69216436ebd6d30e1f52407e4a08a1113cf14e151aed74300d8c36765c91c8f3195d8054b13a28cbdfcab031f88fd1d353e415348
-Size (ldb-2.3.0.tar.gz) = 1686378 bytes
+SHA1 (ldb-2.2.1.tar.gz) = c334d5a398b7a61c003d3cefbdb5736c49f0013c
+RMD160 (ldb-2.2.1.tar.gz) = 0949458a58ca2c9905574a8f9626501d37e13c2f
+SHA512 (ldb-2.2.1.tar.gz) = a2b1598869e3d9f17c5b82fc2b7289f1f08a7378a1d72609af5ed5cc91fb571ac67d3a8c22d64dad5dcc9fe32520baccd5cc37d5b4fc5f1b00a7064902296344
+Size (ldb-2.2.1.tar.gz) = 1676819 bytes
 SHA1 (patch-buildtools_wafsamba_samba__conftests.py) = 813c639e404e3b301444decae318c702c87f0cc1
 SHA1 (patch-buildtools_wafsamba_samba__install.py) = d801340617da325e3bb70a90350e45cc8e383c2d
 SHA1 (patch-buildtools_wafsamba_samba__utils.py) = 0a587421870c1974175fadbb02dde215f35938f2

Index: pkgsrc/net/samba4/Makefile
diff -u pkgsrc/net/samba4/Makefile:1.126 pkgsrc/net/samba4/Makefile:1.127
--- pkgsrc/net/samba4/Makefile:1.126    Mon Jun 21 10:23:48 2021
+++ pkgsrc/net/samba4/Makefile  Tue Jun 22 09:36:41 2021
@@ -1,7 +1,14 @@
-# $NetBSD: Makefile,v 1.126 2021/06/21 10:23:48 nia Exp $
+# $NetBSD: Makefile,v 1.127 2021/06/22 09:36:41 nia Exp $
 
-DISTNAME=      samba-4.14.5
-PKGREVISION=   1
+#
+# WARNING: DO NOT UPDATE WITHOUT RESOLVING THIS ISSUE:
+#
+# Samba 4.14 is incompatible with procfs in NetBSD 9.2 and other
+# BSDs!
+#
+# Please do not update without testing on NetBSD 9.2!
+#
+DISTNAME=      samba-4.13.9
 CATEGORIES=    net
 MASTER_SITES=  https://download.samba.org/pub/samba/stable/
 

Index: pkgsrc/net/samba4/PLIST
diff -u pkgsrc/net/samba4/PLIST:1.37 pkgsrc/net/samba4/PLIST:1.38
--- pkgsrc/net/samba4/PLIST:1.37        Sun May 30 20:02:31 2021
+++ pkgsrc/net/samba4/PLIST     Tue Jun 22 09:36:41 2021
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.37 2021/05/30 20:02:31 thor Exp $
+@comment $NetBSD: PLIST,v 1.38 2021/06/22 09:36:41 nia Exp $
 bin/cifsdd
 bin/dbwrap_tool
 bin/dumpmscat
@@ -111,6 +111,7 @@ include/util/genrand.h
 include/util/idtree.h
 include/util/idtree_random.h
 include/util/signal.h
+include/util/string_wrappers.h
 include/util/substitute.h
 include/util/tevent_ntstatus.h
 include/util/tevent_unix.h
@@ -145,13 +146,13 @@ lib/libndr-standard.so.0
 lib/libndr-standard.so.0.0.1
 lib/libndr.so
 lib/libndr.so.1
-lib/libndr.so.1.0.1
+lib/libndr.so.1.0.0
 lib/libnetapi.so
 lib/libnetapi.so.0
 lib/libnss_winbind.so
 lib/libsamba-credentials.so
-lib/libsamba-credentials.so.1
-lib/libsamba-credentials.so.1.0.0
+lib/libsamba-credentials.so.0
+lib/libsamba-credentials.so.0.0.1
 lib/libsamba-errors.so
 lib/libsamba-errors.so.1
 lib/libsamba-hostconfig.so
@@ -171,12 +172,11 @@ lib/libsamdb.so.0
 lib/libsamdb.so.0.0.1
 lib/libsmbclient.so
 lib/libsmbclient.so.0
-lib/libsmbclient.so.0.7.0
+lib/libsmbclient.so.0.6.0
 lib/libsmbconf.so
 lib/libsmbconf.so.0
 ${PLIST.ldap}lib/libsmbldap.so
 ${PLIST.ldap}lib/libsmbldap.so.2
-lib/libsmbldap.so.2.1.0
 lib/libtevent-util.so
 lib/libtevent-util.so.0
 lib/libtevent-util.so.0.0.1
@@ -205,6 +205,7 @@ ${PYSITELIB}/samba/auth.so
 ${PYSITELIB}/samba/auth_util.py
 ${PYSITELIB}/samba/colour.py
 ${PYSITELIB}/samba/common.py
+${PYSITELIB}/samba/compat.py
 ${PYSITELIB}/samba/credentials.so
 ${PYSITELIB}/samba/crypto.so
 ${PYSITELIB}/samba/dbchecker.py
@@ -264,7 +265,6 @@ ${PYSITELIB}/samba/forest_update.py
 ${PYSITELIB}/samba/gensec.so
 ${PYSITELIB}/samba/getopt.py
 ${PYSITELIB}/samba/gp_ext_loader.py
-${PYSITELIB}/samba/gp_msgs_ext.py
 ${PYSITELIB}/samba/gp_parse/__init__.py
 ${PYSITELIB}/samba/gp_parse/gp_aas.py
 ${PYSITELIB}/samba/gp_parse/gp_csv.py
@@ -273,8 +273,6 @@ ${PYSITELIB}/samba/gp_parse/gp_ini.py
 ${PYSITELIB}/samba/gp_parse/gp_pol.py
 ${PYSITELIB}/samba/gp_scripts_ext.py
 ${PYSITELIB}/samba/gp_sec_ext.py
-${PYSITELIB}/samba/gp_smb_conf_ext.py
-${PYSITELIB}/samba/gp_sudoers_ext.py
 ${PYSITELIB}/samba/gpclass.py
 ${PYSITELIB}/samba/gpo.so
 ${PYSITELIB}/samba/graph.py
@@ -340,8 +338,7 @@ ${PYSITELIB}/samba/provision/sambadns.py
 ${PYSITELIB}/samba/registry.so
 ${PYSITELIB}/samba/remove_dc.py
 ${PYSITELIB}/samba/samba3/__init__.py
-${PYSITELIB}/samba/samba3/libsmb_samba_cwrapper.so
-${PYSITELIB}/samba/samba3/libsmb_samba_internal.py
+${PYSITELIB}/samba/samba3/libsmb_samba_internal.so
 ${PYSITELIB}/samba/samba3/mdscli.so
 ${PYSITELIB}/samba/samba3/param.so
 ${PYSITELIB}/samba/samba3/passdb.so
@@ -378,8 +375,6 @@ ${PYSITELIB}/samba/tests/blackbox/netads
 ${PYSITELIB}/samba/tests/blackbox/samba_dnsupdate.py
 ${PYSITELIB}/samba/tests/blackbox/smbcacls.py
 ${PYSITELIB}/samba/tests/blackbox/smbcacls_basic.py
-${PYSITELIB}/samba/tests/blackbox/smbcacls_dfs_propagate_inherit.py
-${PYSITELIB}/samba/tests/blackbox/smbcacls_propagate_inhertance.py
 ${PYSITELIB}/samba/tests/blackbox/smbcontrol.py
 ${PYSITELIB}/samba/tests/blackbox/smbcontrol_process.py
 ${PYSITELIB}/samba/tests/blackbox/traffic_learner.py
@@ -388,13 +383,10 @@ ${PYSITELIB}/samba/tests/blackbox/traffi
 ${PYSITELIB}/samba/tests/common.py
 ${PYSITELIB}/samba/tests/complex_expressions.py
 ${PYSITELIB}/samba/tests/core.py
-${PYSITELIB}/samba/tests/cred_opt.py
 ${PYSITELIB}/samba/tests/credentials.py
 ${PYSITELIB}/samba/tests/dcerpc/__init__.py
 ${PYSITELIB}/samba/tests/dcerpc/array.py
 ${PYSITELIB}/samba/tests/dcerpc/bare.py
-${PYSITELIB}/samba/tests/dcerpc/binding.py
-${PYSITELIB}/samba/tests/dcerpc/createtrustrelax.py
 ${PYSITELIB}/samba/tests/dcerpc/dnsserver.py
 ${PYSITELIB}/samba/tests/dcerpc/integer.py
 ${PYSITELIB}/samba/tests/dcerpc/mdssvc.py
@@ -405,7 +397,6 @@ ${PYSITELIB}/samba/tests/dcerpc/registry
 ${PYSITELIB}/samba/tests/dcerpc/rpc_talloc.py
 ${PYSITELIB}/samba/tests/dcerpc/rpcecho.py
 ${PYSITELIB}/samba/tests/dcerpc/sam.py
-${PYSITELIB}/samba/tests/dcerpc/samr_change_password.py
 ${PYSITELIB}/samba/tests/dcerpc/srvsvc.py
 ${PYSITELIB}/samba/tests/dcerpc/string_tests.py
 ${PYSITELIB}/samba/tests/dcerpc/testrpc.py
@@ -443,14 +434,8 @@ ${PYSITELIB}/samba/tests/kcc/graph.py
 ${PYSITELIB}/samba/tests/kcc/graph_utils.py
 ${PYSITELIB}/samba/tests/kcc/kcc_utils.py
 ${PYSITELIB}/samba/tests/kcc/ldif_import_export.py
-${PYSITELIB}/samba/tests/krb5/as_canonicalization_tests.py
-${PYSITELIB}/samba/tests/krb5/compatability_tests.py
 ${PYSITELIB}/samba/tests/krb5/kcrypto.py
-${PYSITELIB}/samba/tests/krb5/kdc_base_test.py
-${PYSITELIB}/samba/tests/krb5/kdc_tests.py
-${PYSITELIB}/samba/tests/krb5/kdc_tgs_tests.py
 ${PYSITELIB}/samba/tests/krb5/raw_testcase.py
-${PYSITELIB}/samba/tests/krb5/rfc4120_constants.py
 ${PYSITELIB}/samba/tests/krb5/rfc4120_pyasn1.py
 ${PYSITELIB}/samba/tests/krb5/s4u_tests.py
 ${PYSITELIB}/samba/tests/krb5/simple_tests.py
@@ -538,7 +523,6 @@ ${PYSITELIB}/samba/tests/samdb.py
 ${PYSITELIB}/samba/tests/samdb_api.py
 ${PYSITELIB}/samba/tests/security.py
 ${PYSITELIB}/samba/tests/segfault.py
-${PYSITELIB}/samba/tests/smb-notify.py
 ${PYSITELIB}/samba/tests/smb.py
 ${PYSITELIB}/samba/tests/smbd_base.py
 ${PYSITELIB}/samba/tests/smbd_fuzztest.py
@@ -551,11 +535,10 @@ ${PYSITELIB}/samba/tests/upgradeprovisio
 ${PYSITELIB}/samba/tests/upgradeprovisionneeddc.py
 ${PYSITELIB}/samba/tests/usage.py
 ${PYSITELIB}/samba/tests/xattr.py
-${PYSITELIB}/samba/trust_utils.py
+${PYSITELIB}/samba/third_party/__init__.py
 ${PYSITELIB}/samba/upgrade.py
 ${PYSITELIB}/samba/upgradehelpers.py
 ${PYSITELIB}/samba/uptodateness.py
-${PYSITELIB}/samba/vgp_sudoers_ext.py
 ${PYSITELIB}/samba/werror.so
 ${PYSITELIB}/samba/xattr.py
 ${PYSITELIB}/samba/xattr_native.so
@@ -575,7 +558,6 @@ ${PLIST.ads}lib/samba/idmap/rfc2307.${SO
 lib/samba/idmap/rid.${SOEXT}
 lib/samba/idmap/script.${SOEXT}
 lib/samba/idmap/tdb2.${SOEXT}
-lib/samba/krb5/async_dns_krb5_locator.${SOEXT}
 lib/samba/krb5/winbind_krb5_locator.${SOEXT}
 lib/samba/ldb/acl.${SOEXT}
 lib/samba/ldb/aclread.${SOEXT}

Index: pkgsrc/net/samba4/buildlink3.mk
diff -u pkgsrc/net/samba4/buildlink3.mk:1.9 pkgsrc/net/samba4/buildlink3.mk:1.10
--- pkgsrc/net/samba4/buildlink3.mk:1.9 Wed Apr 21 13:24:14 2021
+++ pkgsrc/net/samba4/buildlink3.mk     Tue Jun 22 09:36:41 2021
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.9 2021/04/21 13:24:14 adam Exp $
+# $NetBSD: buildlink3.mk,v 1.10 2021/06/22 09:36:41 nia Exp $
 
 BUILDLINK_TREE+=       samba
 
@@ -6,7 +6,7 @@ BUILDLINK_TREE+=        samba
 SAMBA_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.samba+=  samba>=4.9.4
-BUILDLINK_ABI_DEPENDS.samba?=  samba>=4.14.2nb1
+BUILDLINK_ABI_DEPENDS.samba?=  samba>=4.13.9
 BUILDLINK_PKGSRCDIR.samba?=    ../../net/samba4
 
 .include "../../archivers/libarchive/buildlink3.mk"

Index: pkgsrc/net/samba4/distinfo
diff -u pkgsrc/net/samba4/distinfo:1.62 pkgsrc/net/samba4/distinfo:1.63
--- pkgsrc/net/samba4/distinfo:1.62     Tue Jun  1 08:30:17 2021
+++ pkgsrc/net/samba4/distinfo  Tue Jun 22 09:36:41 2021
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.62 2021/06/01 08:30:17 adam Exp $
+$NetBSD: distinfo,v 1.63 2021/06/22 09:36:41 nia Exp $
 
-SHA1 (samba-4.14.5.tar.gz) = 498f9aec010962b790b363adf2fe1fcd68e44db6
-RMD160 (samba-4.14.5.tar.gz) = 9e7997033b458967fb63be9809ba2df1e2d3e025
-SHA512 (samba-4.14.5.tar.gz) = ef50aae93141a41034a10eb0b1a135d4b8b28c63663b930d24d6199d9ffd1fd139b6443d1859df19d3299b507a4a1c2810de057e2affd4e8b8cfc7175fdd7b39
-Size (samba-4.14.5.tar.gz) = 18653694 bytes
+SHA1 (samba-4.13.9.tar.gz) = 53e167dc014b77b4314943f177a1e9ff77daf320
+RMD160 (samba-4.13.9.tar.gz) = 97fa709930487bdd08d0da5bce18d7dc05e17d9f
+SHA512 (samba-4.13.9.tar.gz) = 35c98979c1141fe4bd700e3c8f2439ec08876697faeaced6668ea6a9fea1d8303ca34e82123499aa4a41054b9ed6e1260ae779ea8d59978ba6de6b5861f21948
+Size (samba-4.13.9.tar.gz) = 18443813 bytes
 SHA1 (patch-buildtools_wafsamba_samba__conftests.py) = d927db17124d2bb5b382885e70a41f84c3929926
 SHA1 (patch-buildtools_wafsamba_samba__install.py) = d801340617da325e3bb70a90350e45cc8e383c2d
 SHA1 (patch-buildtools_wafsamba_samba__pidl.py) = e4c0ed3dacfcf5613a5b397b3c6cf88509497da7
@@ -15,20 +15,22 @@ SHA1 (patch-lib_pthreadpool_pthreadpool.
 SHA1 (patch-lib_replace_system_passwd.h) = 652be067b2560310ce3a4bbf37c24cb2fa8eb82d
 SHA1 (patch-lib_replace_wscript) = 2a754e7310850b376d5881b82a8467041284fce9
 SHA1 (patch-lib_tdb_common_mutex.c) = 74162bf9dfd440fc0b9782982e83776c9671a983
-SHA1 (patch-lib_tevent_tevent.c) = c5100a1ab65ab5a645901e9a9fb021a6f38cc2c5
+SHA1 (patch-lib_tevent_tevent.c) = dc782c5b7214abf52a4c8c242018b1989bca08e3
 SHA1 (patch-lib_tevent_tevent__threads.c) = e5e82db82cff4d550451cd9290b3a351b25d4de4
 SHA1 (patch-lib_tevent_wscript) = fbbe2024096b57d651d90064f53489a974db9d7a
 SHA1 (patch-lib_util_charset_charset__macosxfs.c) = 9772fc52fff48aec2a7e279223f73bb791217c26
-SHA1 (patch-lib_util_smb__threads.h) = ee8366e4d68d1c8965e9d86bdade965822133ca6
+SHA1 (patch-lib_util_smb__threads.h) = 817591a2b69f31ac29497a2006fe21f0b4b0aaea
 SHA1 (patch-lib_util_tfork.c) = a9acb5561c5bba76450c48904a22019c8b14cbec
 SHA1 (patch-libcli_dns_wscript__build) = 4103a144aa1bb4662fd7a62270941f1a3d01fe89
 SHA1 (patch-nsswitch_stress-nss-libwbclient.c) = c546f00184b0d22b6c150e210962cdfc6fc12df2
 SHA1 (patch-nsswitch_winbind__nss__netbsd.c) = 2773ec9269d1fe0d7ce7ed220f6a7122d187fabe
 SHA1 (patch-nsswitch_wscript__build) = e8a6251e031ffa13d6347fade8891f7afd65d3eb
+SHA1 (patch-source3_libsmb_libsmb__stat.c) = 1f88759babfd64b525df8087ea143c7bc3171549
 SHA1 (patch-source3_libsmb_pylibsmb.c) = 962bb35b140ec11c0035ffa7fb83c9143fa5615f
 SHA1 (patch-source3_smbd_process.c) = 3a6f9682aca6473e364d0be0f601774df4fd1296
 SHA1 (patch-source4_dsdb_samdb_ldb__modules_wscript__build__server) = 47f55ec16b667a0a4d38de5ac89a117f2ac8f898
 SHA1 (patch-source4_heimdal__build_roken.h) = f467a541fa09e2aa483d10ed9d49df9167a3443a
 SHA1 (patch-source4_heimdal_include_heim__threads.h) = 1108fe804f235c72a93bcda0ec14454828ed030f
 SHA1 (patch-source4_scripting_wsript_build) = bd4feddcaadf1c3d2d25eb7914e7b5843e4e9511
+SHA1 (patch-source4_torture_libsmbclient_libsmbclient.c) = 38bb8b53581d5f0b5b0e9f0fce58f51148e91c20
 SHA1 (patch-source4_utils_oLschema2ldif_wscript__build) = b0cbbcd4ebedd443dc9f9a59d1dad2e039bb9663

Index: pkgsrc/net/samba4/patches/patch-lib_tevent_tevent.c
diff -u pkgsrc/net/samba4/patches/patch-lib_tevent_tevent.c:1.2 pkgsrc/net/samba4/patches/patch-lib_tevent_tevent.c:1.3
--- pkgsrc/net/samba4/patches/patch-lib_tevent_tevent.c:1.2     Thu Apr 29 15:21:16 2021
+++ pkgsrc/net/samba4/patches/patch-lib_tevent_tevent.c Tue Jun 22 09:36:41 2021
@@ -1,9 +1,9 @@
-$NetBSD: patch-lib_tevent_tevent.c,v 1.2 2021/04/29 15:21:16 taca Exp $
+$NetBSD: patch-lib_tevent_tevent.c,v 1.3 2021/06/22 09:36:41 nia Exp $
 
 On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
 mutex data structure
 
---- lib/tevent/tevent.c.orig   2019-01-15 10:07:00.000000000 +0000
+--- lib/tevent/tevent.c.orig   2020-07-09 09:33:56.000000000 +0000
 +++ lib/tevent/tevent.c
 @@ -423,6 +423,7 @@ static int tevent_common_context_constru
                return ret;
Index: pkgsrc/net/samba4/patches/patch-lib_util_smb__threads.h
diff -u pkgsrc/net/samba4/patches/patch-lib_util_smb__threads.h:1.2 pkgsrc/net/samba4/patches/patch-lib_util_smb__threads.h:1.3
--- pkgsrc/net/samba4/patches/patch-lib_util_smb__threads.h:1.2 Thu Apr 29 15:21:16 2021
+++ pkgsrc/net/samba4/patches/patch-lib_util_smb__threads.h     Tue Jun 22 09:36:41 2021
@@ -1,9 +1,9 @@
-$NetBSD: patch-lib_util_smb__threads.h,v 1.2 2021/04/29 15:21:16 taca Exp $
+$NetBSD: patch-lib_util_smb__threads.h,v 1.3 2021/06/22 09:36:41 nia Exp $
 
 On SunOS (OpenSolaris), pthread_mutex_init() expects a zeroed-out
 mutex data structure
 
---- lib/util/smb_threads.h.orig        2019-01-15 10:07:00.000000000 +0000
+--- lib/util/smb_threads.h.orig        2020-07-09 09:33:56.000000000 +0000
 +++ lib/util/smb_threads.h
 @@ -66,6 +66,7 @@ static int smb_create_mutex_pthread(cons
        if (!pmut) { \

Added files:

Index: pkgsrc/net/samba4/patches/patch-source3_libsmb_libsmb__stat.c
diff -u /dev/null pkgsrc/net/samba4/patches/patch-source3_libsmb_libsmb__stat.c:1.3
--- /dev/null   Tue Jun 22 09:36:41 2021
+++ pkgsrc/net/samba4/patches/patch-source3_libsmb_libsmb__stat.c       Tue Jun 22 09:36:41 2021
@@ -0,0 +1,37 @@
+$NetBSD: patch-source3_libsmb_libsmb__stat.c,v 1.3 2021/06/22 09:36:41 nia Exp $
+
+Compatibility fix.
+
+--- source3/libsmb/libsmb_stat.c.orig  2020-11-11 15:02:40.000000000 +0000
++++ source3/libsmb/libsmb_stat.c
+@@ -102,18 +102,30 @@ void setup_stat(struct stat *st,
+       }
+ 
+       st->st_dev = dev;
++#if defined(__APPLE__) || defined(__NetBSD__)
++      st->st_atimespec = access_time_ts;
++      st->st_ctimespec = change_time_ts;
++      st->st_mtimespec = write_time_ts;
++#else
+       st->st_atim = access_time_ts;
+       st->st_ctim = change_time_ts;
+       st->st_mtim = write_time_ts;
++#endif
+ }
+ 
+ void setup_stat_from_stat_ex(const struct stat_ex *stex,
+                            const char *fname,
+                            struct stat *st)
+ {
++#if defined(__APPLE__) || defined(__NetBSD__)
++      st->st_atimespec = stex->st_ex_atime;
++      st->st_ctimespec = stex->st_ex_ctime;
++      st->st_mtimespec = stex->st_ex_mtime;
++#else
+       st->st_atim = stex->st_ex_atime;
+       st->st_ctim = stex->st_ex_ctime;
+       st->st_mtim = stex->st_ex_mtime;
++#endif
+ 
+       st->st_mode = stex->st_ex_mode;
+       st->st_size = stex->st_ex_size;
Index: pkgsrc/net/samba4/patches/patch-source4_torture_libsmbclient_libsmbclient.c
diff -u /dev/null pkgsrc/net/samba4/patches/patch-source4_torture_libsmbclient_libsmbclient.c:1.3
--- /dev/null   Tue Jun 22 09:36:41 2021
+++ pkgsrc/net/samba4/patches/patch-source4_torture_libsmbclient_libsmbclient.c Tue Jun 22 09:36:41 2021
@@ -0,0 +1,32 @@
+$NetBSD: patch-source4_torture_libsmbclient_libsmbclient.c,v 1.3 2021/06/22 09:36:41 nia Exp $
+
+Compatibility fix.
+
+--- source4/torture/libsmbclient/libsmbclient.c.orig   2020-11-11 15:11:03.000000000 +0000
++++ source4/torture/libsmbclient/libsmbclient.c
+@@ -1231,8 +1231,13 @@ static bool torture_libsmbclient_utimes(
+       ret = smbc_fstat(fhandle, &st);
+       torture_assert_int_not_equal(tctx, ret, -1, "smbc_fstat failed");
+ 
++#if defined(__APPLE__) || defined(__NetBSD__)
++      tbuf[0] = convert_timespec_to_timeval(st.st_atimespec);
++      tbuf[1] = convert_timespec_to_timeval(st.st_mtimespec);
++#else
+       tbuf[0] = convert_timespec_to_timeval(st.st_atim);
+       tbuf[1] = convert_timespec_to_timeval(st.st_mtim);
++#endif
+ 
+       tbuf[1] = timeval_add(&tbuf[1], 0, 100000); /* 100 msec */
+ 
+@@ -1244,7 +1249,11 @@ static bool torture_libsmbclient_utimes(
+ 
+       torture_assert_int_equal(
+               tctx,
++#if defined(__APPLE__) || defined(__NetBSD__)
++              st.st_mtimespec.tv_nsec / 1000,
++#else
+               st.st_mtim.tv_nsec / 1000,
++#endif
+               tbuf[1].tv_usec,
+               "smbc_utimes did not update msec");
+ 



Home | Main Index | Thread Index | Old Index