Commit 9b4cf108 authored by Wanja Zaeske's avatar Wanja Zaeske Committed by wucke13
Browse files

samba: etc

Makes samba use the nix vendored `talloc` instead of compiling its own,
bundleded version. This fixes an issue where the library may be initialized
with different magic numbers, resulting in segfaults. See in
https://github.com/NixOS/nixpkgs/issues/205859 for further detail.
parent a36d319f
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -20,9 +20,12 @@
, gnutls
, systemd
, samba
, talloc
, jansson
, ldb
, libtasn1
, tdb
, tevent
, libxcrypt
, cmocka
, rpcsvc-proto
@@ -100,8 +103,11 @@ stdenv.mkDerivation rec {
    libarchive
    zlib
    gnutls
    ldb
    talloc
    libtasn1
    tdb
    tevent
    libxcrypt
  ] ++ optionals stdenv.isLinux [ liburing systemd ]
    ++ optionals stdenv.isDarwin [ libiconv ]
@@ -143,6 +149,7 @@ stdenv.mkDerivation rec {
  ++ optionals (!enableLDAP) [
    "--without-ldap"
    "--without-ads"
    "--bundled-libraries=!ldb,!pyldb-util!talloc,!pytalloc-util,!tevent,!tdb,!pytdb"
  ] ++ optional enableLibunwind "--with-libunwind"
    ++ optional enableProfiling "--with-profiling-data"
    ++ optional (!enableAcl) "--without-acl-support"