diff --git a/texlive-base-20230311-typecasts.patch b/texlive-base-20230311-typecasts.patch new file mode 100644 index 0000000..7bb2d80 --- /dev/null +++ b/texlive-base-20230311-typecasts.patch @@ -0,0 +1,12 @@ +diff -up texlive-base-20230311/source/texk/xdvik/gui/pagesel.c.me texlive-base-20230311/source/texk/xdvik/gui/pagesel.c +--- texlive-base-20230311/source/texk/xdvik/gui/pagesel.c.me 2024-01-19 21:02:08.541378286 +0100 ++++ texlive-base-20230311/source/texk/xdvik/gui/pagesel.c 2024-01-19 21:17:31.425443142 +0100 +@@ -538,7 +538,7 @@ xaw_update_list(void) + button_width = get_panel_width() - 2 * (resource.btn_side_spacing + resource.btn_border_width); + /* delete and re-create list */ + ASSERT(total_pages <= (int)page_info.index_size, ""); +- XawListChange(LIST_WIDGET, page_info.page_labels, 0, ++ XawListChange(LIST_WIDGET,(const char **) page_info.page_labels, 0, + MAX(button_width, pagelist_width), False); + /* restore selected item */ + if (idx != XAW_LIST_NONE) { diff --git a/texlive-base-20230311-typefixes.patch b/texlive-base-20230311-typefixes.patch new file mode 100644 index 0000000..a64e045 --- /dev/null +++ b/texlive-base-20230311-typefixes.patch @@ -0,0 +1,20 @@ +--- texlive-base-20230311/source/texk/web2c/pdftexdir/pdftex.ch.orig 2023-05-02 17:26:43.000000000 +0200 ++++ texlive-base-20230311/source/texk/web2c/pdftexdir/pdftex.ch 2024-01-20 21:59:58.382906926 +0100 +@@ -179,7 +179,7 @@ pdf_font_type:=xmalloc_array(eight_bits, + pdf_font_attr:=xmalloc_array(str_number, font_max); + pdf_font_blink:=xmalloc_array(internal_font_number, font_max); + pdf_font_elink:=xmalloc_array(internal_font_number, font_max); +-pdf_font_has_space_char:=xmalloc_array(internal_font_number, font_max); ++pdf_font_has_space_char:=xmalloc_array(boolean, font_max); + pdf_font_stretch:=xmalloc_array(integer, font_max); + pdf_font_shrink:=xmalloc_array(integer, font_max); + pdf_font_step:=xmalloc_array(integer, font_max); +@@ -298,7 +298,7 @@ pdf_font_type:=xmalloc_array(eight_bits, + pdf_font_attr:=xmalloc_array(str_number,font_max); + pdf_font_blink:=xmalloc_array(internal_font_number,font_max); + pdf_font_elink:=xmalloc_array(internal_font_number,font_max); +-pdf_font_has_space_char:=xmalloc_array(internal_font_number,font_max); ++pdf_font_has_space_char:=xmalloc_array(boolean,font_max); + pdf_font_stretch:=xmalloc_array(integer,font_max); + pdf_font_shrink:=xmalloc_array(integer,font_max); + pdf_font_step:=xmalloc_array(integer,font_max); diff --git a/texlive.spec b/texlive.spec index 5768a1b..08c392f 100644 --- a/texlive.spec +++ b/texlive.spec @@ -808,6 +808,10 @@ Patch45: texlive-fedora-texmfcnf.lua.patch # Fix interpreter on perl scripts (thanks again to Debian) Patch46: texlive-base-20230311-fix-scripts.patch +# Fix build error with GCC 14 +Patch47: texlive-base-20230311-typecasts.patch +Patch48: texlive-base-20230311-typefixes.patch + # luatex CVE-2023-32700 Patch50: texlive-2023-luatex-CVE-2023-32700.patch @@ -24250,6 +24254,8 @@ xz -dc %{SOURCE0} | tar x %patch -P32 -p1 -b .configure-no-GfxFont-decRefCnt %patch -P37 -p1 -b .libpaper2 %patch -P44 -p1 -b .pdf-header-order-fix +%patch -P47 -p1 -b .gcc-14-typecast +%patch -P48 -p1 -b .gcc-14-typefixes %patch -P50 -p1 -b .luatex-CVE-2023-32700 # Setup copies of the licenses