<div dir="ltr">Hello,<div><br></div><div>I have a fairly simple fix I&#39;d like to submit however it requires a modification to an existing macports <b>patch</b> (as found in the &#39;files&#39; subdirectory of a Port).</div><div><br></div><div>I&#39;ve read the Contributors&#39; Guide however it&#39;s not clear to me whether I should create a new patch that patches the file twice (thereby fixing the issue caused by the first patch), or whether I should modify the existing patch. The guide discusses creating Portfiles and adding patches, but it doesn&#39;t seem to provide any guidance on patches that modify patches.</div><div><br></div><div>If I modify the existing patch, this implies that I&#39;d submit a patch on a patch to Trac. This is easy to do, but is it the right way?</div><div><br></div><div>Alternatively, if I create a second patch, to be applied after the first (wrong) patch, then I&#39;d need to create the diff based on the results of applying the first patch. I&#39;d also need to submit a patch on the Portfile to incorporate the new patch. Not difficult but not trivial either, so I don&#39;t want to do this if it would be frowned upon.</div><div><br></div><div>Specifically: issue <a href="https://trac.macports.org/ticket/42070">42070</a> has a suggested fix in comment 4, which works for me. I&#39;d like to submit this properly rather than leaving it hanging in the comments where it seems it may be doomed to remain. </div><div><br></div><div>Please advise my best course of action.</div><div><br></div><div>Regards,</div><div><br></div><div>-- David.</div><div><br></div></div>