Re: Updating ports perl from 5.8.0 to 5.8.1

2003-11-02 Thread Lowell Gilbert
H.Wade Minter <[EMAIL PROTECTED]> writes:

> On Nov 2, 2003, at 12:01 PM, Lowell Gilbert wrote:
> 
> > H.Wade Minter <[EMAIL PROTECTED]> writes:
> >
> >> I'd like to update my ports-installed version of Perl from 5.8.0 to
> >> 5.8.1.  On my test system, I did a "portupgrade -rR perl", but it
> >> didn't update any of my installed p5- modules, which caused breakage
> >> until I reinstalled all of them by hand.
> >>
> >> Is there a better way to update Perl?  Would a "portupgrade -rRf" have
> >> helped?
> >
> > Yes.  "portupgrade -rf perl" is *exactly* what the incantation I would
> > have recommended.
> 
> That didn't seem to work.  I ran that on one system, and it only
> upgraded perl, it didn't attempt to do any of the p5-* packages.

Hmm.  I guess those packages aren't dependent on a specific version of
perl; if they'd been built against the 4.x base system's version, for
example, you wouldn't have *wanted* them updated.  So they don't claim
to be dependent on the perl package itself.  I suppose that's a bit of
a special case.  I had tried it on a different case before sending my
message (because I don't have a perl port installed), and it had done
what I expected.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Updating ports perl from 5.8.0 to 5.8.1

2003-11-02 Thread Matthew Seaman
On Sun, Nov 02, 2003 at 11:56:50AM -0500, H.Wade Minter wrote:
> I'd like to update my ports-installed version of Perl from 5.8.0 to 
> 5.8.1.  On my test system, I did a "portupgrade -rR perl", but it 
> didn't update any of my installed p5- modules, which caused breakage 
> until I reinstalled all of them by hand.
> 
> Is there a better way to update Perl?  Would a "portupgrade -rRf" have 
> helped?

Yes -- I had to do this on two machines (well, one machine and a jail
but the difference is immaterial).  After running into the problems
you describe, and realising that most of the perl modules I had
installed didn't show up as dependencies of perl, and after doing the
first one I reckoned the best move was to use brute force.

Generate a list of all of the ports that install files under
/usr/local/lib/perl5/5.8.0 and /usr/local/lib/perl5/site_perl/5.8.0:

find /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0 \
-type f -print | xargs -L 1 pkg_which | sort -u > /tmp/perl-files

It's quite likely that you'll see several several files claimed by
both perl and a perl module port.  In this case, you don't need to
install the separate port as perl-5.8.1 comes with the latest versions
of everything.

The procedure then is to pkg_delete all of the ports that install
anything under those two directories, except for perl itself.

Then portupgrade -f perl and re-run use.perl port

Then re-install all of the perl-based ports.

After that, you'll need to run pkgdb -Fvu to fix up any dependencies.
Some ports expect to have various perl modules installed as
dependencies, which are now available as part of the standard set of
perl modules, so edit the dependencies appropriately.

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


Re: Updating ports perl from 5.8.0 to 5.8.1

2003-11-02 Thread Jens Rehsack
Robin Schoonover wrote:
On Sun, 2 Nov 2003 12:14:56 -0500, H.Wade Minter <[EMAIL PROTECTED]>
wrote:
On Nov 2, 2003, at 12:01 PM, Lowell Gilbert wrote:

Yes.  "portupgrade -rf perl" is *exactly* what the incantation I would
have recommended.
That didn't seem to work.  I ran that on one system, and it only 
upgraded perl, it didn't attempt to do any of the p5-* packages.



You could do: portupgrade -rf perl p5-\*

I'd imagine -r would mean all p5-* packages are included (since they depend
on perl), but obviously that wasn't the case.  If the version of FreeBSD
is 4.x, then that means there is a perl in the base system, and thus all
the p5-* packages probably didn't have perl listed as one of their
dependencies.
Furthermore ${PERL_VER} contains 5.8.0 as long as you didn't update your
/etc/make.conf (which could be easily done by adding
  'lang/perl5*' => 'use.perl port',
to the AFTERINSTALL hash in /usr/local/etc/pkgtools.conf.
So, even if the dependend packages would be updated, the will fail to
install, 'cause they will be stored in
  ${LOCALBASE}/lib/perl/site_perl/5.8.0/
Regards,
Jens
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Updating ports perl from 5.8.0 to 5.8.1

2003-11-02 Thread Robin Schoonover
On Sun, 2 Nov 2003 12:14:56 -0500, H.Wade Minter <[EMAIL PROTECTED]>
wrote:
> 
> On Nov 2, 2003, at 12:01 PM, Lowell Gilbert wrote:
> >
> > Yes.  "portupgrade -rf perl" is *exactly* what the incantation I would
> > have recommended.
> 
> That didn't seem to work.  I ran that on one system, and it only 
> upgraded perl, it didn't attempt to do any of the p5-* packages.
> 

You could do: portupgrade -rf perl p5-\*

I'd imagine -r would mean all p5-* packages are included (since they depend
on perl), but obviously that wasn't the case.  If the version of FreeBSD
is 4.x, then that means there is a perl in the base system, and thus all
the p5-* packages probably didn't have perl listed as one of their
dependencies.

-- 
Robin Schoonover (aka End)
#
# There are two kinds of adhesive tape:  That which won't
# stay on and that which won't come off.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Updating ports perl from 5.8.0 to 5.8.1

2003-11-02 Thread H . Wade Minter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Nov 2, 2003, at 12:01 PM, Lowell Gilbert wrote:

H.Wade Minter <[EMAIL PROTECTED]> writes:

I'd like to update my ports-installed version of Perl from 5.8.0 to
5.8.1.  On my test system, I did a "portupgrade -rR perl", but it
didn't update any of my installed p5- modules, which caused breakage
until I reinstalled all of them by hand.
Is there a better way to update Perl?  Would a "portupgrade -rRf" have
helped?
Yes.  "portupgrade -rf perl" is *exactly* what the incantation I would
have recommended.
That didn't seem to work.  I ran that on one system, and it only 
upgraded perl, it didn't attempt to do any of the p5-* packages.

- --Wade
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (Darwin)
iD8DBQE/pTuRo4DwsyRGDscRAlCHAJwKaGy4LQ5BwxhQQEZoLfqfYLE74wCeKzKv
e0oQC33yGTQ5FtzsV/d4xUI=
=rs6u
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Updating ports perl from 5.8.0 to 5.8.1

2003-11-02 Thread Lowell Gilbert
H.Wade Minter <[EMAIL PROTECTED]> writes:

> I'd like to update my ports-installed version of Perl from 5.8.0 to
> 5.8.1.  On my test system, I did a "portupgrade -rR perl", but it
> didn't update any of my installed p5- modules, which caused breakage
> until I reinstalled all of them by hand.
> 
> Is there a better way to update Perl?  Would a "portupgrade -rRf" have
> helped?

Yes.  "portupgrade -rf perl" is *exactly* what the incantation I would
have recommended.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Updating ports perl from 5.8.0 to 5.8.1

2003-11-02 Thread H . Wade Minter
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I'd like to update my ports-installed version of Perl from 5.8.0 to 
5.8.1.  On my test system, I did a "portupgrade -rR perl", but it 
didn't update any of my installed p5- modules, which caused breakage 
until I reinstalled all of them by hand.

Is there a better way to update Perl?  Would a "portupgrade -rRf" have 
helped?

- --Wade
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (Darwin)
iD8DBQE/pTdTo4DwsyRGDscRArjSAKDsLo+KvDtfjzxtoKcNuOV6KWnvNACfUjjr
dhHEfSs1sjElij1tJEPm2nE=
=B+XJ
-END PGP SIGNATURE-
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"