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

Issue:
dbus/1.12.20: depends in libselinux which is not found in requirements
Building dbus/1.12.20 on linux with a gcc 8.5.0 toolchain that does not have libselinux produces error.

Build output:
```
../source_subfolder/bus/selinux.c:46:10: fatal error: selinux/selinux.h: No such file or directory
 #include <selinux/selinux.h>
          ^~~~~~~~~~~~~~~~~~~
```
The package does have a selinux.h file found in `dbus/1.12.20/_/_/source/source_subfolder/bus/selinux.h` but not under a selinux dir.

Another option could be to add `---disable-selinux` to the configure arguments

Rgds
Klaus


Discussion:
I am seeing this same issue.

Resolving patch:
diff --git a/recipes/dbus/1.x.x/conanfile.py b/recipes/dbus/1.x.x/conanfile.py
--- a/recipes/dbus/1.x.x/conanfile.py
+++ b/recipes/dbus/1.x.x/conanfile.py
@@ -20,12 +20,14 @@ class DbusConan(ConanFile):
         "system_pid_file": "ANY",
         "with_x11": [True, False],
         "with_glib": [True, False],
+        "with_selinux": [True, False],
     }
     default_options = {
         "system_socket": "",
         "system_pid_file": "",
         "with_x11": False,
         "with_glib": False,
+        "with_selinux": False,
     }
 
     generators = "pkg_config", "cmake", "cmake_find_package"
@@ -52,6 +54,8 @@ def requirements(self):
         self.requires("expat/2.4.8")
         if self.options.with_glib:
             self.requires("glib/2.72.0")
+        if self.options.with_selinux:
+            self.requires("selinux/3.3")
         if self.options.get_safe("with_x11"):
             self.requires("xorg/system")
 
@@ -75,6 +79,9 @@ def _configure_autotools(self):
             args.append("--with-systemdsystemunitdir=%s" % os.path.join(self.package_folder, "lib", "systemd", "system"))
             args.append("--with-systemduserunitdir=%s" % os.path.join(self.package_folder, "lib", "systemd", "user"))
 
+            if not self.options.with_selinux:
+                args.append("--disable-selinux")
+
             if str(self.options.system_socket) != "":
                 args.append("--with-system-socket=%s" % self.options.system_socket)
             if str(self.options.system_pid_file) != "":


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

Issue:
[package] xorg/system: generated pkg-config files lack variables
While trying to add xkbcommon 1.0.1, I had to add pkg-config generator to xkbcommon recipe because since 1.0.0 a new optional component depends on libxml2, and meson uses pkg-config files.
xkbcommon depends on xorg, but currently xkbcommon's recipe relies on xorg system installed pkg-config files.
As soon as conan pkg-config files are generated for xkbcommon build, they take precedence, but one of them lacks an important variable for xkbcommon: `xkb_base` in `xkeyboard-config` xorg's component, used to set a definition at build time.

xkbcommon can build without this variable, but il will fail at runtime.

I'm pretty sure that this issue can't be fixed right now. It requires https://github.com/conan-io/conan/issues/7720


Discussion:

Resolving patch:
diff --git a/recipes/xorg/all/conanfile.py b/recipes/xorg/all/conanfile.py
--- a/recipes/xorg/all/conanfile.py
+++ b/recipes/xorg/all/conanfile.py
@@ -1,6 +1,5 @@
 from conans import ConanFile, tools
 from conans.errors import ConanException, ConanInvalidConfiguration
-import os
 
 required_conan_version = ">=1.32"
 
@@ -30,6 +29,7 @@ def _fill_cppinfo_from_pkgconfig(self, name):
         include_dirs = [include[2:] for include in pkg_config.cflags_only_I]
         cflags = [flag for flag in pkg_config.cflags_only_other if not flag.startswith("-D")]
         defines = [flag[2:] for flag in pkg_config.cflags_only_other if flag.startswith("-D")]
+        variables = pkg_config.variables
 
         self.cpp_info.components[name].system_libs = libs
         self.cpp_info.components[name].libdirs = lib_dirs
@@ -40,6 +40,10 @@ def _fill_cppinfo_from_pkgconfig(self, name):
         self.cpp_info.components[name].cflags = cflags
         self.cpp_info.components[name].cxxflags = cflags
         self.cpp_info.components[name].version = pkg_config.version[0]
+        self.cpp_info.components[name].set_property("component_version", pkg_config.version[0])
+        self.cpp_info.components[name].set_property(
+            "pkg_config_custom_content",
+            "\n".join("%s=%s" % (key, value) for key,value in variables.items()))
 
     def system_requirements(self):
         packages = []
@@ -94,6 +98,8 @@ def package_info(self):
                      "xcb-xinerama", "xcb", "xkeyboard-config", "xcb-atom", "xcb-aux", "xcb-event", "xcb-util",
                      "xcb-dri3"] + ([] if self.settings.os == "FreeBSD" else ["uuid"]):
             self._fill_cppinfo_from_pkgconfig(name)
+            self.cpp_info.components[name].set_property("pkg_config_name", name)
+        
         if self.settings.os == "Linux":
             self.cpp_info.components["sm"].requires.append("uuid")
 


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

Issue:
[request] libtool/2.4.7
### Package Details
  * Package Name/Version: **libtool/2.4.7**
  * Changelog: **http://savannah.gnu.org/forum/forum.php?forum_id=10139**


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/libtool/all/conanfile.py b/recipes/libtool/all/conanfile.py
--- a/recipes/libtool/all/conanfile.py
+++ b/recipes/libtool/all/conanfile.py
@@ -33,6 +33,10 @@ class LibtoolConan(ConanFile):
     def _source_subfolder(self):
         return "source_subfolder"
 
+    def export_sources(self):
+        for patch in self.conan_data.get("patches", {}).get(self.version, []):
+            self.copy(patch["patch_file"])
+
     def config_options(self):
         if self.settings.os == "Windows":
             del self.options.fPIC


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

Issue:
[package] boost/ALL: ImportError in conanfile.py
### Package and Environment Details

* Package Name/Version: **boost/all**
* Operating System+version: **Linux Ubuntu 18.04**
* Compiler+version: **GCC 9**
* Conan version: **conan 1.43.0**
* Python version: **Python 3.8**


### Conan profile

_No response_

### Steps to reproduce

Install any boost version with conan==1.43.0 and an `ImportError` is raised:
```
#14 2.116   File "/root/.conan/data/boost/1.71.0/_/_/export/conanfile.py", line 1, in <module>
#14 2.116     from conan.tools.build import cross_building
#14 2.116 ImportError: cannot import name 'cross_building' from 'conan.tools.build' (/usr/local/lib/python3.8/dist-packages/conan/tools/build/__init__.py)
```

seems like [a recent change](https://github.com/conan-io/conan-center-index/commit/abf40e34637400c5c3f625d230098bfaee39bc06#diff-cc14160728d1ad321c1444ffad82615139181e681f4acb7dfd045a005cc8bd66) to the `conanfile.py` introduced that. the conanfile.py says it's valid down until v1.43.0, however that import wasn't introduced until [1.43.4 or so](https://github.com/conan-io/conan/pull/10536/files#diff-74272a6f8877a3af1e97d287b5e9169050b4c836c436d7d3779cb6842dacef65).

### Logs

<details><summary>Click to expand log</summary>


</details>



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
@@ -18,7 +18,7 @@
 except ImportError:
     from io import StringIO
 
-required_conan_version = ">=1.43.0"
+required_conan_version = ">=1.46.0"
 
 
 # When adding (or removing) an option, also add this option to the list in


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

Issue:
[package] boost/all: define BOOST_FILESYSTEM_VERSION
### Package and Environment Details

* Package Name/Version: **boost/***

After investigating symbol conflict with static boost::filesystem I've discovered that Boost has define that changes implementation of multiple inline methods in public interface. For example, latest release Boost 1.79.0 allows using "BOOST_FILESYSTEM_VERSION=3" (default) and "BOOST_FILESYSTEM_VERSION=4". I think that this define should be provided by conan package.


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
@@ -76,6 +76,7 @@ class BoostConan(ConanFile):
         "system_no_deprecated": [True, False],
         "asio_no_deprecated": [True, False],
         "filesystem_no_deprecated": [True, False],
+        "filesystem_version": [None, "3", "4"],
         "fPIC": [True, False],
         "layout": ["system", "versioned", "tagged", "b2-default"],
         "magic_autolink": [True, False],  # enables BOOST_ALL_NO_LIB
@@ -113,6 +114,7 @@ class BoostConan(ConanFile):
         "system_no_deprecated": False,
         "asio_no_deprecated": False,
         "filesystem_no_deprecated": False,
+        "filesystem_version": None,
         "fPIC": True,
         "layout": "system",
         "magic_autolink": False,
@@ -546,6 +548,7 @@ def package_id(self):
             self.info.options.header_only = True
         else:
             del self.info.options.debug_level
+            del self.info.options.filesystem_version
             del self.info.options.pch
             del self.info.options.python_executable  # PATH to the interpreter is not important, only version matters
             if self.options.without_python:
@@ -1434,6 +1437,9 @@ def package_info(self):
         if self.options.filesystem_no_deprecated:
             self.cpp_info.components["headers"].defines.append("BOOST_FILESYSTEM_NO_DEPRECATED")
 
+        if self.options.filesystem_version is not None:
+            self.cpp_info.components["headers"].defines.append(f"BOOST_FILESYSTEM_VERSION={self.options.filesystem_version}")
+
         if self.options.segmented_stacks:
             self.cpp_info.components["headers"].defines.extend(["BOOST_USE_SEGMENTED_STACKS", "BOOST_USE_UCONTEXT"])
             


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

Issue:
upgrade protobuf dependency to 3.21.4
Specify library name and version:  

continuation of  #12079 and #12154

close #12250 (whatever is merged first)

---

- [x] I've read the [guidelines](https://github.com/conan-io/conan-center-index/blob/master/docs/how_to_add_packages.md) 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.



Discussion:
Failure in build 1 (`edf25c56ca4b281d50608e3ba5b49ed748d366f7`):

 * **grpc-proto/cci.20211106@:**
   Error running command `conan info grpc-proto/cci.20211106@#ea8dca93cfd4e39f51e92cafcc96d74c --json {jsonName} --dry-build -pr {profileName}`:
   ```
   [settings]
   arch=x86_64
   build_type=Release
   compiler=gcc
   compiler.libcxx=libstdc++11
   compiler.version=7
   os=Linux
   [options]
   grpc-proto:shared=False
   
   ...
   WARN: googleapis/cci.20220711: requirement protobuf/3.21.1 overridden by grpc-proto/cci.20211106 to protobuf/3.21.4 
   ERROR: Conflict in googleapis/cci.20220711:
       'googleapis/cci.20220711' requires 'protobuf/3.21.1' while 'grpc-proto/cci.20211106' requires 'protobuf/3.21.4'.
       To fix this conflict you need to override the package 'protobuf' in your root package.
   ```

 * **grpc-proto/cci.20220627@:**
   Didn't run or was cancelled before finishing

---

<sup>**Note:** To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.</sup>

Resolving patch:
diff --git a/recipes/grpc-proto/all/conanfile.py b/recipes/grpc-proto/all/conanfile.py
--- a/recipes/grpc-proto/all/conanfile.py
+++ b/recipes/grpc-proto/all/conanfile.py
@@ -51,11 +51,11 @@ def validate(self):
             raise ConanInvalidConfiguration("If built as shared, protobuf and googleapis must be shared as well. Please, use `protobuf:shared=True` and `googleapis:shared=True`")
 
     def requirements(self):
-        self.requires('protobuf/3.21.1')
+        self.requires('protobuf/3.21.4')
         self.requires('googleapis/cci.20220711')
 
     def build_requirements(self):
-        self.build_requires('protobuf/3.21.1')
+        self.build_requires('protobuf/3.21.4')
 
     @functools.lru_cache(1)
     def _configure_cmake(self):


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

Issue:
[package] harfbuzz/5.1.0: `option["glib"]` has no property shared when `option.with_glib = False`
### Package and Environment Details

* Package Name/Version: **harfbuzz/5.1.0**
* Operating System+version: **Win11**
* Compiler+version: **MSVC 2022**
* Conan version: **conan 1.50.2**
* Python version: **Python 3.10.4**


### Conan profile

NA

### Steps to reproduce

Set `with_glib=False`

Error `self.option["glib"].shared` does not exist.

https://github.com/conan-io/conan-center-index/blob/08dd6b30ec0c9f88c427ac14a0ece2ec51a0a43f/recipes/harfbuzz/all/conanfile.py#L84 should first check against `self.option.with_glib` before checking against `self.option["glib"].shared`

### Logs

<details><summary>Click to expand log</summary>

```
Put your log output here
```

</details>



Discussion:
Will create a PR somewhere this day

Resolving patch:
diff --git a/recipes/harfbuzz/all/conanfile.py b/recipes/harfbuzz/all/conanfile.py
--- a/recipes/harfbuzz/all/conanfile.py
+++ b/recipes/harfbuzz/all/conanfile.py
@@ -81,7 +81,7 @@ def validate(self):
             if self.settings.compiler == "gcc" and scm.Version(self.settings.compiler.version) < "7":
                 raise ConanInvalidConfiguration("New versions of harfbuzz require at least gcc 7")
 
-        if self.options["glib"].shared and microsoft.is_msvc_static_runtime(self):
+        if self.options.with_glib and self.options["glib"].shared and microsoft.is_msvc_static_runtime(self):
             raise ConanInvalidConfiguration(
                 "Linking shared glib with the MSVC static runtime is not supported"
             )


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

Issue:
[package] mosquitto/2.x: recipe does not allow setting WITH_THREADING cmake option
### Package and Environment Details

* Package Name/Version: **mosquitto/2.x**
* Operating System+version: **Linux**
* Compiler+version: **N/A**
* Docker image: **N/A**
* Conan version: **N/A**
* Python version: **N/A**

The mosquitto recipe does not allow to set the WITH_THREADING cmake option.
A boolean "threading" option should be added to the recipe, with the default value of "True".

### Conan profile

_No response_

### Steps to reproduce

_No response_

### Logs

_No response_


Discussion:

Resolving patch:
diff --git a/recipes/mosquitto/2.x/conanfile.py b/recipes/mosquitto/2.x/conanfile.py
--- a/recipes/mosquitto/2.x/conanfile.py
+++ b/recipes/mosquitto/2.x/conanfile.py
@@ -26,6 +26,7 @@ class Mosquitto(ConanFile):
         "cjson": [True, False],
         "build_cpp": [True, False],
         "websockets": [True, False],
+        "threading": [True, False],
     }
     default_options = {
         "shared": False,
@@ -37,6 +38,7 @@ class Mosquitto(ConanFile):
         "cjson": True, # https://github.com/eclipse/mosquitto/commit/bbe0afbfbe7bb392361de41e275759ee4ef06b1c
         "build_cpp": True,
         "websockets": False,
+        "threading": True,
     }
     exports_sources = ["CMakeLists.txt"]
     generators = "cmake", "cmake_find_package"
@@ -93,7 +95,7 @@ def _configure_cmake(self):
         self._cmake.definitions["WITH_APPS"] = self.options.apps
         self._cmake.definitions["WITH_PLUGINS"] = False
         self._cmake.definitions["WITH_LIB_CPP"] = self.options.build_cpp
-        self._cmake.definitions["WITH_THREADING"] = self.settings.compiler != "Visual Studio"
+        self._cmake.definitions["WITH_THREADING"] = self.settings.compiler != "Visual Studio" and self.options.threading
         self._cmake.definitions["WITH_WEBSOCKETS"] = self.options.get_safe("websockets", False)
         self._cmake.definitions["STATIC_WEBSOCKETS"] = self.options.get_safe("websockets", False) and not self.options["libwebsockets"].shared
         self._cmake.definitions["DOCUMENTATION"] = False


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

Issue:
[package] jwt-cpp/0.6.0: installing package for client version < 2.0.0 fails
### Description

Commit from [September 15](https://github.com/conan-io/conan-center-index/commit/f8181c537c2ddf3821801277c1d3e530424928dd) migrates the reciepe to Conan 2.0 and breaks compability with versions of conan < 2.0.0. But [`required_conan_version`](https://github.com/conan-io/conan-center-index/blob/f8181c537c2ddf3821801277c1d3e530424928dd/recipes/jwt-cpp/all/conanfile.py#L7) has not been updated to version 2.0.0.
Because of this the user of the package cannot get the correct error.


### Package and Environment Details

* Package Name/Version: **jwt-cpp/0.6.0**
* Operating System+version: **Linux Ubuntu 22.04**
* Compiler+version: **GCC 10**
* Conan version: **conan 1.47.0**
* Python version: **Python 3.10.4**


### Conan profile

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=10
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]



### Steps to reproduce

conan install -r conancenter jwt-cpp/0.6.0@ -pr=default

### Logs

<details><summary>Click to expand log</summary>

```
ERROR: jwt-cpp/0.6.0: Error in package_id() method, line 48
	self.info.clear()
	AttributeError: 'ConanInfo' object has no attribute 'clear'
```

</details>



Discussion:
`self.info.clear()` is available since 1.50.0 https://docs.conan.io/en/latest/reference/conanfile/methods.html#self-info-clear
@hiddenSt Most of new tools are already backported to Conan 1.x, we really want to use them, because it will become the standard on Conan 2.0 

The link that Croydon pointed is the detailed documentation, but in case you want to know about the new tools to be used, we have a clue here: https://github.com/conan-io/conan-center-index/blob/master/docs/v2_linter.md#import-tools-from-conan

Anyway, that recipe is bugged, as its required conan version is older than what is needed.

Resolving patch:
diff --git a/recipes/jwt-cpp/all/conanfile.py b/recipes/jwt-cpp/all/conanfile.py
--- a/recipes/jwt-cpp/all/conanfile.py
+++ b/recipes/jwt-cpp/all/conanfile.py
@@ -4,7 +4,7 @@
 from conan.tools.layout import basic_layout
 import os
 
-required_conan_version = ">=1.43.0"
+required_conan_version = ">=1.50.0"
 
 class JwtCppConan(ConanFile):
     name = "jwt-cpp"


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

Issue:
[request] zlib/1.2.12: Fix CVE 2022-37434
### Package Details
  * Package Name/Version: **zlib/1.2.12**
  * CVE: **https://nvd.nist.gov/vuln/detail/CVE-2022-37434**


Even zlib didn't release a new version yet, we might consider to fix the critical vulnerability



Discussion:

Resolving patch:
diff --git a/recipes/zlib/all/conanfile.py b/recipes/zlib/all/conanfile.py
--- a/recipes/zlib/all/conanfile.py
+++ b/recipes/zlib/all/conanfile.py
@@ -5,7 +5,7 @@
 from conan.tools.scm import Version
 import os
 
-required_conan_version = ">=1.46.0"
+required_conan_version = ">=1.49.0"
 
 
 class ZlibConan(ConanFile):


Test patch:
diff --git a/recipes/zlib/all/test_package/conanfile.py b/recipes/zlib/all/test_package/conanfile.py
--- a/recipes/zlib/all/test_package/conanfile.py
+++ b/recipes/zlib/all/test_package/conanfile.py
@@ -1,5 +1,5 @@
 from conan import ConanFile
-from conan.tools.build import cross_building
+from conan.tools.build import can_run
 from conan.tools.cmake import CMake, cmake_layout
 import os
 
@@ -20,6 +20,6 @@ def build(self):
         cmake.build()
 
     def test(self):
-        if not cross_building(self):
+        if can_run(self):
             bin_path = os.path.join(self.cpp.build.bindirs[0], "test_package")
             self.run(bin_path, env="conanrun")
diff --git a/recipes/zlib/all/test_v1_package/conanfile.py b/recipes/zlib/all/test_v1_package/conanfile.py
--- a/recipes/zlib/all/test_v1_package/conanfile.py
+++ b/recipes/zlib/all/test_v1_package/conanfile.py
@@ -1,4 +1,3 @@
-# pylint: skip-file
 from conans import ConanFile, CMake, tools
 import os
Repository: conan-io/conan-center-index

Issue:
[request] swig/4.1.0
### Package Details
  * Package Name/Version: **swig/4.1.0**
  * https://github.com/swig/swig/releases/tag/v4.1.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/swig/all/conanfile.py b/recipes/swig/all/conanfile.py
--- a/recipes/swig/all/conanfile.py
+++ b/recipes/swig/all/conanfile.py
@@ -26,8 +26,16 @@ def _source_subfolder(self):
     def _settings_build(self):
         return getattr(self, "settings_build", self.settings)
 
+    @property
+    def _use_pcre2(self):
+        return self.version not in ['4.0.1', '4.0.2']
+
+
     def requirements(self):
-        self.requires("pcre/8.45")
+        if self._use_pcre2:
+            self.requires("pcre2/10.40")
+        else:
+            self.requires("pcre/8.45")
 
     def build_requirements(self):
         if self._settings_build.os == "Windows" and not tools.get_env("CONAN_BASH_PATH"):
@@ -35,8 +43,8 @@ def build_requirements(self):
         if self.settings.compiler == "Visual Studio":
             self.build_requires("winflexbison/2.5.24")
         else:
-            self.build_requires("bison/3.7.6")
-        self.build_requires("automake/1.16.4")
+            self.build_requires("bison/3.8.2")
+        self.build_requires("automake/1.16.5")
 
     def package_id(self):
         del self.info.settings.compiler
@@ -83,8 +91,8 @@ def _configure_autotools(self):
 
         libargs = list("-L\"{}\"".format(p) for p in deps_libpaths) + list("-l\"{}\"".format(l) for l in deps_libs)
         args = [
-            "PCRE_LIBS={}".format(" ".join(libargs)),
-            "PCRE_CPPFLAGS={}".format(" ".join("-D{}".format(define) for define in deps_defines)),
+            "{}_LIBS={}".format("PCRE2" if self._use_pcre2 else "PCRE", " ".join(libargs)),
+            "{}_CPPFLAGS={}".format("PCRE2" if self._use_pcre2 else "PCRE", " ".join("-D{}".format(define) for define in deps_defines)),
             "--host={}".format(self.settings.arch),
             "--with-swiglibdir={}".format(self._swiglibdir),
         ]


Test patch: