[MacPorts] #21069: requested report of 'port upgrade --force installed ' failure
#21069: requested report of 'port upgrade --force installed ' failure ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: ------------------------------+--------------------------------------------- Per request, 'port upgrade --force installed' failed. Snow Lep, new ports dmg, attempting to upgrade. ---> Configuring help2man Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/help2man-1.36.4" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info " returned error 1 Command output: checking for perl... /opt/local/bin/perl checking for gcc... /usr/bin/gcc-4.2 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc-4.2 accepts -g... yes checking for /usr/bin/gcc-4.2 option to accept ANSI C... none needed checking for library containing dlsym... none required checking for module Locale::gettext... no configure: error: perl module Locale::gettext required Error: Unable to upgrade port: 1 -- Ticket URL: <http://trac.macports.org/ticket/21069> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: requested report of 'port upgrade --force installed ' failure ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: ------------------------------+--------------------------------------------- Description changed by toby@…: Old description:
Per request, 'port upgrade --force installed' failed.
Snow Lep, new ports dmg, attempting to upgrade.
---> Configuring help2man Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/help2man-1.36.4" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info " returned error 1 Command output: checking for perl... /opt/local/bin/perl checking for gcc... /usr/bin/gcc-4.2 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc-4.2 accepts -g... yes checking for /usr/bin/gcc-4.2 option to accept ANSI C... none needed checking for library containing dlsym... none required checking for module Locale::gettext... no configure: error: perl module Locale::gettext required
Error: Unable to upgrade port: 1
New description: Per request, 'port upgrade --force installed' failed. Snow Lep, new ports dmg, attempting to upgrade. {{{ ---> Configuring help2man Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_help2man/work/help2man-1.36.4" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --infodir=/opt/local/share/info " returned error 1 Command output: checking for perl... /opt/local/bin/perl checking for gcc... /usr/bin/gcc-4.2 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/bin/gcc-4.2 accepts -g... yes checking for /usr/bin/gcc-4.2 option to accept ANSI C... none needed checking for library containing dlsym... none required checking for module Locale::gettext... no configure: error: perl module Locale::gettext required Error: Unable to upgrade port: 1 }}} -- -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: requested report of 'port upgrade --force installed ' failure ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: ------------------------------+--------------------------------------------- Changes (by toby@…): * cc: colm.connolly@… (added) -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: requested report of 'port upgrade --force installed ' failure ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: ------------------------------+--------------------------------------------- Comment(by jmr@…): Yeah, basically the way things are set up, perl doesn't get rebuilt. There isn't a simple fix for that. -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: requested report of 'port upgrade --force installed ' failure ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: help2man ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@…, jmr@… (added) * port: => help2man Comment: Why doesn't perl get rebuilt? It is declared as a dependency, isn't it? -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: 'port upgrade --force installed ' fails on help2man ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: help2man ------------------------------+--------------------------------------------- -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: 'port upgrade --force installed ' fails on help2man ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: help2man ------------------------------+--------------------------------------------- Comment(by jmr@…): I came to that conclusion yesterday after looking at the upgrade code and the way the perl dependencies are specified, i.e. `path:bin/perl:perl5`, and noting that perl5 doesn't actually provide bin/perl (per5.8 does). This would be fixed by the changes in #16830. I could always be wrong though... -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: 'port upgrade --force installed ' fails on help2man ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: help2man ------------------------------+--------------------------------------------- Changes (by ryandesign@…): * cc: ch-macports@… (added) Comment: Has duplicate #20953. -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:7> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: 'port upgrade --force installed ' fails on help2man ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: help2man ------------------------------+--------------------------------------------- Comment(by ryandesign@…): I updated [wiki:Migration#automatic Migration] to recommend the removal of the perl ports before upgrading. Do you agree that should work around the problem for now? -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:8> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: 'port upgrade --force installed ' fails on help2man ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: help2man ------------------------------+--------------------------------------------- Comment(by nodje.co@…): Same happened to me with 1.8.1. Migration page advices to clean and uninstall everything, which is quite different from sudo port upgrade --force installed, isn't it? Do you mean clean uninstall perl ports only, then sudo port upgrade --force installed should work? -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:10> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: 'port upgrade --force installed ' fails on help2man ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: help2man ------------------------------+--------------------------------------------- Comment(by ryandesign@…): The Migration page used to offer a second upgrade method involving "sudo port upgrade --force installed". Since that caused so many problems, that option was removed from the documentation, and we now only mention the more involved manual method because of its greater probability for success. -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:11> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: 'port upgrade --force installed ' fails on help2man ------------------------------+--------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: | Port: help2man ------------------------------+--------------------------------------------- Comment(by nodje.co@…): Ok, I understand this is the final solution. I don't see the difference between sudo port clean installed sudo port -f uninstall installed and just sudo rm-rf /opt/local Wouldn't it just be faster to delete and reinstall everything? -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:12> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21069: 'port upgrade --force installed ' fails on help2man -------------------------------+-------------------------------------------- Reporter: permezel@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: wontfix | Keywords: Port: help2man | -------------------------------+-------------------------------------------- Changes (by blb@…): * status: new => closed * resolution: => wontfix Comment: Replying to [comment:12 nodje.co@…]:
Ok, I understand this is the final solution.
I don't see the difference between sudo port clean installed
The clean command simply cleans out build-related items (and, with other options, distfiles and archives). It does not affect installed ports in any way.
sudo port -f uninstall installed
This is the way to uninstall every port installed but leaving MacPorts base in place.
and just sudo rm-rf /opt/local
This kills everything, ports, MacPorts base, and any other files like configuration items and databases. Read the [wiki:FAQ#uninstall FAQ entry on uninstal] to make sure you get all the bits (a few things may reside outside /opt/local).
Wouldn't it just be faster to delete and reinstall everything?
The rm -rf is the fastest but you'll lose the aforementioned configuration and database parts (if any). The best method (assuming you have the disk space) would be to remove the various bits not in /opt/local and simply move /opt/local aside (eg, /opt/local.old). This way you can copy database and configuration bits over after doing the reinstall. But in the end, the reinstall-from-scratch is the only reliable way to upgrade MacPorts with a new OS version. -- Ticket URL: <http://trac.macports.org/ticket/21069#comment:13> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts