Date: Tue, 18 Oct 2005 15:29:45 +0400 From: "Andrew P." <infofarmer@gmail.com> To: list@museum.rain.com Cc: freebsd-questions@freebsd.org Subject: Re: portupgrade: what must I fix in this pkgtools.conf entry? Message-ID: <cb5206420510180429r77281e6dt914ab35207af3ec8@mail.gmail.com> In-Reply-To: <20051016061748.GA39039@ns.museum.rain.com> References: <20051016061748.GA39039@ns.museum.rain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/16/05, James Long <list@museum.rain.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420510180429r77281e6dt914ab35207af3ec8>
