From owner-freebsd-questions@FreeBSD.ORG Tue Oct 18 23:02:58 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 245C416A420 for ; Tue, 18 Oct 2005 23:02:58 +0000 (GMT) (envelope-from james_mapson@umpquanet.com) Received: from ns.museum.rain.com (gw-ipinc.museum.rain.com [65.75.192.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C4EF43D49 for ; Tue, 18 Oct 2005 23:02:57 +0000 (GMT) (envelope-from james_mapson@umpquanet.com) Received: from ns.museum.rain.com (localhost [127.0.0.1]) by ns.museum.rain.com (8.13.4/8.13.4) with ESMTP id j9IN2nbk070444 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Tue, 18 Oct 2005 16:02:49 -0700 (PDT) (envelope-from james@umpquanet.com) Received: (from james@localhost) by ns.museum.rain.com (8.13.4/8.13.4/Submit) id j9IN2msQ070443; Tue, 18 Oct 2005 16:02:48 -0700 (PDT) (envelope-from james) Date: Tue, 18 Oct 2005 16:02:48 -0700 From: James Long To: "Andrew P." Message-ID: <20051018230248.GB41056@ns.museum.rain.com> References: <20051016061748.GA39039@ns.museum.rain.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-101.4 required=5.0 tests=ALL_TRUSTED, UPPERCASE_25_50,USER_IN_WHITELIST autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on ns.museum.rain.com Cc: freebsd-questions@freebsd.org Subject: Re: portupgrade: what must I fix in this pkgtools.conf entry? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 23:02:58 -0000 On Tue, Oct 18, 2005 at 03:29:45PM +0400, Andrew P. wrote: > First, the other syntax seems much more readable: > > 'mplayer' => [ > 'WITH_OPTIMIZED_CFLAGS=yes', > 'WITHOUT_RUNTIME_CPUDETECTION=yes', > ], > 'aumix*' => [ > 'WITH_GTK2=yes', > ], > > Second, when portupgrade detects MAKE flags in > pkgtools.conf, it tells you so: > > # portupgrade -f mplayer\* > ** Custom MAKE_ARGS or -m option is specified > (WITH_OPTIMIZED_CFLAGS=yes WITHOUT_RUNTIME_CPUDETECTION=yes > WITH_GTK2=yes WITH_LIBDVDNAV=yes WITH_LIBUNGIF=yes WITH_ARTS=yes > WITH_FRIBIDI=yes WITH_CDPARANOIA=yes WITH_LIBCACA=yes WITH_LIBDV=yes > WITH_MAD=yes WITH_AALIB=yes WITH_THEORA=yes WITH_X264=yes WITH_SDL=yes > WITH_ESOUND=yes WITH_VORBIS=yes WITH_XANIM=yes WITH_REALPLAYER=yes > WITH_LIVEMEDIA=yes WITH_MATROSKA=yes WITH_XVID=yes WITH_LZO=yes > WITH_XMMS=yes ) > ** Skipping package > ---> Using the port instead of a package > ---> Reinstalling 'mplayer-gtk-esound-0.99.7_5' (multimedia/mplayer) > ---> Building '/usr/ports/multimedia/mplayer' with make flags: > WITH_OPTIMIZED_CFLAGS=yes WITHOUT_RUNTIME_CPUDETECTION=yes > WITH_GTK2=yes WITH_LIBDVDNAV=yes WITH_LIBUNGIF=yes WITH_ARTS=yes > WITH_FRIBIDI=yes WITH_CDPARANOIA=yes WITH_LIBCACA=yes WITH_LIBDV=yes > WITH_MAD=yes WITH_AALIB=yes WITH_THEORA=yes WITH_X264=yes WITH_SDL=yes > WITH_ESOUND=yes WITH_VORBIS=yes WITH_XANIM=yes WITH_REALPLAYER=yes > WITH_LIVEMEDIA=yes WITH_MATROSKA=yes WITH_XVID=yes WITH_LZO=yes > WITH_XMMS=yes > <...> > > Third, your wildcard is wrong. There's no ImageMagick-*, > there's only ImageMagick. Thank you for your reply. My mistake with the wildcard was thinking that I had to supply a regexp to match the full "portname-version_info" rather than just the name of the port itself. One of the examples in pkgtools.conf is "apache-1.3.*" and Ms. Lavigne's article (cf. http://www.onlamp.com/pub/a/bsd/2003/09/18/FreeBSD_Basics.html?page=2) also uses a "-*" wildcard, although at second reading, there is no real indication of why the author uses the wildcard. Because the ImageMagick port name can change based on build options, I have changed the wildcard to "ImageMagick*". Note this dialogue: # portupgrade -N ImageMagick (portupgrade successfully finds the build args in pkgtools.conf, and builds and installs the port) # portupgrade -n ImageMagick ---> Session started at: Tue, 18 Oct 2005 15:39:33 -0700 ** No such installed package: ImageMagick ** None has been installed or upgraded. ---> Session ended at: Tue, 18 Oct 2005 15:39:33 -0700 (consumed 00:00:00) Here we see that despite building successfully, an immediately subsequent upgrade of the same portname fails, with portupgrade claiming that the port is not installed. However, # portupgrade -n ImageMagick-nox11 ---> Session started at: Tue, 18 Oct 2005 15:46:22 -0700 ** No need to upgrade 'ImageMagick-nox11-6.2.2.1' (>= ImageMagick-nox11-6.2.2.1). (specify -f to force) ---> Listing the results (+:done / -:ignored / *:skipped / !:failed) - graphics/ImageMagick (ImageMagick-nox11-6.2.2.1) ---> Packages processed: 0 done, 1 ignored, 0 skipped and 0 failed ---> Session ended at: Tue, 18 Oct 2005 15:46:26 -0700 (consumed 00:00:04) Thus, I have left the wildcard in pkgtools.conf as 'graphics/ImageMagick*' so that it will match both the "ImageMagick" port and the "ImageMagick-nox11" port. Thanks again for pointing me towards the wildcard. Jim