17a63 [Solved] MAKEOPTS doesn't work in make.conf - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old November 9th, 2010, 17:02
kenorb kenorb is offline
Member
 
Join Date: Oct 2010
Location: London
Posts: 330
Thanks: 57
Thanked 3 Times in 3 Posts
Default MAKEOPTS doesn't work in make.conf

I've added following lines into make.conf
Code:
MAKEOPTS="-j8"
But it doesn't work.

Tested on:
Code:
> sudo portupgrade -f mtr
Code:
> sudo portupgrade -f sl
Why?
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
Reply With Quote
  #2  
Old November 9th, 2010, 17:10
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,523
Thanks: 422
Thanked 607 Times in 475 Posts
Default

make.conf(5) doesn't say anything about MAKEOPTS
Reply With Quote
  #3  
Old November 9th, 2010, 17:12
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Quote:
Originally Posted by kenorb View Post
Why?
Because it's a Linux option.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #4  
Old November 9th, 2010, 17:15
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,523
Thanks: 422
Thanked 607 Times in 475 Posts
Default

Quote:
Originally Posted by SirDice View Post
Because it's a Linux option.
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
Reply With Quote
  #5  
Old November 9th, 2010, 17:19
wblock@'s Avatar
wblock@ wblock@ is offline
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,719
Thanks: 432
Thanked 1,759 Times in 1,457 Posts
Default

In FreeBSD's /etc/make.conf that would be
Code:
MAKE_JOBS_NUMBER=8
At least for ports, I don't think that affects other source.
Reply With Quote
  #6  
Old November 9th, 2010, 17:35
kenorb kenorb is offline
Member
 
Join Date: Oct 2010
Location: London
Posts: 330
Thanks: 57
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by wblock View Post
In FreeBSD's /etc/make.conf that would be
Code:
MAKE_JOBS_NUMBER=8
At least for ports, I don't think that affects other source.
Code:
> man make.conf | less +/MAKE_JOBS_NUMBER
Pattern not found  (press RETURN)
Why is not documented or where it's?
__________________
> 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
Reply With Quote
  #7  
Old November 9th, 2010, 17:39
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Quote:
Originally Posted by kenorb View Post
Why is not documented or where it's?
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.
Reply With Quote
  #8  
Old November 9th, 2010, 17:41
kenorb kenorb is offline
Member
 
Join Date: Oct 2010
Location: London
Posts: 330
Thanks: 57
Thanked 3 Times in 3 Posts
Default

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.
Reply With Quote
  #9  
Old November 9th, 2010, 17:44
kenorb kenorb is offline
Member
 
Join Date: Oct 2010
Location: London
Posts: 330
Thanks: 57
Thanked 3 Times in 3 Posts
Default

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
That mean you need to define MAKE_JOBS_SAFE or FORCE_MAKE_JOBS, to define MAKE_JOBS_NUMBER?
__________________
> 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
Reply With Quote
  #10  
Old November 9th, 2010, 17:47
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

Quote:
Originally Posted by kenorb View Post
That mean you need to define MAKE_JOBS_SAFE or FORCE_MAKE_JOBS, to define MAKE_JOBS_NUMBER?
Why don't you just read the remarks?

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.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
kenorb (November 9th, 2010)
  #11  
Old November 9th, 2010, 17:57
kenorb kenorb is offline
Member
 
Join Date: Oct 2010
Location: London
Posts: 330
Thanks: 57
Thanked 3 Times in 3 Posts
Default

I've added into make.conf
Code:
FORCE_MAKE_JOBS=yes
MAKE_JOBS_NUMBER=8
There is a nice make.conf:
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
Reply With Quote
  #12  
Old November 9th, 2010, 18:28
graudeejs's Avatar
graudeejs graudeejs is offline
Style(9) Addict
 
Join Date: Nov 2008
Location: Riga, Latvia
Posts: 4,523
Thanks: 422
Thanked 607 Times in 475 Posts
Smile

Quote:
Originally Posted by kenorb View Post
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?
Linuxis has deep roots
Reply With Quote
  #13  
Old November 9th, 2010, 21:24
ckester's Avatar
ckester ckester is offline
Member
 
Join Date: Nov 2008
Location: near Seattle, WA (USA)
Posts: 288
Thanks: 28
Thanked 36 Times in 31 Posts
Default

Quote:
Originally Posted by killasmurf86 View Post
Linuxis has deep roots
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.

Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT +1. The time now is 14:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0