From owner-freebsd-ruby@FreeBSD.ORG Thu Dec 31 06:03:41 2009 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9722E106566C for ; Thu, 31 Dec 2009 06:03:41 +0000 (UTC) (envelope-from oscartheduck@gmail.com) Received: from mail-iw0-f198.google.com (mail-iw0-f198.google.com [209.85.223.198]) by mx1.freebsd.org (Postfix) with ESMTP id 5772A8FC13 for ; Thu, 31 Dec 2009 06:03:41 +0000 (UTC) Received: by iwn36 with SMTP id 36so8510784iwn.3 for ; Wed, 30 Dec 2009 22:03:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=NFrdTDajUh1E7jlpGVfE+wTvsRSICBzL4VEbsG9nfGI=; b=Rg8c6eGZrd8DoN0PmYWcziU4ycISOJwhwwKna0RSY8SXFBvMSjXj/agI3uBsQPv2pv fcc569AXwq2xp3pJ+IhlY482CN3Fp5iUIdl99tOC0EiiAG36D1Fvg4t2tmsGxfRb6xDD CfJSBawkOrSh602VUJZZNOP6fY57Ugv4ikQtQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=eZZOllrdBzv1sarlRm4m/uqKrp3mN01tSpZ+8fb1UA+xeZOmbTnekl5TsbEPQc7i4+ 0c5X2EAuBkaqFSGNKJCh35j7zyxkgFfWlh1nSFOS+9GXHSTbCIxvZqlm6NNSn1uFDFkz 5B1TsTn4ChMC64IrCEhQcT8G9gN3WGesLjViU= Received: by 10.231.153.213 with SMTP id l21mr448059ibw.24.1262239411474; Wed, 30 Dec 2009 22:03:31 -0800 (PST) Received: from ?192.168.1.4? (c-71-196-193-228.hsd1.co.comcast.net [71.196.193.228]) by mx.google.com with ESMTPS id 22sm13476524iwn.12.2009.12.30.22.03.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 30 Dec 2009 22:03:30 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: James Harrison In-Reply-To: Date: Wed, 30 Dec 2009 23:03:27 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20091230164858.GI23001@manor.msen.com> To: James Harrison X-Mailer: Apple Mail (2.1077) Cc: ruby@FreeBSD.org, "Michael R. Wayne" Subject: Re: portupgrade not finding ports? X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Dec 2009 06:03:41 -0000 On Dec 30, 2009, at 10:23 PM 12/30/09, James Harrison wrote: >=20 > On Dec 30, 2009, at 9:48 AM 12/30/09, Michael R. Wayne wrote: >=20 >>=20 >> I've seen this a few times, just curious why it's failing on just >> the port name? Didn't seem worth a PR... >>=20 >> /\/\ \/\/ >>=20 >> 380> sudo portinstall --fetch-only --upward-recursive apache22 >> ** No such package or port: apache22 >>=20 >> 381> sudo portinstall --fetch-only --upward-recursive www/apache22 >> [Gathering depends for www/apache22 ..................... done] >>=20 >> (works) >=20 > I'm completely new to looking at portupgrade, so don't take my word = for anything. >=20 > That said, I took a look into this and I saw that the method = generating the error begins with: >=20 > if $portsdb.exist?(arg) >=20 > So I looked around and found out what class portsdb is an instance of, = then read the exist? method: >=20 > def exist?(port, quick =3D false) > return if %r"^[^/]+/[^/]+$" !~ port >=20 > dir =3D portdir(port) >=20 > return false if not File.file?(File.join(dir, 'Makefile')) >=20 > return true if quick >=20 > make_var('PKGNAME', dir) || false > end >=20 > So, either the regex isn't matching (my regexfu is weak, so I'm = working on parsing the regex in my head, which is slow going), or the = make_var method is failing, or there's no Makefile for apache22. >=20 > A quick look in www/apache22 reveals that the Makefile exists happily, = so that's not the issue. >=20 > That's what I've discovered so far. >=20 > James Re-reading the above, it looks like it shouldn't be the regex that's = returning false, as it has no boolean associated with its return. = Leaving the make_var method. Time for more researchings...