Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Apr 2003 08:31:06 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Eduardo Viruena Silva <mrspock@esfm.ipn.mx>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: Portupgrade and pkgtools.conf file
Message-ID:  <20030430073106.GA58116@happy-idiot-talk.infracaninophi>
In-Reply-To: <20030430002030.Q33193@Gina.esfm.ipn.mx>
References:  <3EAF11B3.3070406@netscape.net> <20030430002030.Q33193@Gina.esfm.ipn.mx>

next in thread | previous in thread | raw e-mail | index | archive | help

--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Apr 30, 2003 at 12:24:39AM -0500, Eduardo Viruena Silva wrote:
> On Tue, 29 Apr 2003, E. J. Cerejo wrote:
>=20
> > I'm trying to tell portupgrade to install mplayer with these options:
> >
> > 'multimedia/mplayer'    =3D> 'WITH_OPTIMIZED_CFLAGS', 'multimedia/mplay=
er'
> >     =3D> 'WITHOUT_RUNTIME_CPUDETECTION', 'multimedia/mplayer'    =3D>
> > 'WITH_GUI',  'multimedia/mplayer'    =3D> 'WITH_FREETYPE',
> > 'multimedia/mplayer'    =3D> 'WITH_DVD=3D', 'multimedia/mplayer'    =3D>
> > 'WITH_LIBDVDREAD', 'multimedia/mplayer'    =3D> 'WITH_LIBDVDNAV',
> > 'multimedia/mplayer'    =3D> 'WITH_ARTS', 'multimedia/mplayer'    =3D>
> > 'WITH_LIBDV', 'multimedia/mplayer'    =3D> 'WITH_MAD',
> > 'multimedia/mplayer'    =3D> 'WITH_SVGALIB', 'multimedia/mplayer'    =
=3D>
> > 'WITH_AALIB', 'multimedia/mplayer'    =3D> 'WITH_SDL',
> > 'multimedia/mplayer'    =3D> 'WITH_ESOUND', 'multimedia/mplayer'    =3D>
> > 'WITH_VORBIS','multimedia/mplayer'    =3D> 'WITH_XANIM',
> > 'multimedia/mplayer'    =3D> 'WITH_LIVEMEDIA', 'multimedia/mplayer'    =
=3D>
> > 'WITH_XVID', 'multimedia/mplayer'    =3D> 'WITH_FAAD'
> >
> > I got them all on the same line separated by commons under make args,
> > and portupgrade gives me this:
> >
> > I've tried without the commons but still doesn't work, I added the
> > "=3Dyes" in each argument but still the same error, does anyone know the
> > correct format for this?
>=20
> the proper way of doing this is:
>=20
> make OPTION1=3Dyes OPTION2=3Dyes ... OPTIONn=3Dyes
>=20
> or
>=20
> make -DOPTION1 -DOPTION2 ... -DOPIONn
>=20
>=20
> in your case:
>=20
> make WITH_OPTIMIZED_CFLAGS=3Dyes WITHOUT_RUNTIME_CPUDETECTION=3Dyes      =
    \
> WITH_GUI=3Dyes WITH_FREETYPE=3Dyes WITH_LIBDVDREAD=3Dyes WITH_ARTS=3Dyes =
        \
> WITH_LIBDV=3Dyes WITH_MAD=3Dyes WITH_SVGALIB=3Dyes WITH_AALIB=3Dyes WITH_=
SDL=3Dyes \
> WITH_ESOUND=3Dyes WITH_XANIM=3Dyes WITH_XVID=3Dyes WITH_FAAD=3Dyes
>=20

True, but that isn't the answer to the question asked.  The entry in
the pkgtools.conf MAKE_ARGS hash should look like:

    'multimedia/mplayer'  =3D> 'WITH_OPTIMIZED_CFLAGS=3Dyes WITHOUT_RUNTIME=
_CPUDETECTION=3Dyes WITH_GUI=3Dyes WITH_FREETYPE=3Dyes WITH_LIBDVDREAD=3Dye=
s WITH_ARTS=3Dyes WITH_LIBDV=3Dyes WITH_MAD=3Dyes WITH_SVGALIB=3Dyes WITH_A=
ALIB=3Dyes WITH_SDL=3Dyes WITH_ESOUND=3Dyes WITH_XANIM=3Dyes WITH_XVID=3Dye=
s WITH_FAAD=3Dyes',

That is, all of the various make options on one line separated by
spaces, keyed onto the port name on the left hand side of the '=3D>'.

Because of the way hash tables work, you can't keep repeating the
'key' part with a different 'value' part and have things work the way
you expect.  A later entry with the same key will just overwrite the
previous one.  Even though the rubric just above the MAKE_ARGS
definition in pkgtools.conf says:

  # arguments to pass to make(1).  You can use wildcards ("ports glob"
  # or "package glob").  If a port/package matches multiple entries,
  # all the arguments are joined using the space as separator.

which might lead you to think you can repeat a key on the left hand
side with a different value on the right hand side -- you can't.  All
that means is that if you have several *different* wildcard entries
that each happen to match the port in question, their values will all
be applied.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--vkogqOf2sHV7VnPd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+r3u6dtESqEQa7a0RAsJCAKCE+j2tUUT4YxZNurIuU+E7004zLQCfWcAp
avPZZhIYV4mIC/TWqItNukA=
=rPAZ
-----END PGP SIGNATURE-----

--vkogqOf2sHV7VnPd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030430073106.GA58116>