Re: Please help: How to ignore outdated package when upgrading?

2014-04-22 Thread Ryan Schmidt

On Apr 22, 2014, at 05:55, Asis Hallab wrote:

 Dear MacPort Experts,
 
 thank you for supplying MacPorts. It is very useful indeed.
 
 I am running MacPorts 2.2.1 on Mac OS 10.9.2 Mavericks.
 When running
 
 $sudo port upgrade outdated
 
 I get the following error
 
 Error: org.macports.configure for port postgresql83 returned:
 configure failure: command execution failed
 
 As postgresql83 is outdated and I already installed postgresql93 I
 want this update to be skipped.
 But
 
 $sudo port upgrade outdated not postgresql83
 
 generates the same error.
 
 I searched the web on how to solve this as thoroughly as I could, but
 could not find any solution.
 
 Is there a way to uninstall all packages that depend on postgresl83?
 And why is [...] and not postgresl83 simply ignored?

MacPorts did not ignore your instruction, but some other port that you have 
installed presumably depends on postgresql83, hence MacPorts was required to 
attempt to update postgresql83 before attempting to upgrade that other port.

Since postgresql83 is old and you already have a newer version, uninstall it:

$ sudo port uninstall postgresql83

This will presumably fail, telling you what other port you have installed 
depends on postgresql83. You can then either uninstall that port as well if you 
no longer need it, or see if it has a variant for a newer version of postgresql 
that you can use instead.

___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Please help: How to ignore outdated package when upgrading?

2014-04-22 Thread Asis Hallab
Dear Ryan,

thank you very much for your answer.


 $ sudo port uninstall postgresql83


I did this forced with the -f switch. Unfortunately now I can not
see which packages depend on postgresql83 - or can i?
Is there way to infer which packages depend on another, in my case postgresql83?

I will gladly uninstall them.

Cheers!
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Please help: How to ignore outdated package when upgrading?

2014-04-22 Thread René J . V . Bertin
On Tuesday April 22 2014 14:06:19 Asis Hallab wrote:

 I did this forced with the -f switch. Unfortunately now I can not
 see which packages depend on postgresql83 - or can i?

I think that normally MacPorts would tell you which packages prevent 
uninstallation (and then proceed if you supplied -f). So if you didn't get any 
warnings, it may be that there were no dependents.

 Is there way to infer which packages depend on another, in my case 
 postgresql83?

port rdependents package

lists all dependents recursively (though I think it also lists packages you 
haven't installed).

The other way to proceed, after you figure out which packages depend on an 
obsolete package you want to purge, is to do a port install of said packages 
without the variant linking to your obsolete package (e.g. perl5.12). This 
should typically give you a variant that depends on the new dependency, and you 
can then uninstall the other package.

R.
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Please help: How to ignore outdated package when upgrading?

2014-04-22 Thread Ryan Schmidt

On Apr 22, 2014, at 07:58, René J.V. Bertin wrote:

 On Tuesday April 22 2014 14:06:19 Asis Hallab wrote:
 
 I did this forced with the -f switch. Unfortunately now I can not
 see which packages depend on postgresql83 - or can i?
 
 I think that normally MacPorts would tell you which packages prevent 
 uninstallation (and then proceed if you supplied -f). So if you didn't get 
 any warnings, it may be that there were no dependents.
 
 Is there way to infer which packages depend on another, in my case 
 postgresql83?
 
 port rdependents package
 
 lists all dependents recursively (though I think it also lists packages you 
 haven't installed).

That appears to require the port to still be installed:

$ port rdependents postgresql83
Error: Registry error: postgresql83 not registered as installed.

However, this doesn’t:

$ port echo rdependentof:postgresql83

That produces no output on my system so perhaps it only deals with installed 
packages.

This, on the other hand, lists all ports depending directly on postgresql83, 
regardless whether they’re installed or not:

$ port echo depends:postgresql83
BigSQL  
libpqxx26   
libzdb-postgresql83 
MOSS
ocaml-postgresql
pgtcl   
qt4-mac-postgresql83-plugin 
qt4-x11 
rb-plruby   
rb-postgres 
postgresql83-server 
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users