prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [package] libpciaccess/0.16: TypeError: __init__() got an unexpected keyword argument 'build_script_folder' with conan 1.49.0
  ### Package and Environment Details
  
  * Package Name/Version: **libpciaccess/0.16**
  * Operating System+version: **Fedora 34 x86_64**
  * Compiler+version: **gcc 11.3.1**
  * Conan version: **conan 1.49.0**
  * Python version: **Python 3.9.13**
  
  
  ### Conan profile
  
  ```
  Configuration for profile default:
  
  [settings]
  os=Linux
  os_build=Linux
  arch=x86_64
  arch_build=x86_64
  compiler=gcc
  compiler.version=11
  compiler.libcxx=libstdc++11
  build_type=Release
  [options]
  [conf]
  [build_requires]
  [env]
  ```
  
  
  ### Steps to reproduce
  
  Simply run `conan install libpciaccess/0.16@ --build` using conan 1.49.0.
  
  Expected result:
  libpciaccess/0.16 is successfully built and made available in conan cache.
  
  Actual result:
  Build fails with the following error:
  
  ```
  libpciaccess/0.16: 
  libpciaccess/0.16: ERROR: Package 'dfbe50feef7f3c6223a476cd5aeadb687084a646' build failed
  libpciaccess/0.16: WARN: Build folder /home/ts/.conan/data/libpciaccess/0.16/_/_/build/dfbe50feef7f3c6223a476cd5aeadb687084a646
  ERROR: libpciaccess/0.16: Error in build() method, line 66
  	autotools = Autotools(self, build_script_folder=self._source_subfolder)
  	TypeError: __init__() got an unexpected keyword argument 'build_script_folder'
  
  ```
  The problem appears to be that the changes merged in #11021 which reverts the fix introduced for #10909 in #10910 hasn't been updated in the conan center. Possibly because it reverts to a previous version?
  
  ### Logs
  
  _No response_
  
  --- 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/libpciaccess/all/conanfile.py`
  Content:
  ```
  1 import os
  2 
  3 from conan.tools.gnu import Autotools, AutotoolsToolchain
  4 from conans import ConanFile, tools
  5 from conans.errors import ConanInvalidConfiguration
  6 
  7 required_conan_version = ">=1.33.0"
  8 
  9 
  10 class LibPciAccessConan(ConanFile):
  11     name = "libpciaccess"
  12     description = "Generic PCI access library"
  13     topics = ("pci", "xorg")
  14     url = "https://github.com/conan-io/conan-center-index"
  15     homepage = "https://gitlab.freedesktop.org/xorg/lib/libpciaccess"
  16     license = "MIT", "X11"
  17 
  18     settings = "os", "arch", "compiler", "build_type"
  19     options = {"shared": [True, False], "fPIC": [True, False]}
  20     default_options = {"shared": False, "fPIC": True}
  21 
  22     _source_subfolder = "source_subfolder"
  23     _build_subfolder = "build_subfolder"
  24 
  25     def validate(self):
  26         def is_supported(settings):
  27             if settings.os in ("Linux", "FreeBSD", "SunOS"):
  28                 return True
  29             return settings.os == "Windows" and settings.get_safe("os.subsystem") == "cygwin"
  30         if not is_supported(self.settings):
  31             raise ConanInvalidConfiguration("Unsupported architecture.")
  32 
  33     def config_options(self):
  34         if self.settings.os == "Windows":
  35             del self.options.fPIC
  36 
  37     def configure(self):
  38         if self.options.shared:
  39             del self.options.fPIC
  40         del self.settings.compiler.libcxx
  41         del self.settings.compiler.cppstd
  42 
  43     def build_requirements(self):
  44         self.build_requires("pkgconf/1.7.4")
  45         self.build_requires("xorg-macros/1.19.3")
  46         self.build_requires("libtool/2.4.6")
  47 
  48     def generate(self):
  49         tc = AutotoolsToolchain(self)
  50         tc.default_configure_install_args = True
  51         tc.generate()
  52 
  53     def source(self):
  54         tools.get(**self.conan_data["sources"][self.version],
  55                   strip_root=True, destination=self._source_subfolder)
  56 
  57     def build(self):
  58         # autoreconf
  59         self.run("{} -fiv".format(tools.get_env("AUTORECONF") or "autoreconf"),
  60                  win_bash=tools.os_info.is_windows, run_environment=True, cwd=self._source_subfolder)
  61 
  62         autotools = Autotools(self)
  63         autotools.configure(build_script_folder=self._source_subfolder)
  64         autotools.make()
  65 
  66     def package(self):
  67         self.copy(pattern="COPYING", dst="licenses",
  68                   src=self._source_subfolder)
  69 
  70         autotools = Autotools(self)
  71         autotools.install()
  72 
  73         tools.rmdir(os.path.join(self.package_folder, "lib", "pkgconfig"))
  74         tools.remove_files_by_mask(os.path.join(
  75             self.package_folder, "lib"), "*.la")
  76 
  77     def package_info(self):
  78         self.cpp_info.libs = tools.collect_libs(self)
  79         self.cpp_info.set_property("pkg_config_name", "pciaccess")
  80
  ```
  --- 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/libpciaccess/all/conanfile.py b/recipes/libpciaccess/all/conanfile.py
  --- a/recipes/libpciaccess/all/conanfile.py
  +++ b/recipes/libpciaccess/all/conanfile.py
  @@ -1,10 +1,10 @@
   import os
  -
   from conan.tools.gnu import Autotools, AutotoolsToolchain
   from conans import ConanFile, tools
   from conans.errors import ConanInvalidConfiguration
   
  -required_conan_version = ">=1.33.0"
  +
  +required_conan_version = ">=1.44.0"
   
   
   class LibPciAccessConan(ConanFile):
  @@ -19,8 +19,9 @@
       options = {"shared": [True, False], "fPIC": [True, False]}
       default_options = {"shared": False, "fPIC": True}
   
  -    _source_subfolder = "source_subfolder"
  -    _build_subfolder = "build_subfolder"
  +    @property
  +    def _source_subfolder(self):
  +        return "source_subfolder"
   
       def validate(self):
           def is_supported(settings):
  @@ -55,7 +56,6 @@
                     strip_root=True, destination=self._source_subfolder)
   
       def build(self):
  -        # autoreconf
           self.run("{} -fiv".format(tools.get_env("AUTORECONF") or "autoreconf"),
                    win_bash=tools.os_info.is_windows, run_environment=True, cwd=self._source_subfolder)
   
  @@ -75,5 +75,5 @@
               self.package_folder, "lib"), "*.la")
   
       def package_info(self):
  -        self.cpp_info.libs = tools.collect_libs(self)
  +        self.cpp_info.libs = ["pciaccess"]
           self.cpp_info.set_property("pkg_config_name", "pciaccess")
  
verification_info: {"golden_diff": "diff --git a/recipes/libpciaccess/all/conanfile.py b/recipes/libpciaccess/all/conanfile.py\n--- a/recipes/libpciaccess/all/conanfile.py\n+++ b/recipes/libpciaccess/all/conanfile.py\n@@ -1,10 +1,10 @@\n import os\n-\n from conan.tools.gnu import Autotools, AutotoolsToolchain\n from conans import ConanFile, tools\n from conans.errors import ConanInvalidConfiguration\n \n-required_conan_version = \">=1.33.0\"\n+\n+required_conan_version = \">=1.44.0\"\n \n \n class LibPciAccessConan(ConanFile):\n@@ -19,8 +19,9 @@\n     options = {\"shared\": [True, False], \"fPIC\": [True, False]}\n     default_options = {\"shared\": False, \"fPIC\": True}\n \n-    _source_subfolder = \"source_subfolder\"\n-    _build_subfolder = \"build_subfolder\"\n+    @property\n+    def _source_subfolder(self):\n+        return \"source_subfolder\"\n \n     def validate(self):\n         def is_supported(settings):\n@@ -55,7 +56,6 @@\n                   strip_root=True, destination=self._source_subfolder)\n \n     def build(self):\n-        # autoreconf\n         self.run(\"{} -fiv\".format(tools.get_env(\"AUTORECONF\") or \"autoreconf\"),\n                  win_bash=tools.os_info.is_windows, run_environment=True, cwd=self._source_subfolder)\n \n@@ -75,5 +75,5 @@\n             self.package_folder, \"lib\"), \"*.la\")\n \n     def package_info(self):\n-        self.cpp_info.libs = tools.collect_libs(self)\n+        self.cpp_info.libs = [\"pciaccess\"]\n         self.cpp_info.set_property(\"pkg_config_name\", \"pciaccess\")\n", "issue": "[package] libpciaccess/0.16: TypeError: __init__() got an unexpected keyword argument 'build_script_folder' with conan 1.49.0\n### Package and Environment Details\r\n\r\n* Package Name/Version: **libpciaccess/0.16**\r\n* Operating System+version: **Fedora 34 x86_64**\r\n* Compiler+version: **gcc 11.3.1**\r\n* Conan version: **conan 1.49.0**\r\n* Python version: **Python 3.9.13**\r\n\r\n\r\n### Conan profile\r\n\r\n```\r\nConfiguration for profile default:\r\n\r\n[settings]\r\nos=Linux\r\nos_build=Linux\r\narch=x86_64\r\narch_build=x86_64\r\ncompiler=gcc\r\ncompiler.version=11\r\ncompiler.libcxx=libstdc++11\r\nbuild_type=Release\r\n[options]\r\n[conf]\r\n[build_requires]\r\n[env]\r\n```\r\n\r\n\r\n### Steps to reproduce\r\n\r\nSimply run `conan install libpciaccess/0.16@ --build` using conan 1.49.0.\r\n\r\nExpected result:\r\nlibpciaccess/0.16 is successfully built and made available in conan cache.\r\n\r\nActual result:\r\nBuild fails with the following error:\r\n\r\n```\r\nlibpciaccess/0.16: \r\nlibpciaccess/0.16: ERROR: Package 'dfbe50feef7f3c6223a476cd5aeadb687084a646' build failed\r\nlibpciaccess/0.16: WARN: Build folder /home/ts/.conan/data/libpciaccess/0.16/_/_/build/dfbe50feef7f3c6223a476cd5aeadb687084a646\r\nERROR: libpciaccess/0.16: Error in build() method, line 66\r\n\tautotools = Autotools(self, build_script_folder=self._source_subfolder)\r\n\tTypeError: __init__() got an unexpected keyword argument 'build_script_folder'\r\n\r\n```\r\nThe problem appears to be that the changes merged in #11021 which reverts the fix introduced for #10909 in #10910 hasn't been updated in the conan center. Possibly because it reverts to a previous version?\r\n\r\n### Logs\r\n\r\n_No response_\n", "before_files": [{"content": "import os\n\nfrom conan.tools.gnu import Autotools, AutotoolsToolchain\nfrom conans import ConanFile, tools\nfrom conans.errors import ConanInvalidConfiguration\n\nrequired_conan_version = \">=1.33.0\"\n\n\nclass LibPciAccessConan(ConanFile):\n    name = \"libpciaccess\"\n    description = \"Generic PCI access library\"\n    topics = (\"pci\", \"xorg\")\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"https://gitlab.freedesktop.org/xorg/lib/libpciaccess\"\n    license = \"MIT\", \"X11\"\n\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\"shared\": [True, False], \"fPIC\": [True, False]}\n    default_options = {\"shared\": False, \"fPIC\": True}\n\n    _source_subfolder = \"source_subfolder\"\n    _build_subfolder = \"build_subfolder\"\n\n    def validate(self):\n        def is_supported(settings):\n            if settings.os in (\"Linux\", \"FreeBSD\", \"SunOS\"):\n                return True\n            return settings.os == \"Windows\" and settings.get_safe(\"os.subsystem\") == \"cygwin\"\n        if not is_supported(self.settings):\n            raise ConanInvalidConfiguration(\"Unsupported architecture.\")\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        del self.settings.compiler.libcxx\n        del self.settings.compiler.cppstd\n\n    def build_requirements(self):\n        self.build_requires(\"pkgconf/1.7.4\")\n        self.build_requires(\"xorg-macros/1.19.3\")\n        self.build_requires(\"libtool/2.4.6\")\n\n    def generate(self):\n        tc = AutotoolsToolchain(self)\n        tc.default_configure_install_args = True\n        tc.generate()\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 build(self):\n        # autoreconf\n        self.run(\"{} -fiv\".format(tools.get_env(\"AUTORECONF\") or \"autoreconf\"),\n                 win_bash=tools.os_info.is_windows, run_environment=True, cwd=self._source_subfolder)\n\n        autotools = Autotools(self)\n        autotools.configure(build_script_folder=self._source_subfolder)\n        autotools.make()\n\n    def package(self):\n        self.copy(pattern=\"COPYING\", dst=\"licenses\",\n                  src=self._source_subfolder)\n\n        autotools = Autotools(self)\n        autotools.install()\n\n        tools.rmdir(os.path.join(self.package_folder, \"lib\", \"pkgconfig\"))\n        tools.remove_files_by_mask(os.path.join(\n            self.package_folder, \"lib\"), \"*.la\")\n\n    def package_info(self):\n        self.cpp_info.libs = tools.collect_libs(self)\n        self.cpp_info.set_property(\"pkg_config_name\", \"pciaccess\")\n", "path": "recipes/libpciaccess/all/conanfile.py"}], "after_files": [{"content": "import os\nfrom conan.tools.gnu import Autotools, AutotoolsToolchain\nfrom conans import ConanFile, tools\nfrom conans.errors import ConanInvalidConfiguration\n\n\nrequired_conan_version = \">=1.44.0\"\n\n\nclass LibPciAccessConan(ConanFile):\n    name = \"libpciaccess\"\n    description = \"Generic PCI access library\"\n    topics = (\"pci\", \"xorg\")\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"https://gitlab.freedesktop.org/xorg/lib/libpciaccess\"\n    license = \"MIT\", \"X11\"\n\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n    options = {\"shared\": [True, False], \"fPIC\": [True, False]}\n    default_options = {\"shared\": False, \"fPIC\": True}\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    def validate(self):\n        def is_supported(settings):\n            if settings.os in (\"Linux\", \"FreeBSD\", \"SunOS\"):\n                return True\n            return settings.os == \"Windows\" and settings.get_safe(\"os.subsystem\") == \"cygwin\"\n        if not is_supported(self.settings):\n            raise ConanInvalidConfiguration(\"Unsupported architecture.\")\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        del self.settings.compiler.libcxx\n        del self.settings.compiler.cppstd\n\n    def build_requirements(self):\n        self.build_requires(\"pkgconf/1.7.4\")\n        self.build_requires(\"xorg-macros/1.19.3\")\n        self.build_requires(\"libtool/2.4.6\")\n\n    def generate(self):\n        tc = AutotoolsToolchain(self)\n        tc.default_configure_install_args = True\n        tc.generate()\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 build(self):\n        self.run(\"{} -fiv\".format(tools.get_env(\"AUTORECONF\") or \"autoreconf\"),\n                 win_bash=tools.os_info.is_windows, run_environment=True, cwd=self._source_subfolder)\n\n        autotools = Autotools(self)\n        autotools.configure(build_script_folder=self._source_subfolder)\n        autotools.make()\n\n    def package(self):\n        self.copy(pattern=\"COPYING\", dst=\"licenses\",\n                  src=self._source_subfolder)\n\n        autotools = Autotools(self)\n        autotools.install()\n\n        tools.rmdir(os.path.join(self.package_folder, \"lib\", \"pkgconfig\"))\n        tools.remove_files_by_mask(os.path.join(\n            self.package_folder, \"lib\"), \"*.la\")\n\n    def package_info(self):\n        self.cpp_info.libs = [\"pciaccess\"]\n        self.cpp_info.set_property(\"pkg_config_name\", \"pciaccess\")\n", "path": "recipes/libpciaccess/all/conanfile.py"}]}