Skip to content

Commit

Permalink
Merge pull request conda-forge#157 from isuruf/gcc
Browse files Browse the repository at this point in the history
Make older gcc builds depend on libgcc-ng <=9.3.0
  • Loading branch information
beckermr authored Jul 29, 2021
2 parents c8af8e6 + ad985d3 commit 860a9af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions recipe/gen_patch_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,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
Expand Down

0 comments on commit 860a9af

Please sign in to comment.