Date: Sun, 03 Jan 2010 11:14:52 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Mike Clarke <jmc-freebsd2@milibyte.co.uk> Cc: freebsd-questions@freebsd.org Subject: Re: Problems building en-openoffice.org-GB-3.1.1 from ports Message-ID: <4B407C2C.1060204@infracaninophile.co.uk> In-Reply-To: <201001031020.16348.jmc-freebsd2@milibyte.co.uk> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B407C2C.1060204>