prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  LibibertyConan: 404: Not Found
  ```bash
  conans.errors.NotFoundException: Not found: https://github.com/gcc-mirror/gcc/archive/gcc-9_1_0-release.tar.gz
  ```
  
  when i open url above in browser:
  
  ```bash
  404: Not Found
  ```
  
  Provide more mirrors, please
  
  Related to https://github.com/conan-io/conan-center-index/blob/master/recipes/libiberty/all/conanfile.py#L40
  
  --- 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/libiberty/all/conanfile.py`
  Content:
  ```
  1 from conans import ConanFile, tools, AutoToolsBuildEnvironment
  2 from conans.errors import ConanInvalidConfiguration
  3 import os
  4 
  5 
  6 class LibibertyConan(ConanFile):
  7     name = "libiberty"
  8     version = "9.1.0"
  9     description = "A collection of subroutines used by various GNU programs"
  10     topics = ("conan", "libiberty", "gnu", "gnu-collection")
  11     url = "https://github.com/conan-io/conan-center-index"
  12     homepage = "https://gcc.gnu.org/onlinedocs/libiberty"
  13     license = "LGPL-2.1"
  14     settings = "os", "arch", "compiler", "build_type"
  15     options = {"fPIC": [True, False]}
  16     default_options = {"fPIC": True}
  17     _autotools = None
  18 
  19     @property
  20     def _source_subfolder(self):
  21         return "source_subfolder"
  22 
  23     @property
  24     def _libiberty_folder(self):
  25         return os.path.join(self._source_subfolder, self.name)
  26 
  27     def config_options(self):
  28         if self.settings.os == 'Windows':
  29             del self.options.fPIC
  30 
  31     def configure(self):
  32         if self.settings.compiler == "Visual Studio":
  33             raise ConanInvalidConfiguration("libiberty can not be built by Visual Studio.")
  34         del self.settings.compiler.libcxx
  35         del self.settings.compiler.cppstd
  36 
  37     def source(self):
  38         tools.get(**self.conan_data["sources"][self.version])
  39         pkg_version = self.version.replace('.', '_')
  40         extracted_dir = "gcc-gcc-{}-release".format(pkg_version)
  41         os.rename(extracted_dir, self._source_subfolder)
  42         tools.rmdir(os.path.join(self._source_subfolder, 'gcc'))
  43         tools.rmdir(os.path.join(self._source_subfolder, 'libstdc++-v3'))
  44 
  45     def _configure_autotools(self):
  46         if not self._autotools:
  47             args = ["--enable-install-libiberty"]
  48             self._autotools = AutoToolsBuildEnvironment(self, win_bash=tools.os_info.is_windows)
  49             self._autotools.configure(args=args, configure_dir=self._libiberty_folder)
  50         return self._autotools
  51 
  52     def build(self):
  53         autotools = self._configure_autotools()
  54         autotools.make()
  55 
  56     def package(self):
  57         self.copy(pattern="COPYING.LIB", src=self._libiberty_folder, dst="licenses")
  58         autotools = self._configure_autotools()
  59         autotools.install()
  60         self._package_x86()
  61 
  62     def _package_x86(self):
  63         lib32dir = os.path.join(self.package_folder, "lib32")
  64         if os.path.exists(lib32dir):
  65             libdir = os.path.join(self.package_folder, "lib")
  66             tools.rmdir(libdir)
  67             os.rename(lib32dir, libdir)
  68 
  69     def package_info(self):
  70         self.cpp_info.libs = tools.collect_libs(self)
  71 
  72
  ```
  --- 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/libiberty/all/conanfile.py b/recipes/libiberty/all/conanfile.py
  --- a/recipes/libiberty/all/conanfile.py
  +++ b/recipes/libiberty/all/conanfile.py
  @@ -36,8 +36,7 @@
   
       def source(self):
           tools.get(**self.conan_data["sources"][self.version])
  -        pkg_version = self.version.replace('.', '_')
  -        extracted_dir = "gcc-gcc-{}-release".format(pkg_version)
  +        extracted_dir = "gcc-" + self.version
           os.rename(extracted_dir, self._source_subfolder)
           tools.rmdir(os.path.join(self._source_subfolder, 'gcc'))
           tools.rmdir(os.path.join(self._source_subfolder, 'libstdc++-v3'))
  @@ -68,4 +67,3 @@
   
       def package_info(self):
           self.cpp_info.libs = tools.collect_libs(self)
  -
  
verification_info: {"golden_diff": "diff --git a/recipes/libiberty/all/conanfile.py b/recipes/libiberty/all/conanfile.py\n--- a/recipes/libiberty/all/conanfile.py\n+++ b/recipes/libiberty/all/conanfile.py\n@@ -36,8 +36,7 @@\n \n     def source(self):\n         tools.get(**self.conan_data[\"sources\"][self.version])\n-        pkg_version = self.version.replace('.', '_')\n-        extracted_dir = \"gcc-gcc-{}-release\".format(pkg_version)\n+        extracted_dir = \"gcc-\" + self.version\n         os.rename(extracted_dir, self._source_subfolder)\n         tools.rmdir(os.path.join(self._source_subfolder, 'gcc'))\n         tools.rmdir(os.path.join(self._source_subfolder, 'libstdc++-v3'))\n@@ -68,4 +67,3 @@\n \n     def package_info(self):\n         self.cpp_info.libs = tools.collect_libs(self)\n-\n", "issue": "LibibertyConan: 404: Not Found\n```bash\r\nconans.errors.NotFoundException: Not found: https://github.com/gcc-mirror/gcc/archive/gcc-9_1_0-release.tar.gz\r\n```\r\n\r\nwhen i open url above in browser:\r\n\r\n```bash\r\n404: Not Found\r\n```\r\n\r\nProvide more mirrors, please\r\n\r\nRelated to https://github.com/conan-io/conan-center-index/blob/master/recipes/libiberty/all/conanfile.py#L40\n", "before_files": [{"content": "from conans import ConanFile, tools, AutoToolsBuildEnvironment\nfrom conans.errors import ConanInvalidConfiguration\nimport os\n\n\nclass LibibertyConan(ConanFile):\n    name = \"libiberty\"\n    version = \"9.1.0\"\n    description = \"A collection of subroutines used by various GNU programs\"\n    topics = (\"conan\", \"libiberty\", \"gnu\", \"gnu-collection\")\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"https://gcc.gnu.org/onlinedocs/libiberty\"\n    license = \"LGPL-2.1\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\"fPIC\": [True, False]}\n    default_options = {\"fPIC\": True}\n    _autotools = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    @property\n    def _libiberty_folder(self):\n        return os.path.join(self._source_subfolder, self.name)\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.settings.compiler == \"Visual Studio\":\n            raise ConanInvalidConfiguration(\"libiberty can not be built by Visual Studio.\")\n        del self.settings.compiler.libcxx\n        del self.settings.compiler.cppstd\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        pkg_version = self.version.replace('.', '_')\n        extracted_dir = \"gcc-gcc-{}-release\".format(pkg_version)\n        os.rename(extracted_dir, self._source_subfolder)\n        tools.rmdir(os.path.join(self._source_subfolder, 'gcc'))\n        tools.rmdir(os.path.join(self._source_subfolder, 'libstdc++-v3'))\n\n    def _configure_autotools(self):\n        if not self._autotools:\n            args = [\"--enable-install-libiberty\"]\n            self._autotools = AutoToolsBuildEnvironment(self, win_bash=tools.os_info.is_windows)\n            self._autotools.configure(args=args, configure_dir=self._libiberty_folder)\n        return self._autotools\n\n    def build(self):\n        autotools = self._configure_autotools()\n        autotools.make()\n\n    def package(self):\n        self.copy(pattern=\"COPYING.LIB\", src=self._libiberty_folder, dst=\"licenses\")\n        autotools = self._configure_autotools()\n        autotools.install()\n        self._package_x86()\n\n    def _package_x86(self):\n        lib32dir = os.path.join(self.package_folder, \"lib32\")\n        if os.path.exists(lib32dir):\n            libdir = os.path.join(self.package_folder, \"lib\")\n            tools.rmdir(libdir)\n            os.rename(lib32dir, libdir)\n\n    def package_info(self):\n        self.cpp_info.libs = tools.collect_libs(self)\n\n", "path": "recipes/libiberty/all/conanfile.py"}], "after_files": [{"content": "from conans import ConanFile, tools, AutoToolsBuildEnvironment\nfrom conans.errors import ConanInvalidConfiguration\nimport os\n\n\nclass LibibertyConan(ConanFile):\n    name = \"libiberty\"\n    version = \"9.1.0\"\n    description = \"A collection of subroutines used by various GNU programs\"\n    topics = (\"conan\", \"libiberty\", \"gnu\", \"gnu-collection\")\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"https://gcc.gnu.org/onlinedocs/libiberty\"\n    license = \"LGPL-2.1\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\"fPIC\": [True, False]}\n    default_options = {\"fPIC\": True}\n    _autotools = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    @property\n    def _libiberty_folder(self):\n        return os.path.join(self._source_subfolder, self.name)\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.settings.compiler == \"Visual Studio\":\n            raise ConanInvalidConfiguration(\"libiberty can not be built by Visual Studio.\")\n        del self.settings.compiler.libcxx\n        del self.settings.compiler.cppstd\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        extracted_dir = \"gcc-\" + self.version\n        os.rename(extracted_dir, self._source_subfolder)\n        tools.rmdir(os.path.join(self._source_subfolder, 'gcc'))\n        tools.rmdir(os.path.join(self._source_subfolder, 'libstdc++-v3'))\n\n    def _configure_autotools(self):\n        if not self._autotools:\n            args = [\"--enable-install-libiberty\"]\n            self._autotools = AutoToolsBuildEnvironment(self, win_bash=tools.os_info.is_windows)\n            self._autotools.configure(args=args, configure_dir=self._libiberty_folder)\n        return self._autotools\n\n    def build(self):\n        autotools = self._configure_autotools()\n        autotools.make()\n\n    def package(self):\n        self.copy(pattern=\"COPYING.LIB\", src=self._libiberty_folder, dst=\"licenses\")\n        autotools = self._configure_autotools()\n        autotools.install()\n        self._package_x86()\n\n    def _package_x86(self):\n        lib32dir = os.path.join(self.package_folder, \"lib32\")\n        if os.path.exists(lib32dir):\n            libdir = os.path.join(self.package_folder, \"lib\")\n            tools.rmdir(libdir)\n            os.rename(lib32dir, libdir)\n\n    def package_info(self):\n        self.cpp_info.libs = tools.collect_libs(self)\n", "path": "recipes/libiberty/all/conanfile.py"}]}