How to fetch and extract patches in archives?

G A artist.impressionist at gmail.com
Sun Mar 18 15:15:25 UTC 2018


What? Macports supports most archives zip, gz, bz2, etc

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.


On Sun, Mar 18, 2018 at 00:34 Zero King <l2dy at macports.org> wrote:

> Hi,
>
> Port w3m needs patches from Debian to fix security issues. Currently,
> the patches are added to the ports tree and takes ~800KiB. Since its
> size will grow, I'd prefer to fetch the patches from Debian archives
> (e.g. w3m_0.5.3-36.debian.tar.xz).
>
> I tried to add the archive and ${workpath}/.../020_debian.patch to
> distfiles and patchfiles, but that didn't work because port(1) attempted
> to fetch the patchfiles into ${distpath} and `DEBUG: Fetching distfile
> failed: No such file or directory`.
>
> --
> Best regards,
> Zero King
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20180318/8e33ed89/attachment.html>


More information about the macports-dev mailing list