From owner-freebsd-questions@FreeBSD.ORG Tue Apr 20 13:12:35 2004 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 EE85316A4CE for ; Tue, 20 Apr 2004 13:12:34 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2043043D53 for ; Tue, 20 Apr 2004 13:12:34 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i3KKCSSD036304 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 20 Apr 2004 21:12:28 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i3KKCSGk036303; Tue, 20 Apr 2004 21:12:28 +0100 (BST) (envelope-from matthew) Date: Tue, 20 Apr 2004 21:12:28 +0100 From: Matthew Seaman To: dev@eth0.ch Message-ID: <20040420201228.GB35510@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , dev@eth0.ch, freebsd-questions@freebsd.org References: <3800.217.162.71.141.1082489038.squirrel@serv04.inetworx.ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aM3YZ0Iwxop3KEKx" Content-Disposition: inline In-Reply-To: <3800.217.162.71.141.1082489038.squirrel@serv04.inetworx.ch> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040420, clamav-milter version 0.70k X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: Using portsupgrade with make arguments 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: Tue, 20 Apr 2004 20:12:35 -0000 --aM3YZ0Iwxop3KEKx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 20, 2004 at 09:23:58PM +0200, dev@eth0.ch wrote: > just to get it clear for me: If I upgrade a port that has been originally > installed with additional make arguments I must include them again. Is the > following correct? >=20 > Original installation: > # make arg_1=3Dval_1 arg_2=3Darg_2 install clean >=20 > Upgrading port using portupgrade: > # portupgrade -R -m "arg_1=3Dval_1 arg_2=3Darg_2" port If you still want the new version of the port to be built with those arguments, yes. Instead of having to remember to type them in all the time, add them to the MAKE_ARGS array in /usr/local/etc/pkgtools.conf -- that way they'll be applied every time you upgrade the port. There are now quite a few ports where that is strictly no longer necessary. Those are the ports using the new 'OPTIONS' code committed last January -- an example is devel/gettext. These ports will popup a dialog box and record the settings you choose the first time you run 'make' in them[1], and then default to using those settings every time you rebuild the port, or until an update to the port changes the set of options available or until you run 'make config' again. However, this only works for the ports that use the OPTIONS code. You can mix both styles with impunity -- put entries into pkgtools.conf as well as rely on the cached OPTIONS values -- I think pkgtools.conf should override the OPTIONS cache, but you'll have to experiment to be absolutely sure. Cheers, Matthew [1] If you don't want the dialogs to appear set BATCH=3Dyes in the environment or in /etc/make.conf This will automatically give you the default settings. --=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 --aM3YZ0Iwxop3KEKx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAhYQsdtESqEQa7a0RAvz5AJ9AjrSX197b8AJOgWbZi+HGznFeagCghg3f 5LaWomMYFKn5c/oHoykVWXE= =A+gP -----END PGP SIGNATURE----- --aM3YZ0Iwxop3KEKx--