From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id C98C71960014 for ; Tue, 30 Jun 2015 12:47:31 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id E7CC3B5D937 for ; Tue, 30 Jun 2015 13:12:47 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 67B4997A82C for ; Tue, 30 Jun 2015 13:12:49 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MBOQ2Cx9nh6M for ; Tue, 30 Jun 2015 13:12:49 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 2C06497A820 for ; Tue, 30 Jun 2015 13:12:49 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 85364952439 for ; Tue, 30 Jun 2015 13:12:47 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id D8A3A1204F3; Tue, 30 Jun 2015 13:12:45 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id 6B7CB1204C9 for ; Tue, 30 Jun 2015 13:12:42 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=xJUmQv9SUu14J3h9vviY4Ls/Xew=; b=LaFQe4lbXH8WRl7brb FzNtDE+uSmHSCdGHehmprVfZew7+nqPBx7/WGVG3/ANDcDQLriGfqIbcxXxWIDrY TTj8hPgDKYclBcEzl323OJLXElYt+xps3QRtKD0TojkbgFL09/gBluWqdBq1jSdy 0Ug3qfjBYzlgTOOPF8rhHEK10= Received: by filter0644p1mdw1.sendgrid.net with SMTP id filter0644p1mdw1.19971.559217362 2015-06-30 04:12:38.506921915 +0000 UTC Received: from ismtpd-014.iad1.sendgrid.net ([UNAVAILABLE]. [10.42.2.112]) by 10.42.243.12:2500 (trex/5.2.13); Tue, 30 Jun 2015 04:12:39 GMT Received: from herokuapp.com (ec2-54-158-69-163.compute-1.amazonaws.com [54.158.69.163]) by ismtpd-014 (SG) with ESMTP id 14e42aaac55.391f.76b3d3 for ; Tue, 30 Jun 2015 04:12:38 +0000 (UTC) Date: Tue, 30 Jun 2015 04:12:38 +0000 From: usa@garbagecollect.jp To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 44396 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11201 X-Redmine-Issue-Author: Hanmac X-Redmine-Sender: usa X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS4DSeWWYTjHCRAOI+saAfon3QuulDNMPrZoj4 3PESA9m//17CuAJaLmAFVd27QXpQF/QYHu2glWbJX7o/8cjucaHWCwnjvI3mlgMRCfFmrwuNI2uX2t dcVwhsQqwH1hA0MhjB/fcbBG/nOgl7GPe1t/ X-ML-Name: ruby-core X-Mail-Count: 69802 Subject: [ruby-core:69802] [Ruby trunk - Bug #11201] pkg_config NoMethodError when finding other -config program X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11201 has been updated by Usaku NAKAMURA. Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED ---------------------------------------- Bug #11201: pkg_config NoMethodError when finding other -config program https://bugs.ruby-lang.org/issues/11201#change-53196 * Author: Hans Mackowiak * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0dev (2015-05-28 trunk 50658) [x86_64-linux] * Backport: 2.0.0: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED ---------------------------------------- where it does work (existing package) ~~~ruby pkg_config("gtk+-x11-2.0") # => ["-pthread", "", "-lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype"] pkg_config("gtk+-x11-2.0", "version") # => "0.28" ~~~ where it does work (non-existing package) ~~~ruby pkg_config("wx-bla", "version") # => nil pkg_config("wx-bla") # => nil ~~~ where it maybe not work (other (pkg)-config program) ~~~ruby pkg_config("wx", "version") # => "3.1.0" pkg_config("wx") #either should try to return the same stuff as pkg_config("gtk+-x11-2.0") if possible, or if not return nil ~~~ ~~~ NoMethodError: undefined method `scan' for nil:NilClass from /usr/local/rvm/rubies/ruby-head/lib/ruby/2.3.0/shellwords.rb:73:in `shellsplit' from /usr/local/rvm/rubies/ruby-head/lib/ruby/2.3.0/mkmf.rb:1819:in `pkg_config' from (irb):11 from /usr/local/rvm/rubies/ruby-head/bin/irb:11:in `
' ~~~ -- https://bugs.ruby-lang.org/