[MacPorts] #43904: MacPorts 2.3.0 fails to discard previous work state properly when Portfile checksum changes
#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
#43904: MacPorts 2.3.0 fails to discard previous work state properly when Portfile checksum changes ----------------------+---------------------- Reporter: egall@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: base | Version: 2.3.0 Resolution: | Keywords: Port: | ----------------------+---------------------- Changes (by cal@…): * owner: macports-tickets@… => cal@… * status: new => assigned Comment: I agree. Which version of OS X is that? -- Ticket URL: <https://trac.macports.org/ticket/43904#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#43904: MacPorts 2.3.0 fails to discard previous work state properly when Portfile checksum changes ----------------------+---------------------- Reporter: egall@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: base | Version: 2.3.0 Resolution: | Keywords: Port: | ----------------------+---------------------- Comment (by starkhalo@…): Isn't `portindex` supposed to be used for this. -- Ticket URL: <https://trac.macports.org/ticket/43904#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#43904: MacPorts 2.3.0 fails to discard previous work state properly when Portfile checksum changes ----------------------+---------------------- Reporter: egall@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: base | Version: 2.3.0 Resolution: | Keywords: Port: | ----------------------+---------------------- Comment (by egall@…): Replying to [comment:1 cal@…]:
I agree. Which version of OS X is that?
Snow Leopard (10.6.8) Replying to [comment:2 starkhalo@…]:
Isn't `portindex` supposed to be used for this.
It is tedious to have to run `portindex` for every little change I make, and besides, this way works (or at least used to work) as well... -- Ticket URL: <https://trac.macports.org/ticket/43904#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#43904: MacPorts 2.3.0 fails to discard previous work state properly when Portfile checksum changes ----------------------+---------------------- Reporter: egall@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: base | Version: 2.3.0 Resolution: | Keywords: Port: | ----------------------+---------------------- Comment (by cal@…): I cannot reproduce your issue: {{{ 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 'f494255fea611d668eb4a4256e1ebf0d74471a48b7d52d6881f26944790381f6' differs from Portfile checksum '7274b6c7b334711d48f848c5469f7d0ecb3f496d7b2a3452b2217e0dcf86376f' Portfile changed since last build; discarding previous state. DEBUG: Starting logging for yubico-pam DEBUG: Logging disabled, error opening log file: can't create directory "/opt/local/var/macports/logs/_opt_dports_security_yubico-pam": permission denied }}} -- Ticket URL: <https://trac.macports.org/ticket/43904#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#43904: MacPorts 2.3.0 fails to discard previous work state properly when Portfile checksum changes ----------------------+---------------------- Reporter: egall@… | Owner: cal@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: base | Version: 2.3.0 Resolution: | Keywords: Port: | ----------------------+---------------------- Comment (by egall@…): Replying to [comment:4 cal@…]:
I cannot reproduce your issue:
{{{ 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 'f494255fea611d668eb4a4256e1ebf0d74471a48b7d52d6881f26944790381f6' differs from Portfile checksum '7274b6c7b334711d48f848c5469f7d0ecb3f496d7b2a3452b2217e0dcf86376f' Portfile changed since last build; discarding previous state. DEBUG: Starting logging for yubico-pam DEBUG: Logging disabled, error opening log file: can't create directory "/opt/local/var/macports/logs/_opt_dports_security_yubico-pam": permission denied }}}
Actually I cannot reproduce it myself any more either, feel free to close as "worksforme"... -- Ticket URL: <https://trac.macports.org/ticket/43904#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
#43904: MacPorts 2.3.0 fails to discard previous work state properly when Portfile checksum changes -------------------------+-------------------- Reporter: egall@… | Owner: cal@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 2.3.0 Resolution: worksforme | Keywords: Port: | -------------------------+-------------------- Changes (by cal@…): * status: assigned => closed * resolution: => worksforme Comment: As you wish. :) -- Ticket URL: <https://trac.macports.org/ticket/43904#comment:6> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts