From owner-freebsd-questions@FreeBSD.ORG Wed Apr 30 00:31:15 2003 Return-Path: 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 BF31E37B401 for ; Wed, 30 Apr 2003 00:31:15 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id F227743FBD for ; Wed, 30 Apr 2003 00:31:13 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h3U7V6Ad058517 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Apr 2003 08:31:06 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h3U7V6Zv058516; Wed, 30 Apr 2003 08:31:06 +0100 (BST) (envelope-from matthew) Date: Wed, 30 Apr 2003 08:31:06 +0100 From: Matthew Seaman To: Eduardo Viruena Silva Message-ID: <20030430073106.GA58116@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , Eduardo Viruena Silva , "E. J. Cerejo" , freebsd-questions References: <3EAF11B3.3070406@netscape.net> <20030430002030.Q33193@Gina.esfm.ipn.mx> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vkogqOf2sHV7VnPd" Content-Disposition: inline In-Reply-To: <20030430002030.Q33193@Gina.esfm.ipn.mx> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-37.7 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, UPPERCASE_25_50,USER_AGENT_MUTT version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) cc: "E. J. Cerejo" cc: freebsd-questions Subject: Re: Portupgrade and pkgtools.conf file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2003 07:31:16 -0000 --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--