prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <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
  
  
  </issue>
  <code>
  [start of recipes/perfetto/all/conanfile.py]
  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 of recipes/perfetto/all/conanfile.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
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"}]}