Opened 3 weeks ago

Closed 2 weeks ago

#70796 closed defect (fixed)

py312-ruamel-yaml-clib @0.2.8: incompatible function pointer types

Reported by: amake (Aaron Madlon-Kay) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Sequoia Cc: breiter (Brian Reiter)
Port: py312-ruamel-yaml-clib, py311-ruamel-yaml-clib

Description

On Sequioa I get errors like the following for both py312-* and py311-* (others not attempted):

:info:build _ruamel_yaml.c:5929:52: error: incompatible function pointer types passing 'int (void *, char *, int, int *)' to parameter of type 'yaml_read_handler_t *' (aka 'int (*)(void *, unsigned char *, unsigned long, unsigned long *)') [-Wincompatible-function-pointer-types]

Attachments (1)

main.log (51.8 KB) - added by amake (Aaron Madlon-Kay) 3 weeks ago.

Download all attachments as: .zip

Change History (5)

Changed 3 weeks ago by amake (Aaron Madlon-Kay)

Attachment: main.log added

comment:1 Changed 3 weeks ago by rveznaver (Robert Vežnaver)

This was fixed in FreeBSD, the patch works when used for this port

Quick workaround:

port edit py312-ruamel-yaml-clib

Replace checksums and revision fields with:

checksums           patch-clang16 \
                    rmd160  fbd00c6c4eb31a6d9a98e3596d4b51f820f679d5 \
                    sha256  07db0b0fd64688ef8f9dfe7845fe50103edf5aa594099c0ab0a010332b9d0aac \
                    size    2262 \
                    ruamel.yaml.clib-0.2.8.tar.gz \
                    rmd160  58caef0372063cfa06e27a75fea1e85c43b1c891 \
                    sha256  beb2e0404003de9a4cab9753a8805a8fe9320ee6673136ed7f04255fe60bb512 \
                    size    213824
revision            1
patchfiles          patch-clang16
patch_sites         https://cgit.freebsd.org/ports/plain/devel/py-ruamel.yaml.clib/files/

This is terrible because it can fail in so many ways, but just putting it out there for those who cannot wait for a fix

comment:2 Changed 3 weeks ago by rveznaver (Robert Vežnaver)

comment:3 Changed 3 weeks ago by breiter (Brian Reiter)

Cc: breiter added

comment:4 Changed 2 weeks ago by Robert Vežnaver <rveznaver@…>

Resolution: fixed
Status: assignedclosed

In fc45ac053712bc13a89ecd2df14dd592de38a2d7/macports-ports (master):

py312-ruamel-yaml-clib: fix incompatible function pointer types
*fixes package build on macOS Sequoia with clang16

Closes: #70796

Note: See TracTickets for help on using tickets.