internlm/SWE-Fixer-Train-110K huggingface dataset:
Repository: conan-io/conan-center-index

Issue:
[question] protobuf/3.9.1: set_cmake_flags in recipe
In the protobuf/3.9.1 conanfile.py:51, the set_cmake_flags property is set to True. Is this necessary - and why? It is breaking my build system when I use it with profiles building for Android, as it overrides (and deletes) CXX_FLAGS set in my Conan profile.

If it is not possible to set this property to false by default, would it be okay to make it optional. I could provide a pull request if need be?


Discussion:
I can't remember why we did it, but I'll check it. Thanks for reporting.

Resolving patch:
diff --git a/recipes/protobuf/3.9.x/conanfile.py b/recipes/protobuf/3.9.x/conanfile.py
--- a/recipes/protobuf/3.9.x/conanfile.py
+++ b/recipes/protobuf/3.9.x/conanfile.py
@@ -48,7 +48,7 @@ def requirements(self):
             self.requires("zlib/1.2.11")
 
     def _configure_cmake(self):
-        cmake = CMake(self, set_cmake_flags=True)
+        cmake = CMake(self)
         cmake.definitions["protobuf_BUILD_TESTS"] = False
         cmake.definitions["protobuf_WITH_ZLIB"] = self.options.with_zlib
         cmake.definitions["protobuf_BUILD_PROTOC_BINARIES"] = not self.options.lite


Test patch:
Repository: conan-io/conan-center-index

Issue:
[package] make/4.2.1: not building for Linux Clang 9
The recipe for `make/4.2.1` does not build under Linux Clang 9.

After generating all the index packages for Clang 9, the ones for this library failed to compile. In this case it doesn't matter that much as this is packaging a tool to be used as a build requirement.

Related to #211 

### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **make/4.2.1**
  * Operating System+version: **Linux Ubuntu 18.04**
  * Compiler+version: **Clang 9**
  * Conan version: **conan 1.21.0**
  * Python version: **Python 3.7.4**


Discussion:

Resolving patch:
diff --git a/recipes/make/all/conanfile.py b/recipes/make/all/conanfile.py
--- a/recipes/make/all/conanfile.py
+++ b/recipes/make/all/conanfile.py
@@ -10,6 +10,7 @@ class MakeConan(ConanFile):
     homepage = "https://www.gnu.org/software/make/"
     license = "GPL-3.0-or-later"
     settings = "os_build", "arch_build", "compiler"
+    exports_sources = ["patches/*"]
     _source_subfolder = "source_subfolder"
 
     def source(self):
@@ -22,6 +23,9 @@ def configure(self):
         del self.settings.compiler.cppstd
 
     def build(self):
+        for patch in self.conan_data["patches"][self.version]:
+            tools.patch(**patch)
+
         with tools.chdir(self._source_subfolder):
             # README.W32
             if self.settings.os_build == "Windows":


Test patch:
Repository: conan-io/conan-center-index

Issue:
[request] spdlog/1.5.0
### Package Details
  * Package Name/Version: **spdlog/3.15.3**
  * Changelog: **https://github.com/gabime/spdlog/releases/tag/v1.5.0**


The above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.



Discussion:

Resolving patch:
diff --git a/recipes/spdlog/1.4.x/conanfile.py b/recipes/spdlog/all/conanfile.py
similarity index 100%
rename from recipes/spdlog/1.4.x/conanfile.py
rename to recipes/spdlog/all/conanfile.py


Test patch:
diff --git a/recipes/spdlog/1.4.x/test_package/CMakeLists.txt b/recipes/spdlog/all/test_package/CMakeLists.txt
similarity index 100%
rename from recipes/spdlog/1.4.x/test_package/CMakeLists.txt
rename to recipes/spdlog/all/test_package/CMakeLists.txt
diff --git a/recipes/spdlog/1.4.x/test_package/conanfile.py b/recipes/spdlog/all/test_package/conanfile.py
similarity index 100%
rename from recipes/spdlog/1.4.x/test_package/conanfile.py
rename to recipes/spdlog/all/test_package/conanfile.py
diff --git a/recipes/spdlog/1.4.x/test_package/test_package.cpp b/recipes/spdlog/all/test_package/test_package.cpp
similarity index 100%
rename from recipes/spdlog/1.4.x/test_package/test_package.cpp
rename to recipes/spdlog/all/test_package/test_package.cpp
Repository: conan-io/conan-center-index

Issue:
[package] asio/1.13.0: broken on Andriod
Commit: https://github.com/conan-io/conan-center-index/commit/804be2ad15b2139960fe10efcd6667d1f2dd2e98 breaks Android because there is no `-lpthread` 


Discussion:

Resolving patch:
diff --git a/recipes/asio/all/conanfile.py b/recipes/asio/all/conanfile.py
--- a/recipes/asio/all/conanfile.py
+++ b/recipes/asio/all/conanfile.py
@@ -8,6 +8,7 @@ class Asio(ConanFile):
     homepage = "http://think-async.com/Asio"
     description = "Asio is a cross-platform C++ library for network and low-level I/O"
     topics = ("conan", "asio", "network", "io", "low-level")
+    settings = "os"
     license = "BSL-1.0"
 
     no_copy_source = True
@@ -28,7 +29,7 @@ def package(self):
 
     def package_info(self):
         self.cpp_info.defines.append('ASIO_STANDALONE')
-        if tools.os_info.is_linux:
+        if str(self.settings.os) in ["Linux", "Android"]:
             self.cpp_info.libs.append('pthread')
 
     def package_id(self):


Test patch:
Repository: conan-io/conan-center-index

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


Discussion:

Resolving patch:
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 configure(self):
 
     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_x86(self):
 
     def package_info(self):
         self.cpp_info.libs = tools.collect_libs(self)
-


Test patch:
Repository: conan-io/conan-center-index

Issue:
[package] tbb/2020.0 and 2019.u9 checksum is invalid in conandata.yml
conandata.yml now:
```
sources:
  "2019_u9":
    url: "https://github.com/intel/tbb/archive/2019_U9.tar.gz"
    sha256: "15652f5328cf00c576f065e5cd3eaf3317422fe82afb67a9bcec0dc065bd2abe"
  "2020.0":
    url: "https://github.com/intel/tbb/archive/v2020.0.tar.gz"
    sha256: "8eed2377ac62e6ac10af5a8303ce861e4525ffe491a061b48e8fe094fc741ce9"
```

whereas:
sha256sum v2020.0.tar.gz 
57714f2d2cf33935db33cee93af57eb3ecd5a7bef40c1fb7ca4a41d79684b118  v2020.0.tar.gz

sha256sum 2019_U9.tar.gz 
3f5ea81b9caa195f1967a599036b473b2e7c347117330cda99b79cfcf5b77c84  2019_U9.tar.gz



Discussion:

Resolving patch:
diff --git a/recipes/tbb/all/conanfile.py b/recipes/tbb/all/conanfile.py
--- a/recipes/tbb/all/conanfile.py
+++ b/recipes/tbb/all/conanfile.py
@@ -8,7 +8,7 @@ class TBBConan(ConanFile):
     name = "tbb"
     license = "Apache-2.0"
     url = "https://github.com/conan-io/conan-center-index"
-    homepage = "https://github.com/intel/tbb"
+    homepage = "https://github.com/oneapi-src/oneTBB"
     description = """Intel Threading Building Blocks (Intel TBB) lets you easily write parallel C++
 programs that take full advantage of multicore performance, that are portable and composable, and
 that have future-proof scalability"""
@@ -53,7 +53,7 @@ def _is_clanglc(self):
 
     def source(self):
         tools.get(**self.conan_data["sources"][self.version])
-        os.rename("{}-{}".format(self.name.lower(), self.version.upper()), self._source_subfolder)
+        os.rename("one{}-{}".format(self.name.upper(), self.version.upper()), self._source_subfolder)
 
         # Get the version of the current compiler instead of gcc
         linux_include = os.path.join(self._source_subfolder, "build", "linux.inc")
@@ -75,7 +75,7 @@ def add_flag(name, value):
             else:
                 os.environ[name] = value
 
-        if self.version == "2020.0" and self.settings.build_type == "Debug":
+        if self.version != "2019_u9" and self.settings.build_type == "Debug":
             tools.replace_in_file(os.path.join(self._source_subfolder, "Makefile"), "release", "debug")
 
         if self._is_msvc:


Test patch:
Repository: conan-io/conan-center-index

Issue:
[package] libcurl/7.69.1: Update openssl version to 1.1.1e
Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **libcurl/7.69.1**

Update to `openssl-1.1.1e`

Break on `openssl-1.1.1d` because I have another package that has already update to `openssl-1.1.1e`


Discussion:

Resolving patch:
diff --git a/recipes/libcurl/all/conanfile.py b/recipes/libcurl/all/conanfile.py
--- a/recipes/libcurl/all/conanfile.py
+++ b/recipes/libcurl/all/conanfile.py
@@ -111,7 +111,7 @@ def requirements(self):
             elif self.settings.os == "Windows" and self.options.with_winssl:
                 pass
             else:
-                self.requires.add("openssl/1.1.1d")
+                self.requires.add("openssl/1.1.1e")
         if self.options.with_libssh2:
             if self.settings.compiler != "Visual Studio":
                 self.requires.add("libssh2/1.9.0")


Test patch:
Repository: conan-io/conan-center-index

Issue:
[OpenSSL] remove obsolete options
moved from https://github.com/conan-community/community/issues/234, by @firewave 

### Description of Problem, Request, or Question

In the latest OpenSSL 1.1.1 the following options are disabled by default and can be removed: `no_zlib`, `no_md2`, `no_rc4`, `no_rc5`

See https://github.com/openssl/openssl/blob/262c00882a2fd7cf16672bf467a86f75b4098a7c/Configure#L449

Also as zlib is no longer needed the dependency can be removed as well.
### Package Details (Include if Applicable)
* Package Name/Version: **OpenSSL/1.1.1c**


Discussion:

Resolving patch:
diff --git a/recipes/openssl/all/conanfile.py b/recipes/openssl/all/conanfile.py
--- a/recipes/openssl/all/conanfile.py
+++ b/recipes/openssl/all/conanfile.py
@@ -131,9 +131,10 @@ def source(self):
         try:
             tools.get(**self.conan_data["sources"][self.version])
         except ConanException:
+            self.output.warn("Downloading OpenSSL from the mirror.")
             url = self.conan_data["sources"][self.version]["url"]
             url = url.replace("https://www.openssl.org/source/",
-                              "https://www.openssl.org/source/old/%s" % self._full_version.base)
+                              "https://www.openssl.org/source/old/%s/" % self._full_version.base)
             tools.get(url, sha256=self.conan_data["sources"][self.version]["sha256"])
         extracted_folder = "openssl-" + self.version
         os.rename(extracted_folder, self._source_subfolder)
@@ -141,6 +142,11 @@ def source(self):
     def configure(self):
         del self.settings.compiler.libcxx
         del self.settings.compiler.cppstd
+        if self._full_version >= "1.1.0":
+            del self.options.no_zlib
+            del self.options.no_md2
+            del self.options.no_rc4
+            del self.options.no_rc5
 
     def config_options(self):
         if self.settings.os != "Windows":
@@ -149,7 +155,7 @@ def config_options(self):
             del self.options.fPIC
 
     def requirements(self):
-        if not self.options.no_zlib:
+        if not self.options.get_safe("no_zlib"):
             self.requires("zlib/1.2.11")
 
     @property
@@ -419,7 +425,7 @@ def _configure_args(self):
         if self.settings.os == "Neutrino":
             args.append("-lsocket no-asm")
 
-        if not self.options.no_zlib:
+        if not self.options.get_safe("no_zlib"):
             zlib_info = self.deps_cpp_info["zlib"]
             include_path = zlib_info.include_paths[0]
             if self.settings.os == "Windows":


Test patch:
Repository: conan-io/conan-center-index

Issue:
[package] boost/all: Use `tools.cppstd_flag` from Conan 1.24
### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **boost/all**


The recipe is using undocumented Conan API:

https://github.com/conan-io/conan-center-index/blob/9419b6420fe94a453391ccd738bc70eb1c491179/recipes/boost/all/conanfile.py#L3

Conan 1.24 (to be released soon) provides new tool `tools.cppstd_flag` (https://github.com/conan-io/conan/pull/6744) that should replace it.


Discussion:

Resolving patch:
diff --git a/recipes/boost/all/conanfile.py b/recipes/boost/all/conanfile.py
--- a/recipes/boost/all/conanfile.py
+++ b/recipes/boost/all/conanfile.py
@@ -1,7 +1,6 @@
 from conans import ConanFile
 from conans import tools
-from conans.client.build.cppstd_flags import cppstd_flag
-from conans.tools import Version
+from conans.tools import Version, cppstd_flag
 from conans.errors import ConanException
 
 from conans.errors import ConanInvalidConfiguration
@@ -568,12 +567,7 @@ def add_defines(option, library):
         flags.append("toolset=%s" % self._toolset)
 
         if self.settings.get_safe("compiler.cppstd"):
-            flags.append("cxxflags=%s" % cppstd_flag(
-                    self.settings.get_safe("compiler"),
-                    self.settings.get_safe("compiler.version"),
-                    self.settings.get_safe("compiler.cppstd")
-                )
-            )
+            flags.append("cxxflags=%s" % cppstd_flag(self.settings))
 
         # CXX FLAGS
         cxx_flags = []


Test patch:
Repository: conan-io/conan-center-index

Issue:
[request] openssl/1.1.1g
### Package Details
  * Package Name/Version: **openssl/1.1.1g**
  * https://www.openssl.org/news/cl111.txt**


The above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.



Discussion:

Resolving patch:
diff --git a/recipes/openssl/all/conanfile.py b/recipes/openssl/1.x.x/conanfile.py
similarity index 100%
rename from recipes/openssl/all/conanfile.py
rename to recipes/openssl/1.x.x/conanfile.py


Test patch:
diff --git a/recipes/openssl/all/test_package/CMakeLists.txt b/recipes/openssl/1.x.x/test_package/CMakeLists.txt
similarity index 100%
rename from recipes/openssl/all/test_package/CMakeLists.txt
rename to recipes/openssl/1.x.x/test_package/CMakeLists.txt
diff --git a/recipes/openssl/all/test_package/conanfile.py b/recipes/openssl/1.x.x/test_package/conanfile.py
similarity index 100%
rename from recipes/openssl/all/test_package/conanfile.py
rename to recipes/openssl/1.x.x/test_package/conanfile.py
diff --git a/recipes/openssl/all/test_package/digest.cpp b/recipes/openssl/1.x.x/test_package/digest.cpp
similarity index 100%
rename from recipes/openssl/all/test_package/digest.cpp
rename to recipes/openssl/1.x.x/test_package/digest.cpp
Repository: conan-io/conan-center-index

Issue:
[conan.io/center] parallel-hashmap/1.31 merged but not found in conan center
Even though https://github.com/conan-io/conan-center-index/pull/1253 has been merged, `parallel-hashmap/1.31` can't be found in Web UI or with `conan search`



Discussion:
Indeed, there's something wrong. I will work on this.

```
C:\Users\jerryw\source\git-conan\bzip2_license\recipes\bzip2\1.0.8>conan search parallel-hashmap/1.30 -r conan-center
Existing package recipes:

parallel-hashmap/1.30

C:\Users\jerryw\source\git-conan\bzip2_license\recipes\bzip2\1.0.8>conan search parallel-hashmap/1.31 -r conan-center
There are no packages matching the 'parallel-hashmap/1.31' pattern

```
And this page says 1.30 is the only available version: 

![image](https://user-images.githubusercontent.com/8557737/80770529-88493400-8b1e-11ea-869d-00cb30ed3a79.png)

Yet... this URL does work: 

https://conan.io/center/parallel-hashmap/1.31/?user=_&channel=_

For better or worse, that page agree's that the only available version is 1.30

![image](https://user-images.githubusercontent.com/8557737/80770434-51731e00-8b1e-11ea-8413-84ed9dae1d74.png)



Resolving patch:
diff --git a/recipes/parallel-hashmap/all/conanfile.py b/recipes/parallel-hashmap/all/conanfile.py
--- a/recipes/parallel-hashmap/all/conanfile.py
+++ b/recipes/parallel-hashmap/all/conanfile.py
@@ -1,7 +1,7 @@
 import os
-
 from conans import ConanFile, tools
 
+
 class ParallelHashmapConan(ConanFile):
     name = "parallel-hashmap"
     description = "A family of header-only, very fast and memory-friendly hashmap and btree containers."


Test patch:
diff --git a/recipes/parallel-hashmap/all/test_package/test_package.cpp b/recipes/parallel-hashmap/all/test_package/test_package.cpp
--- a/recipes/parallel-hashmap/all/test_package/test_package.cpp
+++ b/recipes/parallel-hashmap/all/test_package/test_package.cpp
@@ -6,23 +6,23 @@
 using phmap::flat_hash_map;
 
 int main() {
-  // Create an unordered_map of three strings (that map to strings)
-  flat_hash_map<std::string, std::string> email = {
-    {"tom",  "tom@gmail.com"},
-    {"jeff", "jk@gmail.com"},
-    {"jim",  "jimg@microsoft.com"}
-  };
+    // Create an unordered_map of three strings (that map to strings)
+    flat_hash_map<std::string, std::string> email = {
+        {"tom",  "tom@gmail.com"},
+        {"jeff", "jk@gmail.com"},
+        {"jim",  "jimg@microsoft.com"}
+    };
 
-  // Iterate and print keys and values
-  for (const auto &n : email) {
-    std::cout << n.first << "'s email is: " << n.second << "\n";
-  }
+    // Iterate and print keys and values
+    for (const auto &n : email) {
+        std::cout << n.first << "'s email is: " << n.second << "\n";
+    }
 
-  // Add a new entry
-  email["bill"] = "bg@whatever.com";
+    // Add a new entry
+    email["bill"] = "bg@whatever.com";
 
-  // and print it
-  std::cout << "bill's email is: " << email["bill"] << "\n";
+    // and print it
+    std::cout << "bill's email is: " << email["bill"] << "\n";
 
-  return 0;
+    return 0;
 }
Repository: conan-io/conan-center-index

Issue:
[package] <boost>/<1.72.0>: boost build with RelWithDebInfo mode has stripped symbols.
When loading my package into gdb I am seeing this output:
```
Reading symbols from /.conan/data/boost/1.72.0/_/_/package/907e2c094bdf4b6d1c9dc9fed80f48a536ca4d1b/lib/libboost_contract.so.1.72.0...(no debugging symbols found)...done.
```
For boost libraries, other libraries build fine.

I am using `RelWithDebInfo` mode, my boost recipe is about 5 months old.
I will be testing new conan recipe when we are ready to migrate to 1.73.0.


### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **boost/1.72.0**
  * Operating System+version: **Linux Ubuntu 18.04**
  * Compiler+version: **GCC 8**
  * Conan version: **conan 1.24.0**
  * Python version: **Python 3.6.10**

Fix KB-H041 hook checks in Boost
Specify library name and version:  **Boost**

- [x] I've read the [guidelines](https://github.com/conan-io/conan-center-index/wiki#how-to-submit-a-pull-request) for contributing.
- [x] I've followed the [PEP8](https://www.python.org/dev/peps/pep-0008/) style guides for Python code in the recipes.
- [x] I've used the [latest](https://github.com/conan-io/conan/releases/latest) Conan client version.
- [x] I've tried at least one configuration locally with the
      [conan-center hook](https://github.com/conan-io/hooks.git) activated.

Fixes failing hook checks encountered in #1629. `data.txt` doesn't seem to be used anywhere in the repo since the very ca3fe1e7d9c329fb292eaf282f46ecb6304b5970



Discussion:

Resolving patch:
diff --git a/recipes/boost/all/conanfile.py b/recipes/boost/all/conanfile.py
--- a/recipes/boost/all/conanfile.py
+++ b/recipes/boost/all/conanfile.py
@@ -589,6 +589,11 @@ def add_defines(option, library):
         if self.settings.os != "Windows":
             if self.options.fPIC:
                 cxx_flags.append("-fPIC")
+        if self.settings.build_type == "RelWithDebInfo":
+            if self.settings.compiler == "gcc" or "clang" in str(self.settings.compiler):
+                cxx_flags.append("-g")
+            elif self.settings.compiler == "Visual Studio":
+                cxx_flags.append("/Z7")
 
         # Standalone toolchain fails when declare the std lib
         if self.settings.os != "Android" and self.settings.os != "Emscripten":


Test patch:
diff --git a/recipes/boost/all/test_package/data.txt b/recipes/boost/all/test_package/data.txt
deleted file mode 100644
--- a/recipes/boost/all/test_package/data.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-123
-234
Repository: conan-io/conan-center-index

Issue:
[odbc] CMake module name
odbc/2.3.7

According to CMake module, it should use capital letters: https://cmake.org/cmake/help/v3.12/module/FindODBC.html


Discussion:

Resolving patch:
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
@@ -60,6 +60,9 @@ def package(self):
         self.copy('COPYING', src=self._source_subfolder, dst="licenses")
 
     def package_info(self):
+        self.cpp_info.names["cmake_find_package"] = "ODBC"
+        self.cpp_info.names["cmake_find_package_multi"] = "ODBC"
+
         self.env_info.path.append(os.path.join(self.package_folder, 'bin'))
 
         self.cpp_info.libs = ['odbc', 'odbccr', 'odbcinst', 'ltdl']


Test patch:
Repository: conan-io/conan-center-index

Issue:
[request] zstd/1.4.5
### Package Details
  * Package Name/Version: **zstd/1.4.5**
  * Changelog: **https://github.com/facebook/zstd/releases/tag/v1.4.5**


The above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.



Discussion:

Resolving patch:
diff --git a/recipes/zstd/all/conanfile.py b/recipes/zstd/all/conanfile.py
--- a/recipes/zstd/all/conanfile.py
+++ b/recipes/zstd/all/conanfile.py
@@ -9,7 +9,7 @@ class ZstdConan(ConanFile):
     description = "Zstandard - Fast real-time compression algorithm"
     topics = ("conan", "zstd", "compression", "algorithm", "decoder")
     license = "BSD-3-Clause"
-    exports_sources = ['CMakeLists.txt']
+    exports_sources = ['CMakeLists.txt', "patches/**"]
     generators = 'cmake'
     settings = "os", "arch", "compiler", "build_type"
     options = {"shared": [True, False], "fPIC": [True, False]}
@@ -40,7 +40,12 @@ def _configure_cmake(self):
         cmake.configure()
         return cmake
 
+    def _patch_sources(self):
+        for patch in self.conan_data.get("patches", {}).get(self.version, []):
+            tools.patch(**patch)
+
     def build(self):
+        self._patch_sources()
         cmake = self._configure_cmake()
         cmake.build()
 
@@ -48,6 +53,7 @@ def package(self):
         self.copy(pattern="LICENSE", dst="licenses", src=self._source_subfolder)
         cmake = self._configure_cmake()
         cmake.install()
+        tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
         tools.rmdir(os.path.join(self.package_folder, "lib", "pkgconfig"))
 
     def package_info(self):


Test patch:
diff --git a/recipes/zstd/all/test_package/conanfile.py b/recipes/zstd/all/test_package/conanfile.py
--- a/recipes/zstd/all/test_package/conanfile.py
+++ b/recipes/zstd/all/test_package/conanfile.py
@@ -1,5 +1,5 @@
 import os
-from conans import ConanFile, CMake
+from conans import ConanFile, CMake, tools
 
 
 class TestPackageConan(ConanFile):
@@ -12,5 +12,6 @@ def build(self):
         cmake.build()
 
     def test(self):
-        bin_path = os.path.join("bin", "test_package")
-        self.run(bin_path, run_environment=True)
+        if not tools.cross_building(self.settings):
+            bin_path = os.path.join("bin", "test_package")
+            self.run(bin_path, run_environment=True)