commit:     b7ffcd3229fc507ea6d1662dcabd33fce653306a
Author:     Niccolò Belli <niccolo.belli <AT> linuxsystems <DOT> it>
AuthorDate: Sat Jan 14 20:24:11 2023 +0000
Commit:     Stephan Hartmann <sultan <AT> gentoo <DOT> org>
CommitDate: Sun Jan 15 17:54:48 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7ffcd32

www-client/chromium: add ppc64 patchset for 109

Signed-off-by: Niccolò Belli <niccolo.belli <AT> linuxsystems.it>
Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org>

 www-client/chromium/Manifest                         |  1 +
 www-client/chromium/chromium-109.0.5414.74-r1.ebuild | 18 +++++++++++++++++-
 2 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
index 0047e6ce3874..a32f139bb2c3 100644
--- a/www-client/chromium/Manifest
+++ b/www-client/chromium/Manifest
@@ -6,3 +6,4 @@ DIST chromium-110-patchset-2.tar.xz 11196 BLAKE2B 
97a4d65f9cdc1cdec15ddcee8561b6
 DIST chromium-110.0.5481.24.tar.xz 1703153748 BLAKE2B 
8fa030928d51d9ea0a6aa4a674bb1e731e89833da146575f1e617e2e4fb4a7d55f963ba855341f2564488b4464b52d4aaa9d0f789e4f7f1dcb35df6f5e0232aa
 SHA512 
49ff6fcfcc4a1cc30e073fa421fced527e2eb7248a1dfde5da91768a91ea69aa113934f80865ffe590a3c417634c5f7a2fe04145b199a2b4d751ea386f297e9a
 DIST chromium-profiler-0.2.tar 259952640 BLAKE2B 
5e82389fce00b267280d633b26551231c558b80f0c92cd7d60271095a3503365ab673e7a46dc5f74f8a82db1f21262cb24dcc0531d954bab5fb3b175dab3394d
 SHA512 
9fa89a5ab728419683e7495ae676567480987d68a2d589f2aa97bfcbcf123f3c8f97f8bca5f65e5e3f6e41475535add473ded83b9c7a33bb4746a9d05b298a6c
 DIST chromium_108.0.5359.71-2raptor0~deb11u1.debian.tar.xz 439020 BLAKE2B 
ef900e3978b03c7330147b338266694f2ea4bafee8a34fb871bd7548a05c9276c25e8c34dd26875ca552db758590c4e4a80ae411c2fe658e485d9dca6e55adae
 SHA512 
99486b35c5eb718e25faaddd526970969f5d8c4c74f3c17f64f6fbe25f45a0764643bf746644b205ac27d13912f36eba6f497a0552d7d96d1af4a569d895e64c
+DIST chromium_109.0.5414.74-2raptor0~deb11u1.debian.tar.xz 445284 BLAKE2B 
838df6439816d36df2e9bb9224745aa0c0a3f6c3e19ec2b29b78b8e2be8c59e8df9dde7fdba49a73ee7bdd2282016f0366500f5bd1579b870a6aab25f4bb115f
 SHA512 
6e6523d5f2aed2d931074af1dddea7312d5c8ed09d2b143dd9309db634547c37b67ba3c905fefa67097fb44c64f4d45431eedeed7b33d8b07eb2bae73bdc7f16

diff --git a/www-client/chromium/chromium-109.0.5414.74-r1.ebuild 
b/www-client/chromium/chromium-109.0.5414.74-r1.ebuild
index e49d398a2e91..a086b823e85d 100644
--- a/www-client/chromium/chromium-109.0.5414.74-r1.ebuild
+++ b/www-client/chromium/chromium-109.0.5414.74-r1.ebuild
@@ -19,13 +19,16 @@ DESCRIPTION="Open-source version of Google Chrome web 
browser"
 HOMEPAGE="https://chromium.org/";
 PATCHSET="2"
 PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}"
+PATCHSET_URI_PPC64="https://quickbuild.io/~raptor-engineering-public";
+PATCHSET_NAME_PPC64="chromium_109.0.5414.74-2raptor0~deb11u1.debian"
 
SRC_URI="https://commondatastorage.googleapis.com/chromium-browser-official/${P}.tar.xz
        
https://github.com/stha09/chromium-patches/releases/download/${PATCHSET_NAME}/${PATCHSET_NAME}.tar.xz
+       ppc64? ( 
${PATCHSET_URI_PPC64}/+archive/ubuntu/chromium/+files/${PATCHSET_NAME_PPC64}.tar.xz
 )
        pgo? ( 
https://github.com/elkablo/chromium-profiler/releases/download/v0.2/chromium-profiler-0.2.tar
 )"
 
 LICENSE="BSD"
 SLOT="0/stable"
-KEYWORDS="~amd64 ~arm64"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
 IUSE="+X component-build cups cpu_flags_arm_neon debug gtk4 +hangouts headless 
+js-type-check kerberos libcxx lto +official pgo pic +proprietary-codecs 
pulseaudio qt5 screencast selinux +suid +system-av1 +system-ffmpeg 
+system-harfbuzz +system-icu +system-png vaapi wayland widevine"
 REQUIRED_USE="
        component-build? ( !suid !libcxx )
@@ -342,6 +345,19 @@ src_prepare() {
                "${FILESDIR}/chromium-cross-compile.patch"
        )
 
+       if use ppc64 ; then
+               local p
+               for p in $(grep -v "^#" "${WORKDIR}"/debian/patches/series | 
grep "^ppc64le" || die); do
+                       if [[ $p =~ "fix-breakpad-compile.patch" ]]; then
+                               eapply 
"${FILESDIR}/ppc64le/fix-breakpad-compile.patch"
+                       else
+                               eapply "${WORKDIR}/debian/patches/${p}"
+                       fi
+               done
+               eapply "${FILESDIR}/ppc64le/libpng-pdfium-compile-98.patch"
+               eapply "${FILESDIR}/ppc64le/fix-swiftshader-compile.patch"
+       fi
+
        default
 
        mkdir -p third_party/node/linux/node-linux-x64/bin || die

Reply via email to