[MacPorts] #24178: When patchfiles-delete deletes all patches in patchfiles, org.macports.patch crashes.
MacPorts
noreply at macports.org
Tue Mar 23 12:01:43 PDT 2010
#24178: When patchfiles-delete deletes all patches in patchfiles,
org.macports.patch crashes.
--------------------------------+-------------------------------------------
Reporter: gellule.xg@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 1.8.2
Keywords: | Port:
--------------------------------+-------------------------------------------
When patchfiles-delete is used on all the patch files listed in
patchfiles, patchlist in portpatch.tcl becomes empty and errors with:
{{{
---> Applying patches to zlib
Error: Target org.macports.patch returned: Patch files missing
DEBUG: Backtrace: Patch files missing
while executing
"$procedure $targetname"
Warning: the following items did not execute (for zlib):
org.macports.activate org.macports.patch org.macports.configure
org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
}}}
It seems like portpatch.tcl should be modified. Right after checking the
non existence of patchfiles in portpatch::patch_main, the emptiness of
patchfiles should be checked as well.
I'm attaching the portfile that caused the issue. It's a Portfile for zlib
adding a nopatch variant that removes the only zlib patch from patchfiles.
--
Ticket URL: <http://trac.macports.org/ticket/24178>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list