Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#56786 closed defect (fixed)

reclaim failed: wrong # args: should be "getdistname name"

Reported by: wyuenho (Jimmy Yuen Ho Wong) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone: MacPorts 2.5.4
Component: base Version: 2.5.3
Keywords: Cc:
Port:

Description

DEBUG: Using normalized porturl file:///opt/local/var/macports/registry/portfiles/fetch-crl-launchd-3.0.19_1/945e7f4b40b8a7547ec8b797daca988ac958c9bcd94e23dea7aab4f307513104-3676
DEBUG: Changing to port directory: /opt/local/var/macports/registry/portfiles/fetch-crl-launchd-3.0.19_1/945e7f4b40b8a7547ec8b797daca988ac958c9bcd94e23dea7aab4f307513104-3676
DEBUG: OS darwin/17.6.0 (Mac OS X 10.13) arch i386
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Finished running callback portconfigure::add_automatic_compiler_dependencies
DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Finished running callback portbuild::add_automatic_buildsystem_dependencies
DEBUG: Running callback portstartupitem::add_notes
DEBUG: Finished running callback portstartupitem::add_notes
DEBUG: reclaim failed: wrong # args: should be "getdistname name"
    while executing
"getdistname "
    invoked from within
"$workername eval "getdistname $file""
    (procedure "remove_distfiles" line 54)
    invoked from within
"remove_distfiles"
    (procedure "reclaim::main" line 22)
    invoked from within
"reclaim::main $opts"
    ("uplevel" body line 2)
    invoked from within
"uplevel 1 $body"
Error: reclaim failed: wrong # args: should be "getdistname name"

Change History (5)

comment:1 Changed 6 years ago by jmroot (Joshua Root)

Two issues here. Instead of clearing distfiles, fetch-crl-launchd sets it to a list with one element which is an empty string. Then the reclaim code doesn't quote $file correctly.

comment:2 Changed 6 years ago by jmroot (Joshua Root)

In 4758f2ac9e8b327d50bbfef04276f9cd32a19a0c/macports-ports (master):

fetch-crl-launchd: clear distfiles correctly

See: #56786

comment:3 Changed 6 years ago by jmroot (Joshua Root)

Owner: set to jmroot
Resolution: fixed
Status: newclosed

In 8a67087e2194acf3d0037097b0cd7f1e5477e401/macports-base (master):

reclaim: fix quoting of code passed to eval

Closes: #56786

comment:4 Changed 6 years ago by jmroot (Joshua Root)

In 2d9fcc5fb3bd6178fc57eed793bae7efefbb6edd/macports-base (release-2.5):

reclaim: fix quoting of code passed to eval

Closes: #56786
(cherry picked from commit 8a67087e2194acf3d0037097b0cd7f1e5477e401)

comment:5 Changed 6 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.5.4
Note: See TracTickets for help on using tickets.