We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[request] rapidcheck/20210702
### Package Details
  * Package Name/Version: **rapidcheck/20210702**

The above-mentioned version solves issue #5205 and is not yet available as a recipe. Please add this version.


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `recipes/rapidcheck/all/conanfile.py`
Content:
```
1 from conans import CMake, ConanFile, tools
2 from conans.errors import ConanInvalidConfiguration
3 import os
4 import textwrap
5 
6 required_conan_version = ">=1.33.0"
7 
8 
9 class RapidcheckConan(ConanFile):
10     name = "rapidcheck"
11     description = "QuickCheck clone for C++ with the goal of being simple to use with as little boilerplate as possible"
12     url = "https://github.com/conan-io/conan-center-index"
13     homepage = "https://github.com/emil-e/rapidcheck"
14     license = "BSD-2-Clause"
15     topics = "quickcheck", "testing", "property-testing"
16     exports_sources = "CMakeLists.txt"
17     generators = "cmake"
18     settings = "os", "arch", "compiler", "build_type"
19     options = {
20         "shared": [True, False],
21         "fPIC": [True, False],
22         "enable_rtti": [True, False],
23     }
24     default_options = {
25         "shared": False,
26         "fPIC": True,
27         "enable_rtti": True,
28     }
29 
30     _cmake = None
31 
32     @property
33     def _source_subfolder(self):
34         return "source_subfolder"
35 
36     @property
37     def _build_subfolder(self):
38         return "build_subfolder"
39 
40     def config_options(self):
41         if self.settings.os == "Windows":
42             del self.options.fPIC
43 
44     def configure(self):
45         if self.options.shared:
46             del self.options.fPIC
47 
48     def validate(self):
49         if self.settings.compiler.get_safe("cppstd"):
50             tools.check_min_cppstd(self, 11)
51         if self.settings.compiler == "Visual Studio" and self.options.shared:
52             raise ConanInvalidConfiguration("shared is not supported using Visual Studio")
53 
54     def source(self):
55         tools.get(**self.conan_data["sources"][self.version],
56                   destination=self._source_subfolder, strip_root=True)
57 
58     def _configure_cmake(self):
59         if self._cmake:
60             return self._cmake
61         self._cmake = CMake(self)
62         self._cmake.definitions["RC_ENABLE_RTTI"] = self.options.enable_rtti
63         self._cmake.definitions["RC_ENABLE_TESTS"] = False
64         self._cmake.definitions["RC_ENABLE_EXAMPLES"] = False
65         self._cmake.configure(build_folder=self._build_subfolder)
66         return self._cmake
67 
68     def build(self):
69         cmake = self._configure_cmake()
70         cmake.build()
71 
72     def package(self):
73         self.copy(pattern="LICENSE*", src=self._source_subfolder, dst="licenses")
74         cmake = self._configure_cmake()
75         cmake.install()
76         tools.rmdir(os.path.join(self.package_folder, "share"))
77         self._create_cmake_module_alias_targets(
78             os.path.join(self.package_folder, self._module_file_rel_path),
79             {"rapidcheck": "rapidcheck::rapidcheck"}
80         )
81 
82     @staticmethod
83     def _create_cmake_module_alias_targets(module_file, targets):
84         content = ""
85         for alias, aliased in targets.items():
86             content += textwrap.dedent("""\
87                 if(TARGET {aliased} AND NOT TARGET {alias})
88                     add_library({alias} INTERFACE IMPORTED)
89                     set_property(TARGET {alias} PROPERTY INTERFACE_LINK_LIBRARIES {aliased})
90                 endif()
91             """.format(alias=alias, aliased=aliased))
92         tools.save(module_file, content)
93 
94     @property
95     def _module_subfolder(self):
96         return os.path.join("lib", "cmake")
97 
98     @property
99     def _module_file_rel_path(self):
100         return os.path.join(self._module_subfolder,
101                             "conan-official-{}-targets.cmake".format(self.name))
102 
103     def package_info(self):
104         self.cpp_info.names["cmake_find_package"] = "rapidcheck"
105         self.cpp_info.names["cmake_find_package_multi"] = "rapidcheck"
106         self.cpp_info.builddirs.append(self._module_subfolder)
107         self.cpp_info.build_modules["cmake_find_package"] = [self._module_file_rel_path]
108         self.cpp_info.build_modules["cmake_find_package_multi"] = [self._module_file_rel_path]
109         self.cpp_info.libs = ["rapidcheck"]
110         if tools.Version(self.version) < "20201218":
111             if self.options.enable_rtti:
112                 self.cpp_info.defines.append("RC_USE_RTTI")
113         else:
114             if not self.options.enable_rtti:
115                 self.cpp_info.defines.append("RC_DONT_USE_RTTI")
116
```
--- 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/recipes/rapidcheck/all/conanfile.py b/recipes/rapidcheck/all/conanfile.py
--- a/recipes/rapidcheck/all/conanfile.py
+++ b/recipes/rapidcheck/all/conanfile.py
@@ -51,6 +51,9 @@
         if self.settings.compiler == "Visual Studio" and self.options.shared:
             raise ConanInvalidConfiguration("shared is not supported using Visual Studio")
 
+        if 'cci' not in self.version:
+            self.output.warn("This version has been deprecated in favor of '{}/cci.{}'".format(self.name, self.version))
+
     def source(self):
         tools.get(**self.conan_data["sources"][self.version],
                   destination=self._source_subfolder, strip_root=True)
@@ -107,7 +110,11 @@
         self.cpp_info.build_modules["cmake_find_package"] = [self._module_file_rel_path]
         self.cpp_info.build_modules["cmake_find_package_multi"] = [self._module_file_rel_path]
         self.cpp_info.libs = ["rapidcheck"]
-        if tools.Version(self.version) < "20201218":
+        # Remove after 9473 is merged.
+        version = self.version
+        if version.startswith("cci."):
+            version = version[4:]
+        if version < "20201218":
             if self.options.enable_rtti:
                 self.cpp_info.defines.append("RC_USE_RTTI")
         else:

{"golden_diff": "diff --git a/recipes/rapidcheck/all/conanfile.py b/recipes/rapidcheck/all/conanfile.py\n--- a/recipes/rapidcheck/all/conanfile.py\n+++ b/recipes/rapidcheck/all/conanfile.py\n@@ -51,6 +51,9 @@\n         if self.settings.compiler == \"Visual Studio\" and self.options.shared:\n             raise ConanInvalidConfiguration(\"shared is not supported using Visual Studio\")\n \n+        if 'cci' not in self.version:\n+            self.output.warn(\"This version has been deprecated in favor of '{}/cci.{}'\".format(self.name, self.version))\n+\n     def source(self):\n         tools.get(**self.conan_data[\"sources\"][self.version],\n                   destination=self._source_subfolder, strip_root=True)\n@@ -107,7 +110,11 @@\n         self.cpp_info.build_modules[\"cmake_find_package\"] = [self._module_file_rel_path]\n         self.cpp_info.build_modules[\"cmake_find_package_multi\"] = [self._module_file_rel_path]\n         self.cpp_info.libs = [\"rapidcheck\"]\n-        if tools.Version(self.version) < \"20201218\":\n+        # Remove after 9473 is merged.\n+        version = self.version\n+        if version.startswith(\"cci.\"):\n+            version = version[4:]\n+        if version < \"20201218\":\n             if self.options.enable_rtti:\n                 self.cpp_info.defines.append(\"RC_USE_RTTI\")\n         else:\n", "issue": "[request] rapidcheck/20210702\n### Package Details\r\n  * Package Name/Version: **rapidcheck/20210702**\r\n\r\nThe above-mentioned version solves issue #5205 and is not yet available as a recipe. Please add this version.\r\n\n", "before_files": [{"content": "from conans import CMake, ConanFile, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\nimport textwrap\n\nrequired_conan_version = \">=1.33.0\"\n\n\nclass RapidcheckConan(ConanFile):\n    name = \"rapidcheck\"\n    description = \"QuickCheck clone for C++ with the goal of being simple to use with as little boilerplate as possible\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"https://github.com/emil-e/rapidcheck\"\n    license = \"BSD-2-Clause\"\n    topics = \"quickcheck\", \"testing\", \"property-testing\"\n    exports_sources = \"CMakeLists.txt\"\n    generators = \"cmake\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\n        \"shared\": [True, False],\n        \"fPIC\": [True, False],\n        \"enable_rtti\": [True, False],\n    }\n    default_options = {\n        \"shared\": False,\n        \"fPIC\": True,\n        \"enable_rtti\": True,\n    }\n\n    _cmake = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    @property\n    def _build_subfolder(self):\n        return \"build_subfolder\"\n\n    def config_options(self):\n        if self.settings.os == \"Windows\":\n            del self.options.fPIC\n\n    def configure(self):\n        if self.options.shared:\n            del self.options.fPIC\n\n    def validate(self):\n        if self.settings.compiler.get_safe(\"cppstd\"):\n            tools.check_min_cppstd(self, 11)\n        if self.settings.compiler == \"Visual Studio\" and self.options.shared:\n            raise ConanInvalidConfiguration(\"shared is not supported using Visual Studio\")\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version],\n                  destination=self._source_subfolder, strip_root=True)\n\n    def _configure_cmake(self):\n        if self._cmake:\n            return self._cmake\n        self._cmake = CMake(self)\n        self._cmake.definitions[\"RC_ENABLE_RTTI\"] = self.options.enable_rtti\n        self._cmake.definitions[\"RC_ENABLE_TESTS\"] = False\n        self._cmake.definitions[\"RC_ENABLE_EXAMPLES\"] = False\n        self._cmake.configure(build_folder=self._build_subfolder)\n        return self._cmake\n\n    def build(self):\n        cmake = self._configure_cmake()\n        cmake.build()\n\n    def package(self):\n        self.copy(pattern=\"LICENSE*\", src=self._source_subfolder, dst=\"licenses\")\n        cmake = self._configure_cmake()\n        cmake.install()\n        tools.rmdir(os.path.join(self.package_folder, \"share\"))\n        self._create_cmake_module_alias_targets(\n            os.path.join(self.package_folder, self._module_file_rel_path),\n            {\"rapidcheck\": \"rapidcheck::rapidcheck\"}\n        )\n\n    @staticmethod\n    def _create_cmake_module_alias_targets(module_file, targets):\n        content = \"\"\n        for alias, aliased in targets.items():\n            content += textwrap.dedent(\"\"\"\\\n                if(TARGET {aliased} AND NOT TARGET {alias})\n                    add_library({alias} INTERFACE IMPORTED)\n                    set_property(TARGET {alias} PROPERTY INTERFACE_LINK_LIBRARIES {aliased})\n                endif()\n            \"\"\".format(alias=alias, aliased=aliased))\n        tools.save(module_file, content)\n\n    @property\n    def _module_subfolder(self):\n        return os.path.join(\"lib\", \"cmake\")\n\n    @property\n    def _module_file_rel_path(self):\n        return os.path.join(self._module_subfolder,\n                            \"conan-official-{}-targets.cmake\".format(self.name))\n\n    def package_info(self):\n        self.cpp_info.names[\"cmake_find_package\"] = \"rapidcheck\"\n        self.cpp_info.names[\"cmake_find_package_multi\"] = \"rapidcheck\"\n        self.cpp_info.builddirs.append(self._module_subfolder)\n        self.cpp_info.build_modules[\"cmake_find_package\"] = [self._module_file_rel_path]\n        self.cpp_info.build_modules[\"cmake_find_package_multi\"] = [self._module_file_rel_path]\n        self.cpp_info.libs = [\"rapidcheck\"]\n        if tools.Version(self.version) < \"20201218\":\n            if self.options.enable_rtti:\n                self.cpp_info.defines.append(\"RC_USE_RTTI\")\n        else:\n            if not self.options.enable_rtti:\n                self.cpp_info.defines.append(\"RC_DONT_USE_RTTI\")\n", "path": "recipes/rapidcheck/all/conanfile.py"}], "after_files": [{"content": "from conans import CMake, ConanFile, tools\nfrom conans.errors import ConanInvalidConfiguration\nimport os\nimport textwrap\n\nrequired_conan_version = \">=1.33.0\"\n\n\nclass RapidcheckConan(ConanFile):\n    name = \"rapidcheck\"\n    description = \"QuickCheck clone for C++ with the goal of being simple to use with as little boilerplate as possible\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"https://github.com/emil-e/rapidcheck\"\n    license = \"BSD-2-Clause\"\n    topics = \"quickcheck\", \"testing\", \"property-testing\"\n    exports_sources = \"CMakeLists.txt\"\n    generators = \"cmake\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\n        \"shared\": [True, False],\n        \"fPIC\": [True, False],\n        \"enable_rtti\": [True, False],\n    }\n    default_options = {\n        \"shared\": False,\n        \"fPIC\": True,\n        \"enable_rtti\": True,\n    }\n\n    _cmake = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    @property\n    def _build_subfolder(self):\n        return \"build_subfolder\"\n\n    def config_options(self):\n        if self.settings.os == \"Windows\":\n            del self.options.fPIC\n\n    def configure(self):\n        if self.options.shared:\n            del self.options.fPIC\n\n    def validate(self):\n        if self.settings.compiler.get_safe(\"cppstd\"):\n            tools.check_min_cppstd(self, 11)\n        if self.settings.compiler == \"Visual Studio\" and self.options.shared:\n            raise ConanInvalidConfiguration(\"shared is not supported using Visual Studio\")\n\n        if 'cci' not in self.version:\n            self.output.warn(\"This version has been deprecated in favor of '{}/cci.{}'\".format(self.name, self.version))\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version],\n                  destination=self._source_subfolder, strip_root=True)\n\n    def _configure_cmake(self):\n        if self._cmake:\n            return self._cmake\n        self._cmake = CMake(self)\n        self._cmake.definitions[\"RC_ENABLE_RTTI\"] = self.options.enable_rtti\n        self._cmake.definitions[\"RC_ENABLE_TESTS\"] = False\n        self._cmake.definitions[\"RC_ENABLE_EXAMPLES\"] = False\n        self._cmake.configure(build_folder=self._build_subfolder)\n        return self._cmake\n\n    def build(self):\n        cmake = self._configure_cmake()\n        cmake.build()\n\n    def package(self):\n        self.copy(pattern=\"LICENSE*\", src=self._source_subfolder, dst=\"licenses\")\n        cmake = self._configure_cmake()\n        cmake.install()\n        tools.rmdir(os.path.join(self.package_folder, \"share\"))\n        self._create_cmake_module_alias_targets(\n            os.path.join(self.package_folder, self._module_file_rel_path),\n            {\"rapidcheck\": \"rapidcheck::rapidcheck\"}\n        )\n\n    @staticmethod\n    def _create_cmake_module_alias_targets(module_file, targets):\n        content = \"\"\n        for alias, aliased in targets.items():\n            content += textwrap.dedent(\"\"\"\\\n                if(TARGET {aliased} AND NOT TARGET {alias})\n                    add_library({alias} INTERFACE IMPORTED)\n                    set_property(TARGET {alias} PROPERTY INTERFACE_LINK_LIBRARIES {aliased})\n                endif()\n            \"\"\".format(alias=alias, aliased=aliased))\n        tools.save(module_file, content)\n\n    @property\n    def _module_subfolder(self):\n        return os.path.join(\"lib\", \"cmake\")\n\n    @property\n    def _module_file_rel_path(self):\n        return os.path.join(self._module_subfolder,\n                            \"conan-official-{}-targets.cmake\".format(self.name))\n\n    def package_info(self):\n        self.cpp_info.names[\"cmake_find_package\"] = \"rapidcheck\"\n        self.cpp_info.names[\"cmake_find_package_multi\"] = \"rapidcheck\"\n        self.cpp_info.builddirs.append(self._module_subfolder)\n        self.cpp_info.build_modules[\"cmake_find_package\"] = [self._module_file_rel_path]\n        self.cpp_info.build_modules[\"cmake_find_package_multi\"] = [self._module_file_rel_path]\n        self.cpp_info.libs = [\"rapidcheck\"]\n        # Remove after 9473 is merged.\n        version = self.version\n        if version.startswith(\"cci.\"):\n            version = version[4:]\n        if version < \"20201218\":\n            if self.options.enable_rtti:\n                self.cpp_info.defines.append(\"RC_USE_RTTI\")\n        else:\n            if not self.options.enable_rtti:\n                self.cpp_info.defines.append(\"RC_DONT_USE_RTTI\")\n", "path": "recipes/rapidcheck/all/conanfile.py"}]}