From e24bf8721ea42c0d126d72b57ee8b050b900094b Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Mon, 14 Feb 2022 18:42:40 -0600
Subject: [PATCH] New package farmhash; additional depends_on for
 tensorflow-lite

---
 spack/packages/farmhash/package.py        | 26 +++++++++++++++++++++++
 spack/packages/tensorflow-lite/package.py |  5 ++---
 2 files changed, 28 insertions(+), 3 deletions(-)
 create mode 100644 spack/packages/farmhash/package.py

diff --git a/spack/packages/farmhash/package.py b/spack/packages/farmhash/package.py
new file mode 100644
index 000000000..a11c5ee06
--- /dev/null
+++ b/spack/packages/farmhash/package.py
@@ -0,0 +1,26 @@
+# Copyright 2013-2022 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 Farmhash(AutotoolsPackage):
+    """FarmHash is a family of hash functions."""
+
+    homepage = "https://github.com/google/farmhash"
+    url      = "https://github.com/google/farmhash"
+    git      = "https://github.com/google/farmhash"
+
+    maintainers = ['wdconinc']
+
+    version('master', branch='master')
+
+    depends_on('autoconf', type='build', when='@master')
+    depends_on('automake', type='build', when='@master')
+    depends_on('libtool',  type='build', when='@master')
+
+    force_autoreconf = True
+
+    patch('https://github.com/google/farmhash/pull/25.patch',sha256='cbb6709d51d8d517d5df8a47e5c1867610dc5352152e78b64dec75620f95cc97')
diff --git a/spack/packages/tensorflow-lite/package.py b/spack/packages/tensorflow-lite/package.py
index dbe92b5ca..58ef88f0e 100644
--- a/spack/packages/tensorflow-lite/package.py
+++ b/spack/packages/tensorflow-lite/package.py
@@ -35,11 +35,10 @@ class TensorflowLite(CMakePackage):
     depends_on('gemmlowp')
     depends_on('psimd')
     depends_on('pthreadpool')
-    #depends_on(farmhash REQUIRED)
+    depends_on('farmhash')
     #depends_on(fft2d REQUIRED)
     #depends_on(neon2sse REQUIRED)
-    #depends_on(clog REQUIRED)
-    #depends_on(cpuinfo REQUIRED)
+    depends_on('cpuinfo')
     #depends_on(ruy REQUIRED)
 
     # GPU variant dependencies
-- 
GitLab