[release/2.4] Newer conda versions require --update-deps to update dependencies such as libgcc-ng #1946
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes SWDEV-516667
libgcc-ng pkgs/main/linux-64::libgcc-ng-11.2.0-h1234567_1
libgcc-ng-14.2.0 | h69a702a_2 52 KB conda-forge
On the contrary, conda 25.1.1 does not update any dependencies, and hence the same installation of libgcc-ng is present in DOCKER_F after this step.
The older libgcc-ng from the "defaults" conda channel contains a problematic RPATH setting:
0x000000000000000f (RPATH) Library rpath: [/opt/conda/conda-bld/gcc-compiler_1654084175708/h_env_placehold_placehold_placehold_placehold_placehold_placeho
ld_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold/lib]
The newer libgcc-ng from the "conda-forge" conda channel contains the proper RPATH setting:
0x000000000000000f (RPATH) Library rpath: [$ORIGIN/.]
Adding the "--update-deps" flags to the conda install command installs the newer libgcc-ng package from the "conda-forge" conda channel:
libgcc-ng-12.3.0 | h77fa898_13 762 KB conda-forge
While this is not the exact same version of libgcc-ng as installed by conda 24.7.1, it does seem to be the more compatible version, as it matches the version of libstdcxx-ng package being installed (12.3.0)
So maybe conda actually fixed a bug in their dependency resolution/installation code to update the dependencies only if the --update-deps flag is specified.