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

Issue:
[package] libcurl: Enable debug build
When attempting to debug and application using `libcurl`, we had no debug info despite having built the package with `-s built_type=Debug`

### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **libcurl/all**
  * Operating System+version: **Linux Ubuntu 18.04**
  * Compiler+version: **GCC 7**
  * Docker image: **conanio/centos6-gcc7**
  * Conan version: **conan 1.28.1**
  * Python version: **Python 3.6.9**

### Steps to reproduce (Include if Applicable)

Attempt to set breakpoints in `libcurl` or step into it from a debugger after building a Debug package and linking with a debug-able executable.

Breakpoint cannot be set even though `libcurl` was statically linked and build as a `Debug` package.
```
(gdb) b setup.c:2887                           
No source file named setup.c.
Make breakpoint pending on future shared library load? (y or [n]) n
```


Expected result:

```
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/cbdaemon...done.
(gdb) b setopt.c:2887
Breakpoint 1 at 0x2dd819: file setopt.c, line 2887.
(gdb) r -f
Starting program: /root/./cbdaemon -f
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7ffff6bc5700 (LWP 4253)]
[New Thread 0x7ffff63c4700 (LWP 4254)]
[New Thread 0x7ffff5bc3700 (LWP 4255)]
---------------------------------------------------------------------------
sensor started, press CTRL-C exit
---------------------------------------------------------------------------
[Switching to Thread 0x7ffff5bc3700 (LWP 4255)]
Breakpoint 1, curl_easy_setopt (data=0x7fffec01c648, tag=CURLOPT_WRITEFUNCTION)
    at setopt.c:2889
2889    setopt.c: No such file or directory.
(gdb) list
2884    in setopt.c
(gdb) s
2892    in setopt.c
(gdb) print result
(gdb) print result
$1 = 21845
(gdb) print arg
$2 = {{gp_offset = 3959425544, fp_offset = 32767, overflow_arg_area = 0x21, 
    reg_save_area = 0x7ffff5bc1e80}}
(gdb) print tag
$3 = CURLOPT_WRITEFUNCTION
```



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
@@ -226,6 +226,9 @@ def _get_configure_command_args(self):
         if not self.options.with_ldap:
             params.append("--disable-ldap")
 
+        if self.settings.build_type == "Debug":
+           params.append("--enable-debug")
+
         # Cross building flags
         if tools.cross_building(self.settings):
             if self.settings.os == "Linux" and "arm" in self.settings.arch:


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

Issue:
[package] boost/1.73.0: header-only version has (unnecessary) dependency to b2
<!-- 
  Please don't forget to update the issue title.
  Include all applicable information to help us reproduce your problem.
-->

### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **boost/1.73.0**
  * Operating System+version: **Linux Ubuntu 20.04**
  * Compiler+version: **GCC 10**


### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)
```
Put your profile output here
```


### Steps to reproduce (Include if Applicable)

Build boost with the following command line:

    conan create -s compiler.version=10 -o boost:header_only=True -o boost:error_code_header_only=True . boost/1.73.0@fschoenm/testing

This should create a header-only package of boost but still has a build dependency to b2. Commenting out that dependency still creates the package so it seems to be not needed.


Discussion:
`b2` is added as a build requirement, which means it's only added while creating the boost package.
So when using the header-only boost package, `b2` will not be inserted in the dependency tree.

But indeed, the `b2` should be added conditionally when `self.options.header_only` is true.
> b2 is added as a build requirement, which means it's only added while creating the boost package.

Yeah I know. Still it's unnecessary and I don't have it on my machine. So it'd be nice if it could be removed. 

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
@@ -141,8 +141,12 @@ def configure(self):
                 if not self.options.get_safe('without_%s' % lib):
                     raise ConanInvalidConfiguration("Boost '%s' library requires multi threading" % lib)
 
+        if self.settings.compiler == "Visual Studio" and "MT" in self.settings.compiler.runtime and self.options.shared:
+            raise ConanInvalidConfiguration("Boost can not be built as shared library with MT runtime.")
+
     def build_requirements(self):
-        self.build_requires("b2/4.2.0")
+        if not self.options.header_only:
+            self.build_requires("b2/4.2.0")
 
     def requirements(self):
         if self._zip_bzip2_requires_needed:


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

Issue:
[package] apr/1.7.0: Missing Rpcrt4 for windows static library.
apr when used on windows linked as static throws missing UuidCreate definition.
Solution is to link it with Rpcrt4
apache-apr/1.6.3@jgsogo/testing have this library linked

### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **apr/1.7.0**
  * Operating System+version: **Windows**


Discussion:

Resolving patch:
diff --git a/recipes/apr/all/conanfile.py b/recipes/apr/all/conanfile.py
--- a/recipes/apr/all/conanfile.py
+++ b/recipes/apr/all/conanfile.py
@@ -118,6 +118,8 @@ def package_info(self):
             self.cpp_info.defines = ["APR_DECLARE_STATIC"]
             if self.settings.os == "Linux":
                 self.cpp_info.system_libs = ["dl", "pthread"]
+            if self.settings.os == "Windows":
+                self.cpp_info.system_libs = ["rpcrt4"]
 
         apr_root = self.package_folder
         if tools.os_info.is_windows:


Test patch:
diff --git a/recipes/apr/all/test_package/CMakeLists.txt b/recipes/apr/all/test_package/CMakeLists.txt
--- a/recipes/apr/all/test_package/CMakeLists.txt
+++ b/recipes/apr/all/test_package/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8.11)
+cmake_minimum_required(VERSION 3.1)
 project(test_package LANGUAGES C)
 
 include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
Repository: conan-io/conan-center-index

Issue:
[request] <SQLiteCpp>/<3.0.0>
### Package Details
  * Package Name/Version: **SQLiteCpp/3.0.0**
  * Changelog: **https://github.com/SRombauts/SQLiteCpp/releases/tag/3.0.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/sqlitecpp/all/conanfile.py b/recipes/sqlitecpp/all/conanfile.py
--- a/recipes/sqlitecpp/all/conanfile.py
+++ b/recipes/sqlitecpp/all/conanfile.py
@@ -19,7 +19,7 @@ class SQLiteCppConan(ConanFile):
                        "fPIC": True,
                        "lint": False
                        }
-    requires = ("sqlite3/3.30.1")
+    requires = ("sqlite3/3.32.3")
 
     @property
     def _source_subfolder(self):
@@ -49,7 +49,8 @@ def source(self):
     def _patch_clang(self):
         if self.settings.compiler == "clang" and \
            Version(self.settings.compiler.version) < "6.0" and \
-           self.settings.compiler.libcxx == "libc++":
+           self.settings.compiler.libcxx == "libc++" and \
+           Version(self.version) < "3":
             tools.replace_in_file(
                 os.path.join(self._source_subfolder, "include", "SQLiteCpp", "Utils.h"),
                 "const nullptr_t nullptr = {};",


Test patch:
diff --git a/recipes/sqlitecpp/all/test_package/CMakeLists.txt b/recipes/sqlitecpp/all/test_package/CMakeLists.txt
--- a/recipes/sqlitecpp/all/test_package/CMakeLists.txt
+++ b/recipes/sqlitecpp/all/test_package/CMakeLists.txt
@@ -1,10 +1,9 @@
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.4)
 project(test_package)
 
-set(CMAKE_VERBOSE_MAKEFILE TRUE)
-
 include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
 conan_basic_setup()
 
 add_executable(${PROJECT_NAME} test_package.cpp)
-target_link_libraries(${PROJECT_NAME} ${CONAN_LIBS})
\ No newline at end of file
+target_link_libraries(${PROJECT_NAME} ${CONAN_LIBS})
+set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 11)
Repository: conan-io/conan-center-index

Issue:
[package] poco/1.10.1: CMake error Could NOT find ODBC with gcc9 and poco:enable_data_odbc=True
<!-- 
  Please don't forget to update the issue title.
  Include all applicable information to help us reproduce your problem.
-->

### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **poco/1.10.1**
  * Operating System+version: **Linux Ubuntu 20.04.1**
  * Compiler+version: **GCC 9**
  * Conan version: **conan 1.30.2**
  * Python version: **Python 3.8.5**


### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)
```
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=9
compiler.libcxx=libstdc++
build_type=Release
[options]
[build_requires]
[env]
```


### Steps to reproduce (Include if Applicable)

Build `poco/1.10.1` with gcc9 and `-o poco:enable_data_odbc=True`. 

The problem is a missing requirement.  I will submit a PR to fix.

### Logs (Include/Attach if Applicable)
<details><summary>Click to expand log</summary>

```
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find ODBC (missing: ODBC_LIBRARY ODBC_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  source_subfolder/cmake/FindODBC.cmake:123 (find_package_handle_standard_args)
  source_subfolder/CMakeLists.txt:145 (find_package)
```

</details>



Discussion:

Resolving patch:
diff --git a/recipes/poco/all/conanfile.py b/recipes/poco/all/conanfile.py
--- a/recipes/poco/all/conanfile.py
+++ b/recipes/poco/all/conanfile.py
@@ -139,6 +139,8 @@ def requirements(self):
                 self.options.enable_crypto or \
                 self.options.get_safe("enable_jwt", False):
             self.requires("openssl/1.1.1h")
+        if self.options.enable_data_odbc and self.settings.os != "Windows":
+            self.requires("odbc/2.3.7")
 
     def _patch_sources(self):
         for patch in self.conan_data.get("patches", {}).get(self.version, []):
@@ -207,5 +209,7 @@ def package_info(self):
             self.cpp_info.defines.append("POCO_STATIC=ON")
             if self.settings.os == "Windows":
                 self.cpp_info.system_libs.extend(["ws2_32", "iphlpapi", "crypt32"])
+                if self.options.enable_data_odbc:
+                    self.cpp_info.system_libs.extend(["odbc32", "odbccp32"])
         self.cpp_info.names["cmake_find_package"] = "Poco"
         self.cpp_info.names["cmake_find_package_multi"] = "Poco"


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

Issue:
[request] restinio/0.6.11
### Package Details
  * Package Name/Version: **restinio/0.6.11**
  * Changelog: **https://github.com/Stiffstream/restinio/releases/tag/v.0.6.11**

currently available is `0.6.10`. Yesterday the version `0.6.11` got tagged.

The above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.
It's a only a patch update. I guess the pull request should look like https://github.com/conan-io/conan-center-index/pull/2627/files

Thank for your time!


Discussion:

Resolving patch:
diff --git a/recipes/restinio/all/conanfile.py b/recipes/restinio/all/conanfile.py
--- a/recipes/restinio/all/conanfile.py
+++ b/recipes/restinio/all/conanfile.py
@@ -94,7 +94,7 @@ def _configure_cmake(self):
         return self._cmake
 
     def package(self):
-        self.copy("LICENSE*", src=self._source_subfolder, dst="licenses")
+        self.copy("LICENSE", src=self._source_subfolder, dst="licenses")
         cmake = self._configure_cmake()
         cmake.install()
         tools.rmdir(os.path.join(self.package_folder, "lib"))


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

Issue:
[package] folly/2020.08.10.00: Compile errors on devtoolset-4 gcc5
<!-- 
  Please don't forget to update the issue title.
  Include all applicable information to help us reproduce your problem.
-->

### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **folly/2020.08.10.00**
  * Operating System+version: **Red Hat Enterprise 6**
  * Compiler+version: **GCC 5.3.1 from devtoolset-4**
  * Conan version: **conan 1.29.1**
  * Python version: **Python 3.7.4**


### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)
```
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=5
compiler.libcxx=libstdc++
build_type=Debug
[options]
[build_requires]
[env]
```


### Steps to reproduce (Include if Applicable)

Build recipe using gcc 5.3.1 (devtoolset-4) on RHEL6.  There are two compile errors:

```
/userhome/epederson/.conan/data/folly/2020.08.10.00/test/test/build/21e92cd0e529b036c562d4dfa4ad1adfee8a5c75/source_subfolder/folly/portability/Time.cpp:278:2: error: #error No clock_gettime(3) compatibility wrapper available for this platform.
 #error No clock_gettime(3) compatibility wrapper available for this platform.
  ^
gmake[2]: *** [source_subfolder/CMakeFiles/folly_base.dir/folly/portability/Time.cpp.o] Error 1
```

```
/userhome/epederson/.conan/data/folly/2020.08.10.00/test/test/build/21e92cd0e529b036c562d4dfa4ad1adfee8a5c75/source_subfolder/folly/Benchmark.cpp:340:30: error: expected ‘)’ before ‘PRId64’
               printf("  %-*" PRId64, int(name.length()), ptr->value);
                              ^
```

I will submit a PR with a fix.


Discussion:

Resolving patch:
diff --git a/recipes/folly/all/conanfile.py b/recipes/folly/all/conanfile.py
--- a/recipes/folly/all/conanfile.py
+++ b/recipes/folly/all/conanfile.py
@@ -179,7 +179,7 @@ def package_info(self):
         if Version(self.version) >= "2020.08.10.00":
             self.cpp_info.components["libfolly"].requires.append("fmt::fmt")
         if self.settings.os == "Linux":
-            self.cpp_info.components["libfolly"].system_libs.extend(["pthread", "dl"])
+            self.cpp_info.components["libfolly"].system_libs.extend(["pthread", "dl", "rt"])
         elif self.settings.os == "Windows":
             self.cpp_info.components["libfolly"].system_libs.extend(["ws2_32", "Iphlpapi", "Crypt32"])
         if (self.settings.os == "Linux" and self.settings.compiler == "clang" and


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

Issue:
[package] protobuf cannot be compiled as shared
Apparently an `if` protecting code supposed to be only for Windows was removed during last PR development and we have this on master:
```
$ conan create . protobuf/3.12.4@ -o protobuf:shared=True
Exporting package recipe
protobuf/3.12.4 exports: File 'conandata.yml' found. Exporting it...
protobuf/3.12.4 exports: Copied 1 '.yml' file: conandata.yml
protobuf/3.12.4 exports_sources: Copied 1 '.txt' file: CMakeLists.txt
protobuf/3.12.4 exports_sources: Copied 2 '.patch' files: upstream-issue-7567-no-export-template-define.patch, upstream-pr-7761-cmake-regex-fix.patch
protobuf/3.12.4: A new conanfile.py version was exported
protobuf/3.12.4: Folder: /home/pfarre/.conan/data/protobuf/3.12.4/_/_/export
protobuf/3.12.4: Exported revision: fcab376e471eb6443f1f3fd012065226
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++
compiler.version=9
os=Linux
os_build=Linux
[options]
protobuf:shared=True
[build_requires]
[env]

ERROR: protobuf/3.12.4: Invalid configuration: On Windows Protobuf can only be built with Visual Studio 2015 or higher.

```

_Originally posted by @Hopobcn in https://github.com/conan-io/conan-center-index/pull/2037#discussion_r524673470_


Discussion:

Resolving patch:
diff --git a/recipes/protobuf/all/conanfile.py b/recipes/protobuf/all/conanfile.py
--- a/recipes/protobuf/all/conanfile.py
+++ b/recipes/protobuf/all/conanfile.py
@@ -48,16 +48,16 @@ def configure(self):
         if self.options.shared:
             del self.options.fPIC
 
-            compiler_version = Version(self.settings.compiler.version.value)
-            if compiler_version < "14":
-                raise ConanInvalidConfiguration("On Windows Protobuf can only be built with "
-                                                "Visual Studio 2015 or higher.")
-            if self.options.shared and "MT" in self.settings.compiler.runtime:
-                raise ConanInvalidConfiguration("Protobuf can't be build with shared + MT(d) runtimes")
+            if self.settings.os == "Windows" and self.settings.compiler in ["Visual Studio", "clang"] and "MT" in self.settings.compiler.runtime:
+                raise ConanInvalidConfiguration("Protobuf can't be built with shared + MT(d) runtimes")
 
-        if tools.is_apple_os(self.settings.os) and self.options.shared:
-            raise ConanInvalidConfiguration("Protobuf could not be build as shared library for Mac.")
+            if tools.is_apple_os(self.settings.os):
+                raise ConanInvalidConfiguration("Protobuf could not be built as shared library for Mac.")
 
+        if self.settings.compiler == "Visual Studio":
+            if Version(self.settings.compiler.version) < "14":
+                raise ConanInvalidConfiguration("On Windows Protobuf can only be built with "
+                                                "Visual Studio 2015 or higher.")
     def requirements(self):
         if self.options.with_zlib:
             self.requires("zlib/1.2.11")


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

Issue:
[request] cpr/1.5.2
### Package Details
  * Package Name/Version: **cpr/1.5.2**
  * Changelog: **https://github.com/whoshuu/cpr/releases/tag/1.5.2**
  * Source code: **https://github.com/whoshuu/cpr**

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/cpr/all/conanfile.py b/recipes/cpr/all/conanfile.py
--- a/recipes/cpr/all/conanfile.py
+++ b/recipes/cpr/all/conanfile.py
@@ -34,9 +34,6 @@ def config_options(self):
     def configure(self):
         if self.options.shared:
             del self.options.fPIC
-        if self.options.with_openssl:
-            # If using OpenSSL, we need it to be active in libcurl too
-            self.options["libcurl"].with_openssl = True
 
     def source(self):
         tools.get(**self.conan_data["sources"][self.version])
@@ -67,6 +64,8 @@ def _configure_cmake(self):
         return cmake
 
     def build(self):
+        if self.options.with_openssl and self.options["libcurl"].with_ssl != "openssl":
+            raise ConanInvalidConfiguration("cpr requires libcurl to be built with the option with_ssl=\"openssl\".")
         self._patch_sources()
         cmake = self._configure_cmake()
         cmake.build()


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

Issue:
[request] libnl/3.2.25 add component info
### Package Details
  * Package Name/Version: **libnl/3.2.25**
  * Changelog: Package libnl creates several different libraries. Add component info to the Conan recipe to prevent linking to libraries that are not necessary.

PR will follow.



Discussion:

Resolving patch:
diff --git a/recipes/libnl/all/conanfile.py b/recipes/libnl/all/conanfile.py
--- a/recipes/libnl/all/conanfile.py
+++ b/recipes/libnl/all/conanfile.py
@@ -67,6 +67,17 @@ def package(self):
         tools.rmdir(os.path.join(self.package_folder, "lib", "pkgconfig"))
 
     def package_info(self):
-        self.cpp_info.includedirs = [os.path.join('include', 'libnl3')]
-        self.cpp_info.libs = ["nl-3", "nl-cli-3", "nl-genl-3", "nl-idiag-3", "nl-nf-3", "nl-route-3"]
-        self.cpp_info.system_libs = ["pthread", "m"]
+        self.cpp_info.components["nl"].libs = ["nl-3"]
+        self.cpp_info.components["nl"].includedirs = [os.path.join('include', 'libnl3')]
+        if not tools.os_info.is_windows:
+            self.cpp_info.components["nl"].system_libs = ["pthread", "m"]
+        self.cpp_info.components["nl-route"].libs = ["nl-route-3"]
+        self.cpp_info.components["nl-route"].requires = ["nl"]
+        self.cpp_info.components["nl-genl"].libs = ["nl-genl-3"]
+        self.cpp_info.components["nl-genl"].requires = ["nl"]
+        self.cpp_info.components["nl-nf"].libs = ["nl-nf-3"]
+        self.cpp_info.components["nl-nf"].requires = ["nl-route"]
+        self.cpp_info.components["nl-cli"].libs = ["nl-cli-3"]
+        self.cpp_info.components["nl-cli"].requires = ["nl-nf", "nl-genl"]
+        self.cpp_info.components["nl-idiag"].libs = ["nl-idiag-3"]
+        self.cpp_info.components["nl-idiag"].requires = ["nl"]


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

Issue:
[request] sentry-native/0.4.7
### Package Details
  * Package Name/Version: **sentry-native/0.4.7**
  * Changelog: **https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md**


The above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.

I try but I am not at early access program. Some one with rights granted trigger it? I did it through https://github.com/conan-io/conan-center-index/issues/3470 and create PR https://github.com/conan-io/conan-center-index/pull/4525



Discussion:

Resolving patch:
diff --git a/recipes/sentry-native/all/conanfile.py b/recipes/sentry-native/all/conanfile.py
--- a/recipes/sentry-native/all/conanfile.py
+++ b/recipes/sentry-native/all/conanfile.py
@@ -49,6 +49,8 @@ def configure(self):
             raise ConanInvalidConfiguration("The in-process backend is not supported on Windows")
         if self.options.transport == "winhttp" and self.settings.os != "Windows":
             raise ConanInvalidConfiguration("The winhttp transport is only supported on Windows")
+        if tools.Version(self.version) >= "0.4.7" and self.settings.compiler == "apple-clang" and tools.Version(self.settings.compiler.version) < "10.0":
+            raise ConanInvalidConfiguration("apple-clang < 10.0 not supported")
 
     def requirements(self):
         if self.options.transport == "curl":
@@ -99,7 +101,10 @@ def package_info(self):
             self.cpp_info.system_libs = ["dl", "log"]
         elif self.settings.os == "Windows":
             self.cpp_info.system_libs = ["shlwapi", "dbghelp"]
+            if tools.Version(self.version) >= "0.4.7":
+                self.cpp_info.system_libs.append("Version")
             if self.options.transport == "winhttp":
                 self.cpp_info.system_libs.append("winhttp")
+            
         if not self.options.shared:
             self.cpp_info.defines = ["SENTRY_BUILD_STATIC"]


Test patch: