Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#26315 closed defect (invalid)

Uninstalled all macports and all installed ports - upon reinstalled, no ports/dependencies can be installed.

Reported by: gallego.alexx@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port:

Description

  1. This is what I did to uninstall all macports

sudo port -f uninstall installed

  1. Followed by this

sudo rm -rf \

/opt/local \ /Applications/DarwinPorts \ /Applications/MacPorts \ /Library/LaunchDaemons/org.macports.* \ /Library/Receipts/DarwinPorts*.pkg \ /Library/Receipts/MacPorts*.pkg \ /Library/StartupItems/DarwinPortsStartup \ /Library/Tcl/darwinports1.0 \ /Library/Tcl/macports1.0 \ ~/.macports

then I downloaded the new macports and I can't install anything.

Here is the list of macports I had installed

#!/bin/bash sudo port install \ metasploit3 \ aircrack-ng \ apache-ant \ autoconf \ automake \ bison \ boost \ git-core \ cairo \ bzip2 \ coreutils \ emacs \ emacs-app \ cedet-devel \ ecb \ auctex \ emacs-w3m \ php-mode.el \ python-mode.el \ slime \ python31 \ gnutar \ texlive \ wget \ gmake \ ruby \ openmotif \ libtool \ ocaml \ openssl \ perl5.8

The error on all of the ports is this..........

Error: The following dependencies failed to build: <packets name>

Please let me know, specifically what output should I exactly add. I understand that to submit I think i have to use the -d flag.

However, i chose to ignore this since its not for one specific port, but rather for all the ports.

Thanks in advance

Change History (11)

comment:1 Changed 14 years ago by gallego.alexx@…

Cc: gallego.alexx@… added

Cc Me!

comment:2 in reply to:  description Changed 14 years ago by danielluke (Daniel J. Luke)

Replying to gallego.alexx@…:

Please let me know, specifically what output should I exactly add. I understand that to submit I think i have to use the -d flag.

However, i chose to ignore this since its not for one specific port, but rather for all the ports.

we still need to see the debug output to have any hope of knowing what is going on.

comment:3 Changed 14 years ago by gallego.alexx@…

Hello, thanks for the quick reply.

Here is the debug output for say gperf.

Port command started with PID 21610 DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf DEBUG: OS darwin/9.8.0 (Mac OS X 10.5) arch i386 DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf DEBUG: universal variant already exists, so not adding the default one DEBUG: Starting logging for gperf Computing dependencies for gperf DEBUG: Executing org.macports.main (gperf) DEBUG: Skipping completed org.macports.fetch (gperf) DEBUG: Skipping completed org.macports.checksum (gperf) Extracting gperf DEBUG: extract phase started at Wed Sep 1 12:41:49 EDT 2010 DEBUG: Executing org.macports.extract (gperf) Extracting gperf-3.0.4.tar.gz DEBUG: setting option extract.args to '/opt/local/var/macports/distfiles/gperf/gperf-3.0.4.tar.gz' DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYM ENT_TARGET='10.5' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/gperf/gperf-3.0.4.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -' sh: /usr/bin/gnutar: No such file or directory gzip: stdout: Broken pipe shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/gperf/gperf-3.0.4.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - " returned error 127 Error: Target org.macports.extract returned: shell command failed DEBUG: Backtrace: shell command failed

while executing

"$procedure $targetname" Warning: the following items did not execute (for gperf): org.macports.activate org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install Log for gperf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets> Executing: /opt/local/bin/port -d install gperf

comment:4 Changed 14 years ago by gallego.alexx@…

Here is w/ pretty formatting

Port command started with PID 21610
DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/gperf
DEBUG: OS darwin/9.8.0 (Mac OS X 10.5) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/muniversal-1.0.tcl
DEBUG: Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
DEBUG: universal variant already exists, so not adding the default one
DEBUG: Starting logging for gperf
Computing dependencies for gperf
DEBUG: Executing org.macports.main (gperf)
DEBUG: Skipping completed org.macports.fetch (gperf)
DEBUG: Skipping completed org.macports.checksum (gperf)
Extracting gperf
DEBUG: extract phase started at Wed Sep  1 12:41:49 EDT 2010
DEBUG: Executing org.macports.extract (gperf)
Extracting gperf-3.0.4.tar.gz
DEBUG: setting option extract.args to '/opt/local/var/macports/distfiles/gperf/gperf-3.0.4.tar.gz'
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYM
ENT_TARGET='10.5'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/gperf/gperf-3.0.4.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
sh: /usr/bin/gnutar: No such file or directory
gzip: stdout: Broken pipe
shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/gperf/gperf-3.0.4.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - " returned error 127
Error: Target org.macports.extract returned: shell command failed
DEBUG: Backtrace: shell command failed
    while executing
"$procedure $targetname"
Warning: the following items did not execute (for gperf): org.macports.activate org.macports.extract org.macports.patch org.macports.configure org.macports.build org.macports.destroot org.macports.install
Log for gperf is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Executing: /opt/local/bin/port -d install gperf

comment:5 Changed 14 years ago by gallego.alexx@…

Cc: gallego.alexx@… removed

Cc Me!

comment:6 in reply to:  4 Changed 14 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: newclosed

Replying to gallego.alexx@…:

> DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/gperf/gperf-3.0.4.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
> sh: /usr/bin/gnutar: No such file or directory
> gzip: stdout: Broken pipe

So there's the problem. You're missing /usr/bin/gnutar which should be installed as part of Mac OS X. You can probably restore it from your install DVD.

comment:7 Changed 14 years ago by gallego.alexx@…

Resolution: invalid
Status: closedreopened

hmm... weird.

Look at this

$ gnutar --version tar (GNU tar) 1.16.1 Copyright (C) 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.

comment:8 Changed 14 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: reopenedclosed

That's probably not /usr/bin/gnutar

(run 'which gnutar' to see where it's coming from).

On 10.5:

% /usr/bin/gnutar --version tar (GNU tar) 1.15.1

on 10.6:

% /usr/bin/gnutar --version tar (GNU tar) 1.17 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

Modified to support extended attributes. Written by John Gilmore and Jay Fenlason.

comment:9 Changed 14 years ago by gallego.alexx@…

you are right.

I downloaded the gnutar from the gnu site,

and did a

$./configure && make && make install for it.

Should I copy it to /usr/bin ?

comment:10 Changed 14 years ago by danielluke (Daniel J. Luke)

You might be able to get things working that way, but I would want to figure out why my OS-installed copy was gone and restore it (and anything else that is missing) from my OS install disk.

comment:11 Changed 14 years ago by gallego.alexx@…

Thanks.... i've been tinkering with this for a couple days now. and did not think of the installed CD. :)

Note: See TracTickets for help on using tickets.