From owner-freebsd-questions@FreeBSD.ORG Wed Sep 10 15:46:16 2008 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 7D861106566C for ; Wed, 10 Sep 2008 15:46:16 +0000 (UTC) (envelope-from todor.genov@za.verizonbusiness.com) Received: from smtpout2.uunet.co.za (smtpout2.uunet.co.za [196.7.142.138]) by mx1.freebsd.org (Postfix) with ESMTP id 12C698FC12 for ; Wed, 10 Sep 2008 15:46:16 +0000 (UTC) (envelope-from todor.genov@za.verizonbusiness.com) Received: from nop198.nop.jnb6.za.uu.net ([196.30.158.198]) by smtp.uunet.co.za with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1KdRtW-000NAQ-OY; Wed, 10 Sep 2008 17:46:14 +0200 Message-ID: <48C7EBC1.2030106@za.verizonbusiness.com> Date: Wed, 10 Sep 2008 17:46:09 +0200 From: Todor Genov User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: relay.lists@gmail.com References: <20080910162227.0241e209@ilievnet.com> In-Reply-To: <20080910162227.0241e209@ilievnet.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: branches, updates, buildworld 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: Wed, 10 Sep 2008 15:46:16 -0000 relay.lists@gmail.com wrote: > Hi, > > I'm new to FreeBSD and I'd like to give it a try as a PostgreSQL test > server on an ancient box. > > Since I have a lot to learn about this OS, I chose FreeBSD-7.0-RELEASE. > (It's the most current production-ready release now, right?). > > On the other hand I'd like to make every possible speed improvement, > because the CPU is Pentium-2@400MHz. So, my questions are: > > 1) After reading the docs I remained with the impression that sources > should be updated for "-current" and "-stable" branches only. Is this > correct? The STABLE and CURRENT branch are works-in-progress and change daily, thus if you wish to follow them you need to update your sources quite frequently. The only time the RELEASE branch changes (and needs to be updated) is when security and bug fixes are applied to the current source tree - these are known as RELEASE-p? versions. You can follow these updates at http://security.freebsd.org/advisories and on the freebsd-security-notifications mailing list. > 2) If I'm wrong about (1) how should I update the "-release" sources in > order to "make buildworld" with additional gcc optimisations? make buildworld in /usr/src will compile whatever sources you have in the directory. Whether the compiled code is optimized depends on what you put in /etc/make.conf If you haven't done a cvsup since your installation then you have the 7.0-RELEASE source which was on the CD. If you want to obtain the latest 7.0-RELEASE-p? source you need to cvsup with tag=RELENG_7_0 in the cvsup config file. Thereafter you do a buildworld/installworld (and buildkernel/installkernel) which will then give you the latest -RELEASE version (7.0-RELEASE-p4 if I am not mistaken). Similarly tag=RELENG_7 will fetch the -STABLE branch and tag=. will fetch the -CURRENT branch, but you should probably stick with RELENG_7_0 > > 3) "make buildworld" re-compiles _everything_ or the "base system" only? It recompiles the base system. For updates to packages installed from ports look at portupgrade. > > 4) Will "make buildworld" fail with a make.conf like this: > > ######## > PERL_VER=5.8.8 > PERL_VERSION=5.8.8 > BDECFLAGS="-march=pentium2 -mmmx -pipe -O3 -fomit-frame-pointer \ > -combine -fno-strict-aliasing" > > CFLAGS+=${BDECFLAGS} > CXXFLAGS=${CFLAGS} > COPTFLAGS="-march=pentium2 -mmmx -pipe -O3 -fomit-frame-pointer \ > -combine -fno-strict-aliasing" > > BOOTWAIT=3000 > DOC_LANG=en > NO_SHAREDOCS=True > > WITHOUT_MODULES="INET6 zfs wlan firewire lpt joy iscsi cpufreq coda \ > coda5 3dfx acpi unionfs ilpt srv4 smbfs reiserfs pccard palm uscanner \ > xfs audiocs emu10k1 fm801 neomagic t4dwave cmi emu10kx hda sb16 uaudio \ > ad1816 cs4281 envy24 ich sb8 via8233 als4000 csa envy24ht maestro \ > via82c686 atiixp driver es137x maestro3 solo vibes au88x0 ds1 mss \ > spicds" > ######## Seems OK on first inspection. Guess you won't know till you run the buildworld :) Regards, Todor Genov Systems Operations Verizon Business South Africa (Pty) Ltd todor.genov@za.verizonbusiness.com Tel: +27 11 235 6500 Fax: 086 692 0543