From owner-freebsd-questions@FreeBSD.ORG Sun Jan 3 11:15:03 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 8195C1065670 for ; Sun, 3 Jan 2010 11:15:03 +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 CD8F48FC14 for ; Sun, 3 Jan 2010 11:15:02 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id o03BEwXH036274; Sun, 3 Jan 2010 11:14:58 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk o03BEwXH036274 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1262517299; bh=wJsaKay36lax98tsk1a6H0SilmsJPvorMx38DOWJ8y0=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4B407C2C.1060204@infracaninophile.co.uk>|Date:=20S un,=2003=20Jan=202010=2011:14:52=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.23=20(X11/20091129)|MIME-Vers ion:=201.0|To:=20Mike=20Clarke=20|CC: =20freebsd-questions@freebsd.org|Subject:=20Re:=20Problems=20build ing=20en-openoffice.org-GB-3.1.1=20from=20ports|References:=20<201 001021557.59944.jmc-freebsd2@milibyte.co.uk>=09<4B3FA51F.5040909@i nfracaninophile.co.uk>=09<201001022349.50546.jmc-freebsd2@milibyte .co.uk>=20<201001031020.16348.jmc-freebsd2@milibyte.co.uk>|In-Repl y-To:=20<201001031020.16348.jmc-freebsd2@milibyte.co.uk>|X-Enigmai l-Version:=200.95.6|Content-Type:=20multipart/signed=3B=20micalg=3 Dpgp-sha256=3B=0D=0A=20protocol=3D"application/pgp-signature"=3B=0 D=0A=20boundary=3D"------------enig071EC94A2BD92D4B25041806"; b=OXVuRrTb523kgf4dM70Oya6GjcBV4u1Z94OqtDSsGBSd6wkpFXkty/jLxoP5Gf2L/ Fs3dqyAyjEDaTD4KGggsQ+YUCY3puVA0DlpayH+Nzu3xz2QGD79N6UmThmj2zrNyUJ xhTzoppOyyAEvifNof0eZl/Jt8eAG4aavV7STjgs= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4B407C2C.1060204@infracaninophile.co.uk> Date: Sun, 03 Jan 2010 11:14:52 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20091129) MIME-Version: 1.0 To: Mike Clarke References: <201001021557.59944.jmc-freebsd2@milibyte.co.uk> <4B3FA51F.5040909@infracaninophile.co.uk> <201001022349.50546.jmc-freebsd2@milibyte.co.uk> <201001031020.16348.jmc-freebsd2@milibyte.co.uk> In-Reply-To: <201001031020.16348.jmc-freebsd2@milibyte.co.uk> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig071EC94A2BD92D4B25041806" X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Problems building en-openoffice.org-GB-3.1.1 from 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: Sun, 03 Jan 2010 11:15:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig071EC94A2BD92D4B25041806 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Mike Clarke wrote: > After pondering a bit more over this problem I think I know where the=20 > 6.4 stuff may have come from. After I built the base system I copied=20 > various useful files from /root on the 6.4 system,=20 > including /root/.cshrc which contained a line setting PACKAGESITE to=20 > ftp://ftp2.uk.freebsd.org/pub/FreeBSD/ports/i386/packages-6.4-release/A= ll/=20 > and it's quite possible that I ran portinstall -P for some ports before= =20 > I got round to changing this to point to packages-8. Yep. This would stick a fairly hefty spanner in the works. > Considering the vast number of files in /usr/local/bin with links to=20 > missing libraries I think my best approach now will be to deinstall ALL= =20 > my ports and reinstall them again from scratch after deleting=20 > everything in /usr/ports/packages and checking that all directories=20 > in /usr/local (except etc) have been emptied. This also is a good move. Don't forget to treat /compat/linux similarly to /usr/local if you have any linux stuff installed -- there have been a lot of changes to the linuxulator newly available in 8.0 which you really= want if you're going to run linux stuff under emulation. If you strip ou= t /compat/linux completely, then under 8.0 you'll get the latest linux-ba= se-f10 by default when you re-install. When reinstalling ported software, it's a good idea to adopt the followin= g strategies: * Install whatever ports management software you prefer (portupgrade(= 1), portmaster(1)) pretty much straight away -- you'll need this to bui= ld=20 everything. * Look at the list of installed packages on your 6.4 install, and pic= k out the packages that are your end-use applications. These will mo= stly be leaf packages, but not always. * You only need to reinstall just those packages -- everything else s= hould=20 be installed automatically as dependencies. This will help you avo= id installing and outdated build dependencies or otherwise orphaned pa= ckages which otherwise tend to accumulate on an actively updated system. * For the end-use packages you choose, run 'make config-recursive' be= fore you start building anything to ensure you've selected all the requi= red options. Or use portmanager(1) which runs you through the config s= tage first of all. You need to be a bit careful doing this, as toggling= an option in a port can radically change its dependency list, and may = bring new sets of options into play. To resolve that, you'll need to re-= run 'make config-recursive' until it no longer prompts you to make any = OPTIONS settings. [There's a PR to fix this behaviour in the works= , but it hasn't been committed yet.] * Where there are ports that have compilation flags or knobs that are= n't controlled through OPTIONS dialogues, then be sure to record any no= n- default settings in /etc/make.conf. You can use a construct like t= his to only apply settings to specific ports: =2Eif ${.CURDIR:M*/mail/dkim-milter} WITH_LIBDKIM_INSTALL=3D yes WITH_LIBDKIM_SHARED=3D yes WITH_VERIFY_DOMAINKEYS=3D yes WITH_STATS=3D yes WITH_DNS_UPGRADE=3D yes =2Eendif Well known KNOBS should be set globally where you aren't using the default setting, eg: WITH_OPENSSL_PORT=3D yes WITH_BDB_VER=3D 47 WITH_MYSQL_VER=3D 51 WITH_OPENLDAP_VER=3D 24 WANT_OPENLDAP_SASL=3D yes WITH_GECKO=3D libxul WITH_APACHE2=3D yes APACHE_PORT=3D www/apache22 WITH_MODPERL2=3D yes PERL_VERSION=3D 5.10.1 Again, changing these settings can affect the dependency tree and=20 potentially bring new sets of OPTIONS into play, so test repeatedly= with 'make config-recursive' * It's a good idea to run 'make fetch-recursive' or 'portinstall -RF = =2E..' or 'portmaster -F ...' after sorting out configuration to download = any=20 distfiles before trying to build everything, as this is another pla= ce=20 where a big build session can blow up while you aren't looking. It= 's not mandatory though. * Once everything is configured nicely, it should be possible to just= run a massive portupgrade(1) or portmaster(1) session unattended to= build and install everything, without finding that 10 minutes after= you went home the build stopped at an OPTIONS screen and sat there = all=20 night... In fact, it is well worth temporarily defining BATCH in make.conf or the environment to just accept the defaults for anythi= ng not yet configured during a big build job like this. (But not other= wise.=20 BATCH isn't a good idea for an incremental upgrade IMHO.) If you follow these guidelines when installing the system you should find= that not only does it make your initial install run smoothly, but it sets= you up well for managing updates to the installed system in the future. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig071EC94A2BD92D4B25041806 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAktAfDIACgkQ8Mjk52CukIzGjwCfetwa3Hxq2CjGRYUF2E4Pyvwc a5gAoIKlWBakoMas4pRVL6c0Csl/8HwD =WwGm -----END PGP SIGNATURE----- --------------enig071EC94A2BD92D4B25041806--