On Fri, 28 Feb 2025 12:01:38 +0000
Caolán McNamara <caolan.mcnam...@collabora.com> wrote:

> On Thu, 2025-02-27 at 14:25 +0000, Gowtham Selvaraj wrote:
> > We are currently in the process of setting up LibreOffice with PDFium
> > for use on the s390x CPU architecture within a Red Hat Enterprise
> > Linux (RHEL) environment. However, we have been unable to locate any
> > available resources or precompiled binaries for this configuration.
> 
> I don't think anyone has ever built the "upstream" style distro-neutral
> packages for s390x. So it's probably only distros that provide 
> pre-built s390x distro-specific packages of LibreOffice.
> 
> I don't know if RH still supplies s390x packages for LibreOffice RHEL.
> IIRC it was built for RHEL-9 I think. But even if they do I imagine
> they are still configured the same way as all the other platforms on
> RHEL/Fedora are. So that's with --disable-pdfium for all platforms[1]
> https://src.fedoraproject.org/rpms/libreoffice/blob/rawhide/f/libreoffice.spec
> 
> So, if you really need an --enable-pdfium build, then I'd start with
> taking the libreoffice.src.rpm package for your version of RHEL
> (assuming there is one, and if not then getting the EPEL, or failing
> that, then one from the Fedora version that your RHEL was derived
> from). And try building that yourself, but with --disable-pdfium in the
> .spec changed to --enable-pdfium and see how far that gets.
> 
> I imagine at the least you'll need to download and put in sources the
> pdfium tarball listed in download.lst from
> https://dev-www.libreoffice.org/src/
> 
> I'd try on x86_64 first, to make things simple, and if that works retry
> on s390x. I'd do two passes, first with an unmodified src.rpm to see if
> it can be built at all properly, and then with the same mod as tested
> on x86_64 to try and enable pdfium.
> 
> [1] I never enabled pdfium for Fedora, and therefore RHEL, because I
> didn't want to take on the burden of maintaining pdfium, and initially
> at least pdfium wasn't used much. There was no technical reason for
> --disable-pdfium.

I have run a quick check on the Fedora Rawhide libreoffice package with
pdfium enabled and it looks good after adding few more build deps and
disabling few tests (as I haven't looked at why they failed). So
chances for the same in RHEL are quite high in my opinion.


                Dan

Reply via email to