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

Issue:
Wrong defines for some Qt modules in qt/5.15.x
Currently, defines for Qt modules are derived from the module name in package_info(). But, some modules require a define that differs from their module name.
E.g. QtTest requires "QT_TESTLIB_LIB" instead of just "QT_TEST_LIB" to be defined. The wrong definition may result in unexpected behaviour where code relies on the defines.
For example, Qt Creator will fail to detect Qt Tests with the Autotest framework as the detection relies on the define.

The following defines must be adapted:
* QtTest: QT_TEST_LIB -> QT_TESTLIB_LIB
* QtXcbQpa: QT_XCBQPA_LIB -> QT_XCB_QPA_LIB_LIB (double "LIB" is correct)
* All "Support" modules: QT_*SUPPORT_LIB -> QT_*_SUPPORT_LIB


Discussion:
I'm currently testing a fix locally that solves the problem in Qt Creator not finding Qt Tests in a CMake project.

As for the other defines I can confirm that with my fix they are now set correctly in the Qt5-*-data.cmake file and corresponds to the DEFINES that are set in the module qmake include "pri" file which is provided by Qt itself.

If everything works as expected I will open a pull request for review

Resolving patch:
diff --git a/recipes/qt/5.x.x/conanfile.py b/recipes/qt/5.x.x/conanfile.py
--- a/recipes/qt/5.x.x/conanfile.py
+++ b/recipes/qt/5.x.x/conanfile.py
@@ -1003,7 +1003,14 @@ def _create_module(module, requires=[], has_include_dir=True):
             self.cpp_info.components[componentname].libs = [f"Qt5{libname}{libsuffix}"]
             if has_include_dir:
                 self.cpp_info.components[componentname].includedirs = ["include", os.path.join("include", f"Qt{module}")]
-            self.cpp_info.components[componentname].defines = [f"QT_{module.upper()}_LIB"]
+            define = module.upper()
+            if define == "TEST":
+                define = "TESTLIB"
+            elif define == "XCBQPA":
+                define = "XCB_QPA_LIB"
+            elif define.endswith("SUPPORT"):
+                define = define.replace("SUPPORT", "_SUPPORT")
+            self.cpp_info.components[componentname].defines = [f"QT_{define}_LIB"]
             if module != "Core" and "Core" not in requires:
                 requires.append("Core")
             self.cpp_info.components[componentname].requires = _get_corrected_reqs(requires)


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

Issue:
[package] xorg-makedepend/any: Homepage url incorrect
### Description

In the `xorg-makedepend` recipe the homepage url is incorrectly set to "https://gitlab.freedesktop.org/xorg/util/cf" which is a different repository in the same group, the correct repository url is "https://gitlab.freedesktop.org/xorg/util/makedepend". This should be changed accordingly.

To be fixed in https://github.com/conan-io/conan-center-index/blob/master/recipes/xorg-makedepend/all/conanfile.py

### Package and Environment Details

* Package Name/Version: xorg-makedepend/any
* Operating System+version: n/a
* Compiler+version: n/a
* Docker image: n/a
* Conan version: n/a
* Python version: n/a


### Conan profile

n/a

### Steps to reproduce

n/a

### Logs

n/a


Discussion:

Resolving patch:
diff --git a/recipes/xorg-makedepend/all/conanfile.py b/recipes/xorg-makedepend/all/conanfile.py
--- a/recipes/xorg-makedepend/all/conanfile.py
+++ b/recipes/xorg-makedepend/all/conanfile.py
@@ -14,7 +14,7 @@ class XorgMakedepend(ConanFile):
     description = "Utility to parse C source files to make dependency lists for Makefiles"
     topics = ("xorg", "dependency", "obsolete")
     license = "MIT"
-    homepage = "https://gitlab.freedesktop.org/xorg/util/cf"
+    homepage = "https://gitlab.freedesktop.org/xorg/util/makedepend"
     url = "https://github.com/conan-io/conan-center-index"
     settings = "os", "arch", "compiler", "build_type"
 


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

Issue:
[package] fakeit/*: Package id ignores options
### Description

The `fakeit` option for integration is meant to select the correct header file for the matching integration, as there are different header files based on the integration chosen e.g. `gtest`, `boost`, `standalone`.

These options can be seen in the recipe.
Including the package step in the recipe which copies a different header based on the `integration` option

The link for the source shows the separate header files in it under the `single_header` folder: https://github.com/eranpeer/FakeIt/releases/tag/2.3.2

The problem is that there is only one package and it contains the header for the `standalone` `integration` option only.

At least part of the cause of the problem can be seen in the recipe file with the `package_id()`

The package id for fakeit is ignore the option `integration` which changes which header file is used for the package (and package id)
Currently the recipe specifies:
```
    def package_id(self):
        self.info.header_only()
```

But the header_only is designed to ignore options, which is incorrect in this case, as we have a different header filee to package based on the integrated test library e.g. gtest or boost (or standalone).

```
    def header_only(self):
        self.settings.clear()
        self.options.clear()
        self.requires.clear()
```


### Package and Environment Details

* Package Name/Version: **fakeit/\***
* Operating System+version: **All**
* Compiler+version: **All**
* Docker image: **All**
* Conan version: **All**
* Python version: **All**


### Conan profile

[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=16
build_type=Debug
[options]
[conf]
[build_requires]
[env]

### Steps to reproduce

conan install .

### Logs

<details><summary>Click to expand log</summary>

```
Build requirements
    fakeit/2.3.2 from 'conan-center' - Cache
    gtest/1.11.0 from 'conan-center' - Cache
Build requirements packages
    fakeit/2.3.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache
    gtest/1.11.0:875c67f4d8a79bdd002908b75efce119eb82836d - Cache
```

</details>



Discussion:

Resolving patch:
diff --git a/recipes/fakeit/all/conanfile.py b/recipes/fakeit/all/conanfile.py
--- a/recipes/fakeit/all/conanfile.py
+++ b/recipes/fakeit/all/conanfile.py
@@ -48,7 +48,10 @@ def requirements(self):
             raise ConanInvalidConfiguration("%s is not (yet) available on cci" % self.options.integration)
 
     def package_id(self):
-        self.info.clear()
+        # The "integration" option must be kept because it will impact which header is packaged,
+        # therefor self.info.clear() cannot be used.
+        self.info.settings.clear()
+        self.info.requires.clear()
 
     def validate(self):
         if self.settings.compiler.get_safe("cppstd"):


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

Issue:
[package] expat/all: EXPAT_LARGE_SIZE not defined / no option 
### Description

Some Expat features do not work when xml files are >2GB on some systems (Windows or any system with 32bit `long`). It would be useful if the EXPAT_LARGE_SIZE configuration option was exposed within the conan configuration. According to expat "It may not be supported by all compilers, and is turned off by default." (imho I think it should be on by default)

The test code within conan-centre is actually already designed around having the flag as configuring with EXPAT_LARGE_SIZE should set the XML_LARGE_SIZE define. This would need to be taken into account if adding this option.

### Package and Environment Details

* Package Name/Version: **expat/2.x**
* Operating System+version: **Windows 10**
* Compiler+version: **MSVC 2017**
* Conan version: **conan 1.56**
* Python version: **Python 3.8**


### Conan profile

[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.runtime=MD
compiler.toolset=v142
compiler.version=16
compiler.cppstd=17
os=Windows
os_build=Windows
[options]
[conf]
[build_requires]
[env]


### Steps to reproduce

`conan install -r expat/2.5.0`

Open a very large xml file. Use `XML_GetCurrentByteIndex` on an element that is beyond the 2GB line. Return value will be invalid.

### Logs

N/A



Discussion:

Resolving patch:
diff --git a/recipes/expat/all/conanfile.py b/recipes/expat/all/conanfile.py
--- a/recipes/expat/all/conanfile.py
+++ b/recipes/expat/all/conanfile.py
@@ -20,11 +20,13 @@ class ExpatConan(ConanFile):
         "shared": [True, False],
         "fPIC": [True, False],
         "char_type": ["char", "wchar_t", "ushort"],
+        "large_size": [True, False],
     }
     default_options = {
         "shared": False,
         "fPIC": True,
         "char_type": "char",
+        "large_size": False,
     }
 
     def export_sources(self):
@@ -57,6 +59,7 @@ def generate(self):
         if is_msvc(self):
             tc.variables["EXPAT_MSVC_STATIC_CRT"] = is_msvc_static_runtime(self)
         tc.variables["EXPAT_BUILD_PKGCONFIG"] = False
+        tc.variables["EXPAT_LARGE_SIZE"] = self.options.large_size
         tc.generate()
 
     def build(self):
@@ -88,6 +91,8 @@ def package_info(self):
             self.cpp_info.defines.append("XML_UNICODE")
         elif self.options.get_safe("char_type") == "wchar_t":
             self.cpp_info.defines.append("XML_UNICODE_WCHAR_T")
+        if self.options.large_size:
+            self.cpp_info.defines.append("XML_LARGE_SIZE")
 
         if self.settings.os in ["Linux", "FreeBSD"]:
             self.cpp_info.system_libs.append("m")


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

Issue:
[request] minizip-ng/4.0.0
### Package Name/Version

minizip-ng/4.0.0

### Changelog

https://github.com/zlib-ng/minizip-ng/releases/tag/4.0.0

### Context about the new update

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/minizip-ng/all/conanfile.py b/recipes/minizip-ng/all/conanfile.py
--- a/recipes/minizip-ng/all/conanfile.py
+++ b/recipes/minizip-ng/all/conanfile.py
@@ -99,6 +99,8 @@ def requirements(self):
     def build_requirements(self):
         if self._needs_pkg_config:
             self.tool_requires("pkgconf/1.9.3")
+        if Version(self.version) >= "4.0.0":
+            self.tool_requires("cmake/[>=3.19 <4]")
 
     def source(self):
         get(self, **self.conan_data["sources"][self.version], strip_root=True)
@@ -136,9 +138,14 @@ def generate(self):
 
     def _patch_sources(self):
         apply_conandata_patches(self)
-        replace_in_file(self, os.path.join(self.source_folder, "CMakeLists.txt"),
-                              "set_target_properties(${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE 1)",
-                              "")
+        if Version(self.version) < "4.0.0":
+            replace_in_file(self, os.path.join(self.source_folder, "CMakeLists.txt"),
+                                  "set_target_properties(${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE 1)",
+                                  "")
+        else:
+            replace_in_file(self, os.path.join(self.source_folder, "CMakeLists.txt"),
+                                  "set_target_properties(${MINIZIP_TARGET} PROPERTIES POSITION_INDEPENDENT_CODE 1)",
+                                  "")
 
     def build(self):
         self._patch_sources()
@@ -169,6 +176,9 @@ def package_info(self):
         if self.options.with_bzip2:
             self.cpp_info.components["minizip"].defines.append("HAVE_BZIP2")
 
+        if Version(self.version) >= "4.0.0":
+            self.cpp_info.components["minizip"].includedirs.append(os.path.join("include", "minizip-ng"))
+
         # TODO: to remove in conan v2 once cmake_find_package_* generators removed
         self.cpp_info.filenames["cmake_find_package"] = "minizip"
         self.cpp_info.filenames["cmake_find_package_multi"] = "minizip"
@@ -192,3 +202,6 @@ def package_info(self):
             self.cpp_info.components["minizip"].frameworks.extend(["CoreFoundation", "Security"])
         if self.settings.os != "Windows" and self.options.with_iconv:
             self.cpp_info.components["minizip"].requires.append("libiconv::libiconv")
+
+
+


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

Issue:
[package] libmount/*: Incorrect license is declared
### Description

The `libmount` package reports a `GPL-2.0-or-later` license but this is incorrect. It is licensed under the LGPL-2.1-or-later: https://github.com/util-linux/util-linux/blob/master/libmount/COPYING

### Package and Environment Details

N/A

### Conan profile

N/A

### Steps to reproduce

N/A

### Logs

N/A


Discussion:

Resolving patch:
diff --git a/recipes/libmount/all/conanfile.py b/recipes/libmount/all/conanfile.py
--- a/recipes/libmount/all/conanfile.py
+++ b/recipes/libmount/all/conanfile.py
@@ -17,7 +17,7 @@ class LibmountConan(ConanFile):
     topics = ("mount", "linux", "util-linux")
     url = "https://github.com/conan-io/conan-center-index"
     homepage = "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git"
-    license = "GPL-2.0-or-later"
+    license = "LGPL-2.1-or-later"
 
     package_type = "library"
     settings = "os", "arch", "compiler", "build_type"


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

Issue:
[package] breakpad/cci.20210521: Compilation error with gcc 11
### Description

Fails to compile with gcc 11 on Ubuntu 22.04:
```cxx
exception_handler.cc:141:49: error: no matching function for call to ‘max(int, long int)’
polaris-jammy                |   141 |   static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
polaris-jammy                |       |                                         ~~~~~~~~^~~~~~~~~~~~~~~~~

```

### Package and Environment Details

* Package Name/Version: **breakpad/cci.20210521**
* Operating System+version: **Linux Ubuntu 22.04**
* Compiler+version: **GCC 11**


### Conan profile

[settings]
os=Linux
arch=x64
compiler=gcc
compiler.version=111
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]


### Steps to reproduce

conan install -r conancenter breakpad/cci.20210521

### Logs

-


Discussion:

Resolving patch:
diff --git a/recipes/breakpad/all/conanfile.py b/recipes/breakpad/all/conanfile.py
--- a/recipes/breakpad/all/conanfile.py
+++ b/recipes/breakpad/all/conanfile.py
@@ -31,7 +31,7 @@ def layout(self):
         basic_layout(self, src_folder="src")
 
     def requirements(self):
-        self.requires("linux-syscall-support/cci.20200813")
+        self.requires("linux-syscall-support/cci.20200813", transitive_headers=True)
 
     def validate(self):
         if self.settings.os != "Linux":


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

Issue:
[gdcm] cannot be used with fontconfig on linux (libuuid conflict)
### Description

On linux, if your package require both gdcm and fontconfig the conan install command fails with the following error:
```
ERROR: At least two recipes provides the same functionality:
 - 'libuuid' provided by 'libuuid/1.0.3', 'util-linux-libuuid/2.39'
```
This issue appeared with https://github.com/conan-io/conan-center-index/pull/17995

Note we do not use directly gdcm or fontconfig, but qt requires fontconfig and itk requires gdcm.

### Package and Environment Details

* Package Name/Version: **gdcm/3.0.21**
* Operating System+version: **Linux Ubuntu 22.10**
* Compiler+version: **GCC 10**
* Conan version: **conan 1.60.1**
* Python version: **Python 3.10.7**


### 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 new test_libuuid/1.0.0`

Add
```
    def requirements(self):
        self.requires("gdcm/3.0.21")
        self.requires("fontconfig/2.13.93")
        self.requires("expat/2.5.0")
```

conan install . --update

### Logs

<details><summary>Click to expand log</summary>

```
ERROR: At least two recipes provides the same functionality:
 - 'libuuid' provided by 'libuuid/1.0.3', 'util-linux-libuuid/2.39'
```

</details>



Discussion:

Resolving patch:
diff --git a/recipes/gdcm/all/conanfile.py b/recipes/gdcm/all/conanfile.py
--- a/recipes/gdcm/all/conanfile.py
+++ b/recipes/gdcm/all/conanfile.py
@@ -63,7 +63,7 @@ def requirements(self):
         else:
             self.requires("zlib/1.2.13")
         if self.settings.os != "Windows":
-            self.requires("libuuid/1.0.3")
+            self.requires("util-linux-libuuid/2.39")
             if Version(self.version) >= Version("3.0.20"):
                 self.requires("libiconv/1.17")
         if self.options.with_json:
@@ -241,7 +241,7 @@ def zlib():
         if self.options.with_json:
             self.cpp_info.components["gdcmMSFF"].requires.append("json-c::json-c")
         if self.settings.os != "Windows":
-            self.cpp_info.components["gdcmMSFF"].requires.append("libuuid::libuuid")
+            self.cpp_info.components["gdcmMSFF"].requires.append("util-linux-libuuid::util-linux-libuuid")
             if Version(self.version) >= Version("3.0.20"):
                 self.cpp_info.components["gdcmMSFF"].requires.append("libiconv::libiconv")
         if not self.options.shared:


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

Issue:
[package] clickhouse-cpp/*: fPIC option is not respected
In the recipe file fPIC option is always removed during configure stage, which can lead to not working static library.


Discussion:

Resolving patch:
diff --git a/recipes/clickhouse-cpp/all/conanfile.py b/recipes/clickhouse-cpp/all/conanfile.py
--- a/recipes/clickhouse-cpp/all/conanfile.py
+++ b/recipes/clickhouse-cpp/all/conanfile.py
@@ -75,7 +75,8 @@ def config_options(self):
             del self.options.fPIC
 
     def configure(self):
-        self.options.rm_safe("fPIC")
+        if self.options.shared:
+            self.options.rm_safe("fPIC")
 
     def layout(self):
         cmake_layout(self, src_folder="src")


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

Issue:
[package] util-linux-libuuid uses wrong cmake target
### Description

In the following lines, the `util-linux-libuuid` recipe sets the cmake target to be `LibUUID::LibUUID` with a filename of `LibUUID-config.cmake`:

https://github.com/conan-io/conan-center-index/blob/61c4f7819e6cd3594a57f6c3847f94ab86de623f/recipes/util-linux-libuuid/all/conanfile.py#L112-L113

This was based on the internal practice that Kitware has for their internal libuuid cmake module, however this is not public and a number of packages (czmq, cppcommon) seem to assume a `libuuid::libuuid` target. These change should be reverted such that these packages can utilise util-linux-libuuid without a requirement to be patched.

### Package and Environment Details

N/A

### Conan profile

N/A


### Steps to reproduce

N/A

### Logs

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



Discussion:

Resolving patch:
diff --git a/recipes/util-linux-libuuid/all/conanfile.py b/recipes/util-linux-libuuid/all/conanfile.py
--- a/recipes/util-linux-libuuid/all/conanfile.py
+++ b/recipes/util-linux-libuuid/all/conanfile.py
@@ -109,7 +109,10 @@ def package(self):
 
     def package_info(self):
         self.cpp_info.set_property("pkg_config_name", "uuid")
-        self.cpp_info.set_property("cmake_target_name", "LibUUID::LibUUID")
-        self.cpp_info.set_property("cmake_file_name", "LibUUID")
+        self.cpp_info.set_property("cmake_target_name", "libuuid::libuuid")
+        self.cpp_info.set_property("cmake_file_name", "libuuid")
+        # Maintain alias to `LibUUID::LibUUID` for previous version of the recipe
+        self.cpp_info.set_property("cmake_target_aliases", ["LibUUID::LibUUID"])
+
         self.cpp_info.libs = ["uuid"]
         self.cpp_info.includedirs.append(os.path.join("include", "uuid"))


Test patch:
diff --git a/recipes/util-linux-libuuid/all/test_package/CMakeLists.txt b/recipes/util-linux-libuuid/all/test_package/CMakeLists.txt
--- a/recipes/util-linux-libuuid/all/test_package/CMakeLists.txt
+++ b/recipes/util-linux-libuuid/all/test_package/CMakeLists.txt
@@ -1,8 +1,8 @@
 cmake_minimum_required(VERSION 3.8)
 project(test_package LANGUAGES C)
 
-find_package(LibUUID REQUIRED CONFIG)
+find_package(libuuid REQUIRED CONFIG)
 
 add_executable(${PROJECT_NAME} test_package.c)
-target_link_libraries(${PROJECT_NAME} PRIVATE LibUUID::LibUUID)
+target_link_libraries(${PROJECT_NAME} PRIVATE libuuid::libuuid)
 target_compile_features(${PROJECT_NAME} PRIVATE c_std_99)
Repository: conan-io/conan-center-index

Issue:
[request] fast-cdr/1.1.0
### Package Name/Version

fast-cdr/1.1.0

### Changelog

https://github.com/eProsima/Fast-CDR/releases/tag/v1.1.0

### Context about the new update

The Conan Center Bot detects the updatable recipe in #3470.
Open branch [qchateau/conan-center-index/ccb-fast-cdr-1.1.0](https://github.com/qchateau/conan-center-index/tree/ccb-fast-cdr-1.1.0)


Discussion:

Resolving patch:
diff --git a/recipes/fast-cdr/all/conanfile.py b/recipes/fast-cdr/all/conanfile.py
--- a/recipes/fast-cdr/all/conanfile.py
+++ b/recipes/fast-cdr/all/conanfile.py
@@ -4,6 +4,7 @@
 from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
 from conan.tools.files import collect_libs, copy, get, rm, rmdir, save
 from conan.tools.microsoft import is_msvc, is_msvc_static_runtime
+from conan.tools.scm import Version
 import os
 import textwrap
 
@@ -40,6 +41,10 @@ def configure(self):
     def layout(self):
         cmake_layout(self, src_folder="src")
 
+    def build_requirements(self):
+        if Version(self.version) >= "1.1.0":
+            self.tool_requires("cmake/[>=3.16.3 <4]")
+
     def validate(self):
         if self.settings.compiler.get_safe("cppstd"):
             check_min_cppstd(self, 11)


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

Issue:
[package] sail/0.9.0-rc2: PR broke the package
### Description

I've just noticed that the V2 version of sail suddenly disappeared from the center. This was caused by https://github.com/conan-io/conan-center-index/pull/18454

Please please please don't merge pull requests that break packages! Could you please also revert the PR? I have no access to the computer right now.

### Package and Environment Details

All envs

### Conan profile

All profiles

### Steps to reproduce

No steps

### Logs

No logs


Discussion:

Resolving patch:
diff --git a/recipes/sail/all/conanfile.py b/recipes/sail/all/conanfile.py
--- a/recipes/sail/all/conanfile.py
+++ b/recipes/sail/all/conanfile.py
@@ -104,11 +104,6 @@ def generate(self):
         # TODO: Remove after fixing https://github.com/conan-io/conan/issues/12012
         if is_msvc(self):
             tc.cache_variables["CMAKE_TRY_COMPILE_CONFIGURATION"] = str(self.settings.build_type)
-        # TODO: Remove after fixing https://github.com/conan-io/conan-center-index/issues/13159
-        # C3I workaround to force CMake to choose the highest version of
-        # the windows SDK available in the system
-        if is_msvc(self) and not self.conf.get("tools.cmake.cmaketoolchain:system_version"):
-            tc.variables["CMAKE_SYSTEM_VERSION"] = "10.0"
         tc.generate()
 
         deps = CMakeDeps(self)


Test patch: