Date: Mon, 22 Aug 2022 22:18:14 GMT From: Nuno Teixeira <eduardo@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: adf824b09c34 - main - x11/kitty: Use upstream patch fix build on 12.x Release Message-ID: <202208222218.27MMIEE5049887@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=adf824b09c349ee00ac25189c2f98e3fc2c48953 commit adf824b09c349ee00ac25189c2f98e3fc2c48953 Author: Nuno Teixeira <eduardo@FreeBSD.org> AuthorDate: 2022-08-22 22:11:38 +0000 Commit: Nuno Teixeira <eduardo@FreeBSD.org> CommitDate: 2022-08-22 22:18:00 +0000 x11/kitty: Use upstream patch fix build on 12.x Release - Use upstream patch instead of workaround fix https://github.com/kovidgoyal/kitty/pull/5398 - Bump PORTREVISION PR: 265393 MFH: 2022Q3 --- x11/kitty/Makefile | 6 ++++++ x11/kitty/files/extra-patch-kitty_data-types.h | 13 +++++++++++++ x11/kitty/files/patch-kitty_data-types.h | 19 ------------------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/x11/kitty/Makefile b/x11/kitty/Makefile index 1fbe8ffb4a5b..13b8eb83bcc7 100644 --- a/x11/kitty/Makefile +++ b/x11/kitty/Makefile @@ -1,5 +1,6 @@ PORTNAME= kitty DISTVERSION= 0.25.2 +PORTREVISION= 1 CATEGORIES= x11 wayland MASTER_SITES= https://github.com/kovidgoyal/${PORTNAME}/releases/download/v${DISTVERSION}/ @@ -69,6 +70,11 @@ USES+= ncurses:port USES+= ncurses .endif +# fix clang static_assert on 12.x releases, https://github.com/kovidgoyal/kitty/pull/5398 +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1300000 +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-kitty_data-types.h +.endif + # For librsync, we need to set header and library path do-build: (cd ${WRKSRC} && \ diff --git a/x11/kitty/files/extra-patch-kitty_data-types.h b/x11/kitty/files/extra-patch-kitty_data-types.h new file mode 100644 index 000000000000..3926ab024c92 --- /dev/null +++ b/x11/kitty/files/extra-patch-kitty_data-types.h @@ -0,0 +1,13 @@ +--- kitty/data-types.h.orig 2022-08-22 11:08:26 UTC ++++ kitty/data-types.h +@@ -159,6 +159,10 @@ typedef union CellAttrs { + #define NUM_UNDERLINE_STYLES (5u) + #define SGR_MASK (~(((CellAttrs){.width=WIDTH_MASK, .mark=MARK_MASK}).val)) + ++#ifndef static_assert ++#define static_assert _Static_assert ++#endif ++ + typedef struct { + color_type fg, bg, decoration_fg; + sprite_index sprite_x, sprite_y, sprite_z; diff --git a/x11/kitty/files/patch-kitty_data-types.h b/x11/kitty/files/patch-kitty_data-types.h deleted file mode 100644 index fecb5ab2d450..000000000000 --- a/x11/kitty/files/patch-kitty_data-types.h +++ /dev/null @@ -1,19 +0,0 @@ ---- kitty/data-types.h.orig 2022-08-13 20:17:56 UTC -+++ kitty/data-types.h -@@ -164,14 +164,14 @@ typedef struct { - sprite_index sprite_x, sprite_y, sprite_z; - CellAttrs attrs; - } GPUCell; --static_assert(sizeof(GPUCell) == 20, "Fix the ordering of GPUCell"); -+_Static_assert(sizeof(GPUCell) == 20, "Fix the ordering of GPUCell"); - - typedef struct { - char_type ch; - hyperlink_id_type hyperlink_id; - combining_type cc_idx[3]; - } CPUCell; --static_assert(sizeof(CPUCell) == 12, "Fix the ordering of CPUCell"); -+_Static_assert(sizeof(CPUCell) == 12, "Fix the ordering of CPUCell"); - - typedef enum { UNKNOWN_PROMPT_KIND = 0, PROMPT_START = 1, SECONDARY_PROMPT = 2, OUTPUT_START = 3 } PromptKind; - typedef union LineAttrs {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208222218.27MMIEE5049887>