Messed up port updating (Was Re: Updated to 4.10, now portupgrade?)

2004-08-26 Thread Curtis Vaughan
On 25 Aug, 2004, at 17:44, Steven Friedrich wrote:
On Wednesday 25 August 2004 08:01 pm, Curtis Vaughan wrote:
So now that I'm running 4.10, I understand I need to do a portupgrade
on all ports? and then I'll install the ports I want.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]
Nope.
What you want to do is cvsup the ports collection, and probably the 
src-all
collection.  There are many ways to do it but here's how I do it.

Here's my /etc/make.conf.  Notice the lines regarding the three sup 
files:
# LIGHTNING: /etc/make.conf
#
# CPUTYPE doesn't work in 4.x yet, except openssh
#CPUTYPE=p4
#
X_WINDOW_SYSTEM=xfree86-4
#
BDECFLAGS= -W -Wall -amsi -pedantic -Wbad-function-cast -Wcast-align \
  -Wcast-qual -Wchar-subscripts -Winline \
  -Wmissing-prototypes -Wnested-externs -Wpointer-arith \
  -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings
#
# To avoid building various parts of the base system:
NOPROFILE= true # Avoid compiling profiled libraries
#
# If you're resident in the USA, this will help various ports to 
determine
# whether or not they should attempt to comply with the various U.S.
# export regulations on certain types of software which do not apply to
# anyone else in the world.
#
USA_RESIDENT=  YES
#
# CVSup update flags.  Edit SUPFILE settings to reflect whichever 
distribution
# file(s) you use on your site (see /usr/share/examples/cvsup/README 
for more
# information on CVSup and these files).  To use, do make update
in /usr/src.
#
SUP_UPDATE= yes
#
SUP=/usr/local/bin/cvsup
#SUPFLAGS=   -g -L 2
SUPHOST=cvsup.FreeBSD.org
SUPFILE=/root/cvsup/stable-supfile
PORTSSUPFILE=   /root/cvsup/ports-supfile
DOCSUPFILE= /root/cvsup/doc-supfile
#
# Documentation
#
# The list of languages and encodings to build and install
#
DOC_LANG= en_US.ISO8859-1

# cups-lpr requirements
#CUPS_OVERWRITE_BASE=yes
#NO_LPR=yes
#
# -- use.perl generated deltas -- #
# Created: Sun Aug  8 11:13:32 2004
# Setting to use base perl from ports:
#PERL_VER=5.8.5
#PERL_VERSION=5.8.5
#PERL_ARCH=mach
#NOPERL=yo
#NO_PERL=yo
#NO_PERL_WRAPPER=yo
You can use find to find these files on your machine:
find / -name ports-supfile
You should also use find to look for an example make.conf.  There's 
knowledge
in there.

Don't be offended if you're familiar with find, I have no idea about 
your
expertise.

And within the ports-supfile, you'll probably let it say ports-all.
So then you go to /usr/src and say:
make update
And if you have if set up right, it'll connect to the cvsup server of 
your
choice and download the latest changes.  Please refer to the handbook 
for
more details for what I've discussed so far and/or ask questions.

After cvsupping the ports skeleton (a collection of Makefiles, etc.)
you need to run portsdb -U.
All the preceeding requires at least two ports already be installed, 
cvsup (or
cvsup-without-gui if you don't have X windows installed) and 
portupgrade.

Once you've cvsupped the ports skeleton, you'll be able to install the 
latest
version of any port (on occasion they're broke though).
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]
Ok, first off I didn't follow the instructions above verbatim.  What I 
did do is copy ports-supfile, edited it, and perform a cvsup using it.
All it seemed to do, however, is delete everything in the ports 
directory.

Here's how I edited my ports-supfile
*default host=cvsup10.us.FreeBSD.org
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix
ports-all
Did I do something horribly wrong?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Messed up port updating (Was Re: Updated to 4.10, now portupgrade?)

2004-08-26 Thread Kevin D. Kinsey, DaleCo, S.P.
Curtis Vaughan wrote:
Ok, first off I didn't follow the instructions above verbatim. 
What I did do is copy ports-supfile, edited it, and perform a cvsup 
using it.
All it seemed to do, however, is delete everything in the ports 
directory.

Here's how I edited my ports-supfile
*default host=cvsup10.us.FreeBSD.org
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix
ports-all
Did I do something horribly wrong?

Yes.  Well, not horrible, but this was pilot error.
As I think you've been told once already recently
(or at least someone has told someone else within
the last 48 hours or so) you ***must*** use:
*default release=cvs tag=.
  (that's a dot or 'period'), because the ports tree isn't
tagged like the RELENG branches are.
So, in your case, cvsup replaced your extant ports
tree with all the ones from the release it couldn't
find, which happened to be nil ... and your ports
collection is now blank.
Kevin Kinsey
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Messed up port updating (Was Re: Updated to 4.10, now portupgrade?)

2004-08-26 Thread Curtis Vaughan
On 26 Aug, 2004, at 16:10, Kevin D. Kinsey, DaleCo, S.P. wrote:
Curtis Vaughan wrote:
Ok, first off I didn't follow the instructions above verbatim. What I 
did do is copy ports-supfile, edited it, and perform a cvsup using 
it.
All it seemed to do, however, is delete everything in the ports 
directory.

Here's how I edited my ports-supfile
*default host=cvsup10.us.FreeBSD.org
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default release=cvs tag=RELENG_4
*default delete use-rel-suffix
ports-all
Did I do something horribly wrong?

Yes.  Well, not horrible, but this was pilot error.
As I think you've been told once already recently
(or at least someone has told someone else within
the last 48 hours or so) you ***must*** use:
*default release=cvs tag=.
  (that's a dot or 'period'), because the ports tree isn't
tagged like the RELENG branches are.
So, in your case, cvsup replaced your extant ports
tree with all the ones from the release it couldn't
find, which happened to be nil ... and your ports
collection is now blank.
Kevin Kinsey
Now after running a successful cvsup with ports-supfile, I went to 
/usr/src/ and typed make update, which didn't really seem to do 
anything.  The prompt returned immediately.  So, I typed portsdb -U and 
its running.  However, I notice there are a number of make: fatal 
errors encountered... and *** Error code 1: malformed entry: *** .  
Is this something to be worried about?  On the other hand it looks as 
though they may have something to do with other language ports (german, 
french, etc.).  And I had the default refuse file under /sup/  in order 
not to download other language ports.  So, this makes me think that it 
doesn't really matter.

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


Re: Messed up port updating (Was Re: Updated to 4.10, now portupgrade?)

2004-08-26 Thread Donald J. O'Neill
Hello Kevin,
Actually Curtis' sup file would be just fine with one small change:
 the line ports-all should be changed to ports-all tag=.

If he makes this change it could save him a lot of grief at a later 
time, if he decides it's time to upgrade source, and comments out 
or replaces the ports-all line with src. If that happens, he'll 
get a surprise he won't forget.

My preference would be to also change:
 *default base=/usr/local/etc/cvsup to default base=/usr. I 
can't really explain why I like it better like that, it's just the 
way I learned to do it and it works well for me.

Don

//
On Thursday 26 August 2004 06:10 pm, Kevin D. Kinsey, DaleCo, S.P. 
wrote:
 Curtis Vaughan wrote:
 
  Here's how I edited my ports-supfile
 
  *default host=cvsup10.us.FreeBSD.org
  *default base=/usr/local/etc/cvsup
  *default prefix=/usr
  *default release=cvs tag=RELENG_4
  *default delete use-rel-suffix
  ports-all
 
  Did I do something horribly wrong?

 Yes.  Well, not horrible, but this was pilot error.

 As I think you've been told once already recently
 (or at least someone has told someone else within
 the last 48 hours or so) you ***must*** use:

 *default release=cvs tag=.

(that's a dot or 'period'), because the ports tree isn't
 tagged like the RELENG branches are.

 So, in your case, cvsup replaced your extant ports
 tree with all the ones from the release it couldn't
 find, which happened to be nil ... and your ports
 collection is now blank.

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

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