<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Aptos;
        panose-1:2 11 0 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Aptos",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">The question is do we need to build LibreOffice for s390x.  Also, bigger question is does RHEL ships libreoffice ?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">All these queries are raised based on the image attached ( referenced from
</span><span style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#1D1C1D;background:#F8F8F8"> </span><a href="https://github.com/pypdfium2-team/pypdfium2?tab=readme-ov-file#install-source-system" target="_blank"><span style="font-size:11.5pt;font-family:"Arial",sans-serif;background:#F8F8F8">https://github.com/pypdfium2-team/pypdfium2?tab=readme-ov-file#install-source-system</span></a>)<span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Caolán McNamara <caolan.mcnamara@collabora.com><br>
<b>Date: </b>Friday, 28 February 2025 at 5:31</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black"> </span><span style="font-size:12.0pt;color:black">PM<br>
<b>To: </b>Gowtham Selvaraj <Gowtham.Selvaraj1@ibm.com>, libreoffice@lists.freedesktop.org <libreoffice@lists.freedesktop.org><br>
<b>Cc: </b>Rajesh K R <rkr@ibm.com>, Manoj Kumar M C <manoj.kumar.mc@ibm.com>, Tirumalesh Killamsetty <Tirumalesh.Killamsetty2@ibm.com><br>
<b>Subject: </b>[EXTERNAL] Re: Request for Guidance on LibreOffice Availability for s390x Architecture on RHEL<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">On Thu, 2025-02-27 at 14:25 +0000, Gowtham Selvaraj wrote:<br>
> We are currently in the process of setting up LibreOffice with PDFium<br>
> for use on the s390x CPU architecture within a Red Hat Enterprise<br>
> Linux (RHEL) environment. However, we have been unable to locate any<br>
> available resources or precompiled binaries for this configuration.<br>
<br>
I don't think anyone has ever built the "upstream" style distro-neutral<br>
packages for s390x. So it's probably only distros that provide <br>
pre-built s390x distro-specific packages of LibreOffice.<br>
<br>
I don't know if RH still supplies s390x packages for LibreOffice RHEL.<br>
IIRC it was built for RHEL-9 I think. But even if they do I imagine<br>
they are still configured the same way as all the other platforms on<br>
RHEL/Fedora are. So that's with --disable-pdfium for all platforms[1]<br>
<a href="https://src.fedoraproject.org/rpms/libreoffice/blob/rawhide/f/libreoffice.spec">https://urldefense.proofpoint.com/v2/url?u=https-3A__src.fedoraproject.org_rpms_libreoffice_blob_rawhide_f_libreoffice.spec&d=DwIFaQ&c=BSDicqBQBDjDI9RkVyTcHQ&r=hIwJXAU1gJvW71raaIvQ2w&m=P3_od7MjZY98ebYUoMFmDelrdCmHF-44SYNEAQf_oWuJ-h3jYnXnBhub4PpFFOIV&s=fZovGstGc4XT0ZWJlyUODkuTIcE_hYJVjUIKfscX0Jc&e=</a>
<br>
<br>
So, if you really need an --enable-pdfium build, then I'd start with<br>
taking the libreoffice.src.rpm package for your version of RHEL<br>
(assuming there is one, and if not then getting the EPEL, or failing<br>
that, then one from the Fedora version that your RHEL was derived<br>
from). And try building that yourself, but with --disable-pdfium in the<br>
.spec changed to --enable-pdfium and see how far that gets.<br>
<br>
I imagine at the least you'll need to download and put in sources the<br>
pdfium tarball listed in download.lst from<br>
<a href="https://dev-www.libreoffice.org/src/">https://urldefense.proofpoint.com/v2/url?u=https-3A__dev-2Dwww.libreoffice.org_src_&d=DwIFaQ&c=BSDicqBQBDjDI9RkVyTcHQ&r=hIwJXAU1gJvW71raaIvQ2w&m=P3_od7MjZY98ebYUoMFmDelrdCmHF-44SYNEAQf_oWuJ-h3jYnXnBhub4PpFFOIV&s=zaKIaPoUekaF2kxblJLkXMgLYC3uDda6sEBQ3zNXSiU&e=</a>
<br>
<br>
I'd try on x86_64 first, to make things simple, and if that works retry<br>
on s390x. I'd do two passes, first with an unmodified src.rpm to see if<br>
it can be built at all properly, and then with the same mod as tested<br>
on x86_64 to try and enable pdfium.<br>
<br>
[1] I never enabled pdfium for Fedora, and therefore RHEL, because I<br>
didn't want to take on the burden of maintaining pdfium, and initially<br>
at least pdfium wasn't used much. There was no technical reason for<br>
--disable-pdfium.<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>