mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
ldb: fix build w/ glibc-2.44
Co-authored-by: Philip Taron <philip.taron@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
buildPackages,
|
||||
libxcrypt,
|
||||
testers,
|
||||
fetchpatch,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@@ -33,6 +34,16 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"dev"
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Fix rep_memset_s calling C23 memset_explicit with wrong arg count (4 instead of 3).
|
||||
# Upstream samba commit 04e0fb9b2d; later reworked more broadly in ef08be24e9 and 3e81b73a05
|
||||
# which replace memset_s with memset_explicit entirely, but those don't apply to ldb 2.9.2.
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.com/samba-team/samba/-/commit/04e0fb9b2d1d87516f1331096c78e8355b4fa9f3.patch";
|
||||
hash = "sha256-sBqtVwGBXseCAMlv3QaiSYQmOw7H4cAJwc0Ey5yD6Os=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
python3
|
||||
|
||||
Reference in New Issue
Block a user