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

Issue:
[package] mpir/3.0.0: fPIC not working


### Package and Environment Details
  * Package Name/Version: **mpir/3.0.0**
  * Operating System+version: **Manjaro 20.0.1**
  * Compiler+version: **Clang 10**
  * Conan version: **conan 1.25.2**
  * Python version: **Python 3.8.2**


### Conan profile
```
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=clang
compiler.version=10
compiler.libcxx=libstdc++11
compiler.cppstd=17
build_type=Release
python_version=3.7
[options]
[build_requires]
[env]
CC=/usr/bin/clang
CXX=/usr/bin/clang++
CXX_CLANG_TIDY=/usr/bin/clang-tidy
CXX_INCLUDE_WHAT_YOU_USE=/usr/bin/include-what-you-use
Python27_EXECUTABLE=/usr/bin/python2.7
Python37_EXECUTABLE=/usr/bin/python3.7
```


### Steps to reproduce (Include if Applicable)
Build shared library/python module that uses `mpir` as a static library`


### Logs (Include/Attach if Applicable)
<details><summary>Recompile with -fPIC ... Click to expand log</summary>

```
/usr/bin/ld: /home/birger/.conan/data/mpir/3.0.0/_/_/package/7663ba8f8fea4c384def53826e87140212375ef9/lib/libmpir.a(modexact_1c_odd.o): relocation R_X86_64_PC32 against symbol `__gmp_modlimb_invert_table' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
```

</details>



Discussion:

Resolving patch:
diff --git a/recipes/mpir/all/conanfile.py b/recipes/mpir/all/conanfile.py
--- a/recipes/mpir/all/conanfile.py
+++ b/recipes/mpir/all/conanfile.py
@@ -62,6 +62,7 @@ def _configure_autotools(self):
                 args.extend(['--disable-static', '--enable-shared'])
             else:
                 args.extend(['--disable-shared', '--enable-static'])
+            args.append("--with-pic" if self.options.get_safe("fPIC") else "--without-pic")
 
             args.extend(['--disable-silent-rules', '--enable-gmpcompat', '--enable-cxx'])
             self._autotools.configure(args=args)


Test patch:
diff --git a/recipes/mpir/all/test_package/CMakeLists.txt b/recipes/mpir/all/test_package/CMakeLists.txt
--- a/recipes/mpir/all/test_package/CMakeLists.txt
+++ b/recipes/mpir/all/test_package/CMakeLists.txt
@@ -5,4 +5,4 @@ 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})
diff --git a/recipes/mpir/all/test_package/test_package.cpp b/recipes/mpir/all/test_package/test_package.cpp
--- a/recipes/mpir/all/test_package/test_package.cpp
+++ b/recipes/mpir/all/test_package/test_package.cpp
@@ -17,4 +17,4 @@ int main(void)
     foo(r, n, 20L);
     gmp_printf("%Zd\n", r);
     return 0;
-}
\ No newline at end of file
+}
Repository: conan-io/conan-center-index

Issue:
[package] thrift/0.13.0: build fails using --profile but works using --profile:host and --profile:build
### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **thrift/0.13.0**
  * Operating System+version: **Linux Ubuntu 18.04**
  * Compiler+version: **GCC 7**
  * Conan version: **conan 1.25.2**
  * Python version: **Python 3.6.9**


### Conan profile (output of `conan profile show default` or `conan profile show <profile>` if custom profile is in use)
```
Configuration for profile linux-x64:
[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=7
compiler.libcxx=libstdc++11
build_type=Debug
[options]
*:fPIC=True
*:shared=True
[build_requires]
[env]
```


### Steps to reproduce (Include if Applicable)
I have a package that uses _thrift/0.13.0_ as build requirement (thrift compiler) and as normal requirement (thrift libs). When I build and create my package with

```conan create . --profile:host linux-x64 --profile:build linux-x64```

the build works perfectly, the thrift sources are compiled with the thrift compiler. When I  use

```conan create . --profile linux-x64```

the build fails when using the thrift compiler. The difference is that in the first case, the binary directories of all build requirement packages are added to PATH environment during build and in the second case, nothing is added to PATH. The cmake build of my package expects the thrift compiler being in PATH.

I was not sure if this is really a package bug and not a conan bug. Sorry if this was the wrong place.




Discussion:

Resolving patch:
diff --git a/recipes/thrift/all/conanfile.py b/recipes/thrift/all/conanfile.py
--- a/recipes/thrift/all/conanfile.py
+++ b/recipes/thrift/all/conanfile.py
@@ -139,3 +139,7 @@ def package_info(self):
             self.cpp_info.defines.append("NOMINMAX")
         elif self.settings.os == "Linux":
             self.cpp_info.system_libs.extend(["m", "pthread"])
+
+        bin_path = os.path.join(self.package_folder, "bin")
+        self.output.info("Appending PATH env var with : {}".format(bin_path))
+        self.env_info.PATH.append(bin_path)


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

Issue:
[bug] Some system packages fail to install (xorg/system, opengl/system)
<!--
  Please don't forget to update the issue title.
  Include all applicable information to help us reproduce your problem.

  To help us debug your issue please explain:
--> When configuring a cmake project template that used conan i encountered an error while configuring cmake : 
`opengl/system: ERROR: while executing system_requirements(): 'SysConfigOpenGLConan' object has no attribute 'warn'`. After attemping a manual installation with `conan install opengl/system@` i still have the same problem and output. I have no idea what could be causing this and after a few hours of googling i failed to find anything that would explain this. I also get the exact same output when installing `xorg/system`

### Environment Details (include every applicable attribute)
  * Operating System+version: Pop!_OS 20.04 LTS x86_64
  * Compiler+version: gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
  * Conan version: Conan version 1.26.0
  * Python version: Python 2.7.18rc1 AND Python 3.8.2

### Steps to reproduce (Include if Applicable)
`conan install opengl/system@`
`conan install xorg/system@`

### Logs (Executed commands with output) (Include/Attach if Applicable)

```
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

Installing package: opengl/system
Requirements
    opengl/system from 'conan-center' - Cache
Packages
    opengl/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache

Installing (downloading, building) binaries...
opengl/system: ERROR: while executing system_requirements(): 'SysConfigOpenGLConan' object has no attribute 'warn'
ERROR: Error in system requirements
```



Discussion:
This seems an error in the ConanCenter recipes, not in Conan, moving the issue there.

cc @danimtb @SSE4 

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
@@ -46,7 +46,7 @@ def system_requirements(self):
             elif tools.os_info.with_zypper:
                 packages = ["Xorg-x11-devel"]
             else:
-                self.warn("Do not know how to install 'xorg' for {}.".format(tools.os_info.linux_distro))
+                self.output.warn("Do not know how to install 'xorg' for {}.".format(tools.os_info.linux_distro))
             for p in packages:
                 package_tool.install(update=True, packages=p)
 


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

Issue:
[bug] Some system packages fail to install (xorg/system, opengl/system)
<!--
  Please don't forget to update the issue title.
  Include all applicable information to help us reproduce your problem.

  To help us debug your issue please explain:
--> When configuring a cmake project template that used conan i encountered an error while configuring cmake : 
`opengl/system: ERROR: while executing system_requirements(): 'SysConfigOpenGLConan' object has no attribute 'warn'`. After attemping a manual installation with `conan install opengl/system@` i still have the same problem and output. I have no idea what could be causing this and after a few hours of googling i failed to find anything that would explain this. I also get the exact same output when installing `xorg/system`

### Environment Details (include every applicable attribute)
  * Operating System+version: Pop!_OS 20.04 LTS x86_64
  * Compiler+version: gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0
  * Conan version: Conan version 1.26.0
  * Python version: Python 2.7.18rc1 AND Python 3.8.2

### Steps to reproduce (Include if Applicable)
`conan install opengl/system@`
`conan install xorg/system@`

### Logs (Executed commands with output) (Include/Attach if Applicable)

```
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

Installing package: opengl/system
Requirements
    opengl/system from 'conan-center' - Cache
Packages
    opengl/system:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Cache

Installing (downloading, building) binaries...
opengl/system: ERROR: while executing system_requirements(): 'SysConfigOpenGLConan' object has no attribute 'warn'
ERROR: Error in system requirements
```



Discussion:
This seems an error in the ConanCenter recipes, not in Conan, moving the issue there.

cc @danimtb @SSE4 
@memsharded 
[Pop! os is a ubuntu based operating system](https://en.wikipedia.org/wiki/Pop!_OS), so `tools.os_info.with_apt` should have returned `True`.

Resolving patch:
diff --git a/recipes/opengl/all/conanfile.py b/recipes/opengl/all/conanfile.py
--- a/recipes/opengl/all/conanfile.py
+++ b/recipes/opengl/all/conanfile.py
@@ -56,7 +56,7 @@ def system_requirements(self):
             elif tools.os_info.with_zypper:
                 packages = ["Mesa-libGL-devel"]
             else:
-                self.warn("don't know how to install OpenGL for your distro")
+                self.output.warn("Don't know how to install OpenGL for your distro.")
             package_tool.install(update=True, packages=packages)
 
     def package_info(self):


Test patch:
diff --git a/recipes/opengl/all/test_package/CMakeLists.txt b/recipes/opengl/all/test_package/CMakeLists.txt
--- a/recipes/opengl/all/test_package/CMakeLists.txt
+++ b/recipes/opengl/all/test_package/CMakeLists.txt
@@ -1,8 +1,6 @@
 cmake_minimum_required(VERSION 2.8.12)
 project(test_package)
 
-set(CMAKE_VERBOSE_MAKEFILE TRUE)
-
 include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
 conan_basic_setup()
Repository: conan-io/conan-center-index

Issue:
[package] glu/system: local variable 'packages' referenced before assignment
### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **glu/system**
  * Operating System+version: **Linux NeoKylin 7.0**
  * Conan version: **conan 1.27.1**

### Logs (Include/Attach if Applicable)
```
glu/system: ERROR: while executing system_requirements(): local variable 'packages' referenced before assignment
```

### Code
https://github.com/conan-io/conan-center-index/blob/8658ae021ce225d889fa4ee38d30cb80877a7c75/recipes/glu/all/conanfile.py#L17-L32

The local variable `packages` is not initialized for `else` branch.


Discussion:

Resolving patch:
diff --git a/recipes/glu/all/conanfile.py b/recipes/glu/all/conanfile.py
--- a/recipes/glu/all/conanfile.py
+++ b/recipes/glu/all/conanfile.py
@@ -26,6 +26,7 @@ def system_requirements(self):
             elif tools.os_info.with_zypper:
                 packages = ["Mesa-libGLU-devel"]
             else:
+                packages = []
                 self.output.warn("Don't know how to install GLU for your distro")
 
             for p in packages:


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

Issue:
[request] di/1.2.0
### Package Details
  * Package Name/Version: **di/1.2.0**
  * Changelog: **https://github.com/boost-ext/di/releases/tag/v1.2.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/di/all/conanfile.py b/recipes/di/all/conanfile.py
--- a/recipes/di/all/conanfile.py
+++ b/recipes/di/all/conanfile.py
@@ -6,9 +6,9 @@
 class DiConan(ConanFile):
     name = "di"
     license = "BSL-1.0"
-    homepage = "https://github.com/boost-experimental/di"
+    homepage = "https://github.com/boost-ext/di"
     url = "https://github.com/conan-io/conan-center-index"
-    description = "[Boost].DI: C++14 Dependency Injection Library."
+    description = "DI: C++14 Dependency Injection Library."
     topics = ("dependency-injection", "metaprogramming", "design-patterns")
     exports_sources = ["BSL-1.0.txt"]
     settings = "compiler"


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

Issue:
eigen/3.3.7: can not compile
### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: eigen/3.3.7
  * Operating System+version: windows 10
  * Compiler+version: Visual Studio 2019
  * Conan version 1.28.1
  * Python version: **Python 3.8.5**


### Conan profile
```
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=Visual Studio
compiler.cppstd=20
compiler.runtime=MD
compiler.version=16
os=Windows
os_build=Windows
[options]
*:fPIC=True
*:shared=False
*:static=True
[build_requires]
[env]
```


### Steps to reproduce (Include if Applicable)
conan install eigen/3.3.7@  --build "*"


### Logs (Include/Attach if Applicable)
<details><summary>Click to expand log</summary>

```
eigen/3.3.7: Forced build from source
Installing package: eigen/3.3.7
Requirements
    eigen/3.3.7 from 'artifactory' - Cache
Packages
    eigen/3.3.7:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Build

Installing (downloading, building) binaries...
eigen/3.3.7: WARN: Build folder is dirty, removing it: C:\Users\ContainerAdministrator\.conan\data\eigen\3.3.7\_\_\build\5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
eigen/3.3.7: WARN: Trying to remove corrupted source folder
eigen/3.3.7: WARN: This can take a while for big packages
eigen/3.3.7: Configuring sources in C:\Users\ContainerAdministrator\.conan\data\eigen\3.3.7\_\_\source
ERROR: eigen/3.3.7: Error in source() method, line 20
        tools.get(**self.conan_data["sources"][self.version])
        AuthenticationException: 403: Forbidden
```

</details>



Discussion:
`wget http://bitbucket.org/eigen/eigen/get/3.3.7.tar.bz2` fails as well.

Going to https://bitbucket.org/eigen/eigen shows the problem:
*Bitbucket no longer supports Mercurial repositories.*

It looks like eigen has moved to gitlab:
https://gitlab.com/libeigen/eigen

Resolving patch:
diff --git a/recipes/eigen/all/conanfile.py b/recipes/eigen/all/conanfile.py
--- a/recipes/eigen/all/conanfile.py
+++ b/recipes/eigen/all/conanfile.py
@@ -1,6 +1,7 @@
 import os
 from conans import ConanFile, tools, CMake
 
+
 class EigenConan(ConanFile):
     name = "eigen"
     url = "https://github.com/conan-io/conan-center-index"
@@ -18,10 +19,7 @@ def _source_subfolder(self):
 
     def source(self):
         tools.get(**self.conan_data["sources"][self.version])
-        #Get te extracted folder name. They allways have the format eigen-eigen-xxxxxx
-        listdir = os.listdir()
-        extracted_dir = [i for i in listdir if "eigen-eigen" in i][0]
-        os.rename(extracted_dir, self._source_subfolder)
+        os.rename("eigen-{}".format(self.version), self._source_subfolder)
 
     def package(self):
         cmake = CMake(self)


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

Issue:
[package] libx265/3.2.1: hash of source tar.gz changed
### Package and Environment Details (include every applicable attribute)
  * Package Name/Version: **libx265/3.2.1**
  * Operating System+version: **Linux Ubuntu 18.04 and 20.04 **
  * Compiler+version: **GCC 7.5 and 8**
  * Conan version: **conan 1.28.1**
  * Python version: **Python 3.6.8**


### Conan profile
```
Configuration for profile default:

[settings]
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
compiler=gcc
compiler.version=7.5
compiler.libcxx=libstdc++11
build_type=Release
[options]
[build_requires]
[env]
```


### Steps to reproduce (Include if Applicable)
Try to build libx265/3.2.1 from source. 


### Logs (Include/Attach if Applicable)
<details><summary>Click to expand log</summary>

```
ERROR: libx265/3.2.1: Error in source() method, line 50
	tools.get(**self.conan_data["sources"][self.version])
	ConanException: sha256 signature failed for 'x265_3.2.1.tar.gz' file. 
 Provided signature: 7cf8ed2927fcb2914cdca51c974594770da705cb43288beea62b69c53725b5d7  
 Computed signature: fb9badcf92364fd3567f8b5aa0e5e952aeea7a39a2b864387cec31e3b58cbbcc (edited) 
```

</details>

I'm surprised that this wasn't caught earlier. Indeed, when downloading the file manually and computing the sha256sum I get the same as the computed signature above. What's the best way to make a PR for this? Would we bump the recipe version or just overwrite the current 3.2.1?


Discussion:
This might be a upstream problem.
Maybe start by opening an issue at https://bitbucket.org/multicoreware/x265/issues

That said, adding 3.4 is always ok.

On the other hand, I searched for alternative x265_3.2.1.tar.gz sources,
and they all have `fb9badcf92364fd3567f8b5aa0e5e952aeea7a39a2b864387cec31e3b58cbbcc` as sha256 checksum.

So I don't know how this has ever worked.
Even the homepage shows the new checksum: https://bitbucket.org/multicoreware/x265/wiki/Home

Upstream's issue: https://bitbucket.org/multicoreware/x265/issues/565
Thanks Ulian, indeed, I don't know what happened here. Here we noticed this issue when building the package from source.

Resolving patch:
diff --git a/recipes/libx265/all/conanfile.py b/recipes/libx265/all/conanfile.py
--- a/recipes/libx265/all/conanfile.py
+++ b/recipes/libx265/all/conanfile.py
@@ -48,7 +48,7 @@ def configure(self):
 
     def source(self):
         tools.get(**self.conan_data["sources"][self.version])
-        os.rename("x265_{}".format(self.version), self._source_subfolder)
+        os.rename("x265-{}".format(self.version), self._source_subfolder)
 
     def _configure_cmake(self):
         if self._cmake:


Test patch:
diff --git a/recipes/libx265/all/test_package/CMakeLists.txt b/recipes/libx265/all/test_package/CMakeLists.txt
--- a/recipes/libx265/all/test_package/CMakeLists.txt
+++ b/recipes/libx265/all/test_package/CMakeLists.txt
@@ -1,8 +1,6 @@
-cmake_minimum_required(VERSION 2.8.12)
+cmake_minimum_required(VERSION 3.1)
 project(test_package)
 
-set(CMAKE_VERBOSE_MAKEFILE TRUE)
-
 include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
 conan_basic_setup()
Repository: conan-io/conan-center-index

Issue:
[request] sentry-native/0.4.1
### Package Details
  * Package Name/Version: **sentry-native/0.4.1**
  * Changelog: **https://github.com/getsentry/sentry-native/blob/0.4.1/CHANGELOG.md**

https://github.com/getsentry/sentry-native/tree/0.4.1

The above mentioned version is newly released by the upstream project and not yet available as a recipe. Please add this version.
Also, **please add windows support.**


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
@@ -1,4 +1,5 @@
 import os
+import glob
 from conans import ConanFile, CMake, tools
 from conans.errors import ConanInvalidConfiguration
 
@@ -37,8 +38,8 @@ def _source_subfolder(self):
 
     def requirements(self):
         if self.options.transport == "curl":
-            self.requires("libcurl/7.68.0")
-            
+            self.requires("libcurl/7.71.0")
+
         if self.options.backend == "crashpad":
             raise ConanInvalidConfiguration("crashpad not available yet in CCI")
         if self.options.backend == "breakpad":
@@ -54,7 +55,7 @@ def source(self):
         os.rename(extracted_dir, self._source_subfolder)
 
     def configure(self):
-        if self.options.backend == "inproc" and self.settings.os == "Windows":
+        if self.options.backend == "inproc" and self.settings.os == "Windows" and tools.Version(self.version) < "0.4":
             raise ConanInvalidConfiguration("The in-process backend is not supported on Windows")
 
     def _configure_cmake(self):
@@ -77,16 +78,18 @@ def package(self):
         cmake = self._configure_cmake()
         cmake.install()
         tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
+        for pdb in glob.glob(os.path.join(self.package_folder, "bin", "*.pdb")):
+            os.unlink(pdb)
 
     def package_info(self):
         self.cpp_info.libs = ["sentry"]
-        if self.settings.os in ("Android", "Windows"):
-            self.cpp_info.exelinkflags= ["--build-id=sha1"]
-            self.cpp_info.sharedlinkflags = ["--build-id=sha1"]
+        if self.settings.os in ("Android", "Linux"):
+            self.cpp_info.exelinkflags = ["-Wl,-E,--build-id=sha1"]
+            self.cpp_info.sharedlinkflags = ["-Wl,-E,--build-id=sha1"]
         if self.settings.os == "Linux":
             self.cpp_info.system_libs = ["pthread", "dl"]
         elif self.settings.os == "Windows":
-            self.cpp_info.system_libs = ["winhttp", "dbghelp", "pathcch"]
+            self.cpp_info.system_libs = ["winhttp", "dbghelp", "pathcch", "shlwapi"]
 
         if not self.options.shared:
             self.cpp_info.defines = ["SENTRY_BUILD_STATIC"]


Test patch: