prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [package] odbc/2.3.7: sysconfdir is in Conan local cache
  <!-- 
    Please don't forget to update the issue title.
    Include all applicable information to help us reproduce your problem.
  -->
  
  ### Package and Environment Details (include every applicable attribute)
    * Package Name/Version: **odbc/2.3.7**
  
  ### Steps to reproduce (Include if Applicable)
  
  The odbc library has a configuration option called `--sysconfdir` that specifies the default location for configuration files.  By default the value is `${prefix}/etc`.  The problem is that `${prefix}` ends up being a location in the Conan local cache, for example:
  ```
  /userhome/epederson/.conan/data/odbc/2.3.7/bincrafters/stable/package/761432f3453a17c960259b5b2605153e3bcffd7d/etc
  ```
  This location is only valid on the machine that the package was built on.  
  
  The typical value for `sysconfdir` is `/etc`.  
  
  I will provide a PR that adds `--sysconfdir=/etc` to the configuration settings.
  
  --- 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/odbc/all/conanfile.py`
  Content:
  ```
  1 import glob
  2 import os
  3 from conans import ConanFile, AutoToolsBuildEnvironment, tools
  4 from conans.errors import ConanInvalidConfiguration
  5 
  6 
  7 class OdbcConan(ConanFile):
  8     name = "odbc"
  9     description = "Package providing unixODBC"
  10     topics = ("odbc", "database", "dbms", "data-access")
  11     url = "https://github.com/conan-io/conan-center-index"
  12     homepage = "http://www.unixodbc.org"
  13     license = ("LGPL-2.1", "GPL-2.1")
  14     exports_sources = "patches/**"
  15     settings = "os", "compiler", "build_type", "arch"
  16     options = {
  17         "shared": [True, False],
  18         "fPIC": [True, False],
  19         "with_libiconv": [True, False]
  20     }
  21     default_options = {
  22         "shared": False,
  23         "fPIC": True,
  24         "with_libiconv": True
  25     }
  26 
  27     _autotools = None
  28 
  29     @property
  30     def _source_subfolder(self):
  31         return "source_subfolder"
  32 
  33     def configure(self):
  34         if self.options.shared:
  35             del self.options.fPIC
  36         del self.settings.compiler.libcxx
  37         del self.settings.compiler.cppstd
  38         if self.settings.os == "Windows":
  39             raise ConanInvalidConfiguration("Windows not supported yet. Please, open an issue if you need such support")
  40 
  41     def requirements(self):
  42         if self.options.with_libiconv:
  43             self.requires("libiconv/1.16")
  44 
  45     def source(self):
  46         tools.get(**self.conan_data["sources"][self.version])
  47         extracted_dir = "unixODBC-%s" % self.version
  48         os.rename(extracted_dir, self._source_subfolder)
  49 
  50     def _configure_autotools(self):
  51         if self._autotools:
  52             return self._autotools
  53         self._autotools = AutoToolsBuildEnvironment(self)
  54         static_flag = "no" if self.options.shared else "yes"
  55         shared_flag = "yes" if self.options.shared else "no"
  56         libiconv_flag = "yes" if self.options.with_libiconv else "no"
  57         args = ["--enable-static=%s" % static_flag,
  58                 "--enable-shared=%s" % shared_flag,
  59                 "--enable-ltdl-install",
  60                 "--enable-iconv=%s" % libiconv_flag]
  61         if self.options.with_libiconv:
  62             libiconv_prefix = self.deps_cpp_info["libiconv"].rootpath
  63             args.append("--with-libiconv-prefix=%s" % libiconv_prefix)
  64         self._autotools.configure(configure_dir=self._source_subfolder, args=args)
  65         return self._autotools
  66 
  67     def build(self):
  68         for patch in self.conan_data.get("patches", {}).get(self.version, []):
  69             tools.patch(**patch)
  70         autotools = self._configure_autotools()
  71         autotools.make()
  72 
  73     def package(self):
  74         self.copy("COPYING", src=self._source_subfolder, dst="licenses")
  75         autotools = self._configure_autotools()
  76         autotools.install()
  77         tools.rmdir(os.path.join(self.package_folder, "share"))
  78         tools.rmdir(os.path.join(self.package_folder, "etc"))
  79         tools.rmdir(os.path.join(self.package_folder, "lib", "pkgconfig"))
  80         for la_file in glob.glob(os.path.join(self.package_folder, "lib", "*.la")):
  81             os.remove(la_file)
  82 
  83     def package_info(self):
  84         self.cpp_info.names["cmake_find_package"] = "ODBC"
  85         self.cpp_info.names["cmake_find_package_multi"] = "ODBC"
  86         # odbc
  87         self.cpp_info.components["_odbc"].names["pkg_config"] = "odbc"
  88         self.cpp_info.components["_odbc"].libs = ["odbc"]
  89         self.cpp_info.components["_odbc"].requires = ["odbcltdl"]
  90         if self.options.with_libiconv:
  91             self.cpp_info.components["_odbc"].requires.append("libiconv::libiconv")
  92         # odbcinst
  93         self.cpp_info.components["odbcinst"].names["pkg_config"] = "odbcinst"
  94         self.cpp_info.components["odbcinst"].libs = ["odbcinst"]
  95         self.cpp_info.components["odbcinst"].requires = ["odbcltdl"]
  96         # odbccr
  97         self.cpp_info.components["odbccr"].names["pkg_config"] = "odbccr"
  98         self.cpp_info.components["odbccr"].libs = ["odbccr"]
  99 
  100         self.cpp_info.components["odbcltdl"].libs = ["ltdl"]
  101 
  102         if self.settings.os == "Linux":
  103             self.cpp_info.components["_odbc"].system_libs = ["pthread"]
  104             self.cpp_info.components["odbcinst"].system_libs = ["pthread"]
  105             self.cpp_info.components["odbcltdl"].system_libs = ["dl"]
  106 
  107         bin_path = os.path.join(self.package_folder, "bin")
  108         self.output.info("Appending PATH environment variable: {}".format(bin_path))
  109         self.env_info.PATH.append(bin_path)
  110
  ```
  --- 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/odbc/all/conanfile.py b/recipes/odbc/all/conanfile.py
  --- a/recipes/odbc/all/conanfile.py
  +++ b/recipes/odbc/all/conanfile.py
  @@ -57,7 +57,8 @@
           args = ["--enable-static=%s" % static_flag,
                   "--enable-shared=%s" % shared_flag,
                   "--enable-ltdl-install",
  -                "--enable-iconv=%s" % libiconv_flag]
  +                "--enable-iconv=%s" % libiconv_flag,
  +                "--sysconfdir=/etc"]
           if self.options.with_libiconv:
               libiconv_prefix = self.deps_cpp_info["libiconv"].rootpath
               args.append("--with-libiconv-prefix=%s" % libiconv_prefix)
  
verification_info: {"golden_diff": "diff --git a/recipes/odbc/all/conanfile.py b/recipes/odbc/all/conanfile.py\n--- a/recipes/odbc/all/conanfile.py\n+++ b/recipes/odbc/all/conanfile.py\n@@ -57,7 +57,8 @@\n         args = [\"--enable-static=%s\" % static_flag,\n                 \"--enable-shared=%s\" % shared_flag,\n                 \"--enable-ltdl-install\",\n-                \"--enable-iconv=%s\" % libiconv_flag]\n+                \"--enable-iconv=%s\" % libiconv_flag,\n+                \"--sysconfdir=/etc\"]\n         if self.options.with_libiconv:\n             libiconv_prefix = self.deps_cpp_info[\"libiconv\"].rootpath\n             args.append(\"--with-libiconv-prefix=%s\" % libiconv_prefix)\n", "issue": "[package] odbc/2.3.7: sysconfdir is in Conan local cache\n<!-- \r\n  Please don't forget to update the issue title.\r\n  Include all applicable information to help us reproduce your problem.\r\n-->\r\n\r\n### Package and Environment Details (include every applicable attribute)\r\n  * Package Name/Version: **odbc/2.3.7**\r\n\r\n### Steps to reproduce (Include if Applicable)\r\n\r\nThe odbc library has a configuration option called `--sysconfdir` that specifies the default location for configuration files.  By default the value is `${prefix}/etc`.  The problem is that `${prefix}` ends up being a location in the Conan local cache, for example:\r\n```\r\n/userhome/epederson/.conan/data/odbc/2.3.7/bincrafters/stable/package/761432f3453a17c960259b5b2605153e3bcffd7d/etc\r\n```\r\nThis location is only valid on the machine that the package was built on.  \r\n\r\nThe typical value for `sysconfdir` is `/etc`.  \r\n\r\nI will provide a PR that adds `--sysconfdir=/etc` to the configuration settings.\n", "before_files": [{"content": "import glob\nimport os\nfrom conans import ConanFile, AutoToolsBuildEnvironment, tools\nfrom conans.errors import ConanInvalidConfiguration\n\n\nclass OdbcConan(ConanFile):\n    name = \"odbc\"\n    description = \"Package providing unixODBC\"\n    topics = (\"odbc\", \"database\", \"dbms\", \"data-access\")\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"http://www.unixodbc.org\"\n    license = (\"LGPL-2.1\", \"GPL-2.1\")\n    exports_sources = \"patches/**\"\n    settings = \"os\", \"compiler\", \"build_type\", \"arch\"\n    options = {\n        \"shared\": [True, False],\n        \"fPIC\": [True, False],\n        \"with_libiconv\": [True, False]\n    }\n    default_options = {\n        \"shared\": False,\n        \"fPIC\": True,\n        \"with_libiconv\": True\n    }\n\n    _autotools = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\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        if self.settings.os == \"Windows\":\n            raise ConanInvalidConfiguration(\"Windows not supported yet. Please, open an issue if you need such support\")\n\n    def requirements(self):\n        if self.options.with_libiconv:\n            self.requires(\"libiconv/1.16\")\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        extracted_dir = \"unixODBC-%s\" % self.version\n        os.rename(extracted_dir, self._source_subfolder)\n\n    def _configure_autotools(self):\n        if self._autotools:\n            return self._autotools\n        self._autotools = AutoToolsBuildEnvironment(self)\n        static_flag = \"no\" if self.options.shared else \"yes\"\n        shared_flag = \"yes\" if self.options.shared else \"no\"\n        libiconv_flag = \"yes\" if self.options.with_libiconv else \"no\"\n        args = [\"--enable-static=%s\" % static_flag,\n                \"--enable-shared=%s\" % shared_flag,\n                \"--enable-ltdl-install\",\n                \"--enable-iconv=%s\" % libiconv_flag]\n        if self.options.with_libiconv:\n            libiconv_prefix = self.deps_cpp_info[\"libiconv\"].rootpath\n            args.append(\"--with-libiconv-prefix=%s\" % libiconv_prefix)\n        self._autotools.configure(configure_dir=self._source_subfolder, args=args)\n        return self._autotools\n\n    def build(self):\n        for patch in self.conan_data.get(\"patches\", {}).get(self.version, []):\n            tools.patch(**patch)\n        autotools = self._configure_autotools()\n        autotools.make()\n\n    def package(self):\n        self.copy(\"COPYING\", src=self._source_subfolder, dst=\"licenses\")\n        autotools = self._configure_autotools()\n        autotools.install()\n        tools.rmdir(os.path.join(self.package_folder, \"share\"))\n        tools.rmdir(os.path.join(self.package_folder, \"etc\"))\n        tools.rmdir(os.path.join(self.package_folder, \"lib\", \"pkgconfig\"))\n        for la_file in glob.glob(os.path.join(self.package_folder, \"lib\", \"*.la\")):\n            os.remove(la_file)\n\n    def package_info(self):\n        self.cpp_info.names[\"cmake_find_package\"] = \"ODBC\"\n        self.cpp_info.names[\"cmake_find_package_multi\"] = \"ODBC\"\n        # odbc\n        self.cpp_info.components[\"_odbc\"].names[\"pkg_config\"] = \"odbc\"\n        self.cpp_info.components[\"_odbc\"].libs = [\"odbc\"]\n        self.cpp_info.components[\"_odbc\"].requires = [\"odbcltdl\"]\n        if self.options.with_libiconv:\n            self.cpp_info.components[\"_odbc\"].requires.append(\"libiconv::libiconv\")\n        # odbcinst\n        self.cpp_info.components[\"odbcinst\"].names[\"pkg_config\"] = \"odbcinst\"\n        self.cpp_info.components[\"odbcinst\"].libs = [\"odbcinst\"]\n        self.cpp_info.components[\"odbcinst\"].requires = [\"odbcltdl\"]\n        # odbccr\n        self.cpp_info.components[\"odbccr\"].names[\"pkg_config\"] = \"odbccr\"\n        self.cpp_info.components[\"odbccr\"].libs = [\"odbccr\"]\n\n        self.cpp_info.components[\"odbcltdl\"].libs = [\"ltdl\"]\n\n        if self.settings.os == \"Linux\":\n            self.cpp_info.components[\"_odbc\"].system_libs = [\"pthread\"]\n            self.cpp_info.components[\"odbcinst\"].system_libs = [\"pthread\"]\n            self.cpp_info.components[\"odbcltdl\"].system_libs = [\"dl\"]\n\n        bin_path = os.path.join(self.package_folder, \"bin\")\n        self.output.info(\"Appending PATH environment variable: {}\".format(bin_path))\n        self.env_info.PATH.append(bin_path)\n", "path": "recipes/odbc/all/conanfile.py"}], "after_files": [{"content": "import glob\nimport os\nfrom conans import ConanFile, AutoToolsBuildEnvironment, tools\nfrom conans.errors import ConanInvalidConfiguration\n\n\nclass OdbcConan(ConanFile):\n    name = \"odbc\"\n    description = \"Package providing unixODBC\"\n    topics = (\"odbc\", \"database\", \"dbms\", \"data-access\")\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"http://www.unixodbc.org\"\n    license = (\"LGPL-2.1\", \"GPL-2.1\")\n    exports_sources = \"patches/**\"\n    settings = \"os\", \"compiler\", \"build_type\", \"arch\"\n    options = {\n        \"shared\": [True, False],\n        \"fPIC\": [True, False],\n        \"with_libiconv\": [True, False]\n    }\n    default_options = {\n        \"shared\": False,\n        \"fPIC\": True,\n        \"with_libiconv\": True\n    }\n\n    _autotools = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\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        if self.settings.os == \"Windows\":\n            raise ConanInvalidConfiguration(\"Windows not supported yet. Please, open an issue if you need such support\")\n\n    def requirements(self):\n        if self.options.with_libiconv:\n            self.requires(\"libiconv/1.16\")\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        extracted_dir = \"unixODBC-%s\" % self.version\n        os.rename(extracted_dir, self._source_subfolder)\n\n    def _configure_autotools(self):\n        if self._autotools:\n            return self._autotools\n        self._autotools = AutoToolsBuildEnvironment(self)\n        static_flag = \"no\" if self.options.shared else \"yes\"\n        shared_flag = \"yes\" if self.options.shared else \"no\"\n        libiconv_flag = \"yes\" if self.options.with_libiconv else \"no\"\n        args = [\"--enable-static=%s\" % static_flag,\n                \"--enable-shared=%s\" % shared_flag,\n                \"--enable-ltdl-install\",\n                \"--enable-iconv=%s\" % libiconv_flag,\n                \"--sysconfdir=/etc\"]\n        if self.options.with_libiconv:\n            libiconv_prefix = self.deps_cpp_info[\"libiconv\"].rootpath\n            args.append(\"--with-libiconv-prefix=%s\" % libiconv_prefix)\n        self._autotools.configure(configure_dir=self._source_subfolder, args=args)\n        return self._autotools\n\n    def build(self):\n        for patch in self.conan_data.get(\"patches\", {}).get(self.version, []):\n            tools.patch(**patch)\n        autotools = self._configure_autotools()\n        autotools.make()\n\n    def package(self):\n        self.copy(\"COPYING\", src=self._source_subfolder, dst=\"licenses\")\n        autotools = self._configure_autotools()\n        autotools.install()\n        tools.rmdir(os.path.join(self.package_folder, \"share\"))\n        tools.rmdir(os.path.join(self.package_folder, \"etc\"))\n        tools.rmdir(os.path.join(self.package_folder, \"lib\", \"pkgconfig\"))\n        for la_file in glob.glob(os.path.join(self.package_folder, \"lib\", \"*.la\")):\n            os.remove(la_file)\n\n    def package_info(self):\n        self.cpp_info.names[\"cmake_find_package\"] = \"ODBC\"\n        self.cpp_info.names[\"cmake_find_package_multi\"] = \"ODBC\"\n        # odbc\n        self.cpp_info.components[\"_odbc\"].names[\"pkg_config\"] = \"odbc\"\n        self.cpp_info.components[\"_odbc\"].libs = [\"odbc\"]\n        self.cpp_info.components[\"_odbc\"].requires = [\"odbcltdl\"]\n        if self.options.with_libiconv:\n            self.cpp_info.components[\"_odbc\"].requires.append(\"libiconv::libiconv\")\n        # odbcinst\n        self.cpp_info.components[\"odbcinst\"].names[\"pkg_config\"] = \"odbcinst\"\n        self.cpp_info.components[\"odbcinst\"].libs = [\"odbcinst\"]\n        self.cpp_info.components[\"odbcinst\"].requires = [\"odbcltdl\"]\n        # odbccr\n        self.cpp_info.components[\"odbccr\"].names[\"pkg_config\"] = \"odbccr\"\n        self.cpp_info.components[\"odbccr\"].libs = [\"odbccr\"]\n\n        self.cpp_info.components[\"odbcltdl\"].libs = [\"ltdl\"]\n\n        if self.settings.os == \"Linux\":\n            self.cpp_info.components[\"_odbc\"].system_libs = [\"pthread\"]\n            self.cpp_info.components[\"odbcinst\"].system_libs = [\"pthread\"]\n            self.cpp_info.components[\"odbcltdl\"].system_libs = [\"dl\"]\n\n        bin_path = os.path.join(self.package_folder, \"bin\")\n        self.output.info(\"Appending PATH environment variable: {}\".format(bin_path))\n        self.env_info.PATH.append(bin_path)\n", "path": "recipes/odbc/all/conanfile.py"}]}