From owner-freebsd-ports@FreeBSD.ORG Thu Jun 7 20:15:00 2012 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A050F106566B; Thu, 7 Jun 2012 20:15:00 +0000 (UTC) (envelope-from rflynn@acsalaska.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 5CFC38FC15; Thu, 7 Jun 2012 20:15:00 +0000 (UTC) Received: from [127.0.0.1] (squeeze.lan.rachie.is-a-geek.net [192.168.2.30]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 0CF567E877; Thu, 7 Jun 2012 12:14:51 -0800 (AKDT) Message-ID: <4FD10BB8.2020009@acsalaska.net> Date: Thu, 07 Jun 2012 22:14:48 +0200 From: Mel Flynn User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Stanislav Sedov References: <4FC96D45.8080904@FreeBSD.org> <4FD0F9E3.1030501@acsalaska.net> <20120607123641.7c080c67.stas@FreeBSD.org> In-Reply-To: <20120607123641.7c080c67.stas@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, Steve Wills , ruby@FreeBSD.org Subject: Re: Ruby 1.9 as default X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2012 20:15:00 -0000 On 7-6-2012 21:36, Stanislav Sedov wrote: > On Thu, 07 Jun 2012 20:58:43 +0200 > Mel Flynn mentioned: > >> >> Given issues described with swig 1.x earlier on this list, you may want >> to investigate if swig 1.x should be removed/patched/whatever before >> this sweep. > > Swig 1.x actually works fine with ruby 1.9, I'm using it quite regularly. > SWIG just generate the C source, it does not provide you with include > path. It is a responsibility of the application to find out what the > correct path are. > > You can look at my m4 macro as an example of how to do it properly: > https://github.com/stass/autoconf-macros/blob/master/ax_ruby_ext.m4 Point being, that: a) /usr/local/bin/ruby does not exist and apparently there are some ports that expect it b) if you symlink /usr/local/bin/ruby19 to ruby, that things still don't work for a port I don't think a package that is as widely used as gdal uses broken makefiles, so either: - these are issues with swig as they generate the makefiles (this was my assumption, but your mail tells me it is incorrect) - there are ways used in the wild to obtain ruby build information that no longer work: gmake -f RubyMakefile.mk build -e:1: Use RbConfig instead of obsolete and deprecated Config -- Mel