17a63
![]() |
|
|
|
|
|||||||
| Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I've added following lines into make.conf
Code:
MAKEOPTS="-j8" Tested on: Code:
> sudo portupgrade -f mtr Code:
> sudo portupgrade -f sl It's a bug or feature? P.S. Could find anything in: man make.conf
__________________
> uname -a FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #0: Tue Oct 19 15:28:55 BST 2010 root@kenorb:/usr/obj/usr/src/sys/BRO amd64 |
|
#2
|
||||
|
||||
|
make.conf(5) doesn't say anything about MAKEOPTS
|
|
#3
|
||||
|
||||
|
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#4
|
||||
|
||||
|
I thought I've heard about this option, but wasn't sure.
Now I remember, I've been using it myself on GNU/Linux Gentoo
|
|
#5
|
||||
|
||||
|
In FreeBSD's /etc/make.conf that would be
Code:
MAKE_JOBS_NUMBER=8 |
|
#6
|
|||
|
|||
|
Quote:
Code:
> man make.conf | less +/MAKE_JOBS_NUMBER Pattern not found (press RETURN)
__________________
> uname -a FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #0: Tue Oct 19 15:28:55 BST 2010 root@kenorb:/usr/obj/usr/src/sys/BRO amd64 |
|
#7
|
||||
|
||||
|
Read /usr/ports/Mk/bsd.port.mk.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#8
|
|||
|
|||
|
Following posts in this forum point to that variable:
http://forums.freebsd.org/showthread...=1886#post1886 http://forums.freebsd.org/showthread...7289#post17289 http://forums.freebsd.org/showthread...6467#post96467 (it kind of works?) http://forums.freebsd.org/showthread...851#post100851 http://forums.freebsd.org/showthread...599#post107599 http://forums.freebsd.org/showthread...0561#post10561 (even to MAKEOPT) And found thousands of examples in Google. How it's possible that it doesn't work and even that half of the people have it in make.conf? They all are wrong?
__________________
> uname -a FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #0: Tue Oct 19 15:28:55 BST 2010 root@kenorb:/usr/obj/usr/src/sys/BRO amd64 Last edited by kenorb; November 9th, 2010 at 17:47. |
|
#9
|
|||
|
|||
|
Code:
# Multiple make jobs support
.if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE)
_MAKE_JOBS= #
.else
.if defined(MAKE_JOBS_SAFE) || defined(FORCE_MAKE_JOBS)
MAKE_JOBS_NUMBER?= `${SYSCTL} -n kern.smp.cpus`
_MAKE_JOBS?= -j${MAKE_JOBS_NUMBER}
.if defined(FORCE_MAKE_JOBS) && !defined(MAKE_JOBS_SAFE)
BUILD_FAIL_MESSAGE+= "You have chosen to use multiple make jobs (parallelization) for all ports. This port was not tested for this setting. Please remove FORCE_MAKE_
JOBS and retry the build before reporting the failure to the maintainer."
.endif
.endif
.endif
__________________
> uname -a FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #0: Tue Oct 19 15:28:55 BST 2010 root@kenorb:/usr/obj/usr/src/sys/BRO amd64 |
|
#10
|
||||
|
||||
|
Quote:
Code:
## # MAKE_JOBS_SAFE # - This port can safely be built on multiple cpus in parallel. # The make will be invoked with -jX parameter where X equals # number of cores present in the system. # MAKE_JOBS_UNSAFE # - Disallow multiple jobs even when user set a global override. # To be used with known bad ports. # DISABLE_MAKE_JOBS # - Set to disable the multiple jobs feature. User settable. # FORCE_MAKE_JOBS # - Force all ports to be built with multiple jobs, except ports # that are explicitly marked MAKE_JOBS_UNSAFE. User settable. # MAKE_JOBS_NUMBER # - Override the number of make jobs to be used. User settable.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
kenorb (November 9th, 2010) | ||
|
#11
|
|||
|
|||
|
I've added into make.conf
Code:
FORCE_MAKE_JOBS=yes MAKE_JOBS_NUMBER=8 http://www.bsdtips.org/index.php/My_make_conf
__________________
> uname -a FreeBSD kenorb 8.1-STABLE FreeBSD 8.1-STABLE #0: Tue Oct 19 15:28:55 BST 2010 root@kenorb:/usr/obj/usr/src/sys/BRO amd64 |
|
#12
|
||||
|
||||
|
Quote:
|
|
#13
|
||||
|
||||
|
Yep. Linuxisms are like kudzu.
Or English Ivy, if you're a Pacific Northwesterner like me. Forever climbing up the trunks of our trees and threatening to bring them down with all its extra weight. You should yank it out wherever you find it! We must all be vigilant in order to preserve our ecosystems. Use only native plants ... and native BSD commands.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| make.conf in a jail | wonslung | General | 2 | March 18th, 2011 09:53 |
| [Solved] src.conf or make .conf ? | holo | Installation and Maintenance of FreeBSD Ports or Packages | 3 | August 17th, 2010 08:34 |
| make.conf and curdir | aquouel | Installation and Maintenance of FreeBSD Ports or Packages | 5 | March 3rd, 2010 12:32 |
| [Solved] Kernel config and WITHOUT_MODULES in make.conf | hermes | Installing & Upgrading | 4 | February 11th, 2010 18:04 |
| Anyone use /etc/make.conf ? | johnblue | General | 5 | April 16th, 2009 14:37 |