<div><div dir="auto">What? Macports supports most archives zip, gz, bz2, etc</div><div dir="auto"><br></div><div dir="auto">extract the patches from the tarball add them to the Portname/Portfile/files/*. You should probably manually apply the patches first to see if it breaks the build or fixes the issue. I would not blindly apply any Linux patch.</div><div dir="auto"><br></div><br><div class="gmail_quote"><div>On Sun, Mar 18, 2018 at 00:34 Zero King <<a href="mailto:l2dy@macports.org">l2dy@macports.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Port w3m needs patches from Debian to fix security issues. Currently,<br>
the patches are added to the ports tree and takes ~800KiB. Since its<br>
size will grow, I'd prefer to fetch the patches from Debian archives<br>
(e.g. w3m_0.5.3-36.debian.tar.xz).<br>
<br>
I tried to add the archive and ${workpath}/.../020_debian.patch to<br>
distfiles and patchfiles, but that didn't work because port(1) attempted<br>
to fetch the patchfiles into ${distpath} and `DEBUG: Fetching distfile<br>
failed: No such file or directory`.<br>
<br>
--<br>
Best regards,<br>
Zero King<br>
</blockquote></div></div>