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 9th June 2008
jaymax jaymax is offline
Port Guard
 
Join Date: Jun 2008
Posts: 16
Default Automating ports update with portmaster

How can I automate ports update to keep it constantly current or 'near current'. I was thinking of running a cron job but was finally stymied by the realization of the need for considerable manual intervention
I am upgrading ports with portmaster and running in to frequent "Aborts" because of "IGNORE=" condtions in Makefiles or "IGNORE" in ports themselves. These are apparently associated with relocation of the base system of the respective port. These apparently neccesitates removal of the offending IGNORE= containing line in the Makefile and restarting.

Another issue is the need to manually set options in some upgrades.

Perhaps there is a non-interactive version around ?
How can one circumvent these.

Thanks
Reply With Quote
  #2   (View Single Post)  
Old 9th June 2008
kazcor kazcor is offline
Real Name: Registreed Usre
Port Guard
 
Join Date: May 2008
Location: bliner, erg
Posts: 20
Default

Quote:
Originally Posted by jaymax View Post
Another issue is the need to manually set options in some upgrades.

Perhaps there is a non-interactive version around ? [/INDENT]
How can one circumvent these.

Thanks
ports-mgmt/portconf:
Quote:
Portconf is a simple framework to set ports options in an
universal way. Knobs set to specific ports are honoured
by portmaster, portupgrade, portmanager and 'make install'.
I prefer using portconf together with ports-mgmt/portsopt to initially get all options that need to be defined for a specific set of ports. To get sure you didn't miss a port you might want to set "BATCH" for all ports - see ports(7) for details.
I'm using portupgrade for upgrades and it comes with an option to hand BATCH over to every port - maybe portmaster provides the same.
Reply With Quote
  #3   (View Single Post)  
Old 12th June 2008
BSDKaffee's Avatar
BSDKaffee BSDKaffee is offline
Real Name: Jason Hale
Coffee Addict
 
Join Date: May 2008
Location: Wintersville, Ohio
Posts: 212
Default

Having ports update themselves automatically is a *bad* idea. There are often steps one must take to prevent dependency chaos. Another good reason is if most of your ports get bumped like they just did with the gettext update, oh what a surprise you will have.

It's best to take the time to read /usr/ports/UPDATING, figure out what you have to do, and do things in small batches if possible.

Also, if a port has IGNORE set in it and won't build, it is probably for a good reason.
Reply With Quote
  #4   (View Single Post)  
Old 12th June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Default

Yes, I'll second the notion that updating ports automagically is a bad idea. You don't want that headache. My advice is update only when necessary, and at that, only the ports that need updates. The last thing you want to do is break some user's PHP script because you updated PHP and there was some funky change.

Then again, if this is only a "workstation" you don't necessarily have to worry about that, but it's still a bad idea.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
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
Broken ports in /usr/ports/x11 DNAeon FreeBSD Ports and Packages 3 5th July 2009 08:20 PM
CVSup src-all update and relevant ports vigol FreeBSD Installation and Upgrading 5 20th November 2008 06:34 AM
How do you update ports? disappearedng FreeBSD General 6 8th November 2008 05:59 AM
portmaster question joel FreeBSD Ports and Packages 5 31st October 2008 04:12 AM
portmaster: "Terminated" messages anomie FreeBSD General 3 20th June 2008 02:59 PM


All times are GMT. The time now is 04:43 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