Unverified Commit 015c8b1c authored by Tristan Ross's avatar Tristan Ross
Browse files

jemalloc: 5.3.0 -> 5.3.0-unstable-2025-09-12

parent 4a9d5572
Loading
Loading
Loading
Loading
+5 −16
Original line number Diff line number Diff line
@@ -17,27 +17,16 @@

stdenv.mkDerivation rec {
  pname = "jemalloc";
  version = "5.3.0";
  version = "5.3.0-unstable-2025-09-12";

  src = fetchFromGitHub {
    owner = "jemalloc";
    owner = "facebook";
    repo = "jemalloc";
    tag = version;
    hash = "sha256-bb0OhZVXyvN+hf9BpPSykn5cGm87a0C+Y/iXKt9wTSs=";
    rev = "c0889acb6c286c837530fdbeb96007b0dee8b776";
    hash = "sha256-lBNgvUhuiRPgzr8JC4zSSCT2KpDBktBVX72zfvAEHvo=";
  };

  patches = [
    # fix tests under --with-jemalloc-prefix=, see https://github.com/jemalloc/jemalloc/pull/2340
    (fetchpatch {
      url = "https://github.com/jemalloc/jemalloc/commit/d00ecee6a8dfa90afcb1bbc0858985c17bef6559.patch";
      hash = "sha256-N5i4IxGJ4SSAgFiq5oGRnrNeegdk2flw9Sh2mP0yl4c=";
    })
    # fix linking with libc++, can be removed in the next update (after 5.3.0).
    # https://github.com/jemalloc/jemalloc/pull/2348
    (fetchpatch {
      url = "https://github.com/jemalloc/jemalloc/commit/4422f88d17404944a312825a1aec96cd9dc6c165.patch";
      hash = "sha256-dunkE7XHzltn5bOb/rSHqzpRniAFuGubBStJeCxh0xo=";
    })
    # -O3 appears to introduce an unreproducibility where
    # `rtree_read.constprop.0` shows up in some builds but
    # not others, so we fall back to O2:
@@ -55,7 +44,7 @@ stdenv.mkDerivation rec {
  configureScript = "./autogen.sh";

  configureFlags = [
    "--with-version=${version}-0-g0000000000000000000000000000000000000000"
    "--with-version=${lib.versions.majorMinor version}.0-0-g${src.rev}"
    "--with-lg-vaddr=${with stdenv.hostPlatform; toString (if isILP32 then 32 else parsed.cpu.bits)}"
  ]
  # see the comment on stripPrefix