SHA256
1
0
forked from pool/texlive

Accepting request 1194293 from Publishing:TeXLive

- Add patch source-pdftex-gcc14.patch
  * Add fix in change file pdftex.ch to really fix boo#1228342
    (Thanks goes to Andreas Scherer)
- Remove former work around

OBS-URL: https://build.opensuse.org/request/show/1194293
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/texlive?expand=0&rev=97
This commit is contained in:
Dominique Leuenberger 2024-08-17 10:40:53 +00:00 committed by Git OBS Bridge
commit 7d05bb9636
3 changed files with 49 additions and 3 deletions

38
source-pdftex-gcc14.patch Normal file
View File

@ -0,0 +1,38 @@
Revision 71901 - (view) (download) (annotate) - [selected]
Modified Fri Jul 26 09:55:07 2024 UTC (3 weeks ago) by ascherer
File length: 15439 byte(s)
Diff to previous 65870
[PDFTEX] Prepare for compilation with gcc-14.
There's a type mismatch (probably copy-paste-error) for
'pdf_font_has_space_char', defined as '^boolean' in section 821,
in sections 1502 and 1518.
See https://tug.org/pipermail/tex-live/2024-July/050773.html for the
initial bug report.
---
texk/web2c/pdftexdir/pdftex.ch | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- texk/web2c/pdftexdir/pdftex.ch
+++ texk/web2c/pdftexdir/pdftex.ch 2024-08-16 11:29:11.854819548 +0000
@@ -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);

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Fri Aug 16 11:34:24 UTC 2024 - Dr. Werner Fink <werner@suse.de>
- Add patch source-pdftex-gcc14.patch
* Add fix in change file pdftex.ch to really fix boo#1228342
(Thanks goes to Andreas Scherer)
- Remove former work around
-------------------------------------------------------------------
Fri Jul 26 14:15:55 UTC 2024 - Martin Jambor <mjambor@suse.com>

View File

@ -266,6 +266,8 @@ Patch19: source-dvipng.dif
Patch21: source-ppc64.dif
# PATCH-FIX-UPSTREAM
Patch22: source-dvipdfm-x.dif
# PATCH-FIX-UPSTREAM
Patch23: source-pdftex-gcc14.patch
# PATCH-FIX-SUSE Make biber work with our perl
Patch42: biblatex-encoding.dif
Patch43: biblatex-ms-encoding.dif
@ -4246,6 +4248,7 @@ This package is required by the package texlive-biber-bin.
%patch -P19 -p0 -b .dvipng
%patch -P21 -p0 -b .ppcelf
%patch -P22 -p0 -b .sameimg
%patch -P23 -p0 -b .gcc14
pushd libs/luajit/LuaJIT-src/
#Missed patch ppc and risc
%patch -P106 -p1 -b .arm64
@ -4288,9 +4291,6 @@ popd
cp -vf %{S:4} $paths
%build
# Work around boo#1228342
%global optflags %{optflags} -Wno-error=incompatible-pointer-types
# Extend the options file
echo "world=${PWD}/world" >> %{options}
echo "prefix=${PWD}/prefix" >> %{options}