From owner-freebsd-questions@FreeBSD.ORG Fri Aug 13 08:31:11 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DFF611065673 for ; Fri, 13 Aug 2010 08:31:11 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3AC498FC1F for ; Fri, 13 Aug 2010 08:31:11 +0000 (UTC) Received: from russet.local (reflex.squiz.co.uk [83.217.109.164]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o7D8Usgc097416 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 13 Aug 2010 09:31:02 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host reflex.squiz.co.uk [83.217.109.164] claimed to be russet.local Message-ID: <4C6502B8.8050600@infracaninophile.co.uk> Date: Fri, 13 Aug 2010 09:30:48 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: Thomas Mueller References: <4c64e9c5.QP7fekph3VlfDjdr%mueller6724@bellsouth.net> In-Reply-To: <4c64e9c5.QP7fekph3VlfDjdr%mueller6724@bellsouth.net> X-Enigmail-Version: 1.1.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2DF07E4B9C75E4BCF135420A" X-Virus-Scanned: clamav-milter 0.96.1 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=2.5 required=5.0 tests=BAYES_20,DKIM_ADSP_ALL, SPF_FAIL,URIBL_BLACK autolearn=no version=3.3.1 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Building and running new package versions not yet in ports? 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: Fri, 13 Aug 2010 08:31:12 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2DF07E4B9C75E4BCF135420A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 13/08/2010 07:44, Thomas Mueller wrote: > What do I do if I want to build and run a package where version in > ports collection is not up-to-date, and I want to build and run the > current release version of that package, like Abiword 2.8.6 for > instance, when version in ports is behind? Or maybe I want to try a new= > alpha or beta development release of a package like Firefox or > Seamonkey, but don't want to burn my bridges on the already installed > and running version. Contact the port maintainers in the first instance -- they may well have beta test versions of the ports you can download. Failing that, it is perfectly feasible for you to update a port yourself. Generally, you will want to work on a copy of the port directory somewhere. You can check out what you need from anonymous CVS, which gives you all the extra VCS goodness you could want for serious code hacking. Your working directory doesn't have to be anywhere special in relation to the ports tree. Anywhere you like will be fine. Well, assuming the port you're working on is pretty much stand alone -- if you need to look at a collection of highly interconnected ports then it gets harder, but that's not something particularly common. Refer to the Porter's Handbook for a guide on how it all should work, and read the comments and code in /usr/ports/Mk/*.mk for the nitty-gritty details. Ion-Mihail's guide at http://ionut.tetcu.info/FreeBSD/How-to-submit-a-diff.txt has plenty of good tips too. If you do generate a usable upgrade for a port, please submit it as a PR so the rest of the world can benefit. Beware though: thus begins the slippery path to port maintainership and possibly even a coveted @freebsd.org e-mail address. > Can I create a testing install base such as /extra or /usr/extra, > and set something like > PATH=3D/usr/extra/bin:$PATH and perhaps modify some other environment > variables, and then be able to return to the regular environment? I > would only want to change a few things temporarily and would not want > to create an entire chroot system. Sure. When testing ports, I regularly have the following set in the environment: setenv WRKDIRPREFIX ${HOME}/tmp/ports setenv PKG_DBDIR ${HOME}/tmp/db/pkgs setenv PORT_DBDIR ${HOME}/tmp/db/ports setenv PREFIX ${HOME}/tmp/local setenv INSTALL_AS_USER yes setenv NOCLEANDEPENDS yes setenv PACKAGES ${HOME}/tmp/packages > Is this the proper list for this question, or should I have posted > to freebsd-ports@freebsd.org ? You're more likely to find interested and knowledgeable people on freebsd-ports@ -- certainly post there if you run into difficulties trying to work with ports. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig2DF07E4B9C75E4BCF135420A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkxlAr4ACgkQ8Mjk52CukIyJ9gCfbBs5cd6gsPXqYeIZSFg5WndE AY8Anihkkw0QkUtIppV4DZghTy+irSRw =ed4d -----END PGP SIGNATURE----- --------------enig2DF07E4B9C75E4BCF135420A--