Re: I don't understand this

2007-10-15 Thread Peter Beckman

On Sun, 14 Oct 2007, Paul Schmehl wrote:

Well, I'll tell you why *I* had trouble with it.  When you run make install 
clean on the php?-extensions port, it *installs* the extensions. Naturally, 
I expected that when I ran the uninstall, it would uninstall the same ports 
that it installed previously.  In fact, when you uninstall the 
php4-extensions port, it *says* it uninstalled, but it *does* nothing. It 
doesn't even remove the ports from the ports db - nor does it remove the 
files installed with each extension port.


That's *not* expected behavior for a port.

I had no problem correcting the problem, but I should have had to.  If it's 
not possible to uninstall the extensions ports from php4-extensions, then it 
should tell you that when you try to run deinstall.  For me it was a minor 
inconvenience.  For a newbie, it could be a disaster.


 Easy solution -- when doing a 'make deinstall' from the php?-extensions
 port, simply post a message after deinstalling the meta port:

WARNING: deinstallation of php?-extensions does NOT deinstall any
php?-* ports install. If it is your intension to deinstall any php?-*
ports installed by php?-extensions,  ... insert proper way to do so
here ...

 That protect newbies from the same mis-assumption that Paul had, teach
 newbies and experienced FreeBSD admins the right way and how meta-ports
 work in FreeBSD, and still protect the whole concept behind how meta-ports
 work.

Beckman
---
Peter Beckman  Internet Guy
[EMAIL PROTECTED] http://www.angryox.com/
---
** PLEASE NOTE PurpleCow.com IS NOW AngryOx.com DO NOT USE PurpleCow.com **
** PurpleCow.com is now owned by City Auto Credit LLC as of May 23, 2007 **
---
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I don't understand this

2007-10-15 Thread Paul Schmehl
--On Monday, October 15, 2007 10:36:57 -0400 Peter Beckman 
[EMAIL PROTECTED] wrote:



On Sun, 14 Oct 2007, Paul Schmehl wrote:


Well, I'll tell you why *I* had trouble with it.  When you run make
install  clean on the php?-extensions port, it *installs* the
extensions. Naturally,  I expected that when I ran the uninstall, it
would uninstall the same ports  that it installed previously.  In fact,
when you uninstall the  php4-extensions port, it *says* it uninstalled,
but it *does* nothing. It  doesn't even remove the ports from the ports
db - nor does it remove the  files installed with each extension port.

That's *not* expected behavior for a port.

I had no problem correcting the problem, but I should have had to.  If
it's  not possible to uninstall the extensions ports from
php4-extensions, then it  should tell you that when you try to run
deinstall.  For me it was a minor  inconvenience.  For a newbie, it
could be a disaster.


  Easy solution -- when doing a 'make deinstall' from the php?-extensions
  port, simply post a message after deinstalling the meta port:

 WARNING: deinstallation of php?-extensions does NOT deinstall any
 php?-* ports install. If it is your intension to deinstall any php?-*
 ports installed by php?-extensions,  ... insert proper way to do so
 here ...

  That protect newbies from the same mis-assumption that Paul had, teach
  newbies and experienced FreeBSD admins the right way and how
meta-ports
  work in FreeBSD, and still protect the whole concept behind how
meta-ports
  work.

Bingo!  Also, I'm wondering if it's possible to run pkg_deinstall -r in 
the meta port to remove all the ports that depend upon it.


--
Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/

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


Re: I don't understand this

2007-10-14 Thread Paul Schmehl
--On October 14, 2007 4:48:54 PM -0500 Josh Tolbert 
[EMAIL PROTECTED] wrote:


It really is pretty straightforward. You have to get rid of _all_
of php4 before you install php5, then make sure the portsdb is
straightened out. I'm not sure why folks are having so much trouble
with this...

Well, I'll tell you why *I* had trouble with it.  When you run make 
install clean on the php?-extensions port, it *installs* the extensions. 
Naturally, I expected that when I ran the uninstall, it would uninstall 
the same ports that it installed previously.  In fact, when you uninstall 
the php4-extensions port, it *says* it uninstalled, but it *does* nothing. 
It doesn't even remove the ports from the ports db - nor does it remove 
the files installed with each extension port.


That's *not* expected behavior for a port.

I had no problem correcting the problem, but I should have had to.  If 
it's not possible to uninstall the extensions ports from php4-extensions, 
then it should tell you that when you try to run deinstall.  For me it was 
a minor inconvenience.  For a newbie, it could be a disaster.


Paul Schmehl ([EMAIL PROTECTED])
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


Re: I don't understand this

2007-10-14 Thread Josh Tolbert
On Sun, Oct 14, 2007 at 04:37:43PM -0500, Paul Schmehl wrote:
 I upgraded a server from php4 to php5.
 
 First I uninstalled php4.  Then I uninstalled php4-extensions.  Then I 
 installed php5.  Then I installed php5-extensions.
 
 Now, when I run portupgrade, I get a ton of complaints about php4 
 extensions that can't be updated.

[snip]

 So, I started uninstalling those ports, but I discovered that the 
 uninstall was removing files installed by the php5-extensions install. 
 So, I had to uninstall each php4 extension, then uninstall each of the 
 corresponding php5 extensions and then reinstall them in order to get the 
 ports db straightened out and have the correct files on disk.
 
 Surely there's an easier way to do this?  What did I miss?  And why 
 doesn't the php4-extensions port uninstall each of the ports installed?

When I did this, I uninstalled the php4-extensions port, then all
the actual php4-extensions. I then uninstalled php4. I had to force
remove the old ports since stuff still depends on the ports. I made
sure to get the pecl port that I can't remember the name of now.
Then, I installed php5 and the php5-extensions port. Afterwards, I
did a pkgdb -F to fix all of the deps on old php4 ports that may
be left over. Finally, I tested everything that used php on my
machine. I think I reinstalled some of the ports that depended on
php, but since this all happened about a month ago I don't remember
what I needed to reinstall.

It really is pretty straightforward. You have to get rid of _all_
of php4 before you install php5, then make sure the portsdb is
straightened out. I'm not sure why folks are having so much trouble
with this...

Thanks,

Josh
-- 
Josh Tolbert
[EMAIL PROTECTED]  ||  http://www.puresimplicity.net/~hemi/

Security is mostly a superstition. It does not exist in nature, nor
do the children of men as a whole experience it. Avoiding danger
is no safer in the long run than outright exposure. Life is either
a daring adventure, or nothing.
-- Helen Keller
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: I don't understand this

2007-10-14 Thread Miroslav Lachman

Paul Schmehl wrote:

--On October 14, 2007 4:48:54 PM -0500 Josh Tolbert 
[EMAIL PROTECTED] wrote:




It really is pretty straightforward. You have to get rid of _all_
of php4 before you install php5, then make sure the portsdb is
straightened out. I'm not sure why folks are having so much trouble
with this...

Well, I'll tell you why *I* had trouble with it.  When you run make 
install clean on the php?-extensions port, it *installs* the 
extensions. Naturally, I expected that when I ran the uninstall, it 
would uninstall the same ports that it installed previously.  In fact, 
when you uninstall the php4-extensions port, it *says* it uninstalled, 
but it *does* nothing. It doesn't even remove the ports from the ports 
db - nor does it remove the files installed with each extension port.


That's *not* expected behavior for a port.

I had no problem correcting the problem, but I should have had to.  If 
it's not possible to uninstall the extensions ports from 
php4-extensions, then it should tell you that when you try to run 
deinstall.  For me it was a minor inconvenience.  For a newbie, it could 
be a disaster.


Maybe you missunderstand phpX-extensions metaport. It install itself as 
phpX-extensions and phpX-something is installed as dependency. If you 
unsinstall phpX-extensions, only this one port is uninstalled and no 
dependency is touched. It is expected behavior!
phpX-extensions is easy way how one can install a bunch of phpX ports in 
one step. portinstall phpX-extensions will install phpX and choosen 
phpX-something and pecl-something.
If you need to unsinstall all php ports, you must unsinstall them 
manualy by pkg_deinstall phpX-\* pecl-\*.
So the right way to do your task was: pkg_deinstall php4-\* pecl-\*  
portinstall php5-extensions

Isn't it nice and easy?

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


Re: I don't understand this

2007-10-14 Thread Josh Tolbert
On Sun, Oct 14, 2007 at 05:11:22PM -0500, Paul Schmehl wrote:
 --On October 14, 2007 4:48:54 PM -0500 Josh Tolbert 
 [EMAIL PROTECTED] wrote:
 
 It really is pretty straightforward. You have to get rid of _all_
 of php4 before you install php5, then make sure the portsdb is
 straightened out. I'm not sure why folks are having so much trouble
 with this...
 
 Well, I'll tell you why *I* had trouble with it.  When you run make 
 install clean on the php?-extensions port, it *installs* the extensions. 
 Naturally, I expected that when I ran the uninstall, it would uninstall 
 the same ports that it installed previously.  In fact, when you uninstall 
 the php4-extensions port, it *says* it uninstalled, but it *does* nothing. 
 It doesn't even remove the ports from the ports db - nor does it remove 
 the files installed with each extension port.
 
 That's *not* expected behavior for a port.
 
 I had no problem correcting the problem, but I should have had to.  If 
 it's not possible to uninstall the extensions ports from php4-extensions, 
 then it should tell you that when you try to run deinstall.  For me it was 
 a minor inconvenience.  For a newbie, it could be a disaster.

(18:26:23 [EMAIL PROTECTED]:/usr/ports/lang/php5-extensions) $ cat pkg-descr 
This is a meta-port to install the extensions for PHP 5.

Defaults to: ctype, dom, iconv, pcre, posix, session, simplexml, sqlite, 
tokenizer and xml.

WWW: http://www.php.net/

- Alex Dupre
[EMAIL PROTECTED]

I don't see where you'd get the impression that it would let you deinstall any
ports from that metaport. All it does is install other ports. Now, if you'd
have done a recursive pkg_delete for ports php?-extensions depends on, it
would have deinstalled all the ports it installed...But you'd be in a world of
hurt in other ways.

Josh
-- 
Josh Tolbert
[EMAIL PROTECTED]  ||  http://www.puresimplicity.net/~hemi/

Security is mostly a superstition. It does not exist in nature, nor
do the children of men as a whole experience it. Avoiding danger
is no safer in the long run than outright exposure. Life is either
a daring adventure, or nothing.
-- Helen Keller
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to [EMAIL PROTECTED]