[MacPorts] #43904: MacPorts 2.3.0 fails to discard previous work state properly when Portfile checksum changes

MacPorts noreply at macports.org
Wed Jun 4 09:26:32 PDT 2014


#43904: MacPorts 2.3.0 fails to discard previous work state properly when Portfile
checksum changes
---------------------+--------------------------------
 Reporter:  egall@…  |      Owner:  macports-tickets@…
     Type:  defect   |     Status:  new
 Priority:  Normal   |  Milestone:
Component:  base     |    Version:  2.3.0
 Keywords:           |       Port:
---------------------+--------------------------------
 I was working on a Portfile recently, and often what I do to force a
 rebuild in the Portfile is to change something in it. This worked fine
 with MacPorts 2.2.1:
 {{{
 DEBUG: Finished running callback
 portbuild::add_automatic_buildsystem_dependencies
 Warning: MacPorts running without privileges. You may be unable to
 complete certain actions (e.g. install).
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Checksum recorded in statefile
 'b8b2c99bd82bb28037065c28a859c4c175121cae743f19fc112050265a707130' differs
 from Portfile checksum
 '3c73a0b279333d9101351fde7e0e4cfe41e220788e629f9c2d6b5464fda2218c'
 Portfile changed since last build; discarding previous state.
 DEBUG: delete: /Users/ericgallager/.macports/opt/local/var/macports/build
 /_opt_local_var_macports_sources_LocalPorts_lang_open-cobol/open-
 cobol/work
 DEBUG: Starting logging for open-cobol
 }}}
 However, after updating to MacPorts 2.3.0, this no longer works properly:
 {{{
 DEBUG: Finished running callback
 portbuild::add_automatic_buildsystem_dependencies
 Warning: MacPorts running without privileges. You may be unable to
 complete certain actions (e.g. install).
 DEBUG: Privilege de-escalation not attempted as not running as root.
 DEBUG: Checksum recorded in statefile
 '3c73a0b279333d9101351fde7e0e4cfe41e220788e629f9c2d6b5464fda2218c' differs
 from Portfile checksum
 'ddf9f45ff86213ad6275dc7d6276301fbc8ddb64fe6b69842c3f17c32d6d73a2'
 Portfile changed since last build; discarding previous state.
 DEBUG: error deleting
 "/Users/ericgallager/.macports/opt/local/var/macports/build
 /_opt_local_var_macports_sources_LocalPorts_lang_open-cobol/open-
 cobol/work/open-cobol-2.0": file already exists
     while executing
 "file delete -force --
 /Users/ericgallager/.macports/opt/local/var/macports/build
 /_opt_local_var_macports_sources_LocalPorts_lang_open-cobol/open-cobol..."
     ("eval" body line 1)
     invoked from within
 "eval file delete -force -- $args"
     (procedure "delete" line 2)
     invoked from within
 "delete $workpath"
     (procedure "open_statefile" line 111)
     invoked from within
 "open_statefile"
     (procedure "check_variants" line 29)
     invoked from within
 "check_variants test"
     invoked from within
 "$workername eval check_variants $target"
     (procedure "mportexec" line 7)
     invoked from within
 "mportexec $workername $target"
 Error: Unable to execute port: error deleting
 "/Users/ericgallager/.macports/opt/local/var/macports/build
 /_opt_local_var_macports_sources_LocalPorts_lang_open-cobol/open-
 cobol/work/open-cobol-2.0": file already exists
 }}}
 This seems to be a regression.

-- 
Ticket URL: <https://trac.macports.org/ticket/43904>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list