From owner-freebsd-stable@FreeBSD.ORG Tue Jul 7 06:38:59 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 660761065672 for ; Tue, 7 Jul 2009 06:38:59 +0000 (UTC) (envelope-from admin@kkip.pl) Received: from mainframe.kkip.pl (kkip.pl [87.105.164.78]) by mx1.freebsd.org (Postfix) with ESMTP id B6E338FC08 for ; Tue, 7 Jul 2009 06:38:58 +0000 (UTC) (envelope-from admin@kkip.pl) Received: from mb01.admin.lan.kkip.pl ([10.66.3.254]) by mainframe.kkip.pl with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1MO4KM-000Npc-NE; Tue, 07 Jul 2009 08:38:57 +0200 Message-ID: <4A52ED7F.5030904@kkip.pl> Date: Tue, 07 Jul 2009 08:38:55 +0200 From: Bartosz Stec User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: CmdLnKid References: <4A523185.90007@smo.de> In-Reply-To: X-Authenticated-User: admin@kkip.pl X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Spam-Score: -8.9 X-Spam-Score-Int: -88 X-Exim-Version: 4.69 (build at 04-Jun-2009 16:07:02) X-Date: 2009-07-07 08:38:57 X-Connected-IP: 10.66.3.254:4148 X-Message-Linecount: 175 X-Body-Linecount: 161 X-Message-Size: 5771 X-Body-Size: 5084 X-Received-Count: 1 X-Recipient-Count: 3 X-Local-Recipient-Count: 3 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org, sulfurfff@gmail.com Subject: Re: upgrading ports without recompiling X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jul 2009 06:38:59 -0000 CmdLnKid pisze: > On Mon, 6 Jul 2009 13:16 -0000, pj wrote: > >> Ishmael F.E. wrote: >> [...] >>> . >>> so, ¿how can I upgrade the ports? >>> unfortunatley I don't have time to compile my 64bit system You don't need to compile whole OS to compile ports, if this is what you had in mind. >> >> Have you looked at the -PP option of portupgrade? >> I don't know how portmaster handles upgrades using packages only. >> > > You could look into devel/ccache & devel/distcc if you would like to > speed up your compile times. Of course your first compile will always > be the slowest one but everyone after that will be faster. This is not > always advised as a good solution and has been known to throw some > pretty weird compiler bugs and also fail while compiling certain ports > but that is tweakable through /etc/make.conf*. > Well, I heard about some problems with ccache, although I personally experienced only one of them - fail when building world on AMD64. Here's my make.conf, feel free to give it try after installing ccache (Try to set MAKEOPTS = CPU cores +1, and set appropriate CPUTYPE): CPUTYPE=athlon64 MAKEOPTS=-j3 # USE CCACHE .if !defined(NOCCACHE) CC=/usr/local/libexec/ccache/world-cc CXX=/usr/local/libexec/ccache/world-c++ .endif # default build settings for ports collection .if ${.CURDIR:M*/ports/*} CFLAGS= -O2 -fno-strict-aliasing -pipe -funroll-loops -fomit-frame-pointer CXXFLAGS= -O2 -fno-strict-aliasing -pipe -funroll-loops .endif # default build settings for base system .if ${.CURDIR:M*/usr/src/*} || ${.CURDIR:M*/usr/obj/*} CFLAGS=-O2 -fno-strict-aliasing -pipe COPTFLAGS=-O2 -fno-strict-aliasing -pipe CXXFLAGS=${CFLAGS} .endif In case of any problem with specific port (or world) type in shell: # setenv NOCCACHE before build. This should give you maximum compile speed in case when package is unavailable while using portupgrade -afP -- Bartosz Stec