Skip to content

Commit

Permalink
Pin RHEL 9 builds to 9.1 (#999)
Browse files Browse the repository at this point in the history
RHEL 9.2 has been released, but there are packages in EPEL which need to
be rebuilt before we can make the change.

For now, let's pin to RHEL 9.1 to unblock builds.
  • Loading branch information
cottsay committed May 12, 2023
1 parent 39d96ea commit d81efda
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ros_buildfarm/templates/release/rpm/mock_config.cfg.em
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ config_opts['macros']['%_without_weak_deps'] = '1'
config_opts['chroot_setup_cmd'] += ' gcc-c++ make'
@[end if]@

@[if os_name == 'rhel' and os_code_name == '9']@
# Pin RHEL 9 to 9.1 everywhere except EPEL
import re
config_opts[f'{config_opts.package_manager}.conf'] = re.sub(
r'(?<!(epel|EPEL)-)\$releasever',
'9.1',
config_opts[f'{config_opts.package_manager}.conf'])
@[end if]@

config_opts[f'{config_opts.package_manager}.conf'] += """
@[for i, url in enumerate(distribution_repository_urls)]@
[ros-buildfarm-@(i)]
Expand Down

0 comments on commit d81efda

Please sign in to comment.