We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[request] sentry-native/0.4.1
### Package Details
  * Package Name/Version: **sentry-native/0.4.1**
  * Changelog: **https://github.com/getsentry/sentry-native/blob/0.4.1/CHANGELOG.md**

https://github.com/getsentry/sentry-native/tree/0.4.1

The above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.
Also, **please add windows support.**

--- 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/sentry-native/all/conanfile.py`
Content:
```
1 import os
2 from conans import ConanFile, CMake, tools
3 from conans.errors import ConanInvalidConfiguration
4 
5 
6 class SentryNativeConan(ConanFile):
7     name = "sentry-native"
8     description = "The Sentry Native SDK is an error and crash reporting client for native applications,\n" \
9                   "optimized for C and C++. Sentry allows to add tags,\n" \
10                   "breadcrumbs and arbitrary custom context to enrich error reports."
11     url = "https://github.com/conan-io/conan-center-index"
12     homepage = "https://github.com/getsentry/sentry-native"
13     license = "MIT"
14     topics = ("conan", "breakpad", "crashpad",
15               "error-reporting", "crash-reporting")
16     exports_sources = ["CMakeLists.txt"]
17     generators = "cmake", "cmake_find_package"
18     settings = "os", "arch", "compiler", "build_type"
19     options = {
20         "shared": [True, False],
21         "fPIC": [True, False],
22         "backend": ["none", "inproc", "crashpad", "breakpad"],
23         "transport": ["none", "curl", "winhttp"],
24     }
25     default_options = {
26         "shared": False,
27         "fPIC": True,
28         "backend": "inproc",
29         "transport": "curl"
30     }
31 
32     @property
33     def _source_subfolder(self):
34         return "source_subfolder"
35 
36     _cmake = None
37 
38     def requirements(self):
39         if self.options.transport == "curl":
40             self.requires("libcurl/7.68.0")
41             
42         if self.options.backend == "crashpad":
43             raise ConanInvalidConfiguration("crashpad not available yet in CCI")
44         if self.options.backend == "breakpad":
45             raise ConanInvalidConfiguration("breakpad not available yet in CCI")
46 
47     def config_options(self):
48         if self.settings.os == "Windows":
49             del self.options.fPIC
50 
51     def source(self):
52         tools.get(**self.conan_data["sources"][self.version])
53         extracted_dir = self.name + "-" + self.version
54         os.rename(extracted_dir, self._source_subfolder)
55 
56     def configure(self):
57         if self.options.backend == "inproc" and self.settings.os == "Windows":
58             raise ConanInvalidConfiguration("The in-process backend is not supported on Windows")
59 
60     def _configure_cmake(self):
61         if self._cmake:
62             return self._cmake
63         self._cmake = CMake(self)
64         self._cmake.definitions["SENTRY_BACKEND"] = self.options.backend
65         self._cmake.definitions["SENTRY_ENABLE_INSTALL"] = True
66         self._cmake.definitions["SENTRY_TRANSPORT"] = self.options.transport
67         self._cmake.definitions["SENTRY_PIC"] = self.options.get_safe("fPIC", False)
68         self._cmake.configure()
69         return self._cmake
70 
71     def build(self):
72         cmake = self._configure_cmake()
73         cmake.build()
74 
75     def package(self):
76         self.copy("LICENSE", dst="licenses", src=self._source_subfolder)
77         cmake = self._configure_cmake()
78         cmake.install()
79         tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
80 
81     def package_info(self):
82         self.cpp_info.libs = ["sentry"]
83         if self.settings.os in ("Android", "Windows"):
84             self.cpp_info.exelinkflags= ["--build-id=sha1"]
85             self.cpp_info.sharedlinkflags = ["--build-id=sha1"]
86         if self.settings.os == "Linux":
87             self.cpp_info.system_libs = ["pthread", "dl"]
88         elif self.settings.os == "Windows":
89             self.cpp_info.system_libs = ["winhttp", "dbghelp", "pathcch"]
90 
91         if not self.options.shared:
92             self.cpp_info.defines = ["SENTRY_BUILD_STATIC"]
93
```
--- 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/sentry-native/all/conanfile.py b/recipes/sentry-native/all/conanfile.py
--- a/recipes/sentry-native/all/conanfile.py
+++ b/recipes/sentry-native/all/conanfile.py
@@ -1,4 +1,5 @@
 import os
+import glob
 from conans import ConanFile, CMake, tools
 from conans.errors import ConanInvalidConfiguration
 
@@ -37,8 +38,8 @@
 
     def requirements(self):
         if self.options.transport == "curl":
-            self.requires("libcurl/7.68.0")
-            
+            self.requires("libcurl/7.71.0")
+
         if self.options.backend == "crashpad":
             raise ConanInvalidConfiguration("crashpad not available yet in CCI")
         if self.options.backend == "breakpad":
@@ -54,7 +55,7 @@
         os.rename(extracted_dir, self._source_subfolder)
 
     def configure(self):
-        if self.options.backend == "inproc" and self.settings.os == "Windows":
+        if self.options.backend == "inproc" and self.settings.os == "Windows" and tools.Version(self.version) < "0.4":
             raise ConanInvalidConfiguration("The in-process backend is not supported on Windows")
 
     def _configure_cmake(self):
@@ -77,16 +78,18 @@
         cmake = self._configure_cmake()
         cmake.install()
         tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
+        for pdb in glob.glob(os.path.join(self.package_folder, "bin", "*.pdb")):
+            os.unlink(pdb)
 
     def package_info(self):
         self.cpp_info.libs = ["sentry"]
-        if self.settings.os in ("Android", "Windows"):
-            self.cpp_info.exelinkflags= ["--build-id=sha1"]
-            self.cpp_info.sharedlinkflags = ["--build-id=sha1"]
+        if self.settings.os in ("Android", "Linux"):
+            self.cpp_info.exelinkflags = ["-Wl,-E,--build-id=sha1"]
+            self.cpp_info.sharedlinkflags = ["-Wl,-E,--build-id=sha1"]
         if self.settings.os == "Linux":
             self.cpp_info.system_libs = ["pthread", "dl"]
         elif self.settings.os == "Windows":
-            self.cpp_info.system_libs = ["winhttp", "dbghelp", "pathcch"]
+            self.cpp_info.system_libs = ["winhttp", "dbghelp", "pathcch", "shlwapi"]
 
         if not self.options.shared:
             self.cpp_info.defines = ["SENTRY_BUILD_STATIC"]

{"golden_diff": "diff --git a/recipes/sentry-native/all/conanfile.py b/recipes/sentry-native/all/conanfile.py\n--- a/recipes/sentry-native/all/conanfile.py\n+++ b/recipes/sentry-native/all/conanfile.py\n@@ -1,4 +1,5 @@\n import os\n+import glob\n from conans import ConanFile, CMake, tools\n from conans.errors import ConanInvalidConfiguration\n \n@@ -37,8 +38,8 @@\n \n     def requirements(self):\n         if self.options.transport == \"curl\":\n-            self.requires(\"libcurl/7.68.0\")\n-            \n+            self.requires(\"libcurl/7.71.0\")\n+\n         if self.options.backend == \"crashpad\":\n             raise ConanInvalidConfiguration(\"crashpad not available yet in CCI\")\n         if self.options.backend == \"breakpad\":\n@@ -54,7 +55,7 @@\n         os.rename(extracted_dir, self._source_subfolder)\n \n     def configure(self):\n-        if self.options.backend == \"inproc\" and self.settings.os == \"Windows\":\n+        if self.options.backend == \"inproc\" and self.settings.os == \"Windows\" and tools.Version(self.version) < \"0.4\":\n             raise ConanInvalidConfiguration(\"The in-process backend is not supported on Windows\")\n \n     def _configure_cmake(self):\n@@ -77,16 +78,18 @@\n         cmake = self._configure_cmake()\n         cmake.install()\n         tools.rmdir(os.path.join(self.package_folder, \"lib\", \"cmake\"))\n+        for pdb in glob.glob(os.path.join(self.package_folder, \"bin\", \"*.pdb\")):\n+            os.unlink(pdb)\n \n     def package_info(self):\n         self.cpp_info.libs = [\"sentry\"]\n-        if self.settings.os in (\"Android\", \"Windows\"):\n-            self.cpp_info.exelinkflags= [\"--build-id=sha1\"]\n-            self.cpp_info.sharedlinkflags = [\"--build-id=sha1\"]\n+        if self.settings.os in (\"Android\", \"Linux\"):\n+            self.cpp_info.exelinkflags = [\"-Wl,-E,--build-id=sha1\"]\n+            self.cpp_info.sharedlinkflags = [\"-Wl,-E,--build-id=sha1\"]\n         if self.settings.os == \"Linux\":\n             self.cpp_info.system_libs = [\"pthread\", \"dl\"]\n         elif self.settings.os == \"Windows\":\n-            self.cpp_info.system_libs = [\"winhttp\", \"dbghelp\", \"pathcch\"]\n+            self.cpp_info.system_libs = [\"winhttp\", \"dbghelp\", \"pathcch\", \"shlwapi\"]\n \n         if not self.options.shared:\n             self.cpp_info.defines = [\"SENTRY_BUILD_STATIC\"]\n", "issue": "[request] sentry-native/0.4.1\n### Package Details\r\n  * Package Name/Version: **sentry-native/0.4.1**\r\n  * Changelog: **https://github.com/getsentry/sentry-native/blob/0.4.1/CHANGELOG.md**\r\n\r\nhttps://github.com/getsentry/sentry-native/tree/0.4.1\r\n\r\nThe above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.\r\nAlso, **please add windows support.**\n", "before_files": [{"content": "import os\nfrom conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\n\n\nclass SentryNativeConan(ConanFile):\n    name = \"sentry-native\"\n    description = \"The Sentry Native SDK is an error and crash reporting client for native applications,\\n\" \\\n                  \"optimized for C and C++. Sentry allows to add tags,\\n\" \\\n                  \"breadcrumbs and arbitrary custom context to enrich error reports.\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"https://github.com/getsentry/sentry-native\"\n    license = \"MIT\"\n    topics = (\"conan\", \"breakpad\", \"crashpad\",\n              \"error-reporting\", \"crash-reporting\")\n    exports_sources = [\"CMakeLists.txt\"]\n    generators = \"cmake\", \"cmake_find_package\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\n        \"shared\": [True, False],\n        \"fPIC\": [True, False],\n        \"backend\": [\"none\", \"inproc\", \"crashpad\", \"breakpad\"],\n        \"transport\": [\"none\", \"curl\", \"winhttp\"],\n    }\n    default_options = {\n        \"shared\": False,\n        \"fPIC\": True,\n        \"backend\": \"inproc\",\n        \"transport\": \"curl\"\n    }\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    _cmake = None\n\n    def requirements(self):\n        if self.options.transport == \"curl\":\n            self.requires(\"libcurl/7.68.0\")\n            \n        if self.options.backend == \"crashpad\":\n            raise ConanInvalidConfiguration(\"crashpad not available yet in CCI\")\n        if self.options.backend == \"breakpad\":\n            raise ConanInvalidConfiguration(\"breakpad not available yet in CCI\")\n\n    def config_options(self):\n        if self.settings.os == \"Windows\":\n            del self.options.fPIC\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        extracted_dir = self.name + \"-\" + self.version\n        os.rename(extracted_dir, self._source_subfolder)\n\n    def configure(self):\n        if self.options.backend == \"inproc\" and self.settings.os == \"Windows\":\n            raise ConanInvalidConfiguration(\"The in-process backend is not supported on Windows\")\n\n    def _configure_cmake(self):\n        if self._cmake:\n            return self._cmake\n        self._cmake = CMake(self)\n        self._cmake.definitions[\"SENTRY_BACKEND\"] = self.options.backend\n        self._cmake.definitions[\"SENTRY_ENABLE_INSTALL\"] = True\n        self._cmake.definitions[\"SENTRY_TRANSPORT\"] = self.options.transport\n        self._cmake.definitions[\"SENTRY_PIC\"] = self.options.get_safe(\"fPIC\", False)\n        self._cmake.configure()\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(\"LICENSE\", dst=\"licenses\", src=self._source_subfolder)\n        cmake = self._configure_cmake()\n        cmake.install()\n        tools.rmdir(os.path.join(self.package_folder, \"lib\", \"cmake\"))\n\n    def package_info(self):\n        self.cpp_info.libs = [\"sentry\"]\n        if self.settings.os in (\"Android\", \"Windows\"):\n            self.cpp_info.exelinkflags= [\"--build-id=sha1\"]\n            self.cpp_info.sharedlinkflags = [\"--build-id=sha1\"]\n        if self.settings.os == \"Linux\":\n            self.cpp_info.system_libs = [\"pthread\", \"dl\"]\n        elif self.settings.os == \"Windows\":\n            self.cpp_info.system_libs = [\"winhttp\", \"dbghelp\", \"pathcch\"]\n\n        if not self.options.shared:\n            self.cpp_info.defines = [\"SENTRY_BUILD_STATIC\"]\n", "path": "recipes/sentry-native/all/conanfile.py"}], "after_files": [{"content": "import os\nimport glob\nfrom conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\n\n\nclass SentryNativeConan(ConanFile):\n    name = \"sentry-native\"\n    description = \"The Sentry Native SDK is an error and crash reporting client for native applications,\\n\" \\\n                  \"optimized for C and C++. Sentry allows to add tags,\\n\" \\\n                  \"breadcrumbs and arbitrary custom context to enrich error reports.\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"https://github.com/getsentry/sentry-native\"\n    license = \"MIT\"\n    topics = (\"conan\", \"breakpad\", \"crashpad\",\n              \"error-reporting\", \"crash-reporting\")\n    exports_sources = [\"CMakeLists.txt\"]\n    generators = \"cmake\", \"cmake_find_package\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\n        \"shared\": [True, False],\n        \"fPIC\": [True, False],\n        \"backend\": [\"none\", \"inproc\", \"crashpad\", \"breakpad\"],\n        \"transport\": [\"none\", \"curl\", \"winhttp\"],\n    }\n    default_options = {\n        \"shared\": False,\n        \"fPIC\": True,\n        \"backend\": \"inproc\",\n        \"transport\": \"curl\"\n    }\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    _cmake = None\n\n    def requirements(self):\n        if self.options.transport == \"curl\":\n            self.requires(\"libcurl/7.71.0\")\n\n        if self.options.backend == \"crashpad\":\n            raise ConanInvalidConfiguration(\"crashpad not available yet in CCI\")\n        if self.options.backend == \"breakpad\":\n            raise ConanInvalidConfiguration(\"breakpad not available yet in CCI\")\n\n    def config_options(self):\n        if self.settings.os == \"Windows\":\n            del self.options.fPIC\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        extracted_dir = self.name + \"-\" + self.version\n        os.rename(extracted_dir, self._source_subfolder)\n\n    def configure(self):\n        if self.options.backend == \"inproc\" and self.settings.os == \"Windows\" and tools.Version(self.version) < \"0.4\":\n            raise ConanInvalidConfiguration(\"The in-process backend is not supported on Windows\")\n\n    def _configure_cmake(self):\n        if self._cmake:\n            return self._cmake\n        self._cmake = CMake(self)\n        self._cmake.definitions[\"SENTRY_BACKEND\"] = self.options.backend\n        self._cmake.definitions[\"SENTRY_ENABLE_INSTALL\"] = True\n        self._cmake.definitions[\"SENTRY_TRANSPORT\"] = self.options.transport\n        self._cmake.definitions[\"SENTRY_PIC\"] = self.options.get_safe(\"fPIC\", False)\n        self._cmake.configure()\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(\"LICENSE\", dst=\"licenses\", src=self._source_subfolder)\n        cmake = self._configure_cmake()\n        cmake.install()\n        tools.rmdir(os.path.join(self.package_folder, \"lib\", \"cmake\"))\n        for pdb in glob.glob(os.path.join(self.package_folder, \"bin\", \"*.pdb\")):\n            os.unlink(pdb)\n\n    def package_info(self):\n        self.cpp_info.libs = [\"sentry\"]\n        if self.settings.os in (\"Android\", \"Linux\"):\n            self.cpp_info.exelinkflags = [\"-Wl,-E,--build-id=sha1\"]\n            self.cpp_info.sharedlinkflags = [\"-Wl,-E,--build-id=sha1\"]\n        if self.settings.os == \"Linux\":\n            self.cpp_info.system_libs = [\"pthread\", \"dl\"]\n        elif self.settings.os == \"Windows\":\n            self.cpp_info.system_libs = [\"winhttp\", \"dbghelp\", \"pathcch\", \"shlwapi\"]\n\n        if not self.options.shared:\n            self.cpp_info.defines = [\"SENTRY_BUILD_STATIC\"]\n", "path": "recipes/sentry-native/all/conanfile.py"}]}