Skip to content

Commit b2e80a5

Browse files
committedDec 20, 2016
samba4: 4.3.11 -> 4.3.13
1 parent 97b3de9 commit b2e80a5

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed
 
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
From bb64c550ae19b08ad4e6d8d26f68c2474cb251e6 Mon Sep 17 00:00:00 2001
2+
From: Stefan Metzmacher <metze@samba.org>
3+
Date: Tue, 19 Jul 2016 16:31:01 +0200
4+
Subject: [PATCH] krb5_wrap: provide CKSUMTYPE_HMAC_SHA1_96_AES_*
5+
MIME-Version: 1.0
6+
Content-Type: text/plain; charset=UTF-8
7+
Content-Transfer-Encoding: 8bit
8+
9+
MIT only defined this as CKSUMTYPE_HMAC_SHA1_96_AES128,
10+
while Heimdal has CKSUMTYPE_HMAC_SHA1_96_AES_128.
11+
12+
Signed-off-by: Stefan Metzmacher <metze@samba.org>
13+
Reviewed-by: Günther Deschner <gd@samba.org>
14+
---
15+
lib/krb5_wrap/krb5_samba.h | 11 +++++++++++
16+
1 file changed, 11 insertions(+)
17+
18+
diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h
19+
index 41664f1..2b5e2bb 100644
20+
--- a/lib/krb5_wrap/krb5_samba.h
21+
+++ b/lib/krb5_wrap/krb5_samba.h
22+
@@ -74,6 +74,17 @@
23+
#define CKSUMTYPE_HMAC_MD5 CKSUMTYPE_HMAC_MD5_ARCFOUR
24+
#endif
25+
26+
+/*
27+
+ * CKSUMTYPE_HMAC_SHA1_96_AES_* in Heimdal
28+
+ * CKSUMTYPE_HMAC_SHA1_96_AES* in MIT
29+
+ */
30+
+#if defined(CKSUMTYPE_HMAC_SHA1_96_AES128) && !defined(CKSUMTYPE_HMAC_SHA1_96_AES_128)
31+
+#define CKSUMTYPE_HMAC_SHA1_96_AES_128 CKSUMTYPE_HMAC_SHA1_96_AES128
32+
+#endif
33+
+#if defined(CKSUMTYPE_HMAC_SHA1_96_AES256) && !defined(CKSUMTYPE_HMAC_SHA1_96_AES_256)
34+
+#define CKSUMTYPE_HMAC_SHA1_96_AES_256 CKSUMTYPE_HMAC_SHA1_96_AES256
35+
+#endif
36+
+
37+
typedef struct {
38+
#if defined(HAVE_MAGIC_IN_KRB5_ADDRESS) && defined(HAVE_ADDRTYPE_IN_KRB5_ADDRESS) /* MIT */
39+
krb5_address **addrs;
40+
--
41+
2.9.3

‎pkgs/servers/samba/4.x.nix

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,20 @@
1818
with lib;
1919

2020
stdenv.mkDerivation rec {
21-
name = "samba-4.3.11";
21+
name = "samba-${version}";
22+
version = "4.3.13";
2223

2324
src = fetchurl {
2425
url = "mirror://samba/pub/samba/stable/${name}.tar.gz";
25-
sha256 = "1v2grwivm6rasz1ganbybs0ikz1lydaniy65kxf1v8rl1qqngach";
26+
sha256 = "15va32db7qqb35nqg6csmkb4mcwfwymkml5sp06k9kff885s0vc7";
2627
};
2728

2829
outputs = [ "out" "dev" "man" ];
2930

3031
patches =
3132
[ ./4.x-no-persistent-install.patch
3233
./4.x-fix-ctdb-deps.patch
34+
./4.x-fix-libkrb5.patch
3335
];
3436

3537
buildInputs =

14 commit comments

Comments
 (14)

grahamc commented on Dec 21, 2016

@grahamc
Member

Is it possible this breaks KDE? I ran git-bisect between this commit (tip of the release branch) and the channel's head (81428dd) and this one is the first bad commit.

Reverting this commit locally seems to have fixed it.

abbradar commented on Dec 21, 2016

@abbradar
MemberAuthor

I think this is it, yes. Dolphin, Konsole and presumably other KDE applications don't start with this commit, and don't output any errors to std{out,err} either. No idea what happens (and a little frustrated that a miinor version bump could do that)...

abbradar commented on Dec 21, 2016

@abbradar
MemberAuthor

Oh, they are just very slow for some reason. Investigating further...

abbradar commented on Dec 21, 2016

@abbradar
MemberAuthor

Well, still no idea what happens. It works for me locally in a VM (but applications start very slow, though they seem to also start slow with this patch reverted -- general VM slowness?). Hydra test failure seems strange (it can't connect to VM but I cannot reproduce this). Locally the test fails to start Dolphin for me (it waits forever for its window to show up).

@ttuegel , maybe you have some ideas?

grahamc commented on Dec 21, 2016

@grahamc
Member

edolstra commented on Dec 21, 2016

@edolstra
Member

strace shows that Dolphin is spending a huge amount of time statting icons:

dolphin

On my system, the test does succeed after half an hour or so.

edolstra commented on Dec 21, 2016

@edolstra
Member

Fix pushed: 3fcbcf2.

grahamc commented on Dec 21, 2016

@grahamc
Member

ttuegel commented on Dec 21, 2016

@ttuegel
Member

strace shows that Dolphin is spending a huge amount of time statting icons:

@edolstra This is a consequence of removing the KDE "symlink farms" in favor of extending XDG_DATA_DIRS. I removed them a while back after our conversation about the excessive size of the symlink farms. The consequence of this change is that every time a KDE application loads an icon, it searches every entry in XDG_DATA_DIRS for that icon; there are potentially many entries, so this is very slow. And it's not just icons: translations, services... Unfortunately, I see no middle ground between "KDE applications occupy excessive disk space" and "KDE applications are horrendously slow". ☹️

edolstra commented on Dec 21, 2016

@edolstra
Member

Maybe in NixOS, we can put kde5.<app>.unwrapped in environment.systemPackages. That way we would have only one symlink tree (/run/current-system/sw), and KDE apps would still work when installed in different contexts by installing kde5.<app>.

abbradar commented on Dec 21, 2016

@abbradar
MemberAuthor

It's just my 2 cents and I don't even use KDE but I think that leaving things as they currently are is a bad idea, because applications are slow (I waited for a minute for Dolphin to start in a VM; I don't even want to start imagining how long it'd be on a spinning drive!). Using /run/current-system/sw also feels problematic to me because this leads to namespace pollution, potential conflicts and (most of all) breaks install-as-a-regular-user. For example, I used stand-alone Okular for quite some time because it supports annotations, forms and other advanced PDF features. I moved to Zathura since then but requiring our users to install KDE system-wide to be able to use its apps seems wrong.

How much did those symlink trees take?

vcunat commented on Dec 22, 2016

@vcunat
Member

My experience is usually several seconds on a 5.4krpm notebook drive.

abbradar commented on Dec 22, 2016

@abbradar
MemberAuthor

See #21345 -- it turned out that on the host (no VM) times are much better (comparable to yours) for me, but we still can have a substantial improvement. I want to measure times for a VM later (also with symlink farms -- @ttuegel, can you push the patch you talked about somewhere?).

ttuegel commented on Dec 22, 2016

@ttuegel
Member

can you push the patch you talked about somewhere?

@abbradar I pushed it to master just now. I thought it should go to master to help with the VM situation. Even if it isn't the whole solution to our problem, it's clear it will be part of the solution.

Please sign in to comment.