prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [request] perfetto/v21.0
  ### Package Details
    * Package Name/Version: **perfetto/v21.0**
    * Changelog: **https://github.com/google/perfetto/releases/tag/v21.0**
  
  
  The above mentioned version is newly released by the upstream project and not yet available as a recipe. PR follows
  
  
  --- 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/perfetto/all/conanfile.py`
  Content:
  ```
  1 from conans import ConanFile, CMake, tools
  2 from conans.errors import ConanInvalidConfiguration
  3 
  4 import os
  5 
  6 required_conan_version = ">=1.33.0"
  7 
  8 
  9 class PerfettoConan(ConanFile):
  10     name = "perfetto"
  11     license = "Apache-2.0"
  12     homepage = "https://perfetto.dev"
  13     url = "https://github.com/conan-io/conan-center-index"
  14     description = "Performance instrumentation and tracing for Android, Linux and Chrome"
  15     topics = ("linux", "profiling", "tracing")
  16     settings = "os", "compiler", "build_type", "arch"
  17     options = {
  18             "shared": [True, False],
  19             "fPIC": [True, False]
  20     }
  21     default_options = {
  22             "shared": False,
  23             "fPIC": True
  24     }
  25 
  26     exports_sources = ["CMakeLists.txt"]
  27     generators = "cmake"
  28 
  29     _cmake = None
  30 
  31     @property
  32     def _source_subfolder(self):
  33         return "source_subfolder"
  34 
  35     def config_options(self):
  36         if self.settings.os == "Windows":
  37             del self.options.fPIC
  38 
  39     def configure(self):
  40         if self.options.shared:
  41             del self.options.fPIC
  42 
  43     def validate(self):
  44         if self.settings.compiler == "gcc" and tools.Version(self.settings.compiler.version) < 7:
  45             raise ConanInvalidConfiguration ("perfetto requires gcc >= 7")
  46         if self.settings.compiler.cppstd:
  47             tools.check_min_cppstd(self, 11)
  48 
  49     def source(self):
  50         tools.get(**self.conan_data["sources"][self.version],
  51                strip_root=True, destination=self._source_subfolder)
  52 
  53     def _configure_cmake(self):
  54         if self._cmake:
  55             return self._cmake
  56         self._cmake = CMake(self)
  57         self._cmake.configure()
  58         return self._cmake
  59 
  60     def build(self):
  61         cmake = self._configure_cmake()
  62         cmake.build()
  63 
  64     def package(self):
  65         self.copy("LICENSE", src=self._source_subfolder, dst="licenses")
  66         cmake = self._configure_cmake()
  67         cmake.install()
  68 
  69     def package_info(self):
  70         self.cpp_info.libs = ["perfetto"]
  71         self.cpp_info.names["pkgconfig"] = "perfetto"
  72         if self.settings.os == "Linux":
  73             self.cpp_info.system_libs.append("pthread")
  74         if self.settings.os == "Windows":
  75             self.cpp_info.system_libs.append("ws2_32")
  76 
  77
  ```
  --- 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/recipes/perfetto/all/conanfile.py b/recipes/perfetto/all/conanfile.py
  --- a/recipes/perfetto/all/conanfile.py
  +++ b/recipes/perfetto/all/conanfile.py
  @@ -68,7 +68,6 @@
   
       def package_info(self):
           self.cpp_info.libs = ["perfetto"]
  -        self.cpp_info.names["pkgconfig"] = "perfetto"
           if self.settings.os == "Linux":
               self.cpp_info.system_libs.append("pthread")
           if self.settings.os == "Windows":
  
verification_info: {"golden_diff": "diff --git a/recipes/perfetto/all/conanfile.py b/recipes/perfetto/all/conanfile.py\n--- a/recipes/perfetto/all/conanfile.py\n+++ b/recipes/perfetto/all/conanfile.py\n@@ -68,7 +68,6 @@\n \n     def package_info(self):\n         self.cpp_info.libs = [\"perfetto\"]\n-        self.cpp_info.names[\"pkgconfig\"] = \"perfetto\"\n         if self.settings.os == \"Linux\":\n             self.cpp_info.system_libs.append(\"pthread\")\n         if self.settings.os == \"Windows\":\n", "issue": "[request] perfetto/v21.0\n### Package Details\r\n  * Package Name/Version: **perfetto/v21.0**\r\n  * Changelog: **https://github.com/google/perfetto/releases/tag/v21.0**\r\n\r\n\r\nThe above mentioned version is newly released by the upstream project and not yet available as a recipe. PR follows\r\n\n", "before_files": [{"content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\n\nimport os\n\nrequired_conan_version = \">=1.33.0\"\n\n\nclass PerfettoConan(ConanFile):\n    name = \"perfetto\"\n    license = \"Apache-2.0\"\n    homepage = \"https://perfetto.dev\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    description = \"Performance instrumentation and tracing for Android, Linux and Chrome\"\n    topics = (\"linux\", \"profiling\", \"tracing\")\n    settings = \"os\", \"compiler\", \"build_type\", \"arch\"\n    options = {\n            \"shared\": [True, False],\n            \"fPIC\": [True, False]\n    }\n    default_options = {\n            \"shared\": False,\n            \"fPIC\": True\n    }\n\n    exports_sources = [\"CMakeLists.txt\"]\n    generators = \"cmake\"\n\n    _cmake = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_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 == \"gcc\" and tools.Version(self.settings.compiler.version) < 7:\n            raise ConanInvalidConfiguration (\"perfetto requires gcc >= 7\")\n        if self.settings.compiler.cppstd:\n            tools.check_min_cppstd(self, 11)\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version],\n               strip_root=True, destination=self._source_subfolder)\n\n    def _configure_cmake(self):\n        if self._cmake:\n            return self._cmake\n        self._cmake = CMake(self)\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\", src=self._source_subfolder, dst=\"licenses\")\n        cmake = self._configure_cmake()\n        cmake.install()\n\n    def package_info(self):\n        self.cpp_info.libs = [\"perfetto\"]\n        self.cpp_info.names[\"pkgconfig\"] = \"perfetto\"\n        if self.settings.os == \"Linux\":\n            self.cpp_info.system_libs.append(\"pthread\")\n        if self.settings.os == \"Windows\":\n            self.cpp_info.system_libs.append(\"ws2_32\")\n\n", "path": "recipes/perfetto/all/conanfile.py"}], "after_files": [{"content": "from conans import ConanFile, CMake, tools\nfrom conans.errors import ConanInvalidConfiguration\n\nimport os\n\nrequired_conan_version = \">=1.33.0\"\n\n\nclass PerfettoConan(ConanFile):\n    name = \"perfetto\"\n    license = \"Apache-2.0\"\n    homepage = \"https://perfetto.dev\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    description = \"Performance instrumentation and tracing for Android, Linux and Chrome\"\n    topics = (\"linux\", \"profiling\", \"tracing\")\n    settings = \"os\", \"compiler\", \"build_type\", \"arch\"\n    options = {\n            \"shared\": [True, False],\n            \"fPIC\": [True, False]\n    }\n    default_options = {\n            \"shared\": False,\n            \"fPIC\": True\n    }\n\n    exports_sources = [\"CMakeLists.txt\"]\n    generators = \"cmake\"\n\n    _cmake = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_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 == \"gcc\" and tools.Version(self.settings.compiler.version) < 7:\n            raise ConanInvalidConfiguration (\"perfetto requires gcc >= 7\")\n        if self.settings.compiler.cppstd:\n            tools.check_min_cppstd(self, 11)\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version],\n               strip_root=True, destination=self._source_subfolder)\n\n    def _configure_cmake(self):\n        if self._cmake:\n            return self._cmake\n        self._cmake = CMake(self)\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\", src=self._source_subfolder, dst=\"licenses\")\n        cmake = self._configure_cmake()\n        cmake.install()\n\n    def package_info(self):\n        self.cpp_info.libs = [\"perfetto\"]\n        if self.settings.os == \"Linux\":\n            self.cpp_info.system_libs.append(\"pthread\")\n        if self.settings.os == \"Windows\":\n            self.cpp_info.system_libs.append(\"ws2_32\")\n\n", "path": "recipes/perfetto/all/conanfile.py"}]}