File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ build_package_standard() {
720720 fi
721721 if [ -z " $CC " ] && is_mac 1010; then
722722 export CC=clang
723- elif [ " $ruby_semver " -lt 30200 ] && is_fedora 42; then
723+ elif [[ " $package_var_name " = " RUBY " && " $ ruby_semver" -lt 30200 ] ] && is_fedora 42; then
724724 # Fedora 42+ has updated to GCC v15. GCC v15 changed the default
725725 # mode from gnu17 to gnu23: https://gcc.gnu.org/gcc-15/changes.html#c
726726 #
Original file line number Diff line number Diff line change @@ -423,6 +423,12 @@ install_package "ruby-3.2.0" "http://ruby-lang.org/ruby/2.0/ruby-3.2.0.tar.gz"
423423DEF
424424 assert_success
425425
426+ sanitized_output=" $( grep -v ' ^\(->\|==>\)' <<< " $output" || true) "
427+ if [ -n " $sanitized_output " ]; then
428+ echo " expected no warnings, got: $sanitized_output "
429+ return 1
430+ fi
431+
426432 unstub uname
427433 unstub brew
428434 unstub cc
You can’t perform that action at this time.
0 commit comments