Re: editors/uemacs fails to biuld on 14.0-CURRENT 1400079
- In reply to: Dimitry Andric : "Re: editors/uemacs fails to biuld on 14.0-CURRENT 1400079"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Feb 2023 22:29:01 UTC
El 2023-02-12 11:09, Dimitry Andric escribió: ... > tl;dr: > > * old software breaking with -Wimplicit-function-declaration and > -Wimplicit-int errors can be fixed by setting USE_CSTD=gnu89 (or > whatever is necessary to make it use -std=gnu89). > * software breaking with -Wint-conversion should ideally have their > integer-to-pointer or pointer-to-integer conversions fixed, but > otherwise the error can be silened with -Wno-int-conversion. Dimitry, thank you for the detailed insight. I am using your suggestions to fix other ports as well. I could not manage to have USE_CSTD work, not for uemacs nor for other ports, so this patch works for me. diff --git a/editors/uemacs/Makefile b/editors/uemacs/Makefile index f999cc978685..48111ffb8824 100644 --- a/editors/uemacs/Makefile +++ b/editors/uemacs/Makefile @@ -19,6 +19,8 @@ NO_WRKSUBDIR= yes USES= dos2unix ncurses zip EXTRACT_BEFORE_ARGS= -Lq +CFLAGS+= -Wno-int-conversion + post-patch: @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/src/*.c @${REINPLACE_CMD} -e 's|-ltermcap|${LDFLAGS} -lncurses|g' \ BR, -- José Pérez