Bug 1951246

Summary: rubygem-kramdown: FTBFS in Red Hat Enterprise Linux 9 CentOS Stream
Product: Red Hat Enterprise Linux 9 Reporter: Mohan Boddu <mboddu>
Component: rubygem-kramdownAssignee: Vít Ondruch <vondruch>
Status: CLOSED CURRENTRELEASE QA Contact: David Jež <djez>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: CentOS StreamCC: bstinson, djez, jwboyer, opohorel, osci-admins+bakery, tdawson, than, vondruch
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-kramdown-2.3.1-3.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1960650 (view as bug list) Environment:
Last Closed: 2021-12-07 21:57:54 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:
Bug Depends On:    
Bug Blocks: 1951115, 1952517, 1957342, 1960650    
Attachments:
Description Flags
build.log
none
root.log
none
state.log none

Description Mohan Boddu 2021-04-19 21:20:24 UTC
rubygem-kramdown failed to build from source in Red Hat Enterprise Linux 9 CentOS Stream

https://kojihub.stream.rdu2.redhat.com//koji/taskinfo?taskID=247461


For details on the mass rebuild see:

Please fix rubygem-kramdown at your earliest convenience and set the bug's status to
ASSIGNED when you start fixing it.

Comment 1 Mohan Boddu 2021-04-19 21:20:27 UTC
Created attachment 1773418 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Mohan Boddu 2021-04-19 21:20:28 UTC
Created attachment 1773419 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Mohan Boddu 2021-04-19 21:20:29 UTC
Created attachment 1773420 [details]
state.log

Comment 4 Vít Ondruch 2021-05-07 14:40:26 UTC
Hi @Than,

could you please take a look. It seems that the reason for the failure is:

~~~
LaTeX Error: File `xpatch.sty' not found.
~~~

This works on Fedora and there is also:

~~~
$ sudo dnf repoquery -q --disablerepo=* --enablerepo=rawhide --whatprovides 'tex(xpatch.sty)'
texlive-xpatch-9:svn54563-38.fc35.noarch
~~~

which does not seems to be case on RHEL9. As far as I can tell, there is missing `Source5716: https://ctan.math.illinois.edu/systems/texlive/tlnet/archive/xpatch.tar.xz` in RHEL9. Is this intentional?

There is actually this [1] commit in RHEL8, which disabled most of the test cases. However, I am not sure how I figured this out that time ¯\_(ツ)_/¯



[1] https://src.osci.redhat.com/rpms/rubygem-kramdown/c/ddb73473b8448da4ed559d5763bc8bba9aa0c057?branch=rhel-8.5.0

Comment 5 Than Ngo 2021-05-07 14:43:47 UTC
Hi Vit,

sure, it seems we need to add xpatch.sty in texlive, i will have a look at this.

Comment 6 Vít Ondruch 2021-05-12 12:18:44 UTC
@Than any estimate when you could have some cycles to work on this? I don't want to put pressure on you, I am just asking because I'm still considering to just disable the specific test cases to unblock other work such as package removal from RHEL9 + git-lfs update, etc. I don't think this functionality would be essential for Kramdown.

Comment 7 Than Ngo 2021-05-12 13:04:56 UTC
Hi Vit,

i don't like to include xpatch.sty in texlive because it makes texlive bigger. Our goal for RHEL9 is to keep the texlive package as small as possible.

I have looked at the FTBFS place, it only happens when testing. I will suggest to disable this test.

Would the suggestion be acceptable to you?

Thanks!

Comment 8 Vít Ondruch 2021-05-13 09:57:08 UTC
(In reply to Than Ngo from comment #7)
> Hi Vit,
> 
> i don't like to include xpatch.sty in texlive because it makes texlive
> bigger. Our goal for RHEL9 is to keep the texlive package as small as
> possible.
> 
> I have looked at the FTBFS place, it only happens when testing. I will
> suggest to disable this test.
> 
> Would the suggestion be acceptable to you?

I am fine with disabling the test cases. It will look similar to RHEL8. I'll refer to this ticket, so next time we don't need to re-evaluate ;)

Thx for looking into this.

Comment 10 Vít Ondruch 2021-05-13 13:41:30 UTC
@Than: actually, digging a bit deeper, I wonder if you are sure xpatch.sty can be omitted. It seems that the dependency chain is:

scrartcl.cls > xpatch.sty if (amsthm.sty is used)

Given that scrartcl.cls and amsthm.sty are shipped, they can also be used by other users then just Kramdown test suite. I just want to doublecheck that the possible breakage is expected.

Just FTR, this is short reproducer:

~~~
$ cat << EOF | latex
\documentclass{scrartcl}
\usepackage{amsthm}
\begin{document}
\end{document}
EOF
~~~

Comment 11 Vít Ondruch 2021-05-14 14:01:27 UTC
(In reply to Vít Ondruch from comment #10)
I have created bug 1960650 to track this separately in the texlive context and moved forward with the rubygem-kramdown:

https://gitlab.com/redhat/centos-stream/rpms/rubygem-kramdown/-/merge_requests/1

Comment 16 Vít Ondruch 2021-06-18 11:03:22 UTC
*** Bug 1957342 has been marked as a duplicate of this bug. ***

Comment 17 Vít Ondruch 2021-06-18 11:03:34 UTC
*** Bug 1915908 has been marked as a duplicate of this bug. ***