From owner-freebsd-questions@FreeBSD.ORG Tue Oct 18 11:29:46 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 8A06416A41F for ; Tue, 18 Oct 2005 11:29:46 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D47E43D45 for ; Tue, 18 Oct 2005 11:29:45 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so984867nzo for ; Tue, 18 Oct 2005 04:29:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=m2mT5zGAQqxZOdfUkjmCPzLpQRo6B9z1Z3N3oPlBEeK3Bh0MHaIPNzQJYKMf//8ASex1PKCnpVbpauZeU8hhPXOP4rlilOwLG0Z+Slk263aQmzp8SjOv3Ng5fjMVKTVjLAE0n4T5jVM6/t6NxVFOwjdCeaZZTaUPN1NqmVIn7OE= Received: by 10.36.127.6 with SMTP id z6mr3718530nzc; Tue, 18 Oct 2005 04:29:45 -0700 (PDT) Received: by 10.37.20.34 with HTTP; Tue, 18 Oct 2005 04:29:45 -0700 (PDT) Message-ID: Date: Tue, 18 Oct 2005 15:29:45 +0400 From: "Andrew P." To: list@museum.rain.com In-Reply-To: <20051016061748.GA39039@ns.museum.rain.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051016061748.GA39039@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 11:29:46 -0000 On 10/16/05, James Long wrote: > I've been aware of pkgtools.conf but hadn't buckled down to suss out the = syntax > prior to recently. Thanks to Dru Lavigne's excellent article at onlamp.c= om, I'm > working on my first attempt at setting make variables in pkgtools.conf. > > First, is there something I've specified incorrectly in my pkgtools.conf = (below)? > More generally, I haven't found anything in the portupgrade man page that= would > describe a switch that would cause portupgrade to output an indication of= what > configuration information it might have parsed from pkgtools.conf, that w= ould > help me figure out (sooner in the build process) whether portupgrade is p= arsing > my pkgtools.conf successfully. Is there some way to make portupgrade be = verbose > about what actions it is taking based on pkgtools.conf directives? > > Here is the MAKE_ARGS section of /usr/local/etc/pkgtools.conf: > > MAKE_ARGS =3D { > 'graphics/ImageMagick-*' =3D> 'WITHOUT_IMAGEMAGICK_TTF=3D1 WITHOUT_IM= AGEMAGICK_PDF=3D1 WITHOUT_X11=3D1 WITHOUT_IMAGEMAGICK_PERL=3D1', > } > > According to my reading of the Makefile, eliminating TTF and PDF support = ought to > be sufficient to eliminate the need for ghostscript, but still, "portupgr= ade -N > ImageMagick" wants to build ghostscript-gnu-7.07_13 as a dependency. > > ns : 22:41:38 /root# ls -l /usr/local/etc/pkgtools.conf > -r--r--r-- 1 root wheel 13872 Oct 15 21:42 /usr/local/etc/pkgtools.con= f > > ns : 22:41:45 /root# grep -1 Magick /usr/local/etc/pkgtools.conf > MAKE_ARGS =3D { > 'graphics/ImageMagick-*' =3D> 'WITHOUT_IMAGEMAGICK_TTF=3D1 WITHOUT_IM= AGEMAGICK_PDF=3D1 WITHOUT_X11=3D1 WITHOUT_IMAGEMAGICK_PERL=3D1', > } > > Everything else in pkgtools.conf is stock: > > ns : 22:47:01 /root# diff /usr/local/etc/pkgtools.conf.sample /usr/local/= etc/pkgtools.conf > 310a311 > > 'graphics/ImageMagick-*' =3D> 'WITHOUT_IMAGEMAGICK_TTF=3D1 WITHOUT_= IMAGEMAGICK_PDF=3D1 WITHOUT_X11=3D1 WITHOUT_IMAGEMAGICK_PERL=3D1', > > After completing a CVS update of my ports tree at 23:08 PDT 10/15/05, > portupgrade shows all the rest of my ports are up to date. > > All of this is on 5.4-STABLE circa 10/1/05. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > First, the other syntax seems much more readable: 'mplayer' =3D> [ 'WITH_OPTIMIZED_CFLAGS=3Dyes', 'WITHOUT_RUNTIME_CPUDETECTION=3Dyes', ], 'aumix*' =3D> [ 'WITH_GTK2=3Dyes', ], 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=3Dyes WITHOUT_RUNTIME_CPUDETECTION=3Dyes WITH_GTK2=3Dyes WITH_LIBDVDNAV=3Dyes WITH_LIBUNGIF=3Dyes WITH_ARTS=3Dyes WITH_FRIBIDI=3Dyes WITH_CDPARANOIA=3Dyes WITH_LIBCACA=3Dyes WITH_LIBDV=3Dye= s WITH_MAD=3Dyes WITH_AALIB=3Dyes WITH_THEORA=3Dyes WITH_X264=3Dyes WITH_SDL= =3Dyes WITH_ESOUND=3Dyes WITH_VORBIS=3Dyes WITH_XANIM=3Dyes WITH_REALPLAYER=3Dyes WITH_LIVEMEDIA=3Dyes WITH_MATROSKA=3Dyes WITH_XVID=3Dyes WITH_LZO=3Dyes WITH_XMMS=3Dyes ) ** 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=3Dyes WITHOUT_RUNTIME_CPUDETECTION=3Dyes WITH_GTK2=3Dyes WITH_LIBDVDNAV=3Dyes WITH_LIBUNGIF=3Dyes WITH_ARTS=3Dyes WITH_FRIBIDI=3Dyes WITH_CDPARANOIA=3Dyes WITH_LIBCACA=3Dyes WITH_LIBDV=3Dye= s WITH_MAD=3Dyes WITH_AALIB=3Dyes WITH_THEORA=3Dyes WITH_X264=3Dyes WITH_SDL= =3Dyes WITH_ESOUND=3Dyes WITH_VORBIS=3Dyes WITH_XANIM=3Dyes WITH_REALPLAYER=3Dyes WITH_LIVEMEDIA=3Dyes WITH_MATROSKA=3Dyes WITH_XVID=3Dyes WITH_LZO=3Dyes WITH_XMMS=3Dyes <...> Third, your wildcard is wrong. There's no ImageMagick-*, there's only ImageMagick.