From owner-freebsd-ports@FreeBSD.ORG Fri Mar 16 00:05:45 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 35277106566C for ; Fri, 16 Mar 2012 00:05:45 +0000 (UTC) (envelope-from freebsd-ports-local@be-well.ilk.org) Received: from asbnvacz-mailrelay01.megapath.net (asbnvacz-mailrelay01.megapath.net [207.145.128.243]) by mx1.freebsd.org (Postfix) with ESMTP id E379E8FC08 for ; Fri, 16 Mar 2012 00:05:44 +0000 (UTC) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.53]) by asbnvacz-mailrelay01.megapath.net (Postfix) with ESMTP id 39E5FA723F5 for ; Thu, 15 Mar 2012 20:05:44 -0400 (EDT) Received: (qmail 4679 invoked from network); 16 Mar 2012 00:05:43 -0000 Received: by simscan 1.4.0 ppid: 17543, pid: 7416, t: 0.1815s scanners: clamav: 0.88.2/m:52/d:13495 Received: from unknown (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 16 Mar 2012 00:05:43 -0000 Received: from lowell-desk.lan (lowell-desk.lan [172.30.250.8]) by be-well.ilk.org (Postfix) with ESMTP id 0F8D733C1E; Thu, 15 Mar 2012 20:05:37 -0400 (EDT) Received: by lowell-desk.lan (Postfix, from userid 1147) id C90E039860; Thu, 15 Mar 2012 20:05:37 -0400 (EDT) From: Lowell Gilbert To: Jos Backus References: <4F60C059.7060904@FreeBSD.org> <44pqcd8yhd.fsf@lowell-desk.lan> <031222CBCF33214AB2EB4ABA279428A30107B5E9D2A6@SJCPMAILBOX01.citrite.net> <44d38d8qad.fsf@lowell-desk.lan> <447gyl8nss.fsf@lowell-desk.lan> <4439998mwx.fsf@lowell-desk.lan> Date: Thu, 15 Mar 2012 20:05:37 -0400 In-Reply-To: (Jos Backus's message of "Thu, 15 Mar 2012 16:32:05 -0700") Message-ID: <44ty1p76lq.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Oleg Moskalenko , "freebsd-ports@freebsd.org" Subject: Re: CFT: new BSD-licensed sort available 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: Fri, 16 Mar 2012 00:05:45 -0000 Jos Backus writes: > On Thu, Mar 15, 2012 at 4:27 PM, Lowell Gilbert > wrote: >> Lowell Gilbert writes: >> >>> Lowell Gilbert writes: >>> >>>> Oleg Moskalenko writes: >>>> >>>>> There is no option "-2" in the new BSD sort or in the GNU sort. There= is no such option in Posix standard, too. >>>>> >>>>> What is this option about, do we need to add something ? >>>> >>>> No, clearly I have misdiagnosed the problem. >>>> I'll take another look. >>>> >>>> Sorry for the confusion. >>> >>> I think I'll need to dig into portsdb itself a bit. >>> >>>> =A0 =A0Updating the ports index ... Generating INDEX.tmp - please wait= .. >>>> =A0 =A0sort: invalid option -- 2 >>> >>> I'll let you know what I find. >> >> This is taking longer than I had hoped; apparently I am handicapped by >> the fact that I do not know ruby at all. I am having difficulty finding >> a call out to the sort program, as opposed to sort routines implemented >> in ruby. > > portsdb.rb: open("| sort #{index_files}", 'r:utf-8') do |f| > > Hth, > Jos Thanks, it does help somewhat. Unfortunately, I had already tried to instrument that line, and didn't get anything useful. I probably still need to learn a bit more ruby in order to figure out precisely where the '2' comes in.