prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  `scorep` does not work on Darwin
  The Score-P package requires a case-sensitive file system. This is described in the install notes, and I confirmed with the developers. I suggest to disable Score-P on Darwin to avoid others having to track down this problem in the same way I had to. Alternatively, we can add an install-time test whether the build or install directories are on a case-insensitive file system.
  
  
  --- 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/scorep/package.py`
  Content:
  ```
  1 ##############################################################################
  2 # Copyright (c) 2013-2016, 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 LICENSE file 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 Scorep(AutotoolsPackage):
  29     """The Score-P measurement infrastructure is a highly scalable and
  30     easy-to-use tool suite for profiling, event tracing, and online analysis
  31     of HPC applications.
  32     """
  33 
  34     homepage = "http://www.vi-hps.org/projects/score-p"
  35     url      = "http://www.vi-hps.org/upload/packages/scorep/scorep-2.0.2.tar.gz"
  36 
  37     version('3.0',   '44da8beaa3f71436a5f6fe51938aab2f')
  38     version('2.0.2', '8f00e79e1b5b96e511c5ebecd10b2888')
  39     version('1.4.2', '3b9a042b13bdd5836452354e6567f71e')
  40     version('1.3',   '9db6f957b7f51fa01377a9537867a55c')
  41 
  42     ##########
  43     # Dependencies for SCORE-P are quite tight. See the homepage for more
  44     # information.
  45     # SCOREP 3
  46     depends_on('otf2@2:', when='@3:')
  47     depends_on('opari2@2:', when='@3:')
  48     depends_on('cube@4.3:', when='@3:')
  49     # SCOREP 2.0.2
  50     depends_on('otf2@2.0', when='@2.0.2')
  51     depends_on('opari2@2.0', when='@2.0.2')
  52     depends_on('cube@4.3:4.4', when='@2.0.2')
  53     # SCOREP 1.4.2
  54     depends_on('otf2@1.5:1.6', when='@1.4.2')
  55     depends_on('opari2@1.1.4', when='@1.4.2')
  56     depends_on('cube@4.3:4.4', when='@1.4.2')
  57     # SCOREP 1.3
  58     depends_on("otf2@1.4", when='@1.3')
  59     depends_on("opari2@1.1.4", when='@1.3')
  60     depends_on("cube@4.2.3", when='@1.3')
  61     ##########
  62 
  63     depends_on("mpi")
  64     depends_on("papi")
  65 
  66     variant('shmem', default=False, description='Enable shmem tracing')
  67 
  68     def configure_args(self):
  69         spec = self.spec
  70 
  71         config_args = [
  72             "--with-otf2=%s" % spec['otf2'].prefix.bin,
  73             "--with-opari2=%s" % spec['opari2'].prefix.bin,
  74             "--with-cube=%s" % spec['cube'].prefix.bin,
  75             "--with-papi-header=%s" % spec['papi'].prefix.include,
  76             "--with-papi-lib=%s" % spec['papi'].prefix.lib,
  77             "--enable-shared",
  78         ]
  79 
  80         if '~shmem' in spec:
  81             config_args.append("--without-shmem")
  82 
  83         config_args.extend(["CFLAGS=-fPIC", "CXXFLAGS=-fPIC"])
  84         return config_args
  85
  ```
  --- 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()
  
  ```
  
golden_diff: diff --git a/var/spack/repos/builtin/packages/scorep/package.py b/var/spack/repos/builtin/packages/scorep/package.py
  --- a/var/spack/repos/builtin/packages/scorep/package.py
  +++ b/var/spack/repos/builtin/packages/scorep/package.py
  @@ -65,6 +65,11 @@
   
       variant('shmem', default=False, description='Enable shmem tracing')
   
  +    # Score-P requires a case-sensitive file system, and therefore
  +    # does not work on macOS
  +    # https://github.com/LLNL/spack/issues/1609
  +    conflicts('platform=darwin')
  +
       def configure_args(self):
           spec = self.spec
  
verification_info: {"golden_diff": "diff --git a/var/spack/repos/builtin/packages/scorep/package.py b/var/spack/repos/builtin/packages/scorep/package.py\n--- a/var/spack/repos/builtin/packages/scorep/package.py\n+++ b/var/spack/repos/builtin/packages/scorep/package.py\n@@ -65,6 +65,11 @@\n \n     variant('shmem', default=False, description='Enable shmem tracing')\n \n+    # Score-P requires a case-sensitive file system, and therefore\n+    # does not work on macOS\n+    # https://github.com/LLNL/spack/issues/1609\n+    conflicts('platform=darwin')\n+\n     def configure_args(self):\n         spec = self.spec\n", "issue": "`scorep` does not work on Darwin\nThe Score-P package requires a case-sensitive file system. This is described in the install notes, and I confirmed with the developers. I suggest to disable Score-P on Darwin to avoid others having to track down this problem in the same way I had to. Alternatively, we can add an install-time test whether the build or install directories are on a case-insensitive file system.\n\n", "before_files": [{"content": "##############################################################################\n# Copyright (c) 2013-2016, 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 LICENSE file 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 Scorep(AutotoolsPackage):\n    \"\"\"The Score-P measurement infrastructure is a highly scalable and\n    easy-to-use tool suite for profiling, event tracing, and online analysis\n    of HPC applications.\n    \"\"\"\n\n    homepage = \"http://www.vi-hps.org/projects/score-p\"\n    url      = \"http://www.vi-hps.org/upload/packages/scorep/scorep-2.0.2.tar.gz\"\n\n    version('3.0',   '44da8beaa3f71436a5f6fe51938aab2f')\n    version('2.0.2', '8f00e79e1b5b96e511c5ebecd10b2888')\n    version('1.4.2', '3b9a042b13bdd5836452354e6567f71e')\n    version('1.3',   '9db6f957b7f51fa01377a9537867a55c')\n\n    ##########\n    # Dependencies for SCORE-P are quite tight. See the homepage for more\n    # information.\n    # SCOREP 3\n    depends_on('otf2@2:', when='@3:')\n    depends_on('opari2@2:', when='@3:')\n    depends_on('cube@4.3:', when='@3:')\n    # SCOREP 2.0.2\n    depends_on('otf2@2.0', when='@2.0.2')\n    depends_on('opari2@2.0', when='@2.0.2')\n    depends_on('cube@4.3:4.4', when='@2.0.2')\n    # SCOREP 1.4.2\n    depends_on('otf2@1.5:1.6', when='@1.4.2')\n    depends_on('opari2@1.1.4', when='@1.4.2')\n    depends_on('cube@4.3:4.4', when='@1.4.2')\n    # SCOREP 1.3\n    depends_on(\"otf2@1.4\", when='@1.3')\n    depends_on(\"opari2@1.1.4\", when='@1.3')\n    depends_on(\"cube@4.2.3\", when='@1.3')\n    ##########\n\n    depends_on(\"mpi\")\n    depends_on(\"papi\")\n\n    variant('shmem', default=False, description='Enable shmem tracing')\n\n    def configure_args(self):\n        spec = self.spec\n\n        config_args = [\n            \"--with-otf2=%s\" % spec['otf2'].prefix.bin,\n            \"--with-opari2=%s\" % spec['opari2'].prefix.bin,\n            \"--with-cube=%s\" % spec['cube'].prefix.bin,\n            \"--with-papi-header=%s\" % spec['papi'].prefix.include,\n            \"--with-papi-lib=%s\" % spec['papi'].prefix.lib,\n            \"--enable-shared\",\n        ]\n\n        if '~shmem' in spec:\n            config_args.append(\"--without-shmem\")\n\n        config_args.extend([\"CFLAGS=-fPIC\", \"CXXFLAGS=-fPIC\"])\n        return config_args\n", "path": "var/spack/repos/builtin/packages/scorep/package.py"}], "after_files": [{"content": "##############################################################################\n# Copyright (c) 2013-2016, 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 LICENSE file 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 Scorep(AutotoolsPackage):\n    \"\"\"The Score-P measurement infrastructure is a highly scalable and\n    easy-to-use tool suite for profiling, event tracing, and online analysis\n    of HPC applications.\n    \"\"\"\n\n    homepage = \"http://www.vi-hps.org/projects/score-p\"\n    url      = \"http://www.vi-hps.org/upload/packages/scorep/scorep-2.0.2.tar.gz\"\n\n    version('3.0',   '44da8beaa3f71436a5f6fe51938aab2f')\n    version('2.0.2', '8f00e79e1b5b96e511c5ebecd10b2888')\n    version('1.4.2', '3b9a042b13bdd5836452354e6567f71e')\n    version('1.3',   '9db6f957b7f51fa01377a9537867a55c')\n\n    ##########\n    # Dependencies for SCORE-P are quite tight. See the homepage for more\n    # information.\n    # SCOREP 3\n    depends_on('otf2@2:', when='@3:')\n    depends_on('opari2@2:', when='@3:')\n    depends_on('cube@4.3:', when='@3:')\n    # SCOREP 2.0.2\n    depends_on('otf2@2.0', when='@2.0.2')\n    depends_on('opari2@2.0', when='@2.0.2')\n    depends_on('cube@4.3:4.4', when='@2.0.2')\n    # SCOREP 1.4.2\n    depends_on('otf2@1.5:1.6', when='@1.4.2')\n    depends_on('opari2@1.1.4', when='@1.4.2')\n    depends_on('cube@4.3:4.4', when='@1.4.2')\n    # SCOREP 1.3\n    depends_on(\"otf2@1.4\", when='@1.3')\n    depends_on(\"opari2@1.1.4\", when='@1.3')\n    depends_on(\"cube@4.2.3\", when='@1.3')\n    ##########\n\n    depends_on(\"mpi\")\n    depends_on(\"papi\")\n\n    variant('shmem', default=False, description='Enable shmem tracing')\n\n    # Score-P requires a case-sensitive file system, and therefore\n    # does not work on macOS\n    # https://github.com/LLNL/spack/issues/1609\n    conflicts('platform=darwin')\n\n    def configure_args(self):\n        spec = self.spec\n\n        config_args = [\n            \"--with-otf2=%s\" % spec['otf2'].prefix.bin,\n            \"--with-opari2=%s\" % spec['opari2'].prefix.bin,\n            \"--with-cube=%s\" % spec['cube'].prefix.bin,\n            \"--with-papi-header=%s\" % spec['papi'].prefix.include,\n            \"--with-papi-lib=%s\" % spec['papi'].prefix.lib,\n            \"--enable-shared\",\n        ]\n\n        if '~shmem' in spec:\n            config_args.append(\"--without-shmem\")\n\n        config_args.extend([\"CFLAGS=-fPIC\", \"CXXFLAGS=-fPIC\"])\n        return config_args\n", "path": "var/spack/repos/builtin/packages/scorep/package.py"}]}