[MacPorts] #29105: corruption - malformed partial receipt can be written
#29105: corruption - malformed partial receipt can be written -----------------------------------------+---------------------------------- Reporter: alangrow+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: malformed receipt | Port: -----------------------------------------+---------------------------------- When upgrading, port ran out of disk space, but wrote a partial receipt file. After freeing up space and retrying the operation, port would error out with a "malformed receipt" error. It took a while to track this down, but removing the partial receipt file did finally get things working again. I haven't looked at the port code but these problems can usually be avoided by first writing to a temporary file, closing, and then (if there were no errors) doing an atomic rename. -- Ticket URL: <https://trac.macports.org/ticket/29105> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29105: corruption - malformed partial receipt can be written -----------------------------------------+---------------------------------- Reporter: alangrow+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.2 Keywords: malformed receipt | Port: -----------------------------------------+---------------------------------- Changes (by ryandesign@…): * cc: alangrow+macports@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/29105#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29105: corruption - malformed partial flat receipt can be written ------------------------------------------+--------------------------------- Reporter: alangrow+macports@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.9.2 Resolution: wontfix | Keywords: malformed receipt Port: | ------------------------------------------+--------------------------------- Changes (by jmr@…): * status: new => closed * resolution: => wontfix Comment: One of the many reasons why the sqlite registry was introduced. -- Ticket URL: <https://trac.macports.org/ticket/29105#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#29105: corruption - malformed partial flat receipt can be written ------------------------------------------+--------------------------------- Reporter: alangrow+macports@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.9.2 Resolution: wontfix | Keywords: malformed receipt Port: | ------------------------------------------+--------------------------------- Comment(by alangrow+macports@…): Gee that was helpful. You're probably tired of repeating yourself, so let me do it for you, for anyone else who stumbles over this ticket: ...existing installs will need their macports.conf edited in order to use it, by changing 'portdbformat flat' to 'portdbformat sqlite'. After making this change, your existing flat receipts will be converted the first time you run port(1) with sufficient privileges (this usually means using sudo; e.g. 'sudo port installed'). http://lists.macosforge.org/pipermail/macports- announce/2010-June/000008.html -- Ticket URL: <https://trac.macports.org/ticket/29105#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts