From d81935b0ca190261edc7b83f8c5821832690e33f Mon Sep 17 00:00:00 2001 From: donoghuc Date: Tue, 16 Apr 2024 08:35:29 -0700 Subject: [PATCH 1/3] (PE-38079) Revert ffi bump Puppet and Facter are confined, work is planned to be able to unpin that. Ship 15 in the meantime. --- configs/components/rubygem-ffi.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configs/components/rubygem-ffi.rb b/configs/components/rubygem-ffi.rb index fa7cbc709..e86bdd585 100644 --- a/configs/components/rubygem-ffi.rb +++ b/configs/components/rubygem-ffi.rb @@ -11,8 +11,8 @@ pkg.version '1.13.1' pkg.sha256sum '4e15f52ee45af7c5674d656041855448adbb5022618be252cd602d81b8e2978a' else - pkg.version '1.16.3' - pkg.sha256sum '6d3242ff10c87271b0675c58d68d3f10148fabc2ad6da52a18123f06078871fb' + pkg.version '1.15.5' + pkg.sha256sum '6f2ed2fa68047962d6072b964420cba91d82ce6fa8ee251950c17fca6af3c2a0' end instance_eval File.read('configs/components/_base-rubygem.rb') @@ -59,7 +59,7 @@ case pkg.get_version when '1.9.25' pkg.sha256sum '5473ac958b78f271f53e9a88197c35cd3e990fbe625d21e525c56d62ae3750da' - when '1.16.3' + when '1.15.5' pkg.sha256sum '9acc4e474bef25dbcf827b1e6fce4067e9a1eff74a0296d25f0af392fafcd096' end @@ -70,8 +70,8 @@ case pkg.get_version when '1.9.25' pkg.sha256sum '43d357732a6a0e3e41dc7e28a9c9c5112ac66f4a6ed9e1de40afba9ffcb836c1' - when '1.16.3' - pkg.sha256sum 'ee49ccfa125f84a2f2053a0e6dd8433a34233479e026513ecbf06798ba542fe6' + when '1.15.5' + pkg.sha256sum '6e52c39fdbbccc085ae05d489d1b835ce05dcdf2a4c88ba739e3b42afd2b5404' end pkg.url "https://rubygems.org/downloads/ffi-#{pkg.get_version}-x86-mingw32.gem" @@ -157,4 +157,4 @@ %(#{platform[:sed]} -i '0,/ensure_required_ruby_version_met/b; /ensure_required_ruby_version_met/d' #{base_ruby}/rubygems/installer.rb) end end -end +end \ No newline at end of file From 176d4e045298055ee7c4cd9976a1aa2c80848d25 Mon Sep 17 00:00:00 2001 From: donoghuc Date: Tue, 16 Apr 2024 08:43:21 -0700 Subject: [PATCH 2/3] (PE-38079) Fix typo in json-schema component Incorrectly specified the wrong version (the sha is correct) --- configs/components/rubygem-json-schema.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/components/rubygem-json-schema.rb b/configs/components/rubygem-json-schema.rb index 1082650f4..44a6f6a44 100644 --- a/configs/components/rubygem-json-schema.rb +++ b/configs/components/rubygem-json-schema.rb @@ -1,5 +1,5 @@ component "rubygem-json-schema" do |pkg, settings, platform| - pkg.version "4.3.1" + pkg.version "4.3.0" pkg.sha256sum "ac35bfabf99eea2b8b45fbccbb714b399fbe7824c621fc985048a9c2e45d58d2" instance_eval File.read('configs/components/_base-rubygem.rb') From c8062b03ff31a2f107aa34ee7154f213745c2ef0 Mon Sep 17 00:00:00 2001 From: donoghuc Date: Tue, 16 Apr 2024 10:20:11 -0700 Subject: [PATCH 3/3] (PE-38079) Pin back semantic_puppet on cross-compiled platfomrms that use pl-ruby Copy pattern in ffi component for pinning back to older components on cross compiled platforms that dont use the shipped ruby to build gems. --- configs/components/rubygem-semantic_puppet.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configs/components/rubygem-semantic_puppet.rb b/configs/components/rubygem-semantic_puppet.rb index bc7e891fe..48722e646 100644 --- a/configs/components/rubygem-semantic_puppet.rb +++ b/configs/components/rubygem-semantic_puppet.rb @@ -1,11 +1,18 @@ component "rubygem-semantic_puppet" do |pkg, settings, platform| # Projects may define a :rubygem_semantic_puppet_version setting, or we use 1.0.4 by default version = settings[:rubygem_semantic_puppet_version] || '1.1.0' + if platform.is_cross_compiled? && platform.is_solaris? + # solaris 10/11 sparc are failing in agent-runtime-7.x installing semantic_puppet because the gem requires ruby >= 2.7.0 + # when cross compiling on sparc, we use ancient pl-ruby or equivalen. For these older platforms, use older semantic_puppet + version = '1.0.4' + end pkg.version version case version when '0.1.2' pkg.md5sum '192ae7729997cb5d5364f64b99b13121' + when '1.0.4' + pkg.sha256sum "5d8380bf733c1552ef77e06a7c44a6d5b48def7d390ecf3bd71cad477f5ce13d" when '1.1.0' pkg.sha256sum "52d108d08e1a5d95c00343cb3a4936fb1deecff2be612ec39c9cb66be5a8b859" else