Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Nov 2003 09:14:31 -0600
From:      Tillman Hodgson <tillman@seekingfire.com>
To:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   Upgrading perl modules (as ports) and "already installed" problems
Message-ID:  <20031117091431.H16032@seekingfire.com>

next in thread | raw e-mail | index | archive | help
Howdy,

I'm looking for the appropriate portupgrade magic to handle these sorts
of situations automatically:

      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 www/p5-HTML-Tagset
      without deleting it first, set the variable "FORCE_PKG_REGISTER"
      in your environment or the "make install" command line.

This happens when upgrade perl modules ports a /lot/ for me. As I use
HTML::Mason on my production web sites, this makes a Perl upgrade a
lengthy and error-prone manual operation.

As an example of what I currently do, take the upgrade to perl 5.8.2.
After portupgrading it, apache will not restart as mod_perl is in the
5.8.1 dir. Thus I'd do a `portupgrade -f mod_perl` and it will do it's
thing until it encounters a sub-port that gives the above error message.
Then I'd do a `cd <port_dir> && make deinstall && make reinstall &&
portupgrade -f mod_perl`. Repeat for the next perl module.

Whats the best way to ensure that all perl modules are properly and
automatically upgrade when perl itself is upgraded?

-T


-- 
There is no history of mankind, there are only many histories of all
kinds of aspects of human life. And one of these is the history of
political power. This is elevated into the history of the world.
	- Karl Popper, _The Open Society and its Enemies_



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031117091431.H16032>