samba: 4.20.8 -> 4.22.3 (#433796)

authored by Martin Weinelt and committed by GitHub ae0ba2b2 9ccc011d

+24 -66
+7 -13
pkgs/servers/samba/4.x-no-persistent-install.patch
··· 1 - --- a/ctdb/wscript 2019-01-15 02:07:00.000000000 -0800 2 - +++ b/ctdb/wscript 2019-01-20 20:21:08.800187459 -0800 3 - @@ -814,7 +814,7 @@ 1 + diff --git a/ctdb/wscript b/ctdb/wscript 2 + index e9cd89436a3..893b9a4c59e 100644 3 + --- a/ctdb/wscript 4 + +++ b/ctdb/wscript 5 + @@ -862,7 +862,7 @@ def build(bld): 4 6 for t in etc_subdirs: 5 7 files = SUBDIR_MODE('%s/%s' % (configdir, t), trim_path=configdir) 6 8 for fmode in files: ··· 9 11 destname=fmode[0], chmod=fmode[1]) 10 12 11 13 # If this is a direct install and there are no event scripts 12 - @@ -852,24 +852,20 @@ 14 + @@ -901,17 +901,13 @@ def build(bld): 13 15 ] 14 16 15 17 for t in etc_scripts: ··· 17 19 + bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}', 'config/%s' % t, 18 20 destname=t, chmod=MODE_755) 19 21 20 - bld.SAMBA_GENERATOR('ctdb-sudoers', 21 - source='config/ctdb.sudoers', 22 - target='ctdb.sudoers', 23 - rule='sed %s ${SRC} > ${TGT}' % (sed_cmdline)) 24 - - bld.INSTALL_FILES('${SYSCONFDIR}/sudoers.d', 'ctdb.sudoers', 25 - + bld.INSTALL_FILES('${EXEC_PREFIX}${SYSCONFDIR}/sudoers.d', 'ctdb.sudoers', 26 - destname='ctdb') 27 - 28 22 - bld.INSTALL_FILES('${CTDB_ETCDIR}/events/notification', 29 - + bld.INSTALL_FILES('${EXEC_PREFIX}${CTDB_ETCDIR}/events/notification', 23 + + bld.INSTALL_FILES('${EXEC_PREFIX}$${CTDB_ETCDIR}/events/notification', 30 24 'config/notification.README', 31 25 destname='README') 32 26
+10 -26
pkgs/servers/samba/4.x.nix
··· 26 26 talloc, 27 27 jansson, 28 28 ldb, 29 + lmdb, 29 30 libtasn1, 30 31 tdb, 31 32 tevent, 32 33 libxcrypt, 33 - libxcrypt-legacy, 34 34 cmocka, 35 35 rpcsvc-proto, 36 36 bash, ··· 49 49 avahi, 50 50 enableDomainController ? false, 51 51 gpgme, 52 - lmdb, 53 52 enableRegedit ? true, 54 53 ncurses, 55 54 enableCephFS ? false, ··· 66 65 }: 67 66 68 67 let 69 - # samba-tool requires libxcrypt-legacy algorithms 70 - python = python3Packages.python.override { 71 - self = python; 72 - libxcrypt = libxcrypt-legacy; 73 - }; 74 - wrapPython = python3Packages.wrapPython.override { 75 - inherit python; 76 - }; 77 - 78 68 inherit (lib) optional optionals; 79 69 80 70 needsAnswers = ··· 89 79 in 90 80 stdenv.mkDerivation (finalAttrs: { 91 81 pname = "samba"; 92 - version = "4.20.8"; 82 + version = "4.22.3"; 93 83 94 84 src = fetchurl { 95 85 url = "https://download.samba.org/pub/samba/stable/samba-${finalAttrs.version}.tar.gz"; 96 - hash = "sha256-db4OjTH0UBPpsmD+fPMEo20tgSg5GRR3JXchXsFzqAc="; 86 + hash = "sha256-j9cJJimjWW2TXNdWfZNJeflCcpGOw6/9DMgHk07PIro="; 97 87 }; 98 88 99 89 outputs = [ ··· 104 94 105 95 patches = [ 106 96 ./4.x-no-persistent-install.patch 107 - ./patch-source3__libads__kerberos_keytab.c.patch 108 97 ./4.x-no-persistent-install-dynconfig.patch 109 98 ./4.x-fix-makeflags-parsing.patch 110 99 ./build-find-pre-built-heimdal-build-tools-in-case-of-.patch ··· 123 112 124 113 nativeBuildInputs = [ 125 114 python3Packages.python 115 + python3Packages.wrapPython 126 116 wafHook 127 117 pkg-config 128 118 bison ··· 148 138 149 139 buildInputs = [ 150 140 bash 151 - wrapPython 152 - python 141 + python3Packages.python 153 142 readline 154 143 popt 155 144 dbus ··· 158 147 zlib 159 148 gnutls 160 149 libtasn1 150 + lmdb 161 151 tdb 162 152 libxcrypt 163 153 ] ··· 182 172 ++ optional enableMDNS avahi 183 173 ++ optionals enableDomainController [ 184 174 gpgme 185 - lmdb 186 175 python3Packages.dnspython 187 176 ] 188 177 ++ optional enableRegedit ncurses ··· 230 219 "--disable-rpath" 231 220 # otherwise third_party/waf/waflib/Tools/python.py would 232 221 # get the wrong pythondir from build platform python 233 - "--pythondir=${placeholder "out"}/${python.sitePackages}" 222 + "--pythondir=${placeholder "out"}/${python3Packages.python.sitePackages}" 234 223 (lib.enableFeature enablePrinting "cups") 235 224 ] 236 225 ++ optional (!enableDomainController) "--without-ad-dc" ··· 245 234 ++ optional enableProfiling "--with-profiling-data" 246 235 ++ optional (!enableAcl) "--without-acl-support" 247 236 ++ optional (!enablePam) "--without-pam" 248 - ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) ([ 237 + ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 249 238 "--bundled-libraries=!asn1_compile,!compile_et" 250 239 "--cross-compile" 251 240 ( ··· 254 243 else 255 244 "--cross-answers=answers" 256 245 ) 257 - ]) 246 + ] 258 247 ++ optionals stdenv.buildPlatform.is32bit [ 259 248 # By default `waf configure` spawns as many as available CPUs. On 260 249 # 32-bit systems with many CPUs (like `i686` chroot on `x86_64` ··· 321 310 # Samba does its own shebang patching, but uses build Python 322 311 find $out/bin -type f -executable | while read file; do 323 312 isScript "$file" || continue 324 - sed -i 's^${lib.getBin buildPackages.python3Packages.python}^${lib.getBin python}^' "$file" 313 + sed -i 's^${lib.getBin buildPackages.python3Packages.python}^${lib.getBin python3Packages.python}^' "$file" 325 314 done 326 315 ''; 327 316 ··· 349 338 broken = enableGlusterFS; 350 339 maintainers = with maintainers; [ aneeshusa ]; 351 340 pkgConfigModules = [ 352 - "dcerpc_samr" 353 - "dcerpc" 354 341 "ndr_krb5pac" 355 342 "ndr_nbt" 356 343 "ndr_standard" 357 344 "ndr" 358 345 "netapi" 359 - "samba-credentials" 360 - "samba-hostconfig" 361 346 "samba-util" 362 - "samdb" 363 347 "smbclient" 364 348 "wbclient" 365 349 ];
+7 -7
pkgs/servers/samba/build-find-pre-built-heimdal-build-tools-in-case-of-.patch
··· 1 - From 48f7e6d66e2850088b8922024641173776222242 Mon Sep 17 00:00:00 2001 1 + From 475ec75a34002aafabc92659f693cf705c96aff4 Mon Sep 17 00:00:00 2001 2 2 From: Nick Cao <nickcao@nichi.co> 3 3 Date: Thu, 21 Nov 2024 15:30:00 -0500 4 4 Subject: [PATCH] build: find pre-built heimdal build tools in case of embedded ··· 35 35 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> 36 36 [Bachp: rebased for version 4.15.0] 37 37 [Mats: rebased for version 4.18.5] 38 + [hexa: rebased for version 4.22.3] 38 39 --- 39 40 wscript_configure_embedded_heimdal | 11 +++++++++++ 40 41 1 file changed, 11 insertions(+) 41 42 42 43 diff --git a/wscript_configure_embedded_heimdal b/wscript_configure_embedded_heimdal 43 - index 45f47721de..6c5a4bcf01 100644 44 + index c1488e5506e..ede28ba7fc3 100644 44 45 --- a/wscript_configure_embedded_heimdal 45 46 +++ b/wscript_configure_embedded_heimdal 46 - @@ -13,3 +13,14 @@ conf.RECURSE('third_party/heimdal_build') 47 - # when this will be available also in 48 - # system libraries... 47 + @@ -15,3 +15,14 @@ conf.RECURSE('third_party/heimdal_build') 49 48 conf.define('HAVE_CLIENT_GSS_C_CHANNEL_BOUND_FLAG', 1) 49 + 50 + conf.define('HAVE_KRB5_INIT_CREDS_STEP', 1) 50 51 + 51 52 +def check_system_heimdal_binary(name): 52 53 + if conf.LIB_MAY_BE_BUNDLED(name): ··· 59 60 +check_system_heimdal_binary("compile_et") 60 61 +check_system_heimdal_binary("asn1_compile") 61 62 -- 62 - 2.47.0 63 - 63 + 2.50.1
-20
pkgs/servers/samba/patch-source3__libads__kerberos_keytab.c.patch
··· 1 - --- old/source3/libads/kerberos_keytab.c 2017-12-23 14:23:53.247467000 +0100 2 - +++ new/source3/libads/kerberos_keytab.c 2017-12-23 18:57:07.135340000 +0100 3 - @@ -32,8 +32,6 @@ 4 - 5 - #ifdef HAVE_KRB5 6 - 7 - -#ifdef HAVE_ADS 8 - - 9 - /* This MAX_NAME_LEN is a constant defined in krb5.h */ 10 - #ifndef MAX_KEYTAB_NAME_LEN 11 - #define MAX_KEYTAB_NAME_LEN 1100 12 - @@ -85,6 +83,8 @@ 13 - return ret; 14 - } 15 - 16 - +#ifdef HAVE_ADS 17 - + 18 - /********************************************************************** 19 - Adds a single service principal, i.e. 'host' to the system keytab 20 - ***********************************************************************/