Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Use File.read instead of `more` in extconf.rb. #30

Merged
merged 1 commit into from

2 participants

@mutru

In some contexts, more will wait for user input before returning, hence
blocking deployments or CI runs.

@mutru mutru Use File.read instead of `more` in extconf.rb.
In some contexts, `more` will require user input before returning, hence
blocking deployments or CI runs.
7479969
@ohler55
Owner

Good catch.

@ohler55 ohler55 merged commit c691121 into ohler55:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 10, 2012
  1. @mutru

    Use File.read instead of `more` in extconf.rb.

    mutru authored
    In some contexts, `more` will require user input before returning, hence
    blocking deployments or CI runs.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  ext/oj/extconf.rb
View
2  ext/oj/extconf.rb
@@ -32,7 +32,7 @@
# missing #define. This is the quick and easy way around it.
if 'x86_64-linux' == RUBY_PLATFORM && '1.9.3' == RUBY_VERSION && '2011-10-30' == RUBY_RELEASE_DATE
begin
- dflags['NEEDS_STPCPY'] = nil if `more /etc/issue`.include?('CentOS release 5.4')
+ dflags['NEEDS_STPCPY'] = nil if File.read('/etc/redhat-release').include?('CentOS release 5.4')
rescue Exception => e
end
end
Something went wrong with that request. Please try again.