DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 8th May 2009
Sunsawe Sunsawe is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Thanked 0 Times in 0 Posts
Default How to get port's building options?

Hi,

I would like to see with which options (WITH_*** or WITHOUT_***) a port can be built.
Is there a way to see this recursively through the dependencies?

Quote:
make showconfig
does display option that will be proposed by the GUI prompt, but not the WITH or WITHOUT option available. I guess they must be related or similar but i would like to have the exact list.

Regards
Reply With Quote
  #2   (View Single Post)  
Old 8th May 2009
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 446
Thanked 69 Times in 46 Posts
Default

AFAIK, you can simply check the Makefile, e.g.:
% grep 'WITH' Makefile

---

edit: I just noticed the "recursively through the dependencies" part of your question. I don't know of a quick way to do that; I would probably kludge together a shell script.
__________________
Kill your t.v.
Reply With Quote
  #3   (View Single Post)  
Old 8th May 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

"make config" will bring up the ncurses configuration screen; make "config-recursive" does the same for meta-ports that have multiple configuration screens in the various subports.

You can also read the Makefile(s).
Reply With Quote
  #4   (View Single Post)  
Old 8th May 2009
Sunsawe Sunsawe is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Thanked 0 Times in 0 Posts
Default

Thank you for your answers.

@anomie:
Stupid question but.... once i get the WITH options through that method... how do I use them to compile in one command line?

@DrJ
I have seen this one but, it doesn't really solve my problem. I can help for a port and it's depedencies but it won't help if i have 20 ports to install in a row. or did I miss an option?
Reply With Quote
  #5   (View Single Post)  
Old 8th May 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

Quote:
Originally Posted by Sunsawe View Post
Stupid question but.... once i get the WITH options through that method... how do I use them to compile in one command line?
make -DWITH_OPTION1 -DWITH_OPTION2 ... install clean
Quote:
I have seen this one but, it doesn't really solve my problem. I can help for a port and it's depedencies but it won't help if i have 20 ports to install in a row. or did I miss an option?
You can run "make config" for all 20 and then just "make install clean" them. Usually you only have to do this the first time round. Thereafter there may be a screen or two when you update, but the heavy lifting has been done.
Reply With Quote
  #6   (View Single Post)  
Old 8th May 2009
Sunsawe Sunsawe is offline
Port Guard
 
Join Date: May 2008
Posts: 39
Thanked 0 Times in 0 Posts
Default

thank you.
I tried : make -DWITH_OPTION but it is still firing the GUI for the options.

So far the repetitive "make config" seems to be the best solution...
but it is not quite what i wanted though...

Ideal would be to use the line "make -DWITH_OPTION" without the GUI appearing.
Reply With Quote
  #7   (View Single Post)  
Old 8th May 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

Quote:
Originally Posted by Sunsawe View Post
I tried : make -DWITH_OPTION but it is still firing the GUI for the options.
Hmm. Not all ports use a config screen. Openoffice is one example, and I always make it -DWITHOUT_MOZILLA.
Quote:
Ideal would be to use the line "make -DWITH_OPTION" without the GUI appearing.
Strictly that's the ncurses screen, but I know what you mean. I don't know of a way to get around that. Maybe there is, but I don't know it.

I don't view it as much of a limitation, personally. Most ports these days use all the cores you have, so there really is no point in running them in parallel. You also can get into trouble doing that anyway.

It also is usually a good idea to see that one port has installed properly before moving on to the next. Otherwise you really should script the session to figure out what happened, and those files then get huge and cumbersome.
Reply With Quote
  #8   (View Single Post)  
Old 9th May 2009
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 429
Thanked 26 Times in 22 Posts
Default

>Most ports these days use all the cores you have,

They don't. There are a small number of ports only that are able to build in parallel. It's a new knob in make.conf (since some weeks), but usually it's done via a whitelist (it's an ongoing project).
__________________
use UNIX or die :-)
Reply With Quote
  #9   (View Single Post)  
Old 9th May 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

I'll stand corected. Most of the ones *I* have installed seem to use multiple cores. Gnome does, for example.
Reply With Quote
Old 9th May 2009
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 429
Thanked 26 Times in 22 Posts
Default

>Most of the ones *I* have installed seem to use multiple cores.

Yes but take a closer look, they aren't compiling with -jx. You're just seeing the use of multiple cores because the scheduler allocates some tasks like disk io etc. to different cores. Firefox, QT, GTK, OO etc. are on the agenda - but tests take a long time.

And guess why? See for example icu:

http://www.freshports.org/devel/icu/

Quote:
Disable the parallelized building. It seems, there are races hidden in
the vendor's makefiles.


Those (like myself), for whom the parallel build just worked, can simply
use the new whitelist functionality of the ports system.
So it's a work in process and I don't think Gnome is ready for it. But I don't know, it's a rather 'early project'.

[edit] http://blogs.freebsdish.org/pav/2009...-for-everyone/

Multi processor compilations for everyone
__________________
use UNIX or die :-)
Reply With Quote
Old 9th May 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

Quote:
Originally Posted by Oliver_H View Post
Yes but take a closer look, they aren't compiling with -jx.
That may be, but I noted that portupgrades of Gnome after the announcement (for parallel ports builds) my computer idle time dropped to 5% (according to top) when before it was about 50%. Build times went down too. That's more than disk buffering, I'd think.
Reply With Quote
Old 9th May 2009
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 429
Thanked 26 Times in 22 Posts
Default

I'm not a Gnome user, but to be sure just take a look at the makefiles - there should be something like this MAKE_JOBS_SAFE=yes. Firefox3 e.g. is parallel safe, OpenOffice for example isn't until now.
__________________
use UNIX or die :-)
Reply With Quote
Old 9th May 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

Well some do, and most don't. Clearly I looked at top only when the parallel build upgrades were taking place. You can also feel it -- an idle time of 5% is sure different than 50%.
Reply With Quote
Old 9th May 2009
Oliver_H's Avatar
Oliver_H Oliver_H is offline
Real Name: Oliver Herold
UNIX lover
 
Join Date: May 2008
Location: Germany
Posts: 429
Thanked 26 Times in 22 Posts
Default

Well I hope so, I have to install Gnome for some friend :-)
__________________
use UNIX or die :-)
Reply With Quote
Old 9th May 2009
DrJ DrJ is offline
ISO Quartermaster
 
Join Date: Apr 2008
Location: Gold Country, CA
Posts: 506
Thanked 39 Times in 39 Posts
Default

I hope you have either a decent CPU or some patience! My set-up unfortunately requires the latter.
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
Find command (Linux options?) deadeyes FreeBSD General 11 23rd August 2009 06:07 PM
portupgrade -af, how to submit fetch options? bsdfan FreeBSD Ports and Packages 4 28th December 2008 09:05 PM
Change compile options for a determined port Treppiede FreeBSD Ports and Packages 4 5th October 2008 05:59 AM
Change Makefile options in ports shep FreeBSD Ports and Packages 5 18th August 2008 07:58 AM
Buildworld make.conf options siffland FreeBSD Installation and Upgrading 4 12th May 2008 12:02 AM


All times are GMT. The time now is 07:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick