Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#40929 closed defect (invalid)

Mac OSX 10.9 Mavericks - Unable to upgrade port adns

Reported by: marc@… Owned by: tobypeterson
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: mavericks Cc: ryandesign (Ryan Carsten Schmidt)
Port: adns

Description

While trying to update the ports packages i get an error with the adns package.

Start port

$ sudo port
Password:
MacPorts 2.2.0
Entering interactive mode... ("help" for help, "quit" to quit)

Update

selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.2.0 installed,
MacPorts base version 2.2.0 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated

Update outdated

upgrade outdated
--->  Extracting adns
Error: org.macports.extract for port adns returned: command execution failed
Please see the log file for port adns for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_adns/adns/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

Change History (6)

comment:1 Changed 11 years ago by marc@…

Read the log file

version:1
:debug:main Executing org.macports.main (adns)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 20
:debug:main euid changed to: 501
:debug:main Skipping completed org.macports.fetch (adns)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (adns)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Fri Oct 25 08:53:56 CEST 2013
:notice:extract --->  Extracting adns
:debug:extract Executing org.macports.extract (adns)
:info:extract --->  Extracting adns-1.4.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/adns/adns-1.4.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_adns/adns/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.9'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_adns/adns/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/adns/adns-1.4.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_adns/adns/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/adns/adns-1.4.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -
:info:extract sh: /usr/bin/gnutar: No such file or directory
:info:extract gzip: error writing to output: Broken pipe
:info:extract gzip: /opt/local/var/macports/distfiles/adns/adns-1.4.tar.gz: uncompress failed
:info:extract Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_adns/adns/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/adns/adns-1.4.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -
:info:extract Exit code: 127
:error:extract org.macports.extract for port adns returned: command execution failed
:debug:extract Error code: NONE
:debug:extract Backtrace: command execution failed
    while executing
"$procedure $targetname"
:info:extract Warning: targets not executed for adns: org.macports.destroot org.macports.extract org.macports.patch org.macports.configure org.macports.build
:notice:extract Please see the log file for port adns for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_adns/adns/main.log

Found the error

/var/macports/distfiles/adns/adns-1.4.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -
:info:extract sh: /usr/bin/gnutar: No such file or directory
:info:extract gzip: error writing to output: Broken pipe

Dirty solution

$ sudo su -
# cd /usr/bin
ln -s tar gnutar

Now perform the update again. This time it works.

Last edited 11 years ago by marc@… (previous) (diff)

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: adns error upgrade 10.9 removed
Owner: changed from macports-tickets@… to toby@…
Port: adns added

And what does the main.log say? Please attach it.

If it mentions gnutar, read MavericksProblems.

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: invalid
Status: newclosed

Ah, sorry, I see you already showed the log, and it does mention gnutar.

Please remove the gnutar symlink you created and instead reinstall MacPorts (i.e. "sudo port -f selfupdate")

comment:4 Changed 11 years ago by marc@…

Yes, solution is mentioned in https://trac.macports.org/wiki/MavericksProblems. Now everythinks builds as expected.

Sheers.

Last edited 11 years ago by marc@… (previous) (diff)

comment:5 in reply to:  3 ; Changed 11 years ago by ilkermoral@…

sudo port -f selfupdate has worked for me thanks a lot.

Replying to ryandesign@…:

Ah, sorry, I see you already showed the log, and it does mention gnutar.

Please remove the gnutar symlink you created and instead reinstall MacPorts (i.e. "sudo port -f selfupdate")

comment:6 in reply to:  5 Changed 11 years ago by ilkermoral@…

At first it was working but on update port gave another error. Best way is apply http://trac.macports.org/wiki/Migration

Replying to ilkermoral@…:

sudo port -f selfupdate has worked for me thanks a lot.

Replying to ryandesign@…:

Ah, sorry, I see you already showed the log, and it does mention gnutar.

Please remove the gnutar symlink you created and instead reinstall MacPorts (i.e. "sudo port -f selfupdate")

Note: See TracTickets for help on using tickets.