# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack import *


class Talloc(AutotoolsPackage):
    """Talloc provides a hierarchical, reference counted memory pool system
    with destructors. It is the core memory allocator used in Samba."""

    homepage = "https://talloc.samba.org"
    url      = "https://www.samba.org/ftp/talloc/talloc-2.1.9.tar.gz"

    version('2.1.9', sha256='f0aad4cb88a3322207c82136ddc07bed48a37c2c21f82962d6c5ccb422711062')

@@ -507,16 +507,208 @@
 ar.gz%22%0A%0A
+    version('2.3.1', sha256='ef4822d2fdafd2be8e0cabc3ec3c806ae29b8268e932c5e9a4cd5585f37f9f77')%0A    version('2.3.0', sha256='75d5bcb34482545a82ffb06da8f6c797f963a0da450d0830c669267b14992fc6')%0A
     vers
@@ -795,8 +795,34 @@
 11062')%0A
+%0A    extends('python@3:')%0A

update version and dependencies (#18817)