Opened 7 years ago

Closed 7 years ago

#43651 closed defect (invalid)

gawk-4.1.1 fails to upgrade

Reported by: ztalbot2000 (John Talbot) Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: gawk

Description (last modified by mf2k (Frank Schima))

The offending command was sudo -d upgrade gawk

The main.log says:

version:1
:msg:main --->  Computing dependencies for gawk:msg:main
:debug:main gawk has no conflicts
:debug:main Searching for dependency: xz
:debug:main Found Dependency: receipt exists for xz
:debug:main Searching for dependency: gettext
:debug:main Found Dependency: receipt exists for gettext
:debug:main Searching for dependency: readline
:debug:main Found Dependency: receipt exists for readline
:debug:main Executing org.macports.main (gawk)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 507
:debug:archivefetch archivefetch phase started at Fri May  9 14:47:42 EDT 2014
:msg:archivefetch --->  Fetching archive for gawk
:debug:archivefetch Executing org.macports.archivefetch (gawk)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 507/501
:info:archivefetch --->  gawk-4.1.1_2.darwin_13.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
:msg:archivefetch --->  Attempting to fetch gawk-4.1.1_2.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/gawk
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch gawk-4.1.1_2.darwin_13.x86_64.tbz2 from http://nue.de.packages.macports.org/macports/packages/gawk
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 Not Found
:msg:archivefetch --->  Attempting to fetch gawk-4.1.1_2.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gawk
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404 Not Found
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Fri May  9 14:47:44 EDT 2014
:notice:fetch --->  Fetching distfiles for gawk
:debug:fetch Executing org.macports.fetch (gawk)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Fri May  9 14:47:44 EDT 2014
:notice:checksum --->  Verifying checksums for gawk
:debug:checksum Executing org.macports.checksum (gawk)
:info:checksum --->  Checksumming gawk-4.1.1.tar.xz
:debug:checksum Correct (sha256) checksum for gawk-4.1.1.tar.xz
:debug:checksum Correct (rmd160) checksum for gawk-4.1.1.tar.xz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Fri May  9 14:47:44 EDT 2014
:notice:extract --->  Extracting gawk
:debug:extract setting option extract.cmd to /opt/local/bin/xz
:debug:extract Executing org.macports.extract (gawk)
:info:extract --->  Extracting gawk-4.1.1.tar.xz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/gawk/gawk-4.1.1.tar.xz'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_Talbot_optlocal_local_var_macports_sources_rsync.macports.org_release_ports_lang_gawk/gawk/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/_Users_Talbot_optlocal_local_var_macports_sources_rsync.macports.org_release_ports_lang_gawk/gawk/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/gawk/gawk-4.1.1.tar.xz' | /usr/bin/tar -xf -'
:debug:extract Executing command line:  cd "/opt/local/var/macports/build/_Users_Talbot_optlocal_local_var_macports_sources_rsync.macports.org_release_ports_lang_gawk/gawk/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/gawk/gawk-4.1.1.tar.xz' | /usr/bin/tar -xf -
:info:extract gawk-4.1.1/: Can't create 'gawk-4.1.1'
:info:extract gawk-4.1.1/getopt1.c: Failed to create dir 'gawk-4.1.1'Can't create 'gawk-4.1.1/getopt1.c'

I tried the offending command and it worked: sudo cd "/opt/local/var/macports/build/_Users_Talbot_optlocal_local_var_macports_sources_rsync.macports.org_release_ports_lang_gawk/gawk/work" && /opt/local/bin/xz -dc '/opt/local/var/macports/distfiles/gawk/gawk-4.1.1.tar.xz' | /usr/bin/tar -xf -

The result is still the same though after you execute the offending command. I also tried a "sudo port clean gawk" before the upgrade with no change in the result. I tried just creating the directory gawk-4.1.1 where it wanted it with no change in the result. I tried "sudo port uninstall gawk" before "sudo port install gawk" with no change in the result. A "port selfupdate" says that the MacPorts base is already the latest version

Attachments (1)

main.log (171.2 KB) - added by ztalbot2000 (John Talbot) 7 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: Failed to create directory removed
Milestone: MacPorts 2.3.0
Owner: changed from macports-tickets@… to mschamschula@…

In the future, please use WikiFormatting, and Cc the port maintainers (port info --maintainers gawk). The Milestone field is for use by Macports team members only, please do not set it.

Please attach the complete main.log.

Changed 7 years ago by ztalbot2000 (John Talbot)

Attachment: main.log added

comment:2 Changed 7 years ago by ztalbot2000 (John Talbot)

  • Please close. This was not a gawk problem. I tried other packages later and had the same issue. I ended up de-installing all of MacPorts and re-installing from scratch. Gawk worked fine. I suspect this was a problem from a long time ago upgrade to Mavericks

comment:3 Changed 7 years ago by ztalbot2000 (John Talbot)

I did figure out what was wrong. It deals with MacPorts an not gawk in particular. I had moved /opt/local to ~/local and did a symbolic link from ~/local to /opt The purpose of this was to make sure that local gets backed up by time machine. Changing this somehow causes the problem to occur. I do not know if you wish to fix this.

comment:4 Changed 7 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

Moving your macports directory after installation is not supported.

Note: See TracTickets for help on using tickets.