From owner-freebsd-ruby@FreeBSD.ORG Thu Dec 31 05:24:13 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 499351065670 for ; Thu, 31 Dec 2009 05:24:13 +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 0BA6D8FC08 for ; Thu, 31 Dec 2009 05:24:12 +0000 (UTC) Received: by iwn36 with SMTP id 36so8498326iwn.3 for ; Wed, 30 Dec 2009 21:24:02 -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=t9cpXvbHg9WxQ1uf9mLoDJ7Nx7Fz3bYQc2MXU1BH6Oo=; b=XgN8N5PysnaOyHFogVk4lQH83eDAgE1x8wI8dkmrelWAjxmo6oFCGA8cqPA4cTjBoh O3RQcZ3vf9vuruUdVF+TKfYsk7G1SJvJCtz50c9MgNMKB3kqNMMKw17Qt1tLrIJBcJq5 bc+ZCF2AbhFtahV/ZBXXlN5WmAfypiTWlco6I= 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=BFE+lRRBKX3598fLfD1AsyoxyHTZ1AEVJpeyzhK3bAebcxyXvh2zpmMMM838/4343c znK8MVx32uXf4D27iLj7g6P+ni/JBLlqoKgTmTYH8zVkQOFCoXEz3Hw+SQlQIVhsSYoS 8EtX2P3UErEZiuYEF0kPuwsTat8iXmDFp+D8A= Received: by 10.231.147.210 with SMTP id m18mr1794941ibv.48.1262237042111; Wed, 30 Dec 2009 21:24:02 -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 23sm13319716iwn.3.2009.12.30.21.24.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 30 Dec 2009 21:24:00 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: James Harrison In-Reply-To: <20091230164858.GI23001@manor.msen.com> Date: Wed, 30 Dec 2009 22:23:57 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20091230164858.GI23001@manor.msen.com> To: Michael R. Wayne X-Mailer: Apple Mail (2.1077) Cc: ruby@FreeBSD.org 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 05:24:13 -0000 On Dec 30, 2009, at 9:48 AM 12/30/09, Michael R. Wayne wrote: >=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) I'm completely new to looking at portupgrade, so don't take my word for = anything. That said, I took a look into this and I saw that the method generating = the error begins with: if $portsdb.exist?(arg) So I looked around and found out what class portsdb is an instance of, = then read the exist? method: def exist?(port, quick =3D false) return if %r"^[^/]+/[^/]+$" !~ port dir =3D portdir(port) return false if not File.file?(File.join(dir, 'Makefile')) return true if quick make_var('PKGNAME', dir) || false end 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. A quick look in www/apache22 reveals that the Makefile exists happily, = so that's not the issue. That's what I've discovered so far. James=