[前][次][番号順一覧][スレッド一覧]

ruby-changes:42925

From: nobu <ko1@a...>
Date: Sat, 14 May 2016 09:04:41 +0900 (JST)
Subject: [ruby-changes:42925] nobu:r54999 (trunk): lib/mkmf.rb: use xsystem to pkg-config --exists

nobu	2016-05-14 09:04:36 +0900 (Sat, 14 May 2016)

  New Revision: 54999

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54999

  Log:
    lib/mkmf.rb: use xsystem to pkg-config --exists
    
    * lib/mkmf.rb (pkg_config): use xsystem consistently to set up
      library path environment variable as well as latter pkg-config
      calls.  [ruby-dev:49619] [Bug #12379]

  Modified files:
    trunk/ChangeLog
    trunk/lib/mkmf.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54998)
+++ ChangeLog	(revision 54999)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat May 14 09:04:34 2016  Nobuyoshi Nakada  <nobu@r...>
+
+	* lib/mkmf.rb (pkg_config): use xsystem consistently to set up
+	  library path environment variable as well as latter pkg-config
+	  calls.  [ruby-dev:49619] [Bug #12379]
+
 Sat May 14 00:16:54 2016  Nobuyoshi Nakada  <nobu@r...>
 
 	* random.c (make_seed_value): append leading-zero-guard and get
Index: lib/mkmf.rb
===================================================================
--- lib/mkmf.rb	(revision 54998)
+++ lib/mkmf.rb	(revision 54999)
@@ -1791,7 +1791,7 @@ SRC https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1791
     elsif ($PKGCONFIG ||=
            (pkgconfig = with_config("pkg-config", ("pkg-config" unless CROSS_COMPILING))) &&
            find_executable0(pkgconfig) && pkgconfig) and
-        system("#{$PKGCONFIG} --exists #{pkg}")
+        xsystem("#{$PKGCONFIG} --exists #{pkg}")
       # default to pkg-config command
       pkgconfig = $PKGCONFIG
       get = proc {|opt|

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]