NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.46k stars 13.66k forks source link

Update request: conan 2.0.17 → 2.3.1 #314275

Open Woynert opened 3 months ago

Woynert commented 3 months ago

There are a few Conan Center deps that require at least Conan 2.2.0 such as wayland-protocols/1.33.

Notify maintainers

@HaoZeke

I see you're busy please take your time.


Note for maintainers: Please tag this issue in your PR.


Add a :+1: reaction to issues you find important.

Woynert commented 3 months ago

Tests are failing. Here's the result after just replacing the version with "2.3.1":

Test logs ``` ============================= test session starts ============================== platform linux -- Python 3.11.9, pytest-8.1.1, pluggy-1.4.0 rootdir: /build/source configfile: pytest.ini testpaths: conans/test plugins: xdist-3.5.0 4 workers [3858 items] s....................................................................... [ 1%] ........................................................................ [ 3%] ..........s....s........................................................ [ 5%] ......................ss.................s.............................. [ 7%] ...........ss........................................................... [ 9%] .........................................s.....s........................ [ 11%] ........................................................................ [ 13%] ........................................................................ [ 14%] ............ss.....xssss.ssssssssssssssssssssssssssssssss..F....Fs..F... [ 16%] .............................s.ss....................................... [ 18%] .........s.............................................................. [ 20%] ........................................................................ [ 22%] ........................................................................ [ 24%] ........................................................................ [ 26%] ........................................................................ [ 27%] ....................................s................................... [ 29%] ........s............................................................... [ 31%] ...s.................................................................... [ 33%] .....s.................................................................. [ 35%] ........................................................................ [ 37%] ........................................................................ [ 39%] ........................................................................ [ 41%] ........................................................................ [ 42%] ........................................................................ [ 44%] ........................................................................ [ 46%] ........................................................................ [ 48%] .....................ssssssss.......ssssss.............................. [ 50%] ........................................................ss.............. [ 52%] ....................................s................................... [ 54%] ..................................s......................sssss.......... [ 55%] ........................................................................ [ 57%] .........................................................s.............. [ 59%] ........................................................................ [ 61%] .................s.....F................................................ [ 63%] ........................................................................ [ 65%] ........................................................................ [ 67%] ........................................................................ [ 69%] ........................................................................ [ 70%] ........................................................................ [ 72%] ........................................................................ [ 74%] ........................................................................ [ 76%] ........................................................................ [ 78%] ........................................................................ [ 80%] ........................................................................ [ 82%] ..................................................ss.................... [ 83%] .................................s...................................... [ 85%] ........................................................................ [ 87%] ........................................................................ [ 89%] ........................................................................ [ 91%] ......................s..............................................sss [ 93%] s....................................................................... [ 95%] ............s.s........s.........ss.s..ssss.sssssss..................... [ 97%] ........................................................................ [ 98%] .......................................... [100%] ==================================== ERRORS ==================================== _______ ERROR collecting conans/test/integration/command/runner_test.py ________ ImportError while importing test module '/build/source/conans/test/integration/command/runner_test.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /nix/store/lpi16513bai8kg2bd841745vzk72475x-python3-3.11.9/lib/python3.11/importlib/__init__.py:126: in import_module return _bootstrap._gcd_import(name[level:], package, level) conans/test/integration/command/runner_test.py:4: in import docker E ModuleNotFoundError: No module named 'docker' =================================== FAILURES =================================== __________ TestLocalRecipeIndexNew.test_conan_new_local_recipes_index __________ [gw0] linux -- Python 3.11.9 /nix/store/lpi16513bai8kg2bd841745vzk72475x-python3-3.11.9/bin/python3.11 self = def test_conan_new_local_recipes_index(self): # Setup the release pkg0.1.zip http server file_server = TestFileServer() zippath = os.path.join(file_server.store, "pkg0.1.zip") repo_folder = temp_folder() cmake = gen_cmakelists(libname="pkg", libsources=["pkg.cpp"], install=True, public_header="pkg.h") save_files(repo_folder, {"pkg/CMakeLists.txt": cmake, "pkg/pkg.h": gen_function_h(name="pkg"), "pkg/pkg.cpp": gen_function_cpp(name="pkg")}) zipdir(repo_folder, zippath) sha256 = sha256sum(zippath) url = f"{file_server.fake_url}/pkg0.1.zip" c0 = TestClient() c0.servers["file_server"] = file_server c0.run(f"new local_recipes_index -d name=pkg -d version=0.1 -d url={url} -d sha256={sha256}") # A local create is possible, and it includes a test_package > c0.run("create recipes/pkg/all --version=0.1") conans/test/functional/test_local_recipes_index.py:31: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ conans/test/utils/tools.py:570: in run return self._run_cli(command_line, assert_error=assert_error) conans/test/utils/tools.py:544: in _run_cli self._handle_cli_result(command_line, assert_error=assert_error, error=error, trace=trace) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = command = 'create recipes/pkg/all --version=0.1', assert_error = False error = 1 trace = 'Traceback (most recent call last):\n File "/build/source/conans/errors.py", line 52, in conanfile_exception_formatte...ception: pkg/0.1: Error in build() method, line 49\n\tcmake.configure()\n\tConanException: Error 127 while executing\n' def _handle_cli_result(self, command, assert_error, error, trace=None): if (assert_error and not error) or (not assert_error and error): if assert_error: msg = " Command succeeded (failure expected): " else: msg = " Command failed (unexpectedly): " exc_message = "\n{header}\n{cmd}\n{output_header}\n{output}\n".format( header='{:=^80}'.format(msg), output_header='{:=^80}'.format(" Output: "), cmd=command, output=str(self.stderr) + str(self.stdout) + "\n" + str(self.out) ) if trace: exc_message += '{:=^80}'.format(" Traceback: ") + f"\n{trace}" > raise Exception(exc_message) E Exception: E ======================== Command failed (unexpectedly): ======================== E create recipes/pkg/all --version=0.1 E =================================== Output: ==================================== E E ======== Exporting recipe to the cache ======== E pkg/0.1: Exporting package recipe: /build/tmpjc61dhljconans/path with spaces/recipes/pkg/all/conanfile.py E pkg/0.1: exports: File 'conandata.yml' found. Exporting it... E pkg/0.1: Calling export_sources() E pkg/0.1: export_conandata_patches(): No patches defined in conandata E pkg/0.1: Copied 1 '.py' file: conanfile.py E pkg/0.1: Copied 1 '.yml' file: conandata.yml E pkg/0.1: Exported to cache folder: /build/tmpxcumyyh5conans/path with spaces/.conan2/p/pkged9a1a1c93536/e E pkg/0.1: Exported: pkg/0.1#9e9eb5a4858533263fd7f624056a90dd (2024-05-24 12:16:45 UTC) E E ======== Input profiles ======== E Profile host: E [settings] E arch=x86_64 E build_type=Release E compiler=gcc E compiler.libcxx=libstdc++11 E compiler.version=8 E os=Linux E E Profile build: E [settings] E arch=x86_64 E build_type=Release E compiler=gcc E compiler.libcxx=libstdc++11 E compiler.version=8 E os=Linux E E E ======== Computing dependency graph ======== E Graph root E cli E Requirements E pkg/0.1#9e9eb5a4858533263fd7f624056a90dd - Cache E E ======== Computing necessary packages ======== E pkg/0.1: Forced build from source E Requirements E pkg/0.1#9e9eb5a4858533263fd7f624056a90dd:ea32a68c86212b11bf50a900d3e0fb4211c8dbe3 - Build E E ======== Installing packages ======== E pkg/0.1: Calling source() in /build/tmpxcumyyh5conans/path with spaces/.conan2/p/pkged9a1a1c93536/s/src E pkg/0.1: Unzipping 2.6KB E E pkg/0.1: apply_conandata_patches(): No patches defined in conandata E E -------- Installing package pkg/0.1 (1 of 1) -------- E pkg/0.1: Building from source E pkg/0.1: Package pkg/0.1:ea32a68c86212b11bf50a900d3e0fb4211c8dbe3 E pkg/0.1: Copying sources to build folder E pkg/0.1: Building your package in /build/tmpxcumyyh5conans/path with spaces/.conan2/p/b/pkg1f9b7e779896d/b E pkg/0.1: Calling generate() E pkg/0.1: Generators folder: /build/tmpxcumyyh5conans/path with spaces/.conan2/p/b/pkg1f9b7e779896d/b/build/Release/generators E pkg/0.1: CMakeToolchain generated: conan_toolchain.cmake E pkg/0.1: CMakeToolchain generated: /build/tmpxcumyyh5conans/path with spaces/.conan2/p/b/pkg1f9b7e779896d/b/build/Release/generators/CMakePresets.json E pkg/0.1: CMakeToolchain generated: /build/tmpxcumyyh5conans/path with spaces/.conan2/p/b/pkg1f9b7e779896d/b/src/CMakeUserPresets.json E pkg/0.1: Generating aggregated env files E pkg/0.1: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh'] E pkg/0.1: Calling build() E pkg/0.1: Running CMake.configure() E pkg/0.1: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/build/tmpxcumyyh5conans/path with spaces/.conan2/p/b/pkg1f9b7e779896d/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/build/tmpxcumyyh5conans/path with spaces/.conan2/p/b/pkg1f9b7e779896d/b/src" E /nix/store/h3bhzvz9ipglcybbcvkxvm4vg9lwvqg4-bash-5.2p26/bin/sh: line 1: cmake: command not found E E pkg/0.1: ERROR: E Package 'ea32a68c86212b11bf50a900d3e0fb4211c8dbe3' build failed E pkg/0.1: WARN: Build folder /build/tmpxcumyyh5conans/path with spaces/.conan2/p/b/pkg1f9b7e779896d/b/build/Release E ERROR: pkg/0.1: Error in build() method, line 49 E cmake.configure() E ConanException: Error 127 while executing E E E ================================== Traceback: ================================== E Traceback (most recent call last): E File "/build/source/conans/errors.py", line 52, in conanfile_exception_formatter E yield E File "/build/source/conans/client/conanfile/build.py", line 14, in run_build_method E conanfile.build() E File "/build/tmpxcumyyh5conans/path with spaces/.conan2/p/pkged9a1a1c93536/e/conanfile.py", line 49, in build E cmake.configure() E File "/build/source/conan/tools/cmake/cmake.py", line 118, in configure E self._conanfile.run(command, stdout=stdout, stderr=stderr) E File "/build/source/conans/model/conan_file.py", line 341, in run E raise ConanException("Error %d while executing" % retcode) E conans.errors.ConanException: Error 127 while executing E E During handling of the above exception, another exception occurred: E E Traceback (most recent call last): E File "/build/source/conans/test/utils/tools.py", line 533, in _run_cli E command.run(args) E File "/build/source/conan/cli/cli.py", line 193, in run E command.run(self._conan_api, args[0][1:]) E File "/build/source/conan/cli/command.py", line 164, in run E info = self._method(conan_api, parser, *args) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/build/source/conan/cli/commands/create.py", line 115, in create E conan_api.install.install_binaries(deps_graph=deps_graph, remotes=remotes) E File "/build/source/conan/api/subapi/install.py", line 26, in install_binaries E installer.install(deps_graph, remotes, install_order=install_order) E File "/build/source/conans/client/installer.py", line 259, in install E self._handle_package(package, install_reference, handled_count, package_count) E File "/build/source/conans/client/installer.py", line 319, in _handle_package E self._handle_node_build(package, package_layout) E File "/build/source/conans/client/installer.py", line 392, in _handle_node_build E pref = builder.build_package(node, pkg_layout) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/build/source/conans/client/installer.py", line 161, in build_package E raise exc E File "/build/source/conans/client/installer.py", line 154, in build_package E self._build(conanfile, pref) E File "/build/source/conans/client/installer.py", line 103, in _build E raise exc E File "/build/source/conans/client/installer.py", line 96, in _build E run_build_method(conanfile, self._hook_manager) E File "/build/source/conans/client/conanfile/build.py", line 12, in run_build_method E with conanfile_exception_formatter(conanfile, "build"): E File "/nix/store/lpi16513bai8kg2bd841745vzk72475x-python3-3.11.9/lib/python3.11/contextlib.py", line 158, in __exit__ E self.gen.throw(typ, value, traceback) E File "/build/source/conans/errors.py", line 67, in conanfile_exception_formatter E _raise_conanfile_exc(exc) E File "/build/source/conans/errors.py", line 49, in _raise_conanfile_exc E raise ConanException(m) E conans.errors.ConanException: pkg/0.1: Error in build() method, line 49 E cmake.configure() E ConanException: Error 127 while executing conans/test/utils/tools.py:611: Exception ___________________________ TestInRepo.test_in_repo ____________________________ [gw0] linux -- Python 3.11.9 /nix/store/lpi16513bai8kg2bd841745vzk72475x-python3-3.11.9/bin/python3.11 self = def test_in_repo(self): """testing that it is possible to put a "recipes" folder inside a source repo, and use it as local-recipes-index repository, exporting the source from itself """ repo_folder = temp_folder() cmake = gen_cmakelists(libname="pkg", libsources=["pkg.cpp"], install=True, public_header="pkg.h") config_yml = textwrap.dedent("""\ versions: "0.1": folder: all """) conanfile = textwrap.dedent("""\ import os from conan import ConanFile from conan.tools.cmake import CMake, cmake_layout from conan.tools.files import copy class PkgRecipe(ConanFile): name = "pkg" package_type = "library" # Binary configuration settings = "os", "compiler", "build_type", "arch" options = {"shared": [True, False], "fPIC": [True, False]} default_options = {"shared": False, "fPIC": True} generators = "CMakeToolchain" def export_sources(self): src = os.path.dirname(os.path.dirname(os.path.dirname(self.recipe_folder))) copy(self, "*", src=src, dst=self.export_sources_folder, excludes=["recipes*"]) def config_options(self): if self.settings.os == "Windows": self.options.rm_safe("fPIC") def configure(self): if self.options.shared: self.options.rm_safe("fPIC") def layout(self): cmake_layout(self) def build(self): cmake = CMake(self) cmake.configure() cmake.build() def package(self): cmake = CMake(self) cmake.install() def package_info(self): self.cpp_info.libs = [self.name] """) save_files(repo_folder, {"recipes/pkg/config.yml": config_yml, "recipes/pkg/all/conanfile.py": conanfile, "CMakeLists.txt": cmake, "pkg.h": gen_function_h(name="pkg"), "pkg.cpp": gen_function_cpp(name="pkg")}) c = TestClient() c.run(f"remote add local '{repo_folder}'") c.run("new cmake_exe -d name=app -d version=0.1 -d requires=pkg/0.1") > c.run("create . --build=missing") conans/test/functional/test_local_recipes_index.py:110: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ conans/test/utils/tools.py:570: in run return self._run_cli(command_line, assert_error=assert_error) conans/test/utils/tools.py:544: in _run_cli self._handle_cli_result(command_line, assert_error=assert_error, error=error, trace=trace) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = command = 'create . --build=missing', assert_error = False, error = 1 trace = 'Traceback (most recent call last):\n File "/build/source/conans/errors.py", line 52, in conanfile_exception_formatte...ception: pkg/0.1: Error in build() method, line 34\n\tcmake.configure()\n\tConanException: Error 127 while executing\n' def _handle_cli_result(self, command, assert_error, error, trace=None): if (assert_error and not error) or (not assert_error and error): if assert_error: msg = " Command succeeded (failure expected): " else: msg = " Command failed (unexpectedly): " exc_message = "\n{header}\n{cmd}\n{output_header}\n{output}\n".format( header='{:=^80}'.format(msg), output_header='{:=^80}'.format(" Output: "), cmd=command, output=str(self.stderr) + str(self.stdout) + "\n" + str(self.out) ) if trace: exc_message += '{:=^80}'.format(" Traceback: ") + f"\n{trace}" > raise Exception(exc_message) E Exception: E ======================== Command failed (unexpectedly): ======================== E create . --build=missing E =================================== Output: ==================================== E E ======== Exporting recipe to the cache ======== E app/0.1: Exporting package recipe: /build/tmprx_2_y7zconans/path with spaces/conanfile.py E app/0.1: Copied 1 '.py' file: conanfile.py E app/0.1: Copied 1 '.txt' file: CMakeLists.txt E app/0.1: Copied 2 '.cpp' files: app.cpp, main.cpp E app/0.1: Copied 1 '.h' file: app.h E app/0.1: Exported to cache folder: /build/tmpju5j4px8conans/path with spaces/.conan2/p/appb30bb2a632370/e E app/0.1: Exported: app/0.1#c9cb22ceee1222f4de66846ba79b9cae (2024-05-24 12:16:45 UTC) E E ======== Input profiles ======== E Profile host: E [settings] E arch=x86_64 E build_type=Release E compiler=gcc E compiler.libcxx=libstdc++11 E compiler.version=8 E os=Linux E E Profile build: E [settings] E arch=x86_64 E build_type=Release E compiler=gcc E compiler.libcxx=libstdc++11 E compiler.version=8 E os=Linux E E E ======== Computing dependency graph ======== E pkg/0.1: Not found in local cache, looking in remotes... E pkg/0.1: Checking remote: local E pkg/0.1: Downloaded recipe revision 765d2a89a82233a3cb4f5c963150f570 E Graph root E cli E Requirements E app/0.1#c9cb22ceee1222f4de66846ba79b9cae - Cache E pkg/0.1#765d2a89a82233a3cb4f5c963150f570 - Downloaded (local) E E ======== Computing necessary packages ======== E Requirements E app/0.1#c9cb22ceee1222f4de66846ba79b9cae:81b721025a78712c590098ed3ce15ad16df2b38a - Build E pkg/0.1#765d2a89a82233a3cb4f5c963150f570:ea32a68c86212b11bf50a900d3e0fb4211c8dbe3 - Build E E ======== Installing packages ======== E pkg/0.1: Sources downloaded from 'local' E E -------- Installing package pkg/0.1 (1 of 2) -------- E pkg/0.1: Building from source E pkg/0.1: Package pkg/0.1:ea32a68c86212b11bf50a900d3e0fb4211c8dbe3 E pkg/0.1: Copying sources to build folder E pkg/0.1: Building your package in /build/tmpju5j4px8conans/path with spaces/.conan2/p/b/pkgaa730390edd78/b E pkg/0.1: Writing generators to /build/tmpju5j4px8conans/path with spaces/.conan2/p/b/pkgaa730390edd78/b/build/Release/generators E pkg/0.1: Generator 'CMakeToolchain' calling 'generate()' E pkg/0.1: CMakeToolchain generated: conan_toolchain.cmake E pkg/0.1: CMakeToolchain generated: /build/tmpju5j4px8conans/path with spaces/.conan2/p/b/pkgaa730390edd78/b/build/Release/generators/CMakePresets.json E pkg/0.1: CMakeToolchain generated: /build/tmpju5j4px8conans/path with spaces/.conan2/p/b/pkgaa730390edd78/b/CMakeUserPresets.json E pkg/0.1: Generating aggregated env files E pkg/0.1: Generated aggregated env files: ['conanbuild.sh', 'conanrun.sh'] E pkg/0.1: Calling build() E pkg/0.1: Running CMake.configure() E pkg/0.1: RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/build/tmpju5j4px8conans/path with spaces/.conan2/p/b/pkgaa730390edd78/p" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/build/tmpju5j4px8conans/path with spaces/.conan2/p/b/pkgaa730390edd78/b" E /nix/store/h3bhzvz9ipglcybbcvkxvm4vg9lwvqg4-bash-5.2p26/bin/sh: line 1: cmake: command not found E E pkg/0.1: ERROR: E Package 'ea32a68c86212b11bf50a900d3e0fb4211c8dbe3' build failed E pkg/0.1: WARN: Build folder /build/tmpju5j4px8conans/path with spaces/.conan2/p/b/pkgaa730390edd78/b/build/Release E ERROR: pkg/0.1: Error in build() method, line 34 E cmake.configure() E ConanException: Error 127 while executing E E E ================================== Traceback: ================================== E Traceback (most recent call last): E File "/build/source/conans/errors.py", line 52, in conanfile_exception_formatter E yield E File "/build/source/conans/client/conanfile/build.py", line 14, in run_build_method E conanfile.build() E File "/build/tmpju5j4px8conans/path with spaces/.conan2/p/pkg48b5395b31dc8/e/conanfile.py", line 34, in build E cmake.configure() E File "/build/source/conan/tools/cmake/cmake.py", line 118, in configure E self._conanfile.run(command, stdout=stdout, stderr=stderr) E File "/build/source/conans/model/conan_file.py", line 341, in run E raise ConanException("Error %d while executing" % retcode) E conans.errors.ConanException: Error 127 while executing E E During handling of the above exception, another exception occurred: E E Traceback (most recent call last): E File "/build/source/conans/test/utils/tools.py", line 533, in _run_cli E command.run(args) E File "/build/source/conan/cli/cli.py", line 193, in run E command.run(self._conan_api, args[0][1:]) E File "/build/source/conan/cli/command.py", line 164, in run E info = self._method(conan_api, parser, *args) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/build/source/conan/cli/commands/create.py", line 115, in create E conan_api.install.install_binaries(deps_graph=deps_graph, remotes=remotes) E File "/build/source/conan/api/subapi/install.py", line 26, in install_binaries E installer.install(deps_graph, remotes, install_order=install_order) E File "/build/source/conans/client/installer.py", line 259, in install E self._handle_package(package, install_reference, handled_count, package_count) E File "/build/source/conans/client/installer.py", line 319, in _handle_package E self._handle_node_build(package, package_layout) E File "/build/source/conans/client/installer.py", line 392, in _handle_node_build E pref = builder.build_package(node, pkg_layout) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/build/source/conans/client/installer.py", line 161, in build_package E raise exc E File "/build/source/conans/client/installer.py", line 154, in build_package E self._build(conanfile, pref) E File "/build/source/conans/client/installer.py", line 103, in _build E raise exc E File "/build/source/conans/client/installer.py", line 96, in _build E run_build_method(conanfile, self._hook_manager) E File "/build/source/conans/client/conanfile/build.py", line 12, in run_build_method E with conanfile_exception_formatter(conanfile, "build"): E File "/nix/store/lpi16513bai8kg2bd841745vzk72475x-python3-3.11.9/lib/python3.11/contextlib.py", line 158, in __exit__ E self.gen.throw(typ, value, traceback) E File "/build/source/conans/errors.py", line 67, in conanfile_exception_formatter E _raise_conanfile_exc(exc) E File "/build/source/conans/errors.py", line 49, in _raise_conanfile_exc E raise ConanException(m) E conans.errors.ConanException: pkg/0.1: Error in build() method, line 34 E cmake.configure() E ConanException: Error 127 while executing conans/test/utils/tools.py:611: Exception ________________ TestProfileDetectAPI.test_profile_detect_libc _________________ [gw0] linux -- Python 3.11.9 /nix/store/lpi16513bai8kg2bd841745vzk72475x-python3-3.11.9/bin/python3.11 self = @pytest.mark.skipif(platform.system() != "Linux", reason="Only linux") def test_profile_detect_libc(self): client = TestClient() tpl1 = textwrap.dedent(""" {% set compiler, version, _ = detect_api.detect_gcc_compiler() %} {% set libc, libc_version = detect_api.detect_libc() %} [settings] os=Linux compiler={{compiler}} compiler.version={{version}} [conf] user.confvar:libc={{libc}} user.confvar:libc_version={{libc_version}} """) client.save({"profile1": tpl1}) client.run("profile show -pr=profile1") libc_name, libc_version = detect_api.detect_libc() > assert libc_name is not None E assert None is not None conans/test/functional/test_profile_detect_api.py:65: AssertionError ----------------------------- Captured stderr call ----------------------------- detect_api: WARN: detect_musl_libc() did not detect musl libc in the first line of output from '/usr/bin/ldd': '/nix/store/h3bhzvz9ipglcybbcvkxvm4vg9lwvqg4-bash-5.2p26/bin/sh: line 1: /usr/bin/ldd: No such file or directory' detect_api: WARN: Couldn't detect the libc provider and version _______________________________ test_large_graph _______________________________ [gw3] linux -- Python 3.11.9 /nix/store/lpi16513bai8kg2bd841745vzk72475x-python3-3.11.9/bin/python3.11 def test_large_graph(): c = TestClient(cache_folder="T:/mycache") num_test = 40 num_pkgs = 40 """for i in range(num_test): conanfile = GenConanfile(f"test{i}", "0.1") if i > 0: conanfile.with_requires(f"test{i-1}/0.1") c.save({"conanfile.py": conanfile}) c.run("create .") for i in range(num_pkgs): conanfile = GenConanfile(f"pkg{i}", "0.1").with_test_requires(f"test{num_test-1}/0.1") if i > 0: conanfile.with_requires(f"pkg{i-1}/0.1") c.save({"conanfile.py": conanfile}) c.run("create .") """ t = time.time() pr = cProfile.Profile() pr.enable() > c.run(f"install --requires=pkg{num_pkgs - 1}/0.1") conans/test/performance/test_large_graph.py:34: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ conans/test/utils/tools.py:570: in run return self._run_cli(command_line, assert_error=assert_error) conans/test/utils/tools.py:544: in _run_cli self._handle_cli_result(command_line, assert_error=assert_error, error=error, trace=trace) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = command = 'install --requires=pkg39/0.1', assert_error = False, error = 1 trace = 'Traceback (most recent call last):\n File "/build/source/conans/test/utils/tools.py", line 533, in _run_cli\n com...lt profile (type \'conan profile detect\' command)\nor specify your own profile with \'--profile:build=\'\n' def _handle_cli_result(self, command, assert_error, error, trace=None): if (assert_error and not error) or (not assert_error and error): if assert_error: msg = " Command succeeded (failure expected): " else: msg = " Command failed (unexpectedly): " exc_message = "\n{header}\n{cmd}\n{output_header}\n{output}\n".format( header='{:=^80}'.format(msg), output_header='{:=^80}'.format(" Output: "), cmd=command, output=str(self.stderr) + str(self.stdout) + "\n" + str(self.out) ) if trace: exc_message += '{:=^80}'.format(" Traceback: ") + f"\n{trace}" > raise Exception(exc_message) E Exception: E ======================== Command failed (unexpectedly): ======================== E install --requires=pkg39/0.1 E =================================== Output: ==================================== E ERROR: The default build profile 'T:/mycache/profiles/default' doesn't exist. E You need to create a default profile (type 'conan profile detect' command) E or specify your own profile with '--profile:build=' E E E ================================== Traceback: ================================== E Traceback (most recent call last): E File "/build/source/conans/test/utils/tools.py", line 533, in _run_cli E command.run(args) E File "/build/source/conan/cli/cli.py", line 193, in run E command.run(self._conan_api, args[0][1:]) E File "/build/source/conan/cli/command.py", line 164, in run E info = self._method(conan_api, parser, *args) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/build/source/conan/cli/commands/install.py", line 54, in install E profile_host, profile_build = conan_api.profiles.get_profiles_from_args(args) E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E File "/build/source/conan/api/subapi/profiles.py", line 55, in get_profiles_from_args E build_profiles = args.profile_build or [self.get_default_build()] E ^^^^^^^^^^^^^^^^^^^^^^^^ E File "/build/source/conan/api/subapi/profiles.py", line 51, in get_default_build E raise ConanException(msg.format(default_profile)) E conans.errors.ConanException: The default build profile 'T:/mycache/profiles/default' doesn't exist. E You need to create a default profile (type 'conan profile detect' command) E or specify your own profile with '--profile:build=' conans/test/utils/tools.py:611: Exception =============================== warnings summary =============================== ../../nix/store/qhn0bjf88xf2d660xs4i2nprmzgnk21j-python3.11-bottle-0.12.25/lib/python3.11/site-packages/bottle.py:38 ../../nix/store/qhn0bjf88xf2d660xs4i2nprmzgnk21j-python3.11-bottle-0.12.25/lib/python3.11/site-packages/bottle.py:38 ../../nix/store/qhn0bjf88xf2d660xs4i2nprmzgnk21j-python3.11-bottle-0.12.25/lib/python3.11/site-packages/bottle.py:38 ../../nix/store/qhn0bjf88xf2d660xs4i2nprmzgnk21j-python3.11-bottle-0.12.25/lib/python3.11/site-packages/bottle.py:38 /nix/store/qhn0bjf88xf2d660xs4i2nprmzgnk21j-python3.11-bottle-0.12.25/lib/python3.11/site-packages/bottle.py:38: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 import base64, cgi, email.utils, functools, hmac, itertools, mimetypes,\ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED conans/test/functional/test_local_recipes_index.py::TestLocalRecipeIndexNew::test_conan_new_local_recipes_index - Exception: FAILED conans/test/functional/test_local_recipes_index.py::TestInRepo::test_in_repo - Exception: FAILED conans/test/functional/test_profile_detect_api.py::TestProfileDetectAPI::test_profile_detect_libc - assert None is not None FAILED conans/test/performance/test_large_graph.py::test_large_graph - Exception: ERROR conans/test/integration/command/runner_test.py = 4 failed, 3746 passed, 107 skipped, 1 xfailed, 4 warnings, 1 error in 261.81s (0:04:21) = /nix/store/558iw5j1bk7z6wrg8cp96q2rx03jqj1v-stdenv-linux/setup: line 1579: pop_var_context: head of shell_variables not a function context error: builder for '/nix/store/rl0yajrwf6y53n28w6i2j631q4pqml1b-conan-2.3.1.drv' failed with exit code 1; last 10 log lines: > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > =========================== short test summary info ============================ > FAILED conans/test/functional/test_local_recipes_index.py::TestLocalRecipeIndexNew::test_conan_new_local_recipes_index - Exception: > FAILED conans/test/functional/test_local_recipes_index.py::TestInRepo::test_in_repo - Exception: > FAILED conans/test/functional/test_profile_detect_api.py::TestProfileDetectAPI::test_profile_detect_libc - assert None is not None > FAILED conans/test/performance/test_large_graph.py::test_large_graph - Exception: > ERROR conans/test/integration/command/runner_test.py > = 4 failed, 3746 passed, 107 skipped, 1 xfailed, 4 warnings, 1 error in 261.81s (0:04:21) = > /nix/store/558iw5j1bk7z6wrg8cp96q2rx03jqj1v-stdenv-linux/setup: line 1579: pop_var_context: head of shell_variables not a function context For full logs, run 'nix log /nix/store/rl0yajrwf6y53n28w6i2j631q4pqml1b-conan-2.3.1.drv'. ```
jhol commented 2 months ago

Now fixed: https://github.com/msys2/MINGW-packages/pull/21354