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 13813196009D for ; Fri, 3 Jul 2015 18:20:07 +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 95C37B5D93F for ; Fri, 3 Jul 2015 18:46:03 +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 C322897A826 for ; Fri, 3 Jul 2015 18:46:05 +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 vd4RBEQHjYOq for ; Fri, 3 Jul 2015 18:46:05 +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 86C6C97A820 for ; Fri, 3 Jul 2015 18:46:05 +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 D35C4952439 for ; Fri, 3 Jul 2015 18:46:00 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 14509120499; Fri, 3 Jul 2015 18:46:01 +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 01CB612044C for ; Fri, 3 Jul 2015 18:45:43 +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=n8Gz3F8NpHQTDr6FOvZbRHFMg2A=; b=OeuMeNBFxyvrtwzUAD qW2kT7genwE2pefVXIElhq5+3fB4R79rEgjJCYdh7SCyJBCNPYECFTVBLWWNLbeO WjReQOL69210iSmZ7W2tM8pZC5H8pMhEmAzDP4fCbXlOJDkTSzSF1RifaFJHbvzf /8gdRG7fOukw1C8LhXvlADp3g= Received: by filter0830p1mdw1.sendgrid.net with SMTP id filter0830p1mdw1.24271.559659C36 2015-07-03 09:45:39.546010436 +0000 UTC Received: from herokuapp.com (ec2-54-159-37-122.compute-1.amazonaws.com [54.159.37.122]) by ismtpd-014 (SG) with ESMTP id 14e534ea378.3925.94e8cf for ; Fri, 03 Jul 2015 09:45:39 +0000 (UTC) Date: Fri, 03 Jul 2015 09:45:39 +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: 44456 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS71Hl6yq35+ofIriqE0iiYOz3UTcApfrHny2P wVl9gyx5oVMHzlgab4I9TXjKfTjPMSEZmp0T1uSqP7NCsQbABnswmgzYkbw4NFHcgtAWGpF+yWnvwI kRt7vXJBIUokOOMaXKlxIcTg8AbMLfbubnDj X-ML-Name: ruby-core X-Mail-Count: 69857 Subject: [ruby-core:69857] [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: WONTFIX, 2.1: REQUIRED, 2.2: REQUIRED to 2.0.0: WONTFIX, 2.1: DONE, 2.2: REQUIRED ruby_2_1 r51123 merged revision(s) 50717. ---------------------------------------- Bug #11201: pkg_config NoMethodError when finding other -config program https://bugs.ruby-lang.org/issues/11201#change-53258 * 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: DONE, 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/