tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: platform-specific patches



> On Dec 28, 2024, at 12:53, Thomas Klausner <wiz%gatalith.at@localhost> wrote:
> 
> Instead of doing this, would it be possible to use the existing
> PATCH_* mechanism for this patchset?
> 
> You could easily set these variables conditionally inside an .ifdef.
> 
> Look at shells/bash for an example.

Sorry, I’m not quite sure what you are suggesting.

The PATCH_SITES and PATCHFILES mechanism allows to download external patches into ${DISTDIR}.

If there were external patches, then different PATCHFILES for different platforms would be easy to support as you note.  However, the case I am trying to support is when there are no external patch files, but different patches are required for different platforms.  

The situation with gcc that motivated this is that the external patchset for one platform (Darwin aarch64) conflicts with what would be pkgsrc patches for another (Darwin x86_64).  Note that the external patchset diverges from the upstream code base, is really big, and hits lots of files, whereas the proposed pkgsrc patch aligns with the upstream code base.  Presumably, there is a good reason not to integrate the external patchset into pkgsrc, but the resulting conflict prevents integrating minor upstream changes into pkgsrc for Darwin x86_64.

Cheers,
Brook








Home | Main Index | Thread Index | Old Index