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

Issue:
[request]  sqlcipher/4.4.3
### Package Details
  * Package Name/Version: ** sqlcipher/4.4.3**
  * Changelog: **https://github.com/sqlcipher/sqlcipher/blob/master/CHANGELOG.md**
----
  * works on Mac Catalyst 

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/sqlcipher/all/conanfile.py b/recipes/sqlcipher/all/conanfile.py
--- a/recipes/sqlcipher/all/conanfile.py
+++ b/recipes/sqlcipher/all/conanfile.py
@@ -39,6 +39,10 @@ def config_options(self):
         if self.settings.os == "Windows":
             del self.options.fPIC
 
+    def configure(self):
+        if self.options.shared:
+            del self.options.fPIC
+
     def build_requirements(self):
         # It is possible to have a MinGW cross-build toolchain (Linux to Windows)
         # Only require msys2 when building on an actual Windows system
@@ -48,7 +52,7 @@ def build_requirements(self):
 
     def requirements(self):
         if self.options.crypto_library == "openssl":
-            self.requires("openssl/1.1.1h")
+            self.requires("openssl/1.1.1k")
         else:
             self.requires("libressl/3.2.0")
 


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

Issue:
[package] tcl/8.6.10: tcl should be dependent to CoreFoundation on mac
<!-- 
  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: **tcl/8.6.10**
  * Operating System+version: **macOS 10.15.7**
  * Compiler+version: **Apple-Clang**
  * Conan version: **conan 1.36.0**
  * Python version: **Python 3.9.5**


### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)
```
[settings]
os=Macos
os_build=Macos
arch=x86_64
arch_build=x86_64
compiler=apple-clang
compiler.version=12.0
compiler.libcxx=libc++
build_type=Release
[options]
[build_requires]
[env]
```


### Steps to reproduce (Include if Applicable)
install tcl/8.6.10


### Logs (Include/Attach if Applicable)
<details><summary>Click to expand log</summary>

```
$ otool -L ~/.conan/data/tcl/8.6.10/_/_/package/88955cec2844f731470e07bd44ce5a3a24ec88b7/bin/tclsh8.6 
/Users/shiena/.conan/data/tcl/8.6.10/_/_/package/88955cec2844f731470e07bd44ce5a3a24ec88b7/bin/tclsh8.6:
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1281.100.1)
	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1677.104.0)
```

</details>

tcl links to CoreFoundation on mac. But conanfile.py depends on Cocoa. Therefore tcl should be dependent to CoreFoundation.

https://github.com/tcltk/tcl/blob/main/unix/configure#L1455
https://github.com/conan-io/conan-center-index/blob/master/recipes/tcl/8.6.10/conanfile.py#L209



Discussion:

Resolving patch:
diff --git a/recipes/tcl/8.6.10/conanfile.py b/recipes/tcl/8.6.10/conanfile.py
--- a/recipes/tcl/8.6.10/conanfile.py
+++ b/recipes/tcl/8.6.10/conanfile.py
@@ -206,7 +206,7 @@ def package_info(self):
         self.cpp_info.names["cmake_find_package_multi"] = "TCL"
 
         if self.settings.os == "Macos":
-            self.cpp_info.frameworks = ["Cocoa"]
+            self.cpp_info.frameworks = ["CoreFoundation"]
             self.cpp_info.sharedlinkflags = self.cpp_info.exelinkflags
 
         tcl_library = os.path.join(self.package_folder, "lib", "{}{}".format(self.name, ".".join(self.version.split(".")[:2])))


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

Issue:
[package] apr/1.7.0: consumer packages fail to find apr when used as shared
### Package and Environment Details
  * Package Name/Version: **apr/1.7.0**
  * Operating System+version: **Windows 10**
  * Compiler+version: **MSVC v142**
  * Conan version: **conan 1.35.0**
  * Python version: **Python 3.7.9**


### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)
```
[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86_64
compiler=Visual Studio
compiler.version=16
build_type=Release
[options]
[build_requires]
[env]
```


### Steps to reproduce (Include if Applicable)
Install apr/1.7.0 as shared
conan install apr/1.7.0@ -o shared=True --build=apr

Try installing a consumer of apr. Trying with serf
conan install serf/1.3.9@ -o apr:shared=True -o apr-util:shared=True --build=serf --build=apr-util

### Logs (Include/Attach if Applicable)
<details><summary>Click to expand log</summary>

```
LINK : fatal error LNK1181: cannot open input file 'libapr-1.lib'
scons: *** [libserf-1.dll] Error 1181
scons: building terminated because of errors.
serf/1.3.9:
serf/1.3.9: ERROR: Package 'e896ac717b33682561d2e328d65b7fe6a0bec462' build failed
serf/1.3.9: WARN: Build folder C:\projects\.conan\data\serf\1.3.9\_\_\build\e896ac717b33682561d2e328d65b7fe6a0bec462
ERROR: serf/1.3.9: Error in build() method, line 111
        self.run("scons {} {}".format(" ".join(escape_str(s) for s in args), " ".join("{}={}".format(k, escape_str(v)) for k, v in kwargs.items())), run_environment=True)
```

</details>
Patch 0001 changes the name of the library binary from libapr-1 to apr-1 when compiled as shared. This was done so conan only compiles one library, either static or shared, not both as apr usually does.

This name change affects compilation of consumer packages like serf which expects the libapr-1 name when linking the library as shared.

I propose to make what apr-util does, droping the name change and make cpp_info.libs take the correct name
https://github.com/cesenaLA/conan-center-index/commit/bbc084c0f09f09070ed840eb3c8239d0d9d1b152


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
@@ -120,7 +120,7 @@ def package(self):
 
     def package_info(self):
         self.cpp_info.names["pkg_config"] = "apr-1"
-        self.cpp_info.libs = ["apr-1"]
+        self.cpp_info.libs = ["libapr-1" if self.settings.compiler == "Visual Studio" and self.options.shared else "apr-1"]
         if not self.options.shared:
             self.cpp_info.defines = ["APR_DECLARE_STATIC"]
             if self.settings.os == "Linux":


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

Issue:
[package] openssl on Windows cannot be cross built
When cross building openssl on Windows, the root path of `strawberryperl` is not available.
This is because `strawberryperl` is used as a build requirement.
The perl path can be included with [`self.user_info_build`](https://docs.conan.io/en/latest/reference/conanfile/attributes.html#user-info-build).
But that attribute does not work (for me), at the moment. (see https://github.com/conan-io/conan/issues/8313)

I have opened #4210 to add cross build support to strawberryperl.


### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **openssl/all**
  * Operating System+version: **Windows all**
  * Compiler+version: **MSVC**
  * Conan version: **conan 1.32.1**
  * Python version: **Python 3.9.1**






Discussion:

Resolving patch:
diff --git a/recipes/strawberryperl/all/conanfile.py b/recipes/strawberryperl/all/conanfile.py
--- a/recipes/strawberryperl/all/conanfile.py
+++ b/recipes/strawberryperl/all/conanfile.py
@@ -40,4 +40,4 @@ def package_info(self):
         self.output.info("Appending PATH environment variable: %s" % bin_path)
         self.env_info.PATH.append(bin_path)
 
-        self.deps_user_info.perl = os.path.join(self.package_folder, "bin", "perl.exe").replace("\\", "/")
+        self.user_info.perl = os.path.join(self.package_folder, "bin", "perl.exe").replace("\\", "/")


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

Issue:
[request] crowcpp-crow/0.3+2
### Package Details
  * Package Name/Version: **crowcpp-crow/0.3+2**
  * Changelog: **https://github.com/CrowCpp/crow/releases/tag/v0.3%2B2**


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/crowcpp-crow/all/conanfile.py b/recipes/crowcpp-crow/all/conanfile.py
--- a/recipes/crowcpp-crow/all/conanfile.py
+++ b/recipes/crowcpp-crow/all/conanfile.py
@@ -1,6 +1,9 @@
 from conans import ConanFile, tools, CMake
 import os
 
+required_conan_version = ">=1.33.0"
+
+
 class CrowConan(ConanFile):
     name = "crowcpp-crow"
     homepage = "https://github.com/CrowCpp/crow"
@@ -16,22 +19,30 @@ def _source_subfolder(self):
 
     def requirements(self):
         self.requires("boost/1.75.0")
-        '''To be removed in next released versions'''
-        self.requires("openssl/1.1.1i")
+        if self.version == "0.2":
+            self.requires("openssl/1.1.1k")
 
     def source(self):
-        tools.get(**self.conan_data["sources"][self.version])
-        extracted_dir = "crow-" + self.version
-        os.rename(extracted_dir, self._source_subfolder)
+        tools.get(
+            **self.conan_data["sources"][self.version],
+            strip_root=True,
+            destination=self._source_subfolder
+        )
 
     def build(self):
         cmake = CMake(self)
+        cmake.definitions["BUILD_EXAMPLES"] = False
+        cmake.definitions["BUILD_TESTING"] = False
         cmake.configure(source_folder=self._source_subfolder)
         cmake.build(target="amalgamation")
 
     def package(self):
         self.copy(pattern="LICENSE*", dst="licenses", src=self._source_subfolder)
-        self.copy("*.h", dst=os.path.join("include", "crow"), src=os.path.join(self._source_subfolder, "include"))
+        self.copy(
+            "*.h",
+            dst=os.path.join("include", "crow"),
+            src=os.path.join(self._source_subfolder, "include"),
+        )
         self.copy("crow_all.h", dst=os.path.join("include", "crow"))
 
     def package_id(self):


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

Issue:
[request] libcurl/7.78.0
### Package Details
  * Package Name/Version: **libcurl/7.78.0**
  * Changelog: **https://curl.se/changes.html#7_78_0**


The above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.



Discussion:
Looks like a slight recipe change will be required. Attempting to update and build on MacOS/x64/clang-11
```
configure: error: --with-libmetalink no longer works!
libcurl/7.78.0: 
```

Confirmed that `metalink` support has been removed
Reference: https://github.com/curl/curl/pull/7176

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
@@ -90,11 +90,18 @@ def _is_using_cmake_build(self):
     def _has_zstd_option(self):
         return tools.Version(self.version) >= "7.72.0"
 
+    @property
+    def _has_metalink_option(self):
+        # Support for metalink was removed in version 7.78.0 https://github.com/curl/curl/pull/7176
+        return tools.Version(self.version) < "7.78.0" and not self._is_using_cmake_build
+
     def config_options(self):
         if self.settings.os == "Windows":
             del self.options.fPIC
         if not self._has_zstd_option:
             del self.options.with_zstd
+        if not self._has_metalink_option:
+            del self.options.with_libmetalink
         # Default options
         self.options.with_ssl = "darwinssl" if tools.is_apple_os(self.settings.os) else "openssl"
 
@@ -139,7 +146,6 @@ def configure(self):
         if self._is_using_cmake_build:
             del self.options.with_libidn
             del self.options.with_librtmp
-            del self.options.with_libmetalink
             del self.options.with_libpsl
 
     def requirements(self):
@@ -274,7 +280,6 @@ def _get_configure_command_args(self):
         params = [
             "--with-libidn2={}".format(yes_no(self.options.with_libidn)),
             "--with-librtmp={}".format(yes_no(self.options.with_librtmp)),
-            "--with-libmetalink={}".format(yes_no(self.options.with_libmetalink)),
             "--with-libpsl={}".format(yes_no(self.options.with_libpsl)),
             "--with-schannel={}".format(yes_no(self.options.with_ssl == "schannel")),
             "--with-secure-transport={}".format(yes_no(self.options.with_ssl == "darwinssl")),
@@ -313,6 +318,9 @@ def _get_configure_command_args(self):
         if self._has_zstd_option:
             params.append("--with-zstd={}".format(yes_no(self.options.with_zstd)))
 
+        if self._has_metalink_option:
+            params.append("--with-libmetalink={}".format(yes_no(self.options.with_libmetalink)))
+
         # 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] apr/1.7.0: Does not build with apple clang 12. Issue for PR submission to make it build
apr/1.7.0 has been disabled and just errors with:
apr does not (yet) support apple-clang 12
This has been a deliberate change because apr fails to build

  * Package Name/Version: **apr/1.7.0**
  * Operating System+version: **OSX 11.5.1**
  * Compiler+version: **clan 12.0.5**
  * Conan version: **conan 1.39.0**
  * Python version: **Python 3.8.2**


### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)
```
Configuration for profile default:

[settings]
os=Macos
os_build=Macos
arch=armv8
arch_build=armv8
compiler=appl-clang
compiler.version=12.0
compiler.libcxx=libc++
build_type=Release
[options]
[build_requires]
[env]
```




Discussion:
There is a solution to fix it: https://bz.apache.org/bugzilla/show_bug.cgi?id=64753

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
@@ -38,11 +38,6 @@ def configure(self):
         del self.settings.compiler.cppstd
         del self.settings.compiler.libcxx
 
-        if (self.settings.compiler == "apple-clang" and
-            tools.Version(self.settings.compiler.version) == "12" and
-            self.version == "1.7.0"):
-            raise ConanInvalidConfiguration("apr does not (yet) support apple-clang 12")
-
     @property
     def _source_subfolder(self):
         return "source_subfolder"
@@ -51,6 +46,14 @@ def _source_subfolder(self):
     def _build_subfolder(self):
         return "build_subfolder"
 
+    def validate(self):
+        if hasattr(self, "settings_build") and tools.cross_building(self):
+            raise ConanInvalidConfiguration("apr cannot be cross compiled due to runtime checks")
+
+    def build_requirements(self):
+        if self.settings.os == "Macos":
+            self.build_requires("libtool/2.4.6")
+
     def source(self):
         tools.get(**self.conan_data["sources"][self.version])
         os.rename("{}-{}".format(self.name, self.version), self._source_subfolder)
@@ -67,6 +70,14 @@ def _configure_cmake(self):
     def _configure_autotools(self):
         if self._autotools:
             return self._autotools
+        if (self.settings.compiler == "apple-clang" and
+            tools.Version(self.settings.compiler.version) == "12" and
+            self.version == "1.7.0"):
+
+            with tools.chdir( self._source_subfolder ):
+                os.remove( "configure" )
+                self.run( "./buildconf" )
+
         self._autotools = AutoToolsBuildEnvironment(self)
         self._autotools.libs = []
         yes_no = lambda v: "yes" if v else "no"


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

Issue:
[package] <CPR>/<1.6.2>: with_ssl=winssl does not work

### Package and Environment Details
  * Package Name/Version: **cpr/1.6.2**
  * Operating System+version: **Windows 10**
  * Compiler+version: **Visual Studio 16 (2019)**
  * Conan version: **conan 1.38.0**
  * Python version: **Python 3.9.5**


### Conan profile
```
Configuration for profile windows-x86-static-release:

[settings]
os=Windows
os_build=Windows
arch=x86
arch_build=x86
compiler=Visual Studio
compiler.version=16
build_type=Release
compiler.runtime=MT
[options]
[conf]
[build_requires]
[env]
```


### Steps to reproduce

Create a conanfile.txt as follows  
```INI
[requires]
wxwidgets/3.1.4@bincrafters/stable
cpr/1.6.2
[options]
wxwidgets:shared=False
cpr:shared=False
cpr:with_ssl=winssl
libcurl:with_ssl=schannel
[generators]
cmake
```
Then run `conan install .  --build=missing --profile windows-x86-static-release`

This ends up returning 

```
RROR: There are invalid packages (packages that cannot exist for this configuration):
cpr/1.6.2: Invalid ID: cpr requires libcurl to be built with the option with_ssl='None'.
```
This looks to have been caused by 9447db01c33789221c82a977726f697114e0b05c
</details>



Discussion:
try changing `libcurl:with_ssl=schannel` into `libcurl:with_ssl=winssl` (in your profile)
> try changing `libcurl:with_ssl=schannel` into `libcurl:with_ssl=winssl` (in your profile)

That returns the following error

```
ERROR: libcurl/7.69.1: 'winssl' is not a valid 'options.with_ssl' value.
Possible values are ['False', 'darwinssl', 'openssl', 'schannel', 'wolfssl']
```

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
@@ -223,13 +223,15 @@ def validate(self):
                 else "Invalid value of ssl option, {}".format(ssl_library)
             )
 
-        if ssl_library not in (CprConan._AUTO_SSL, CprConan._NO_SSL) and ssl_library != self.options["libcurl"].with_ssl:
+        if ssl_library not in (CprConan._AUTO_SSL, CprConan._NO_SSL, "winssl") and ssl_library != self.options["libcurl"].with_ssl:
             raise ConanInvalidConfiguration("cpr requires libcurl to be built with the option with_ssl='{}'.".format(self.options.get_safe('with_ssl')))
+            
+        if ssl_library == "winssl" and self.options["libcurl"].with_ssl != "schannel":
+            raise ConanInvalidConfiguration("cpr requires libcurl to be built with the option with_ssl='schannel'")
 
         if self.settings.compiler == "Visual Studio" and self.options.shared and "MT" in self.settings.compiler.runtime:
             raise ConanInvalidConfiguration("Visual Studio build for shared library with MT runtime is not supported")
 
-
     def build(self):
         self._patch_sources()
         cmake = self._configure_cmake()


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

Issue:
[package] rmlui/4.0 and rmlui/4.1: `numeric_limits` is not a member of `std`
<!-- 
  Please don't forget to update the issue title.
  Include all applicable information to help us reproduce your problem.
-->

When building rmlui, I'm getting (among other errors):
```
/home/user/.conan/data/robin-hood-hashing/3.9.1/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/robin_hood.h: In member function ‘size_t robin_hood::detail::Table<IsFlat, MaxLoadFactor100, Key, T, Hash, KeyEqual>::calcMaxNumElementsAllowed(size_t) const’:
/home/user/.conan/data/robin-hood-hashing/3.9.1/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/robin_hood.h:2027:13: error: ‘numeric_limits’ is not a member of ‘std’
```

This is because `#include <limits>` was missing, but [that has been solved in `robin-hood-hashing` version 3.11.2](https://github.com/martinus/robin-hood-hashing/commit/f2cae2e6b8231c46fe9c324e31b0a1f64e0de8c6). So, to solve this, it should be enough to upgrade the `robin-hood-hashing` dependency to 3.11.3. I've opened a pull request to fix that.

### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **rmlui/4.0 and rmlui/4.1**
  * Operating System+version: **Arch Linux**
  * Compiler+version: **GCC 11.1**
  * Conan version: **conan 1.38.0**
  * Python version: **Python 3.9.6**


### 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=11.1
compiler.libcxx=libstdc++11
build_type=Release
[options]
[conf]
[build_requires]
[env]
```



Discussion:

Resolving patch:
diff --git a/recipes/rmlui/4.x/conanfile.py b/recipes/rmlui/4.x/conanfile.py
--- a/recipes/rmlui/4.x/conanfile.py
+++ b/recipes/rmlui/4.x/conanfile.py
@@ -85,7 +85,7 @@ def requirements(self):
             self.requires("lua/5.3.5")
 
         if self.options.with_thirdparty_containers:
-            self.requires("robin-hood-hashing/3.9.1")
+            self.requires("robin-hood-hashing/3.11.3")
 
     @property
     def _source_subfolder(self):


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

Issue:
[request] sdl/2.0.16
### Package Details
  * Package Name/Version: **sdl/2.0.16**
  * Changelog: **https://github.com/libsdl-org/SDL/releases/tag/release-2.0.16**


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/sdl/all/conanfile.py b/recipes/sdl/all/conanfile.py
--- a/recipes/sdl/all/conanfile.py
+++ b/recipes/sdl/all/conanfile.py
@@ -159,13 +159,6 @@ def build(self):
         for patch in self.conan_data.get("patches", {}).get(self.version, []):
             tools.patch(**patch)
 
-        # ensure sdl2-config is created for MinGW
-        tools.replace_in_file(os.path.join(self._source_subfolder, "CMakeLists.txt"),
-                              "if(NOT WINDOWS OR CYGWIN)",
-                              "if(NOT WINDOWS OR CYGWIN OR MINGW)")
-        tools.replace_in_file(os.path.join(self._source_subfolder, "CMakeLists.txt"),
-                              "if(NOT (WINDOWS OR CYGWIN))",
-                              "if(NOT (WINDOWS OR CYGWIN OR MINGW))")
         if self.version >= "2.0.14":
             tools.replace_in_file(os.path.join(self._source_subfolder, "CMakeLists.txt"),
                                   'check_library_exists(c iconv_open "" HAVE_BUILTIN_ICONV)',
@@ -242,7 +235,10 @@ def _build_cmake(self):
             cmake.build()
 
     def package(self):
-        self.copy(pattern="COPYING.txt", dst="licenses", src=self._source_subfolder)
+        if self.version >= "2.0.16":
+            self.copy(pattern="LICENSE.txt", dst="licenses", src=self._source_subfolder)
+        else:
+            self.copy(pattern="COPYING.txt", dst="licenses", src=self._source_subfolder)
         cmake = self._configure_cmake()
         cmake.install()
         tools.remove_files_by_mask(os.path.join(self.package_folder, "bin"), "sdl2-config")


Test patch: