How to fetch and extract patches in archives?

Zero King l2dy at macports.org
Tue Mar 20 07:45:27 UTC 2018


On Sun, Mar 18, 2018 at 03:15:25PM +0000, G A wrote:
>What? Macports supports most archives zip, gz, bz2, etc
>
>extract the patches from the tarball add them to the
>Portname/Portfile/files/*.

That's the way I've been updating the w3m port. But the patches are
getting bigger (upstream is inactive) so it's not ideal to keep it in
the ports tree.

>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
>>

-- 
Best regards,
Zero King
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3612 bytes
Desc: not available
URL: <http://lists.macports.org/pipermail/macports-dev/attachments/20180320/15e4a3aa/attachment-0001.bin>


More information about the macports-dev mailing list