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


_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to