We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
[swig]  swig/4.0.1/2  Recipe contains code to strip executables, why?
Building swig/4.0.2 on AIX with gcc I ran into a problem with strip.  Generally speaking, not all platforms will leave you with a functional binary when you run `strip <executable file>` as some platforms' strip commands will remove relocation information.   It is trivial to work around by setting:
```
swig:STRIP=:
```
in a profile, but when I found that the stripping was added to the build by the recipe, I wondered why this was done.
It seems unnecessary, adds complexity, and potentially prevents producing a debug package that has debug symbols in it.
I think there should be a policy that addresses this for all of conan-center-index.

### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **swig/4.0.2**
  * Operating System+version: **AIX 7.1 PowerPC**
  * Compiler+version: **GCC 8.4**
  * Conan version: **conan 1.31.4**
  * Python version: **Python 3.8.6**


### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)
```
settings]
os=AIX
os_build=AIX
os.version=7.1
compiler=gcc
compiler.version=8.4
compiler.libcxx=libstdc++
build_type=Release
arch=ppc64
arch_build=ppc64
[options]
b2:toolset=gcc
b2:use_cxx_env=True
icu:with_extras=False
[build_requires]
[env]
OBJECT_MODE=64
CFLAGS=-fexceptions -pthread -mcpu=power8 -maix64 -mvsx
CXXFLAGS=-fexceptions -pthread -mcpu=power8 -maix64 -mvsx
CONAN_CPU_COUNT=4
PATH=['/opt/cmake-3.18/bin']
CC=/opt/freeware/bin/gcc
CXX=/opt/freeware/bin/g++
icu:PATH=['/opt/freeware/bin']
jpeg-dl:PATH=['/opt/freeware/bin']
b2:NO_CXX11_CHECK=true
b2:PATH=['/opt/freeware/bin']
swig:PATH=['/opt/freeware/bin']
swig:CPPFLAGS=-D_POSIX_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1
swig:STRIP=:
```

### Logs (Include/Attach if Applicable)
<details><summary>Click to expand log</summary>

```
Installing /home/robb/.conan/data/swig/4.0.2/_/_/package/b18a78d720bc5d9668ba289815d9ed083b41dfa9/bin/swiglib/std/std_wstring.i
Installing /home/robb/.conan/data/swig/4.0.2/_/_/package/b18a78d720bc5d9668ba289815d9ed083b41dfa9/bin/swiglib/std/std_carray.swg
Installation complete
strip: swig -- 0654-420 The file was already stripped as specified.
ERROR: swig/4.0.2: Error in package() method, line 121
        self.run("{} swig{}".format(strip, ext), win_bash=tools.os_info.is_windows)
        ConanException: Error 255 while executing /usr/bin/strip swig

```

</details>


--- 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/swig/all/conanfile.py`
Content:
```
1 from conans import ConanFile, tools, AutoToolsBuildEnvironment
2 from contextlib import contextmanager
3 import os
4 
5 
6 class SwigConan(ConanFile):
7     name = "swig"
8     description = "SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages."
9     url = "https://github.com/conan-io/conan-center-index"
10     homepage = "http://www.swig.org"
11     license = "GPL-3.0-or-later"
12     topics = ("conan", "swig", "python", "java", "wrapper")
13     exports_sources = "patches/**"
14     settings = "os", "arch", "compiler", "build_type"
15 
16     _autotools = None
17 
18     @property
19     def _source_subfolder(self):
20         return "source_subfolder"
21 
22     def configure(self):
23         del self.settings.compiler.libcxx
24         del self.settings.compiler.cppstd
25 
26     def build_requirements(self):
27         if tools.os_info.is_windows and not tools.get_env("CONAN_BASH_PATH") \
28                 and tools.os_info.detect_windows_subsystem() != "msys2":
29             self.build_requires("msys2/20190524")
30         if self.settings.compiler == "Visual Studio":
31             self.build_requires("winflexbison/2.5.22")
32         else:
33             self.build_requires("bison/3.7.1")
34         self.build_requires("automake/1.16.2")
35 
36     def requirements(self):
37         self.requires("pcre/8.41")
38 
39     def source(self):
40         tools.get(**self.conan_data["sources"][self.version])
41         os.rename("swig-rel-{}".format(self.version), self._source_subfolder)
42 
43     @contextmanager
44     def _build_context(self):
45         env = {}
46         if self.settings.compiler != "Visual Studio":
47             env["YACC"] = self.deps_user_info["bison"].YACC
48         if self.settings.compiler == "Visual Studio":
49             with tools.vcvars(self.settings):
50                 env.update({
51                     "CC": "{} cl -nologo".format(tools.unix_path(self.deps_user_info["automake"].compile)),
52                     "CXX": "{} cl -nologo".format(tools.unix_path(self.deps_user_info["automake"].compile)),
53                     "AR": "{} link".format(self.deps_user_info["automake"].ar_lib),
54                     "LD": "link",
55                 })
56                 with tools.environment_append(env):
57                     yield
58         else:
59             with tools.environment_append(env):
60                 yield
61 
62     def _configure_autotools(self):
63         if self._autotools:
64             return self._autotools
65 
66         self._autotools = AutoToolsBuildEnvironment(self, win_bash=tools.os_info.is_windows)
67         deps_libpaths = self._autotools.library_paths
68         deps_libs = self._autotools.libs
69         deps_defines = self._autotools.defines
70         if self.settings.os == "Windows" and self.settings.compiler != "Visual Studio":
71             self._autotools.link_flags.append("-static")
72 
73         libargs = list("-L\"{}\"".format(p) for p in deps_libpaths) + list("-l\"{}\"".format(l) for l in deps_libs)
74         args = [
75             "PCRE_LIBS={}".format(" ".join(libargs)),
76             "PCRE_CPPFLAGS={}".format(" ".join("-D{}".format(define) for define in deps_defines)),
77             "--host={}".format(self.settings.arch),
78             "--with-swiglibdir={}".format(self._swiglibdir),
79         ]
80 
81         host, build = None, None
82 
83         if self.settings.compiler == "Visual Studio":
84             self.output.warn("Visual Studio compiler cannot create ccache-swig. Disabling ccache-swig.")
85             args.append("--disable-ccache")
86             self._autotools.flags.append("-FS")
87             # MSVC canonical names aren't understood
88             host, build = False, False
89 
90         self._autotools.libs = []
91         self._autotools.library_paths = []
92 
93         self._autotools.configure(args=args, configure_dir=self._source_subfolder,
94                                   host=host, build=build)
95         return self._autotools
96 
97     def _patch_sources(self):
98         for patch in self.conan_data["patches"][self.version]:
99             tools.patch(**patch)
100 
101     def build(self):
102         self._patch_sources()
103         with tools.chdir(os.path.join(self._source_subfolder)):
104             self.run("./autogen.sh", win_bash=tools.os_info.is_windows)
105         with self._build_context():
106             autotools = self._configure_autotools()
107             autotools.make()
108 
109     def package(self):
110         self.copy(pattern="LICENSE*", dst="licenses", src=self._source_subfolder)
111         self.copy(pattern="COPYRIGHT", dst="licenses", src=self._source_subfolder)
112         with self._build_context():
113             autotools = self._configure_autotools()
114             autotools.install()
115 
116         if self.settings.compiler != "Visual Studio":
117             with tools.chdir(os.path.join(self.package_folder, "bin")):
118                 strip = (tools.get_env("STRIP") or tools.which("strip")).replace("\\", "/")
119                 ext = ".exe" if tools.os_info.is_windows else ""
120                 if strip:
121                     self.run("{} swig{}".format(strip, ext), win_bash=tools.os_info.is_windows)
122                     self.run("{} ccache-swig{}".format(strip, ext), win_bash=tools.os_info.is_windows)
123 
124     @property
125     def _swiglibdir(self):
126         return os.path.join(self.package_folder, "bin", "swiglib").replace("\\", "/")
127 
128     def package_info(self):
129         # FIXME: Don't set cmake_find_package name because conan cmake generators do not define SWIG_EXECUTABLE
130         # self.cpp_info.names["cmake_find_package"] = "SWIG"
131         # self.cpp_info.names["cmake_find_package_multi"] = "SWIG"
132 
133         bindir = os.path.join(self.package_folder, "bin")
134         self.output.info("Appending PATH environment variable: {}".format(bindir))
135         self.env_info.PATH.append(bindir)
136
```
--- 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()

```

diff --git a/recipes/swig/all/conanfile.py b/recipes/swig/all/conanfile.py
--- a/recipes/swig/all/conanfile.py
+++ b/recipes/swig/all/conanfile.py
@@ -113,14 +113,6 @@
             autotools = self._configure_autotools()
             autotools.install()
 
-        if self.settings.compiler != "Visual Studio":
-            with tools.chdir(os.path.join(self.package_folder, "bin")):
-                strip = (tools.get_env("STRIP") or tools.which("strip")).replace("\\", "/")
-                ext = ".exe" if tools.os_info.is_windows else ""
-                if strip:
-                    self.run("{} swig{}".format(strip, ext), win_bash=tools.os_info.is_windows)
-                    self.run("{} ccache-swig{}".format(strip, ext), win_bash=tools.os_info.is_windows)
-
     @property
     def _swiglibdir(self):
         return os.path.join(self.package_folder, "bin", "swiglib").replace("\\", "/")

{"golden_diff": "diff --git a/recipes/swig/all/conanfile.py b/recipes/swig/all/conanfile.py\n--- a/recipes/swig/all/conanfile.py\n+++ b/recipes/swig/all/conanfile.py\n@@ -113,14 +113,6 @@\n             autotools = self._configure_autotools()\n             autotools.install()\n \n-        if self.settings.compiler != \"Visual Studio\":\n-            with tools.chdir(os.path.join(self.package_folder, \"bin\")):\n-                strip = (tools.get_env(\"STRIP\") or tools.which(\"strip\")).replace(\"\\\\\", \"/\")\n-                ext = \".exe\" if tools.os_info.is_windows else \"\"\n-                if strip:\n-                    self.run(\"{} swig{}\".format(strip, ext), win_bash=tools.os_info.is_windows)\n-                    self.run(\"{} ccache-swig{}\".format(strip, ext), win_bash=tools.os_info.is_windows)\n-\n     @property\n     def _swiglibdir(self):\n         return os.path.join(self.package_folder, \"bin\", \"swiglib\").replace(\"\\\\\", \"/\")\n", "issue": "[swig]  swig/4.0.1/2  Recipe contains code to strip executables, why?\nBuilding swig/4.0.2 on AIX with gcc I ran into a problem with strip.  Generally speaking, not all platforms will leave you with a functional binary when you run `strip <executable file>` as some platforms' strip commands will remove relocation information.   It is trivial to work around by setting:\r\n```\r\nswig:STRIP=:\r\n```\r\nin a profile, but when I found that the stripping was added to the build by the recipe, I wondered why this was done.\r\nIt seems unnecessary, adds complexity, and potentially prevents producing a debug package that has debug symbols in it.\r\nI think there should be a policy that addresses this for all of conan-center-index.\r\n\r\n### Package and Environment Details (include every applicable attribute)\r\n  * Package Name/Version: **swig/4.0.2**\r\n  * Operating System+version: **AIX 7.1 PowerPC**\r\n  * Compiler+version: **GCC 8.4**\r\n  * Conan version: **conan 1.31.4**\r\n  * Python version: **Python 3.8.6**\r\n\r\n\r\n### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)\r\n```\r\nsettings]\r\nos=AIX\r\nos_build=AIX\r\nos.version=7.1\r\ncompiler=gcc\r\ncompiler.version=8.4\r\ncompiler.libcxx=libstdc++\r\nbuild_type=Release\r\narch=ppc64\r\narch_build=ppc64\r\n[options]\r\nb2:toolset=gcc\r\nb2:use_cxx_env=True\r\nicu:with_extras=False\r\n[build_requires]\r\n[env]\r\nOBJECT_MODE=64\r\nCFLAGS=-fexceptions -pthread -mcpu=power8 -maix64 -mvsx\r\nCXXFLAGS=-fexceptions -pthread -mcpu=power8 -maix64 -mvsx\r\nCONAN_CPU_COUNT=4\r\nPATH=['/opt/cmake-3.18/bin']\r\nCC=/opt/freeware/bin/gcc\r\nCXX=/opt/freeware/bin/g++\r\nicu:PATH=['/opt/freeware/bin']\r\njpeg-dl:PATH=['/opt/freeware/bin']\r\nb2:NO_CXX11_CHECK=true\r\nb2:PATH=['/opt/freeware/bin']\r\nswig:PATH=['/opt/freeware/bin']\r\nswig:CPPFLAGS=-D_POSIX_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1\r\nswig:STRIP=:\r\n```\r\n\r\n### Logs (Include/Attach if Applicable)\r\n<details><summary>Click to expand log</summary>\r\n\r\n```\r\nInstalling /home/robb/.conan/data/swig/4.0.2/_/_/package/b18a78d720bc5d9668ba289815d9ed083b41dfa9/bin/swiglib/std/std_wstring.i\r\nInstalling /home/robb/.conan/data/swig/4.0.2/_/_/package/b18a78d720bc5d9668ba289815d9ed083b41dfa9/bin/swiglib/std/std_carray.swg\r\nInstallation complete\r\nstrip: swig -- 0654-420 The file was already stripped as specified.\r\nERROR: swig/4.0.2: Error in package() method, line 121\r\n        self.run(\"{} swig{}\".format(strip, ext), win_bash=tools.os_info.is_windows)\r\n        ConanException: Error 255 while executing /usr/bin/strip swig\r\n\r\n```\r\n\r\n</details>\r\n\n", "before_files": [{"content": "from conans import ConanFile, tools, AutoToolsBuildEnvironment\nfrom contextlib import contextmanager\nimport os\n\n\nclass SwigConan(ConanFile):\n    name = \"swig\"\n    description = \"SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"http://www.swig.org\"\n    license = \"GPL-3.0-or-later\"\n    topics = (\"conan\", \"swig\", \"python\", \"java\", \"wrapper\")\n    exports_sources = \"patches/**\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n\n    _autotools = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    def configure(self):\n        del self.settings.compiler.libcxx\n        del self.settings.compiler.cppstd\n\n    def build_requirements(self):\n        if tools.os_info.is_windows and not tools.get_env(\"CONAN_BASH_PATH\") \\\n                and tools.os_info.detect_windows_subsystem() != \"msys2\":\n            self.build_requires(\"msys2/20190524\")\n        if self.settings.compiler == \"Visual Studio\":\n            self.build_requires(\"winflexbison/2.5.22\")\n        else:\n            self.build_requires(\"bison/3.7.1\")\n        self.build_requires(\"automake/1.16.2\")\n\n    def requirements(self):\n        self.requires(\"pcre/8.41\")\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        os.rename(\"swig-rel-{}\".format(self.version), self._source_subfolder)\n\n    @contextmanager\n    def _build_context(self):\n        env = {}\n        if self.settings.compiler != \"Visual Studio\":\n            env[\"YACC\"] = self.deps_user_info[\"bison\"].YACC\n        if self.settings.compiler == \"Visual Studio\":\n            with tools.vcvars(self.settings):\n                env.update({\n                    \"CC\": \"{} cl -nologo\".format(tools.unix_path(self.deps_user_info[\"automake\"].compile)),\n                    \"CXX\": \"{} cl -nologo\".format(tools.unix_path(self.deps_user_info[\"automake\"].compile)),\n                    \"AR\": \"{} link\".format(self.deps_user_info[\"automake\"].ar_lib),\n                    \"LD\": \"link\",\n                })\n                with tools.environment_append(env):\n                    yield\n        else:\n            with tools.environment_append(env):\n                yield\n\n    def _configure_autotools(self):\n        if self._autotools:\n            return self._autotools\n\n        self._autotools = AutoToolsBuildEnvironment(self, win_bash=tools.os_info.is_windows)\n        deps_libpaths = self._autotools.library_paths\n        deps_libs = self._autotools.libs\n        deps_defines = self._autotools.defines\n        if self.settings.os == \"Windows\" and self.settings.compiler != \"Visual Studio\":\n            self._autotools.link_flags.append(\"-static\")\n\n        libargs = list(\"-L\\\"{}\\\"\".format(p) for p in deps_libpaths) + list(\"-l\\\"{}\\\"\".format(l) for l in deps_libs)\n        args = [\n            \"PCRE_LIBS={}\".format(\" \".join(libargs)),\n            \"PCRE_CPPFLAGS={}\".format(\" \".join(\"-D{}\".format(define) for define in deps_defines)),\n            \"--host={}\".format(self.settings.arch),\n            \"--with-swiglibdir={}\".format(self._swiglibdir),\n        ]\n\n        host, build = None, None\n\n        if self.settings.compiler == \"Visual Studio\":\n            self.output.warn(\"Visual Studio compiler cannot create ccache-swig. Disabling ccache-swig.\")\n            args.append(\"--disable-ccache\")\n            self._autotools.flags.append(\"-FS\")\n            # MSVC canonical names aren't understood\n            host, build = False, False\n\n        self._autotools.libs = []\n        self._autotools.library_paths = []\n\n        self._autotools.configure(args=args, configure_dir=self._source_subfolder,\n                                  host=host, build=build)\n        return self._autotools\n\n    def _patch_sources(self):\n        for patch in self.conan_data[\"patches\"][self.version]:\n            tools.patch(**patch)\n\n    def build(self):\n        self._patch_sources()\n        with tools.chdir(os.path.join(self._source_subfolder)):\n            self.run(\"./autogen.sh\", win_bash=tools.os_info.is_windows)\n        with self._build_context():\n            autotools = self._configure_autotools()\n            autotools.make()\n\n    def package(self):\n        self.copy(pattern=\"LICENSE*\", dst=\"licenses\", src=self._source_subfolder)\n        self.copy(pattern=\"COPYRIGHT\", dst=\"licenses\", src=self._source_subfolder)\n        with self._build_context():\n            autotools = self._configure_autotools()\n            autotools.install()\n\n        if self.settings.compiler != \"Visual Studio\":\n            with tools.chdir(os.path.join(self.package_folder, \"bin\")):\n                strip = (tools.get_env(\"STRIP\") or tools.which(\"strip\")).replace(\"\\\\\", \"/\")\n                ext = \".exe\" if tools.os_info.is_windows else \"\"\n                if strip:\n                    self.run(\"{} swig{}\".format(strip, ext), win_bash=tools.os_info.is_windows)\n                    self.run(\"{} ccache-swig{}\".format(strip, ext), win_bash=tools.os_info.is_windows)\n\n    @property\n    def _swiglibdir(self):\n        return os.path.join(self.package_folder, \"bin\", \"swiglib\").replace(\"\\\\\", \"/\")\n\n    def package_info(self):\n        # FIXME: Don't set cmake_find_package name because conan cmake generators do not define SWIG_EXECUTABLE\n        # self.cpp_info.names[\"cmake_find_package\"] = \"SWIG\"\n        # self.cpp_info.names[\"cmake_find_package_multi\"] = \"SWIG\"\n\n        bindir = os.path.join(self.package_folder, \"bin\")\n        self.output.info(\"Appending PATH environment variable: {}\".format(bindir))\n        self.env_info.PATH.append(bindir)\n", "path": "recipes/swig/all/conanfile.py"}], "after_files": [{"content": "from conans import ConanFile, tools, AutoToolsBuildEnvironment\nfrom contextlib import contextmanager\nimport os\n\n\nclass SwigConan(ConanFile):\n    name = \"swig\"\n    description = \"SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.\"\n    url = \"https://github.com/conan-io/conan-center-index\"\n    homepage = \"http://www.swig.org\"\n    license = \"GPL-3.0-or-later\"\n    topics = (\"conan\", \"swig\", \"python\", \"java\", \"wrapper\")\n    exports_sources = \"patches/**\"\n    settings = \"os\", \"arch\", \"compiler\", \"build_type\"\n\n    _autotools = None\n\n    @property\n    def _source_subfolder(self):\n        return \"source_subfolder\"\n\n    def configure(self):\n        del self.settings.compiler.libcxx\n        del self.settings.compiler.cppstd\n\n    def build_requirements(self):\n        if tools.os_info.is_windows and not tools.get_env(\"CONAN_BASH_PATH\") \\\n                and tools.os_info.detect_windows_subsystem() != \"msys2\":\n            self.build_requires(\"msys2/20190524\")\n        if self.settings.compiler == \"Visual Studio\":\n            self.build_requires(\"winflexbison/2.5.22\")\n        else:\n            self.build_requires(\"bison/3.7.1\")\n        self.build_requires(\"automake/1.16.2\")\n\n    def requirements(self):\n        self.requires(\"pcre/8.41\")\n\n    def source(self):\n        tools.get(**self.conan_data[\"sources\"][self.version])\n        os.rename(\"swig-rel-{}\".format(self.version), self._source_subfolder)\n\n    @contextmanager\n    def _build_context(self):\n        env = {}\n        if self.settings.compiler != \"Visual Studio\":\n            env[\"YACC\"] = self.deps_user_info[\"bison\"].YACC\n        if self.settings.compiler == \"Visual Studio\":\n            with tools.vcvars(self.settings):\n                env.update({\n                    \"CC\": \"{} cl -nologo\".format(tools.unix_path(self.deps_user_info[\"automake\"].compile)),\n                    \"CXX\": \"{} cl -nologo\".format(tools.unix_path(self.deps_user_info[\"automake\"].compile)),\n                    \"AR\": \"{} link\".format(self.deps_user_info[\"automake\"].ar_lib),\n                    \"LD\": \"link\",\n                })\n                with tools.environment_append(env):\n                    yield\n        else:\n            with tools.environment_append(env):\n                yield\n\n    def _configure_autotools(self):\n        if self._autotools:\n            return self._autotools\n\n        self._autotools = AutoToolsBuildEnvironment(self, win_bash=tools.os_info.is_windows)\n        deps_libpaths = self._autotools.library_paths\n        deps_libs = self._autotools.libs\n        deps_defines = self._autotools.defines\n        if self.settings.os == \"Windows\" and self.settings.compiler != \"Visual Studio\":\n            self._autotools.link_flags.append(\"-static\")\n\n        libargs = list(\"-L\\\"{}\\\"\".format(p) for p in deps_libpaths) + list(\"-l\\\"{}\\\"\".format(l) for l in deps_libs)\n        args = [\n            \"PCRE_LIBS={}\".format(\" \".join(libargs)),\n            \"PCRE_CPPFLAGS={}\".format(\" \".join(\"-D{}\".format(define) for define in deps_defines)),\n            \"--host={}\".format(self.settings.arch),\n            \"--with-swiglibdir={}\".format(self._swiglibdir),\n        ]\n\n        host, build = None, None\n\n        if self.settings.compiler == \"Visual Studio\":\n            self.output.warn(\"Visual Studio compiler cannot create ccache-swig. Disabling ccache-swig.\")\n            args.append(\"--disable-ccache\")\n            self._autotools.flags.append(\"-FS\")\n            # MSVC canonical names aren't understood\n            host, build = False, False\n\n        self._autotools.libs = []\n        self._autotools.library_paths = []\n\n        self._autotools.configure(args=args, configure_dir=self._source_subfolder,\n                                  host=host, build=build)\n        return self._autotools\n\n    def _patch_sources(self):\n        for patch in self.conan_data[\"patches\"][self.version]:\n            tools.patch(**patch)\n\n    def build(self):\n        self._patch_sources()\n        with tools.chdir(os.path.join(self._source_subfolder)):\n            self.run(\"./autogen.sh\", win_bash=tools.os_info.is_windows)\n        with self._build_context():\n            autotools = self._configure_autotools()\n            autotools.make()\n\n    def package(self):\n        self.copy(pattern=\"LICENSE*\", dst=\"licenses\", src=self._source_subfolder)\n        self.copy(pattern=\"COPYRIGHT\", dst=\"licenses\", src=self._source_subfolder)\n        with self._build_context():\n            autotools = self._configure_autotools()\n            autotools.install()\n\n    @property\n    def _swiglibdir(self):\n        return os.path.join(self.package_folder, \"bin\", \"swiglib\").replace(\"\\\\\", \"/\")\n\n    def package_info(self):\n        # FIXME: Don't set cmake_find_package name because conan cmake generators do not define SWIG_EXECUTABLE\n        # self.cpp_info.names[\"cmake_find_package\"] = \"SWIG\"\n        # self.cpp_info.names[\"cmake_find_package_multi\"] = \"SWIG\"\n\n        bindir = os.path.join(self.package_folder, \"bin\")\n        self.output.info(\"Appending PATH environment variable: {}\".format(bindir))\n        self.env_info.PATH.append(bindir)\n", "path": "recipes/swig/all/conanfile.py"}]}