Re: Remembering defines for port upgrades.

2004-11-28 Thread RW
On Saturday 27 November 2004 22:55, Adam Fabian wrote:
Is there any other/better way to remember build options so
 that I don't have to remember them every time I build a port?

If you use portupgrade, put your options in /usr/local/etc/pkgtools.conf where 
there is a section in whch they can be defined per port rather than globally. 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Remembering defines for port upgrades.

2004-11-27 Thread Adam Fabian
I've been sticking options like WITHOUT_TTF_BYTECODE_ENABLED=yes (for
freetype2) in /etc/make.conf.  It's been working, for the actual
building of the port.  The downshot is that it seems to drive the
package tools nuts. (portupgrade makes strange errors, make index
fails).  Is there any other/better way to remember build options so
that I don't have to remember them every time I build a port?

It's also possible that I've confused legitimate, tuneable knobs with
some kinds of reserved variables.  The suspect ones are USE_X11,
USE_ATHENA (but I specifically remember using that one for vim), and
USE_OPENSSL.

-- Adam Fabian ([EMAIL PROTECTED])
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Remembering defines for port upgrades.

2004-11-27 Thread Ian Moore
On Sun, 28 Nov 2004 09:25, Adam Fabian wrote:
 I've been sticking options like WITHOUT_TTF_BYTECODE_ENABLED=yes (for
 freetype2) in /etc/make.conf.  It's been working, for the actual
 building of the port.  The downshot is that it seems to drive the
 package tools nuts. (portupgrade makes strange errors, make index
 fails).  Is there any other/better way to remember build options so
 that I don't have to remember them every time I build a port?


I belive /usr/local/etc/pkgtools.conf is the correct place to put port 
specific switches. Take a look at Dr. Dru's article on ports at 
http://www.onlamp.com/lpt/a/4165

In particular:
 If you ever plan on using portupgrade to upgrade mplayer and wish to use the 
same arguments, you have a choice. Either count on your ability to remember 
to use the m switch to specify your make arguments with portupgrade:
 
  
 % portupgrade -rRm '-DWITH_GUI' '-DWITH_FREETYPE' mplayer
  
 
 or spend a moment and add those switches to /usr/local/etc/pkgtools.conf:
 
  
 MAKE_ARGS = {
 'multimedia/mplayer-*' = 'WITH_GUI=1 WITH_FREETYPE=1',
 }

Cheers,
-- 
Ian Moore

GPG Key: http://homepages.picknowl.com.au/imoore/imoore.asc


pgp3MjXHbjmK4.pgp
Description: PGP signature


Re[2]: port upgrades

2004-07-02 Thread Chris
*This message was transferred with a trial version of CommuniGate(tm) Pro*
*This message was transferred with a trial version of CommuniGate(tm) Pro*



Have you tried running pkgdb -F?


Yes, at some point. I did solve the problem:

I finally deleted all packages that were installed directly from cpan, and added them 
back with the pkg_add command. Now all is well. It -seems- that adding things via cpan 
does not update the pkgdb like pkg_add or portupgrade does.

Thanks,
Chris

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port upgrades

2004-07-02 Thread Skylar Thompson
On Wed, Jun 30, 2004 at 02:22:07PM -0500, Chris wrote:
 5.2.1-RELEASE
 
 I've started using 'portupgrade' to update several ports to the latest versions, but 
 have an odd problem when it comes to certain ports.
 
 For example:
 
 server# pkg_version -v | grep Spam
 bsdpan-Mail-SpamAssassin-2.63  needs updating (port has 2.63_2)
 
 server# portupgrade bsdpan-Mail-SpamAssassin
 ---  Skipping 'mail/p5-Mail-SpamAssassin' because it is held by user (specify -f to 
 force)
 server# portupgrade -f bsdpan-Mail-SpamAssassin

Have you tried running pkgdb -F?

-- 
-- Skylar Thompson ([EMAIL PROTECTED])
-- http://www.cs.earlham.edu/~skylar/


pgpocQYl8sBq6.pgp
Description: PGP signature


port upgrades

2004-06-30 Thread Chris
*This message was transferred with a trial version of CommuniGate(tm) Pro*



5.2.1-RELEASE

I've started using 'portupgrade' to update several ports to the latest versions, but 
have an odd problem when it comes to certain ports.

For example:

server# pkg_version -v | grep Spam
bsdpan-Mail-SpamAssassin-2.63  needs updating (port has 2.63_2)

server# portupgrade bsdpan-Mail-SpamAssassin
---  Skipping 'mail/p5-Mail-SpamAssassin' because it is held by user (specify -f to 
force)
server# portupgrade -f bsdpan-Mail-SpamAssassin


So I use the -f flag to force, and get several errors like:

===   p5-MIME-Base64-3.01 is already installed
  You may wish to ``make deinstall'' and install this port again
  by ``make reinstall'' to upgrade it properly.
  If you really wish to overwrite the old port of converters/p5-MIME-Base64
  without deleting it first, set the variable FORCE_PKG_REGISTER
  in your environment or the make install command line.
*** Error code 1

Stop in /usr/ports/converters/p5-MIME-Base64.
*** Error code 1

Stop in /usr/ports/security/p5-Digest.
*** Error code 1

Stop in /usr/ports/security/p5-Digest-SHA1.
*** Error code 1

Stop in /usr/ports/security/p5-Digest-HMAC.
*** Error code 1

Stop in /usr/ports/dns/p5-Net-DNS.
*** Error code 1

Stop in /usr/ports/mail/p5-Mail-SpamAssassin.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade64155.0 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! mail/p5-Mail-SpamAssassin (bsdpan-Mail-SpamAssassin-2.63) (unknown build 
error)
---  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed


I can successfully install Mail::SpamAssassin using cpan, but it never seems to show 
up as the latest version (always seems to need upgrading when looking at pkg_version).

Are there are two different ways to install (for example) SpamAssassin (and other perl 
related ports)?

I can use cpan OR the pkg_add / portupgrade commands but not both?


Thanks,
Chris
_
Email harvesters eat this: [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port upgrades

2004-06-30 Thread Phil Schulz
Chris wrote:
[...]
So I use the -f flag to force, and get several errors like:
[...]
From the portupgrade man page:
-r
--recursiveAct on all those packages depending on the given
   packages as well.
So I think you might want to run
#portupgrade -rf bsdpan-Mail-SpamAssassin
[...]
I can successfully install Mail::SpamAssassin using cpan, but it never seems to 
show up as the latest version (always seems to need upgrading when looking at pkg_version).
Are there are two different ways to install (for example) SpamAssassin (and other perl 
related ports)?
I can use cpan OR the pkg_add / portupgrade commands but not both?
Sorry, I don't know.
Phil.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port upgrades

2004-06-08 Thread Daniela
On Tuesday 08 June 2004 00:45, Kris Kennaway wrote:
 On Mon, Jun 07, 2004 at 09:01:15PM +, Daniela wrote:
  On Monday 07 June 2004 19:35, Kris Kennaway wrote:
   On Mon, Jun 07, 2004 at 07:14:34PM +, Daniela wrote:
On Monday 07 June 2004 17:28, Tim Traver wrote:
Hi all,
Is there a way to do a quick update of a particular port
 directory ??? I don't necessarily want to do the portupgrade, but
 just get the latest port files for a particular port.
Right now, if i want to make sure the ports are up to date, I
 have to use sysinstall to download the entire port collection,
 which takes forever...
Am I missing a quick utility to just check and make sure I have
 the latest port files for one at a time ?
   
You could use CVSup to update just the directories you want, and you
can also put this into the system crontab to periodically run it.
That's pretty convenient.
  
   You _will_ run into problems if you only update parts of the ports
   collection.
 
  Well, I didn't mean upgrading of just one or two directories, but rather
  skipping directories such as the japanese ports if you don't speak
  japanese. Almost no ports depend on things in language-specific
  directories (at least not the ones I have installed).

 OK, but you still can't do some things like build an index because
 some things do still depend on those ports you're not upgrading.

While we're on the subject, how do you build an index of the binary packages 
you have? I needed this a long time ago, when I created a custom FreeBSD 
installation CD-ROM, and I thought shellscript and hand-editing were the only 
ways to do it. Recursive fetching was a pain too, even with portupgrade. How 
do you gurus solve this?

Daniela


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


port upgrades

2004-06-07 Thread Tim Traver

   Hi all,
   Is there a way to do a quick update of a particular port directory ???
   I don't necessarily want to do the portupgrade, but just get the
   latest port files for a particular port.
   Right now, if i want to make sure the ports are up to date, I have to
   use sysinstall to download the entire port collection, which takes
   forever...
   Am I missing a quick utility to just check and make sure I have the
   latest port files for one at a time ?
   Thanks,
   Tim.

   SimpleNet's Back !
   [1]http://www.simplenet.com/
   

References

   1. http://www.simplenet.com/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port upgrades

2004-06-07 Thread Kent Stewart
On Monday 07 June 2004 10:28 am, Tim Traver wrote:
Hi all,
Is there a way to do a quick update of a particular port directory
 ??? I don't necessarily want to do the portupgrade, but just get the
 latest port files for a particular port.
Right now, if i want to make sure the ports are up to date, I have
 to use sysinstall to download the entire port collection, which takes
 forever...
Am I missing a quick utility to just check and make sure I have
 the latest port files for one at a time ?
Thanks,
Tim.

You need to read the Handbook on maintaing your ports, which is now 
chapter 4. Then, install cvsup[-without-gui], copy the ports-supfile 
from the share/examples directory into a safe place, change the 
CHANGE_THIS to something real from the cvsup mirror list in the 
handbook and run it.  If you don't know where the share/examples 
directory is located do a locate ports-supfile and locate will tell 
you where it is. If you don't have locate running, do a man located and 
then run the script to build the database.

You need to run portsdb -uU to update the INDEX[.db] files and then you 
can install ports such as portupgrade that make the actually upgrade 
process simple.

I maintain that sysinstall only has value when you are doing a SYStem 
INSTALL] and should be left alone after that. I don't do that because I 
still find adding a new HD easier from sysinstall. I do not use it to 
help maintain my system or the port-system. There are tools that are 
much better suited for that task once you have a running system.

Kent


SimpleNet's Back !
[1]http://www.simplenet.com/


 References

1. http://www.simplenet.com/
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port upgrades

2004-06-07 Thread Daniela
On Monday 07 June 2004 17:28, Tim Traver wrote:
Hi all,
Is there a way to do a quick update of a particular port directory ???
I don't necessarily want to do the portupgrade, but just get the
latest port files for a particular port.
Right now, if i want to make sure the ports are up to date, I have to
use sysinstall to download the entire port collection, which takes
forever...
Am I missing a quick utility to just check and make sure I have the
latest port files for one at a time ?

You could use CVSup to update just the directories you want, and you can also 
put this into the system crontab to periodically run it. That's pretty 
convenient.

Daniela


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port upgrades

2004-06-07 Thread Kris Kennaway
On Mon, Jun 07, 2004 at 07:14:34PM +, Daniela wrote:
 On Monday 07 June 2004 17:28, Tim Traver wrote:
 Hi all,
 Is there a way to do a quick update of a particular port directory ???
 I don't necessarily want to do the portupgrade, but just get the
 latest port files for a particular port.
 Right now, if i want to make sure the ports are up to date, I have to
 use sysinstall to download the entire port collection, which takes
 forever...
 Am I missing a quick utility to just check and make sure I have the
 latest port files for one at a time ?
 
 You could use CVSup to update just the directories you want, and you can also 
 put this into the system crontab to periodically run it. That's pretty 
 convenient.

You _will_ run into problems if you only update parts of the ports collection.

Kris


pgpoS298uhWbZ.pgp
Description: PGP signature


Re: port upgrades

2004-06-07 Thread Daniela
On Monday 07 June 2004 19:35, Kris Kennaway wrote:
 On Mon, Jun 07, 2004 at 07:14:34PM +, Daniela wrote:
  On Monday 07 June 2004 17:28, Tim Traver wrote:
  Hi all,
  Is there a way to do a quick update of a particular port directory
   ??? I don't necessarily want to do the portupgrade, but just get the
   latest port files for a particular port.
  Right now, if i want to make sure the ports are up to date, I have
   to use sysinstall to download the entire port collection, which takes
   forever...
  Am I missing a quick utility to just check and make sure I have the
  latest port files for one at a time ?
 
  You could use CVSup to update just the directories you want, and you can
  also put this into the system crontab to periodically run it. That's
  pretty convenient.

 You _will_ run into problems if you only update parts of the ports
 collection.

Well, I didn't mean upgrading of just one or two directories, but rather 
skipping directories such as the japanese ports if you don't speak japanese. 
Almost no ports depend on things in language-specific directories (at least 
not the ones I have installed).

Daniela


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port upgrades

2004-06-07 Thread Kent Stewart
On Monday 07 June 2004 02:01 pm, Daniela wrote:
 On Monday 07 June 2004 19:35, Kris Kennaway wrote:
  On Mon, Jun 07, 2004 at 07:14:34PM +, Daniela wrote:
   On Monday 07 June 2004 17:28, Tim Traver wrote:
   Hi all,
   Is there a way to do a quick update of a particular port
directory ??? I don't necessarily want to do the portupgrade,
but just get the latest port files for a particular port.
   Right now, if i want to make sure the ports are up to date,
I have to use sysinstall to download the entire port
collection, which takes forever...
   Am I missing a quick utility to just check and make sure I
have the latest port files for one at a time ?
  
   You could use CVSup to update just the directories you want, and
   you can also put this into the system crontab to periodically run
   it. That's pretty convenient.
 
  You _will_ run into problems if you only update parts of the ports
  collection.

 Well, I didn't mean upgrading of just one or two directories, but
 rather skipping directories such as the japanese ports if you don't
 speak japanese. Almost no ports depend on things in language-specific
 directories (at least not the ones I have installed).


Well, there are side effects that you may not know or think about. For 
example, many of the ports include pieces from other pieces. If you 
don't upgrade everything, you could be using old information. Make is 
very particular and the only safe way to refuse, is to delete the 
refused tree, and then modify /usr/ports/Makefile to ignore those 
pieces. If you follow those steps and something breaks during the make 
index process, there is a lot that you don't understand about make and 
will learn soon :). 

FWIW, you don't save a lot of disk space by cvsuping ports-all and you 
may save yourself a lot of problems you wouldn't think about.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: port upgrades

2004-06-07 Thread Kris Kennaway
On Mon, Jun 07, 2004 at 09:01:15PM +, Daniela wrote:
 On Monday 07 June 2004 19:35, Kris Kennaway wrote:
  On Mon, Jun 07, 2004 at 07:14:34PM +, Daniela wrote:
   On Monday 07 June 2004 17:28, Tim Traver wrote:
   Hi all,
   Is there a way to do a quick update of a particular port directory
??? I don't necessarily want to do the portupgrade, but just get the
latest port files for a particular port.
   Right now, if i want to make sure the ports are up to date, I have
to use sysinstall to download the entire port collection, which takes
forever...
   Am I missing a quick utility to just check and make sure I have the
   latest port files for one at a time ?
  
   You could use CVSup to update just the directories you want, and you can
   also put this into the system crontab to periodically run it. That's
   pretty convenient.
 
  You _will_ run into problems if you only update parts of the ports
  collection.
 
 Well, I didn't mean upgrading of just one or two directories, but rather 
 skipping directories such as the japanese ports if you don't speak japanese. 
 Almost no ports depend on things in language-specific directories (at least 
 not the ones I have installed).

OK, but you still can't do some things like build an index because
some things do still depend on those ports you're not upgrading.

Kris


pgpFN8xS1bntr.pgp
Description: PGP signature


Port Upgrades

2004-01-21 Thread Loren M. Lang
When I install a new port, does it upgrade any already installed ports
if the new port depends on them.  And to upgrade any security fixes,
just running cvsup on the ports tree, then running portupgrade?

Also, is there any way to automate this, I have a freebsd mail server
setup for a company that I may not get to visit very often.  Then again,
it may not be the wisest to upgrade software with no one to monitor it.

Is there any way to select just major security and avoid upgrading ports
that just add features?

And does the freebsd kernel also get upgraded.  Would I have to
reinstall it or would the port do it automatically?

-- 
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.

Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: B3B9 D669 69C9 09EC 1BCD  835A FAF3 7A46 E4A3 280C
 


pgp0.pgp
Description: PGP signature


Re: Port Upgrades

2004-01-21 Thread Ion-Mihai Tetcu
On Wed, 21 Jan 2004 01:55:38 -0800
Loren M. Lang [EMAIL PROTECTED] wrote:

 When I install a new port, does it upgrade any already installed ports
 if the new port depends on them.  

No.

 And to upgrade any security fixes,
 just running cvsup on the ports tree, then running portupgrade?

Yes. portupgrade  -r and eventually -f.

 Also, is there any way to automate this, I have a freebsd mail server
 setup for a company that I may not get to visit very often.  Then again,
 it may not be the wisest to upgrade software with no one to monitor it.

Yes, it is not. portugrtade tries to keep the upgrade safe, but you
should take a look nevertheless.

 Is there any way to select just major security and avoid upgrading ports
 that just add features?

Subscribe t [EMAIL PROTECTED] and read the commit message. Or use
freshports.org for the same thing.

 And does the freebsd kernel also get upgraded.  Would I have to
 reinstall it or would the port do it automatically?

Please, please read The cutting edge chapter of the handbook.


-- 
IOnut
Unregistered ;) FreeBSD user
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Port Upgrades

2004-01-21 Thread Jonathan Chen
On Wed, Jan 21, 2004 at 01:55:38AM -0800, Loren M. Lang wrote:
 When I install a new port, does it upgrade any already installed ports
 if the new port depends on them.  And to upgrade any security fixes,
 just running cvsup on the ports tree, then running portupgrade?

Installing a new port doesn't upgrade any installed port. You have to
use portupgrade to do this.

 Also, is there any way to automate this, I have a freebsd mail server
 setup for a company that I may not get to visit very often.  Then again,
 it may not be the wisest to upgrade software with no one to monitor it.

Portupgrade works fine most of the time; but when it doesn't upgrade
ports properly (the rare instance) manual intervention is required -
trouble is one needs to monitor for these...

 Is there any way to select just major security and avoid upgrading ports
 that just add features?

Well, you need to look at the commits on the ports if you want to do
this. Thankfully http://www.freshports.org/ exists.

 And does the freebsd kernel also get upgraded.  Would I have to
 reinstall it or would the port do it automatically?

The kernel doesn't get upgraded automatically. You have to cvsup to
the latest sources and build the userland and kernel (NOTE: You have
to do *both* of these, otherwise you will have Real Problems). Check
out the Handbook for more details.

Cheers.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
 A person should be able to do a small bit of everything,
specialisation is for insects
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Port Upgrades

2004-01-21 Thread Matthew Seaman
On Wed, Jan 21, 2004 at 01:55:38AM -0800, Loren M. Lang wrote:
 When I install a new port, does it upgrade any already installed ports
 if the new port depends on them.  And to upgrade any security fixes,
 just running cvsup on the ports tree, then running portupgrade?

Generally, no.  If you go into the port directory and delete and
re-install the port, it won't check that all of the dependencies are
up to date.  portupgrade(1) is the solution to that and other
considerations of keeping an array of ported software up to date.

There's no distinction made between updates to the ports tree to close
security holes or to introduce new features.  You should set up a
watch on the ports you're interested in at http://www.freshports.org/
-- the commit log messages will tell you why ports were updated.
 
 Also, is there any way to automate this, I have a freebsd mail server
 setup for a company that I may not get to visit very often.  Then again,
 it may not be the wisest to upgrade software with no one to monitor it.

It usually helps to have a spare system you can run the same software
on, to test out any updates before you apply them to the production
server.  It's also good to have good backups and be capable of backing
out any changes if necessary.
 
 Is there any way to select just major security and avoid upgrading ports
 that just add features?

Only by keeping a close eye on commit messages in the ports CVS,
following the freebsd-ports@ mailing list, and by general awareness of
security issues around the net.
 
 And does the freebsd kernel also get upgraded.  Would I have to
 reinstall it or would the port do it automatically?

No, updating the ports is a completely separate operation to updating
the base system.  Unlike dealing with ports, by tracking one of the
security branches of the OS, you will automatically get just the
security fixes and any really vital bug-fixes.  You can receive
notifications of problems in the base system by subscribing to the
[EMAIL PROTECTED] and [EMAIL PROTECTED] lists.

Updating the base system involves compiling and reinstalling all of
the userland utilities, system shared libraries etc.  You have to
recompile and reinstall the kernel in synch with that, or various
utilities like top(1) and ps(1) will cease to work.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature