[#78633] ruby/spec needs help from CRuby committers — Benoit Daloze <eregontp@...>
Currently, ruby/spec is maintained mostly by individuals and enjoys the
13 messages
2016/12/13
[#78642] Re: ruby/spec needs help from CRuby committers
— Eric Wong <normalperson@...>
2016/12/14
Benoit Daloze <eregontp@gmail.com> wrote:
[#78963] Re: ruby/spec needs help from CRuby committers
— Urabe Shyouhei <shyouhei@...>
2017/01/04
I did ask attendees of last developer meeting to join this
[#79029] Re: ruby/spec needs help from CRuby committers
— Benoit Daloze <eregontp@...>
2017/01/09
Thank you Shyouhei-san for your reply.
[ruby-core:78794] [Ruby trunk Bug#13060] pkg_config breaks when adding '-Wconversion' to $CFLAGS
From:
hone02@...
Date:
2016-12-21 19:35:22 UTC
List:
ruby-core #78794
Issue #13060 has been reported by Terence Lee.
----------------------------------------
Bug #13060: pkg_config breaks when adding '-Wconversion' to $CFLAGS
https://bugs.ruby-lang.org/issues/13060
* Author: Terence Lee
* Status: Open
* Priority: Normal
* Assignee:
* Target version: 2.4
* ruby -v: ruby 2.4.0rc1 (2016-12-12 trunk 57064) [x86_64-linux]
* Backport:
----------------------------------------
When compiling the nokogiri gem, you can opt to use system libraries which uses `pkg_config`. When I add '-Wconversion' to $CFLAGS, it causes 'pkg_config('libxml-2.0')' to return nil. This is not the case in Ruby 2.3.3.
This will affect anyone using nokogiri with Ruby 2.4.0 on Heroku.
test script:
~~~ ruby
require 'mkmf'
puts RUBY_DESCRIPTION
puts "pkg_config('libxml-2.0'): #{pkg_config('libxml-2.0').inspect}"
puts "Adding -Wconversion to $CFLAGS"
$CFLAGS << " -Wconversion"
puts "pkg_config('libxml-2.0'): #{pkg_config('libxml-2.0').inspect}"
~~~
ruby 2.3.3 output:
~~~
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
pkg_config('libxml-2.0'): ["", "", "-lxml2"]
Adding -Wconversion to $CFLAGS
pkg_config('libxml-2.0'): ["", "", "-lxml2"]
~~~
ruby 2.4.0-rc1 output:
~~~
ruby 2.4.0rc1 (2016-12-12 trunk 57064) [x86_64-linux]
pkg_config('libxml-2.0'): ["", "", "-lxml2"]
Adding -Wconversion to $CFLAGS
pkg_config('libxml-2.0'): nil
~~~
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>