From owner-freebsd-java@FreeBSD.ORG Fri Apr 8 22:28:26 2011 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B11A106567C for ; Fri, 8 Apr 2011 22:28:26 +0000 (UTC) (envelope-from freebsd-java@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id EAE2B8FC14 for ; Fri, 8 Apr 2011 22:28:25 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q8Jvg-0005IT-3j for freebsd-java@freebsd.org; Sat, 09 Apr 2011 00:13:24 +0200 Received: from static-78-8-147-77.ssp.dialog.net.pl ([78.8.147.77]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Apr 2011 00:13:24 +0200 Received: from mwisnicki+freebsd by static-78-8-147-77.ssp.dialog.net.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 Apr 2011 00:13:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-java@freebsd.org From: Marcin Wisnicki Date: Fri, 8 Apr 2011 22:13:05 +0000 (UTC) Lines: 22 Message-ID: References: <4D9F1E05.4070900@FreeBSD.org> <201104081511.47184.jkim@FreeBSD.org> <4D9F667A.90302@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: static-78-8-147-77.ssp.dialog.net.pl User-Agent: Pan/0.134 (Wait for Me; Unknown) Subject: Re: Version number of openjdk6 port X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2011 22:28:26 -0000 On Fri, 08 Apr 2011 15:48:10 -0400, John Baldwin wrote: > Hmm, I can probably workaround this then using an explicit comparison > rule (so it doesn't use >0). It would be nice if we had an official way > to match a package with "any version". Perhaps "pkg_info -E 'pkg-*'" if > we assume that package names can never have dashes in them (to avoid > problems, with, say, 'foo-*' matching both foo-1.0 and foo-bar-1.0.). You can use regular expression. Everything after last hyphen is a version. pkg_info -EX "^xorg-[^-]+$" > Oh, we already have those types of packages: > > xorg-7.5 X.Org complete distribution metaport xorg-apps-7.5_1 > X.org apps meta-port > > The problem is how can software generically say "is any version of the > foo package installed". It would seem we don't support that currently?