[148654] trunk/dports/lang/ruby23

kimuraw at macports.org kimuraw at macports.org
Fri May 13 09:21:12 PDT 2016


Revision: 148654
          https://trac.macports.org/changeset/148654
Author:   kimuraw at macports.org
Date:     2016-05-13 09:21:12 -0700 (Fri, 13 May 2016)
Log Message:
-----------
lang/ruby23: fix errors from building binary extensions with mkmf.rb/pkg-config (#50868)

Modified Paths:
--------------
    trunk/dports/lang/ruby23/Portfile

Added Paths:
-----------
    trunk/dports/lang/ruby23/files/patch-lib-mkmf.rb.diff

Modified: trunk/dports/lang/ruby23/Portfile
===================================================================
--- trunk/dports/lang/ruby23/Portfile	2016-05-13 15:50:12 UTC (rev 148653)
+++ trunk/dports/lang/ruby23/Portfile	2016-05-13 16:21:12 UTC (rev 148654)
@@ -6,7 +6,7 @@
 
 name                ruby23
 version             2.3.1
-revision            0
+revision            1
 
 categories          lang ruby
 maintainers         kimuraw openmaintainer
@@ -30,6 +30,9 @@
                     rmd160 1b7a7105765f6dfb5d72d67e30fe636b87cc9bd5 \
                     sha1 4ee76c7c1b12d5c5b0245fc71595c5635d2217c9 \
                     sha256 4a7c5f52f205203ea0328ca8e1963a7a88cf1f7f0e246f857d595b209eac0a4d
+
+# mkmf.rb MakeMakefile#pkg_config() looks to be broken (#50868)
+patchfiles          patch-lib-mkmf.rb.diff
 use_parallel_build  no
 
 depends_lib         port:readline \

Added: trunk/dports/lang/ruby23/files/patch-lib-mkmf.rb.diff
===================================================================
--- trunk/dports/lang/ruby23/files/patch-lib-mkmf.rb.diff	                        (rev 0)
+++ trunk/dports/lang/ruby23/files/patch-lib-mkmf.rb.diff	2016-05-13 16:21:12 UTC (rev 148654)
@@ -0,0 +1,24 @@
+Index: lib/mkmf.rb
+===================================================================
+--- lib/mkmf.rb	(revision 54993)
++++ lib/mkmf.rb	(working copy)
+@@ -1791,8 +1791,7 @@
+       # default to pkg-config command
+       pkgconfig = $PKGCONFIG
+       get = proc {|opt|
+-        opt = xpopen("#{$PKGCONFIG} --#{opt} #{pkg}", err:[:child, :out], &:read)
+-        Logging.open {puts opt.each_line.map{|s|"=> #{s.inspect}"}}
++        opt = IO.popen("#{$PKGCONFIG} --#{opt} #{pkg}", err:[:child, :out], &:read)
+         opt.strip if $?.success?
+       }
+     elsif find_executable0(pkgconfig = "#{pkg}-config")
+@@ -1802,8 +1801,7 @@
+     end
+     if pkgconfig
+       get ||= proc {|opt|
+-        opt = xpopen("#{pkgconfig} --#{opt}", err:[:child, :out], &:read)
+-        Logging.open {puts opt.each_line.map{|s|"=> #{s.inspect}"}}
++        opt = IO.popen("#{pkgconfig} --#{opt}", err:[:child, :out], &:read)
+         opt.strip if $?.success?
+       }
+     end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160513/71eb19c9/attachment.html>


More information about the macports-changes mailing list