The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Remembering options for upgrading ports
Author: Seamus Venasse 
Date:   06-05-02 05:13

I like to keep the ports installed on my server updated to the latest and greatest version that the ports tree has to offer. Using the awesome portupgrade utility found under sysutils/portupgrade, the task of upgrading individual or many ports at once is a breeze.

A problem I have frequently encountered is remembering which options I have selected for a port during the build time. For example, I configured textproc/libxml2 as:

> make WITHOUT_PYTHON=yes all install clean

When it came to upgrading the port however, I completely forgot about the WITHOUT_PYTHON option and installed Python along with my upgrade.

To ensure that I don't forget the options which I have used previously, I simply append the options into my /etc/make.conf file. So for this example, I appended the following lines:

# required for textproc/libxml2
WITHOUT_PYTHON=yes

I hope this tip helps someone else, like it has me!

Seamus

Reply To This Message
 
 Re: Remembering options for upgrading ports
Author: parv 
Date:   06-05-02 22:08

if you use portupgrade, then you can use its own facilities to keep ports' make options instead of spamming /etc/make.conf. this had come up on various freebsd mailing lists ... i personally use manual method & read Makefile before each upgrade.

Reply To This Message
 
 Re: Remembering options for upgrading ports
Author: Dan Langille 
Date:   07-05-02 05:37

Here's my /etc/make.conf:

SUP_UPDATE= yes
SUPFLAGS= -g -z -L 2
SUPHOST= xeon
SUPFILE= /usr/share/examples/cvsup/stable-supfile
NO_X= true

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org