From ad985d3c0328f5b9c45434b8d450df7dd453d496 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Thu, 29 Jul 2021 09:10:04 +0530 Subject: [PATCH] Make older gcc builds depend on libgcc-ng <=9.3.0 --- recipe/gen_patch_json.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/recipe/gen_patch_json.py b/recipe/gen_patch_json.py index 23732ad40b..6ecc06682a 100644 --- a/recipe/gen_patch_json.py +++ b/recipe/gen_patch_json.py @@ -917,6 +917,14 @@ def _gen_new_index(repodata, subdir): new_constrains.append("sysroot_" + subdir + " ==99999999999") record["constrains"] = new_constrains + if (record_name == "gcc_impl_{}".format(subdir) + and record['version'] in ['5.4.0', '7.2.0', '7.3.0', '8.2.0', '8.4.0', '9.3.0'] + and record.get('timestamp', 0) < 1627530043000 # 2021-07-29 + ): + new_depends = record.get("depends", []) + new_depends.append("libgcc-ng <=9.3.0") + record["depends"] = new_depends + # old CDTs with the conda_cos6 or conda_cos7 name in the sysroot need to # conflict with the new CDT and compiler packages # all of the new CDTs and compilers depend on the sysroot_{subdir} packages