diff options
author | Jun Aruga <jaruga@redhat.com> | 2023-05-23 17:38:25 +0200 |
---|---|---|
committer | Jun Aruga <jaruga@redhat.com> | 2023-05-23 17:55:29 +0200 |
commit | 121b3b2a35ca9dc506d220595b60df65395751aa (patch) | |
tree | 6d227e66ea445ef5927018c7a924dec285e0f4aa | |
parent | 78e9197f4a01676ab194d014d20c3ba4e9a1ee87 (diff) | |
download | ruby-openssl-121b3b2a35ca9dc506d220595b60df65395751aa.tar.gz |
Revert "CI: Enable the verbose mode in the mkmf.rb."
This reverts commit a832f5cb98ee952a3e7ceeddf59065b9c1f430b4.
Because there is a simpler way to enable the verbose mode by setting the
environment variable `MAKEFLAGS`.
-rw-r--r-- | .github/workflows/test.yml | 9 | ||||
-rwxr-xr-x | tool/enable-mkmf-verbose | 24 |
2 files changed, 0 insertions, 33 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb33a8d2..374447f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,11 +42,6 @@ jobs: - name: depends run: bundle install - # Enable the verbose option in mkmf.rb to print the compiling commands. - - name: enable mkmf verbose - run: tool/enable-mkmf-verbose - if: runner.os == 'Linux' || runner.os == 'macOS' - - name: compile run: rake compile -- --enable-debug @@ -134,10 +129,6 @@ jobs: - name: depends run: bundle install - - name: enable mkmf verbose - run: tool/enable-mkmf-verbose - if: runner.os == 'Linux' || runner.os == 'macOS' - - name: compile run: rake compile -- --enable-debug --with-openssl-dir=$HOME/.openssl/${{ matrix.openssl }} diff --git a/tool/enable-mkmf-verbose b/tool/enable-mkmf-verbose deleted file mode 100755 index be039077..00000000 --- a/tool/enable-mkmf-verbose +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -set -eux - -gem_home="$(gem environment home)" -mkmf_rb_path="$(find "${gem_home}"/../.. -name mkmf.rb)" - -# Backup the original file. -cp -p "${mkmf_rb_path}" "${mkmf_rb_path}.orig" - -# Replace the target line to set the verbose option. -sed -i -e 's/^V = .*/V = 1/' "${mkmf_rb_path}" - -# Print the difference between the original and modified file. This is useful -# to debug when the `mkmf.rb` may change in the future. And check if the -#`mkmf.rb` was modified. Because the `sed` command returns the exit status 0 no -# matter it replaces successfully or not. -if diff "${mkmf_rb_path}.orig" "${mkmf_rb_path}"; then - echo "error: ${mkmf_rb_path} was not modified." 1>&2 - exit 1 -elif [ "${?}" != 1 ]; then - echo "error: diff was failed." 1>&2 - exit 1 -fi |