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 11th April 2010
Broodjegehaktmetmayo Broodjegehaktmetmayo is offline
Shell Scout
 
Join Date: Sep 2008
Posts: 92
Default [Noob] test a port before install?

I thought by adding [Noob] you could easily see it's me again

Last week, I read somewhere a comment from somebody with a solution to a problem we all know: you do an install of a large port, you decide to put out your monitor and let it cook for the night, only to find out the next morning that it halted 5 minutes after you put out your monitor. He had a command to 'pretest' the port first. From what I recall it wasn't one of the 'make' steps, it was a separate kind of command.

I checked:
- FreeBSD handbook
- Two FreeBSD books I have
- port utilities in the ports
- Google

But I can't seem to find it anymore. Such a utility however would be extremely handy, as I intend to build koffice-kde4 from ports (as there doesn't seem to be a package).

Would anybody happen to know of such a utility? I promiss I will write it down in my notes

Thanks in advance
Reply With Quote
  #2   (View Single Post)  
Old 11th April 2010
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

This is the default behaviour of portmaster ... It runs through all the config options (recursively) before starting the actual build process. So run portmaster editors/koffice-kde4 and you should be set. There may be a similar flag for portupgrade. I forget. This is not to be confused with any --batch or BATCH= option.

Last edited by DutchDaemon; 11th April 2010 at 09:44 PM.
Reply With Quote
  #3   (View Single Post)  
Old 11th April 2010
Broodjegehaktmetmayo Broodjegehaktmetmayo is offline
Shell Scout
 
Join Date: Sep 2008
Posts: 92
Default

Quote:
Originally Posted by DutchDaemon View Post
This is the default behaviour of portmaster ... It runs through all the config options (recursively) before starting the actual build process. So run portmaster editors/koffice-kde4 and you should be set. There may be a similar flag for portupgrade. I froget. This is not to be confused with any --batch or BATCH= option.
Thanks thanks thanks
Reply With Quote
  #4   (View Single Post)  
Old 11th April 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Except for what you must actually compile and run the program for, many things can be found out by inspecting the files. For example the Makefile will tell you configuration data available (think make config and old knobs), pkg-plist and or Makefile the things contents (names of programs, manuals, paths, etc), and so on.


If you look at the dependencies declared in the Makefile you'll have an idea of what needs to be installed; special make targets can even give a more detailed list. Take a look at the ports manual page and the big kahunua in Mk for details.


How long crap actually takes to compile on your hardware, you kind of get a feel for after a while. For example, I know Firefox takes a good 2 1/2-3 hours to build on my laptop. Plus any dependencies.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #5   (View Single Post)  
Old 12th April 2010
Broodjegehaktmetmayo Broodjegehaktmetmayo is offline
Shell Scout
 
Join Date: Sep 2008
Posts: 92
Default

Quote:
Originally Posted by TerryP View Post
Except for what you must actually compile and run the program for, many things can be found out by inspecting the files. For example the Makefile will tell you configuration data available (think make config and old knobs), pkg-plist and or Makefile the things contents (names of programs, manuals, paths, etc), and so on.


If you look at the dependencies declared in the Makefile you'll have an idea of what needs to be installed; special make targets can even give a more detailed list. Take a look at the ports manual page and the big kahunua in Mk for details.


How long crap actually takes to compile on your hardware, you kind of get a feel for after a while. For example, I know Firefox takes a good 2 1/2-3 hours to build on my laptop. Plus any dependencies.
I like how you all just push me into deep waters, but as a complete noob for me it is quite an accomplishment having been able to install FreeBSD, KDE, sound, printer, flash, and so on and so forth, and even doing that without ruining my XP (dual boot). In order for me to understand the Makefile and all that is related will require more knowledge than I currently have as a noob. it takes time, but my goal is to ultimately be able to give you all answers to questions you all can't solve. We'll get there (in about 10 years ).

Thanks again
Reply With Quote
  #6   (View Single Post)  
Old 12th April 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Actually the parts of interest in the makefiles, are fairly easy to read even if you don't know how to write them, the harder parts (rule bodies) are something you rarely need to be read, unless you want to ask ports a very specific question, like how does `make deinstall` actually de install a port, or if you want to create a port for some application.



It (starting off with FreeBSD) can be a whole lot to take in, don't worry, just take it in bit and byte sized chunks .

Unix is kind of like programming and many good parts of computer stuffs: things are well layered upon other layers like a good lasagna. So most things can be learned from higher and easier stages and at your own pace for the most part. +/- blowing anything up with an Rocket Propelled Grenade lol
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #7   (View Single Post)  
Old 13th April 2010
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 696
Default

Using portmaster is the easiest way, as it handles a lot of the heavy lifting behind the scenes (checking dependencies, installing/upgrading deps as needed, tracking the install, etc).

However, if you want to do it manually, via the ports tree, then the command you are looking for is config-recursive. This will show the OPTIONS screen for the port, and all of it's dependencies, one after the other. Once that is done, you can do make or make install and let it run overnight.

For all the different make commands that can be used, read through the ports(7) man page.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
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
install NetBSD (hpcsh-port) on a HP-620 ? hackerman1 NetBSD Installation and Upgrading 4 26th January 2010 12:04 PM
test port connection carpman FreeBSD Security 5 9th February 2009 11:12 AM
Unix noob's license plate drhowarddrfine Off-Topic 16 20th September 2008 04:57 PM
Unable to make install on Subversion port Fuitad FreeBSD Ports and Packages 2 28th July 2008 04:49 PM
HOWTO: Always install an up-to-date port chris Guides 8 28th May 2008 11:53 AM


All times are GMT. The time now is 02:30 AM.


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