We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Adios2 missing zeromq dependency
@ax3l : I did a normal build without specifying any variants

    Call Stack (most recent call first):
    ..../cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
    cmake/FindZeroMQ.cmake:44 (find_package_handle_standard_args)
    source/dataman/CMakeLists.txt:51 (find_package)



--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `var/spack/repos/builtin/packages/adios2/package.py`
Content:
```
1 ##############################################################################
2 # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
3 # Produced at the Lawrence Livermore National Laboratory.
4 #
5 # This file is part of Spack.
6 # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
7 # LLNL-CODE-647188
8 #
9 # For details, see https://github.com/llnl/spack
10 # Please also see the NOTICE and LICENSE files for our notice and the LGPL.
11 #
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU Lesser General Public License (as
14 # published by the Free Software Foundation) version 2.1, February 1999.
15 #
16 # This program is distributed in the hope that it will be useful, but
17 # WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
19 # conditions of the GNU Lesser General Public License for more details.
20 #
21 # You should have received a copy of the GNU Lesser General Public
22 # License along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 ##############################################################################
25 from spack import *
26 
27 
28 class Adios2(CMakePackage):
29     """Next generation of ADIOS developed in the Exascale Computing Program"""
30 
31     homepage = "https://www.olcf.ornl.gov/center-projects/adios/"
32     url      = "https://github.com/ornladios/ADIOS2/archive/v2.0.0.tar.gz"
33 
34     version('develop', branch='master',
35             git='https://github.com/ornladios/ADIOS2.git')
36 
37     version('2.0.0', '019115e5c6ac28bd0f4201f590f5d994')
38 
39     variant('shared', default=True,
40             description='Also build shared libraries')
41     variant('mpi', default=True,
42             description='Enable MPI')
43     # transforms (not yet implemented)
44     # variant('bzip2', default=True,
45     #         description='Enable BZip2 compression')
46     # variant('zfp', default=True,
47     #         description='Enable ZFP compression')
48     # transport engines
49     variant('dataman', default=True,
50             description='Enable the DataMan engine for WAN transports')
51     # currently required by DataMan, optional in the future
52     # variant('zeromq', default=False,
53     #         description='Enable ZeroMQ for the DataMan engine')
54     variant('hdf5', default=False,
55             description='Enable the HDF5 engine')
56     variant('adios1', default=False,
57             description='Enable the ADIOS 1.x engine')
58     # language bindings
59     variant('python', default=True,
60             description='Enable the Python >= 2.7 bindings')
61 
62     # requires mature C++11 implementations
63     conflicts('%gcc@:4.7')
64     conflicts('%intel@:15')
65     conflicts('%pgi@:14')
66 
67     # DataMan needs dlopen
68     conflicts('+dataman', when='~shared')
69 
70     depends_on('cmake@3.5.0:', type='build')
71 
72     # contained in thirdparty/
73     # depends_on('googletest')
74     # depends_on('pugixml')
75     # depends_on('kwsys')
76     # depends_on('nlohmannjson')
77     # depends_on('pybind11@2.1.1:', when='+python')
78 
79     depends_on('mpi', when='+mpi')
80 
81     depends_on('hdf5', when='+hdf5')
82     depends_on('hdf5+mpi', when='+hdf5+mpi')
83     depends_on('adios', when='+adios1')
84     depends_on('adios+mpi', when='+adios1+mpi')
85 
86     depends_on('bzip2', when='+bzip2')
87     depends_on('zfp', when='+zfp')
88 
89     extends('python', when='+python')
90     depends_on('python@2.7:', type=('build', 'run'), when='+python')
91     depends_on('py-numpy@1.6.1:', type=('build', 'run'), when='+python')
92     depends_on('py-mpi4py@2.0.0:', type=('build', 'run'), when='+mpi +python')
93 
94     def cmake_args(self):
95         spec = self.spec
96 
97         args = [
98             '-DADIOS2_BUILD_SHARED_LIBS:BOOL={0}'.format((
99                 'ON' if '+shared' in spec else 'OFF')),
100             '-DADIOS2_BUILD_TESTING=OFF',
101             '-DADIOS2_USE_MPI={0}'.format((
102                 'ON' if '+mpi' in spec else 'OFF')),
103             '-DADIOS2_USE_BZip2={0}'.format((
104                 'ON' if '+bzip2' in spec else 'OFF')),
105             '-DADIOS2_USE_ZFP={0}'.format((
106                 'ON' if '+zfp' in spec else 'OFF')),
107             '-DADIOS2_USE_DataMan={0}'.format((
108                 'ON' if '+dataman' in spec else 'OFF')),
109             '-DADIOS2_USE_ZeroMQ={0}'.format((
110                 'ON' if '+dataman' in spec else 'OFF')),
111             '-DADIOS2_USE_HDF5={0}'.format((
112                 'ON' if '+hdf5' in spec else 'OFF')),
113             '-DADIOS2_USE_ADIOS1={0}'.format((
114                 'ON' if '+adios1' in spec else 'OFF')),
115             '-DADIOS2_USE_Python={0}'.format((
116                 'ON' if '+python' in spec else 'OFF'))
117         ]
118         return args
119
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/var/spack/repos/builtin/packages/adios2/package.py b/var/spack/repos/builtin/packages/adios2/package.py
--- a/var/spack/repos/builtin/packages/adios2/package.py
+++ b/var/spack/repos/builtin/packages/adios2/package.py
@@ -77,6 +77,7 @@
     # depends_on('pybind11@2.1.1:', when='+python')
 
     depends_on('mpi', when='+mpi')
+    depends_on('zeromq', when='+dataman')
 
     depends_on('hdf5', when='+hdf5')
     depends_on('hdf5+mpi', when='+hdf5+mpi')

{"golden_diff": "diff --git a/var/spack/repos/builtin/packages/adios2/package.py b/var/spack/repos/builtin/packages/adios2/package.py\n--- a/var/spack/repos/builtin/packages/adios2/package.py\n+++ b/var/spack/repos/builtin/packages/adios2/package.py\n@@ -77,6 +77,7 @@\n     # depends_on('pybind11@2.1.1:', when='+python')\n \n     depends_on('mpi', when='+mpi')\n+    depends_on('zeromq', when='+dataman')\n \n     depends_on('hdf5', when='+hdf5')\n     depends_on('hdf5+mpi', when='+hdf5+mpi')\n", "issue": "Adios2 missing zeromq dependency\n@ax3l : I did a normal build without specifying any variants\r\n\r\n    Call Stack (most recent call first):\r\n    ..../cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)\r\n    cmake/FindZeroMQ.cmake:44 (find_package_handle_standard_args)\r\n    source/dataman/CMakeLists.txt:51 (find_package)\r\n\r\n\n", "before_files": [{"content": "##############################################################################\n# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.\n# LLNL-CODE-647188\n#\n# For details, see https://github.com/llnl/spack\n# Please also see the NOTICE and LICENSE files for our notice and the LGPL.\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Public License (as\n# published by the Free Software Foundation) version 2.1, February 1999.\n#\n# This program is distributed in the hope that it will be useful, but\n# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and\n# conditions of the GNU Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this program; if not, write to the Free Software\n# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n##############################################################################\nfrom spack import *\n\n\nclass Adios2(CMakePackage):\n    \"\"\"Next generation of ADIOS developed in the Exascale Computing Program\"\"\"\n\n    homepage = \"https://www.olcf.ornl.gov/center-projects/adios/\"\n    url      = \"https://github.com/ornladios/ADIOS2/archive/v2.0.0.tar.gz\"\n\n    version('develop', branch='master',\n            git='https://github.com/ornladios/ADIOS2.git')\n\n    version('2.0.0', '019115e5c6ac28bd0f4201f590f5d994')\n\n    variant('shared', default=True,\n            description='Also build shared libraries')\n    variant('mpi', default=True,\n            description='Enable MPI')\n    # transforms (not yet implemented)\n    # variant('bzip2', default=True,\n    #         description='Enable BZip2 compression')\n    # variant('zfp', default=True,\n    #         description='Enable ZFP compression')\n    # transport engines\n    variant('dataman', default=True,\n            description='Enable the DataMan engine for WAN transports')\n    # currently required by DataMan, optional in the future\n    # variant('zeromq', default=False,\n    #         description='Enable ZeroMQ for the DataMan engine')\n    variant('hdf5', default=False,\n            description='Enable the HDF5 engine')\n    variant('adios1', default=False,\n            description='Enable the ADIOS 1.x engine')\n    # language bindings\n    variant('python', default=True,\n            description='Enable the Python >= 2.7 bindings')\n\n    # requires mature C++11 implementations\n    conflicts('%gcc@:4.7')\n    conflicts('%intel@:15')\n    conflicts('%pgi@:14')\n\n    # DataMan needs dlopen\n    conflicts('+dataman', when='~shared')\n\n    depends_on('cmake@3.5.0:', type='build')\n\n    # contained in thirdparty/\n    # depends_on('googletest')\n    # depends_on('pugixml')\n    # depends_on('kwsys')\n    # depends_on('nlohmannjson')\n    # depends_on('pybind11@2.1.1:', when='+python')\n\n    depends_on('mpi', when='+mpi')\n\n    depends_on('hdf5', when='+hdf5')\n    depends_on('hdf5+mpi', when='+hdf5+mpi')\n    depends_on('adios', when='+adios1')\n    depends_on('adios+mpi', when='+adios1+mpi')\n\n    depends_on('bzip2', when='+bzip2')\n    depends_on('zfp', when='+zfp')\n\n    extends('python', when='+python')\n    depends_on('python@2.7:', type=('build', 'run'), when='+python')\n    depends_on('py-numpy@1.6.1:', type=('build', 'run'), when='+python')\n    depends_on('py-mpi4py@2.0.0:', type=('build', 'run'), when='+mpi +python')\n\n    def cmake_args(self):\n        spec = self.spec\n\n        args = [\n            '-DADIOS2_BUILD_SHARED_LIBS:BOOL={0}'.format((\n                'ON' if '+shared' in spec else 'OFF')),\n            '-DADIOS2_BUILD_TESTING=OFF',\n            '-DADIOS2_USE_MPI={0}'.format((\n                'ON' if '+mpi' in spec else 'OFF')),\n            '-DADIOS2_USE_BZip2={0}'.format((\n                'ON' if '+bzip2' in spec else 'OFF')),\n            '-DADIOS2_USE_ZFP={0}'.format((\n                'ON' if '+zfp' in spec else 'OFF')),\n            '-DADIOS2_USE_DataMan={0}'.format((\n                'ON' if '+dataman' in spec else 'OFF')),\n            '-DADIOS2_USE_ZeroMQ={0}'.format((\n                'ON' if '+dataman' in spec else 'OFF')),\n            '-DADIOS2_USE_HDF5={0}'.format((\n                'ON' if '+hdf5' in spec else 'OFF')),\n            '-DADIOS2_USE_ADIOS1={0}'.format((\n                'ON' if '+adios1' in spec else 'OFF')),\n            '-DADIOS2_USE_Python={0}'.format((\n                'ON' if '+python' in spec else 'OFF'))\n        ]\n        return args\n", "path": "var/spack/repos/builtin/packages/adios2/package.py"}], "after_files": [{"content": "##############################################################################\n# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.\n# Produced at the Lawrence Livermore National Laboratory.\n#\n# This file is part of Spack.\n# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.\n# LLNL-CODE-647188\n#\n# For details, see https://github.com/llnl/spack\n# Please also see the NOTICE and LICENSE files for our notice and the LGPL.\n#\n# This program is free software; you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Public License (as\n# published by the Free Software Foundation) version 2.1, February 1999.\n#\n# This program is distributed in the hope that it will be useful, but\n# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and\n# conditions of the GNU Lesser General Public License for more details.\n#\n# You should have received a copy of the GNU Lesser General Public\n# License along with this program; if not, write to the Free Software\n# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n##############################################################################\nfrom spack import *\n\n\nclass Adios2(CMakePackage):\n    \"\"\"Next generation of ADIOS developed in the Exascale Computing Program\"\"\"\n\n    homepage = \"https://www.olcf.ornl.gov/center-projects/adios/\"\n    url      = \"https://github.com/ornladios/ADIOS2/archive/v2.0.0.tar.gz\"\n\n    version('develop', branch='master',\n            git='https://github.com/ornladios/ADIOS2.git')\n\n    version('2.0.0', '019115e5c6ac28bd0f4201f590f5d994')\n\n    variant('shared', default=True,\n            description='Also build shared libraries')\n    variant('mpi', default=True,\n            description='Enable MPI')\n    # transforms (not yet implemented)\n    # variant('bzip2', default=True,\n    #         description='Enable BZip2 compression')\n    # variant('zfp', default=True,\n    #         description='Enable ZFP compression')\n    # transport engines\n    variant('dataman', default=True,\n            description='Enable the DataMan engine for WAN transports')\n    # currently required by DataMan, optional in the future\n    # variant('zeromq', default=False,\n    #         description='Enable ZeroMQ for the DataMan engine')\n    variant('hdf5', default=False,\n            description='Enable the HDF5 engine')\n    variant('adios1', default=False,\n            description='Enable the ADIOS 1.x engine')\n    # language bindings\n    variant('python', default=True,\n            description='Enable the Python >= 2.7 bindings')\n\n    # requires mature C++11 implementations\n    conflicts('%gcc@:4.7')\n    conflicts('%intel@:15')\n    conflicts('%pgi@:14')\n\n    # DataMan needs dlopen\n    conflicts('+dataman', when='~shared')\n\n    depends_on('cmake@3.5.0:', type='build')\n\n    # contained in thirdparty/\n    # depends_on('googletest')\n    # depends_on('pugixml')\n    # depends_on('kwsys')\n    # depends_on('nlohmannjson')\n    # depends_on('pybind11@2.1.1:', when='+python')\n\n    depends_on('mpi', when='+mpi')\n    depends_on('zeromq', when='+dataman')\n\n    depends_on('hdf5', when='+hdf5')\n    depends_on('hdf5+mpi', when='+hdf5+mpi')\n    depends_on('adios', when='+adios1')\n    depends_on('adios+mpi', when='+adios1+mpi')\n\n    depends_on('bzip2', when='+bzip2')\n    depends_on('zfp', when='+zfp')\n\n    extends('python', when='+python')\n    depends_on('python@2.7:', type=('build', 'run'), when='+python')\n    depends_on('py-numpy@1.6.1:', type=('build', 'run'), when='+python')\n    depends_on('py-mpi4py@2.0.0:', type=('build', 'run'), when='+mpi +python')\n\n    def cmake_args(self):\n        spec = self.spec\n\n        args = [\n            '-DADIOS2_BUILD_SHARED_LIBS:BOOL={0}'.format((\n                'ON' if '+shared' in spec else 'OFF')),\n            '-DADIOS2_BUILD_TESTING=OFF',\n            '-DADIOS2_USE_MPI={0}'.format((\n                'ON' if '+mpi' in spec else 'OFF')),\n            '-DADIOS2_USE_BZip2={0}'.format((\n                'ON' if '+bzip2' in spec else 'OFF')),\n            '-DADIOS2_USE_ZFP={0}'.format((\n                'ON' if '+zfp' in spec else 'OFF')),\n            '-DADIOS2_USE_DataMan={0}'.format((\n                'ON' if '+dataman' in spec else 'OFF')),\n            '-DADIOS2_USE_ZeroMQ={0}'.format((\n                'ON' if '+dataman' in spec else 'OFF')),\n            '-DADIOS2_USE_HDF5={0}'.format((\n                'ON' if '+hdf5' in spec else 'OFF')),\n            '-DADIOS2_USE_ADIOS1={0}'.format((\n                'ON' if '+adios1' in spec else 'OFF')),\n            '-DADIOS2_USE_Python={0}'.format((\n                'ON' if '+python' in spec else 'OFF'))\n        ]\n        return args\n", "path": "var/spack/repos/builtin/packages/adios2/package.py"}]}