wkhtmltopdf / wkhtmltopdf

Convert HTML to PDF using Webkit (QtWebKit)
https://wkhtmltopdf.org
GNU Lesser General Public License v3.0
13.96k stars 1.82k forks source link

RPM Package for rhel in ppc64le #3955

Closed eugenepptech closed 6 years ago

eugenepptech commented 6 years ago

Hi Sir,

Would like to have rpm package for rhel in ppc64le. Anyone can advice? Very appreciate.

ashkulz commented 6 years ago

@eugenepptech: please open a PR in wkhtmltopdf/packaging instead -- look at build.yml and create a centos7-ppc64le target which has qemu: true and uses ppc64le/centos:7 as the base docker image. As I don't have the hardware, I can't really test the build even if it is successful.

ashkulz commented 6 years ago

I've created a package for pcc64le -- see https://builds.wkhtmltopdf.org but can't confirm that it works, as I don't have access to the hardware. Please submit a PR to the wkhtmltopdf/qt repository if you need to patch Qt to get it working. The patch to wkhtmltopdf/packaging is quite simple:

diff --git a/build.yml b/build.yml
index 9ec006c..e7ed3f8 100644
--- a/build.yml
+++ b/build.yml
@@ -306,6 +306,28 @@ docker-targets:
       xorg-x11-fonts-Type1
       zlib

+  centos7-ppc64le:
+    source: docker/Dockerfile.centos64
+    args:
+      from: ppc64le/centos:7
+    output: rpm
+    arch:   ppc64le
+    depend: >
+      ca-certificates
+      fontconfig
+      freetype
+      glibc
+      libjpeg
+      libpng
+      libstdc++
+      libX11
+      libXext
+      libXrender
+      openssl
+      xorg-x11-fonts-75dpi
+      xorg-x11-fonts-Type1
+      zlib
+
   centos6-x86_64:
     source: docker/Dockerfile.centos64
     args:
ashkulz commented 4 years ago

Please see the latest release which has packages for a lot of ppc64le targets. Please add a comment if you face any problems in using the packages :+1:

ashkulz commented 4 years ago

A release candidate for the 0.12.6 release is now available for download, which should contain changes which possibly address this issue.

Would appreciate downloading the package and reporting back if any issues are encountered during testing. Assuming all goes well, I plan to release 0.12.6 on the 2-year anniversary of the previous release i.e. June 11, 2020.