Bug 2192630

Summary: texlive build fails on F38
Product: [Fedora] Fedora Reporter: Ferry Huberts <mailings>
Component: texliveAssignee: Tom "spot" Callaway <spotrh>
Status: ASSIGNED --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 38CC: caznaranl, spotrh, than
Target Milestone: ---Keywords: Regression, Reopened, Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-30 14:38:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Archive bug scripts and source files to demonstrate the bug
none
reproducer none

Description Ferry Huberts 2023-05-02 14:53:48 UTC
I have a texlive build that has worked fine for year on Fedora texlive.
Upon upgrading to Fedora 38 it failed.

I've tried for many hours to find any possible cause in my tex sources but was unable to find anything, so I'm suspecting a bug somewhere in a texlive library.

Reproducible: Always

Steps to Reproduce:
0. download & extract the attached tar file
1. run 'make builddeps' to install the build dependencies.
2. run './build' to build on the current system: works on F37, fails on F38
3. run './build-37-mock' to build in a Fedora 37 mock: works
4. run './build-38-mock' to build in a Fedora 38 mock: fails
Actual Results:  
see the steps

Expected Results:  
working build on Fedora 38, just like on all previous Fedora versions

The tar file contains a customised cut-out of this repo: https://gitlab.com/fhuberts/rpms

The cut-out is tuned for this bug report, it contains a few extra scripts and removes all unneeded files to demonstrate the bug

Comment 1 Ferry Huberts 2023-05-02 14:54:45 UTC
Created attachment 1961725 [details]
Archive bug scripts and source files to demonstrate the bug

Comment 2 Ferry Huberts 2023-05-02 14:55:23 UTC
Comment on attachment 1961725 [details]
Archive bug scripts and source files to demonstrate the bug

Archive _with_ scripts...

Comment 3 Ferry Huberts 2023-05-26 19:01:35 UTC
I've tried multiple times to narrow it down, but am getting inconsistent results and never success.

So then installed texlive 20230526 with the instructions of https://www.tug.org/texlive/quickinstall.html.
Added that installation as the first entry on my PATH and that makes the problem go away.

Conclusion: it's a problem within texlive, and we need an update in Fedora.

Comment 4 Tom "spot" Callaway 2023-05-30 14:38:47 UTC
Just to be clear, you seem to be trying to build texlive from source and failing... this is not a bug in Fedora's texlive (it doesn't depend on itself). If you can show me a log file of _where_ the texlive build is failing, I would be happy to see if I can offer any insight. For now, closing this as NOTABUG.

Comment 5 Ferry Huberts 2023-05-30 14:59:58 UTC
I think maybe you misunderstood.

I'm really NOT building texlive. I'm building a a texlive document into a PDF, so 'normal' usage.

I've produced the attached archive to demonstrate the bug.
I'm more than willing to provide the log file, but you can trivially reproduce that using the attached archive.

Just unpack the attached archive on Fedora 38 and in the unpacked directory run the script ./build

Comment 6 Ferry Huberts 2023-05-30 15:03:21 UTC
After reading it all again, it seems I didn't clearly specify what I was doing.

==> I'm generating a PDF from a texlive document.

This has been succesful for years, but now fails on Fedora 38

Comment 7 Ferry Huberts 2023-05-30 15:04:53 UTC
... and using the latest (locally installed) latest texlive version makes it work again.

Comment 8 Tom "spot" Callaway 2023-05-30 15:56:36 UTC
I see. Lemme look into that, apologies for the confusion.

Comment 9 Tom "spot" Callaway 2023-05-30 20:46:02 UTC
Okay. Debugging with rawhide (texlive-2023). If I comment (%) out all the \instruction {} invocations from VPN Client Installation - Fedora Workstation.en_US.tex, it builds.

BUT, it's not \instruction {} in isolation, that works fine. I'm uploading the smallest test case I have managed to make so far. This one is confusing.

Comment 10 Tom "spot" Callaway 2023-05-30 20:46:34 UTC
Created attachment 1967951 [details]
reproducer

Comment 11 Ferry Huberts 2023-05-31 07:43:00 UTC
yes, I can confirm that I see the same problem in your file:
  ! Extra \else.
  \addpenalty ...tskip =\z@ \penalty #1\relax \else 

It works with the latest texlive (don't know which version rawhide has).
I have installed 20230526.

Comment 12 Ferry Huberts 2023-05-31 10:34:05 UTC
Just installed these updates, but the problem persists when using the Fedora-provided texlive.

Upgrading:
 distribution-gpg-keys      noarch    1.88-1.fc38        
 rpmlint                    noarch    2.4.0-6.fc38       
 texlive-aleph              x86_64    10:svn62387-72.fc38
 texlive-attachfile2        noarch    10:svn57959-72.fc38
 texlive-base               x86_64    10:20220321-72.fc38
 texlive-bibtex             x86_64    10:svn64491-72.fc38
 texlive-convbkmk           noarch    10:svn49252-72.fc38
 texlive-cyrillic           noarch    10:svn63613-72.fc38
 texlive-dvipdfmx           x86_64    10:svn61101-72.fc38
 texlive-dvips              x86_64    10:svn62387-72.fc38
 texlive-eplain             noarch    10:svn64721-72.fc38
 texlive-epstopdf           noarch    10:svn64439-72.fc38
 texlive-glyphlist          noarch    10:svn54074-72.fc38
 texlive-gsftopk            x86_64    10:svn52851-72.fc38
 texlive-hitex              x86_64    10:svn63708-72.fc38
 texlive-jadetex            noarch    10:svn63654-72.fc38
 texlive-kpathsea           x86_64    10:svn64475-72.fc38
 texlive-latex              noarch    10:svn63825-72.fc38
 texlive-lib                x86_64    10:20220321-72.fc38
 texlive-lollipop           noarch    10:svn45678-72.fc38
 texlive-luahbtex           x86_64    10:svn62387-72.fc38
 texlive-luaotfload         noarch    10:svn64616-72.fc38
 texlive-luatex             x86_64    10:svn64839-72.fc38
 texlive-lwarp              noarch    10:svn63905-72.fc38
 texlive-makeindex          x86_64    10:svn62517-72.fc38
 texlive-metafont           x86_64    10:svn62387-72.fc38
 texlive-mfware             x86_64    10:svn62387-72.fc38
 texlive-mltex              noarch    10:svn62145-72.fc38
 texlive-mptopdf            noarch    10:svn61520-72.fc38
 texlive-oberdiek           noarch    10:svn64463-72.fc38
 texlive-omegaware          x86_64    10:svn62517-72.fc38
 texlive-pdftex             x86_64    10:svn64690-72.fc38
 texlive-pst-pdf            noarch    10:svn56622-72.fc38
 texlive-ptex               x86_64    10:svn62464-72.fc38
 texlive-tex                x86_64    10:svn62387-72.fc38
 texlive-tex4ht             x86_64    10:svn64837-72.fc38
 texlive-texlive-en         noarch    10:svn64221-72.fc38
 texlive-texlive-scripts    noarch    10:svn64830-72.fc38
 texlive-texlive.infra      noarch    10:svn63645-72.fc38
 texlive-texsis             noarch    10:svn45678-72.fc38
 texlive-thumbpdf           noarch    10:svn62518-72.fc38
 texlive-ttfutils           x86_64    10:svn62517-72.fc38
 texlive-uptex              x86_64    10:svn62464-72.fc38
 texlive-xdvi               x86_64    10:svn62387-72.fc38
 texlive-xetex              x86_64    10:svn62387-72.fc38
 texlive-xmltex             noarch    10:svn62145-72.fc38
 vim-common                 x86_64    2:9.0.1587-1.fc38  
 vim-data                   noarch    2:9.0.1587-1.fc38  
 vim-enhanced               x86_64    2:9.0.1587-1.fc38  
 vim-filesystem             noarch    2:9.0.1587-1.fc38  
 vim-minimal                x86_64    2:9.0.1587-1.fc38  
 xxd                        x86_64    2:9.0.1587-1.fc38