commit:     90409ac10178d67d65a67ca0345eb82bf0253108
Author:     Niccolò Belli <niccolo.belli <AT> linuxsystems <DOT> it>
AuthorDate: Sat Feb 18 10:32:40 2023 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Tue Mar 14 15:23:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90409ac1

www-client/chromium: add ppc64 patchset for 110

Signed-off-by: Niccolò Belli <niccolo.belli <AT> linuxsystems.it>
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 www-client/chromium/Manifest                          |  1 +
 www-client/chromium/chromium-110.0.5481.177-r1.ebuild | 18 +++++++++++++++++-
 www-client/chromium/chromium-110.0.5481.38.ebuild     | 18 +++++++++++++++++-
 3 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/www-client/chromium/Manifest b/www-client/chromium/Manifest
index edf0c7b5a654..0deb8fc38214 100644
--- a/www-client/chromium/Manifest
+++ b/www-client/chromium/Manifest
@@ -11,3 +11,4 @@ DIST chromium-ppc64le-gentoo-patches-1.tar.xz 5636 BLAKE2B 
1d898939df023c59285b2
 DIST chromium-profiler-0.2.tar 259952640 BLAKE2B 
5e82389fce00b267280d633b26551231c558b80f0c92cd7d60271095a3503365ab673e7a46dc5f74f8a82db1f21262cb24dcc0531d954bab5fb3b175dab3394d
 SHA512 
9fa89a5ab728419683e7495ae676567480987d68a2d589f2aa97bfcbcf123f3c8f97f8bca5f65e5e3f6e41475535add473ded83b9c7a33bb4746a9d05b298a6c
 DIST chromium_109.0.5414.119-1raptor0~deb11u1.debian.tar.xz 438932 BLAKE2B 
1405965668248b53a6c79f6d648900725f5db727379e7893b639aebef3cc333099ebc4259face3625ed080bd281fa4f307336c1e8da8c68b737368254dbdac83
 SHA512 
2baad609b88acc0d16d0f6bff39292d7bd3fff06a9d074b219a89011c1c02fb8f429282aaebc2a0fe79619f38de324140c6d6ad2d2d2a35475e6965e8a9e0a42
 DIST chromium_109.0.5414.74-2raptor0~deb11u1.debian.tar.xz 445284 BLAKE2B 
838df6439816d36df2e9bb9224745aa0c0a3f6c3e19ec2b29b78b8e2be8c59e8df9dde7fdba49a73ee7bdd2282016f0366500f5bd1579b870a6aab25f4bb115f
 SHA512 
6e6523d5f2aed2d931074af1dddea7312d5c8ed09d2b143dd9309db634547c37b67ba3c905fefa67097fb44c64f4d45431eedeed7b33d8b07eb2bae73bdc7f16
+DIST chromium_110.0.5481.77-1raptor0~deb11u1.debian.tar.xz 445576 BLAKE2B 
10795b53e75fb7d17fa143329228f0d642d365f56e0cd905dcf1dc2b17140c65eb4cf269807c571a7213a3fac0c0ac9546e47ab4b170dfe7c518902ad0ff3c50
 SHA512 
dcd781286ce7f41a5cf65ea4d02b80c865e032c45677f37097f46263c03100169c401a089a41b560749599a2b42fa8ef3a4b89d096ea86fbd861d4b2add7d1bb

diff --git a/www-client/chromium/chromium-110.0.5481.177-r1.ebuild 
b/www-client/chromium/chromium-110.0.5481.177-r1.ebuild
index 18f9b6c3e44e..99452165df2b 100644
--- a/www-client/chromium/chromium-110.0.5481.177-r1.ebuild
+++ b/www-client/chromium/chromium-110.0.5481.177-r1.ebuild
@@ -19,13 +19,19 @@ DESCRIPTION="Open-source version of Google Chrome web 
browser"
 HOMEPAGE="https://chromium.org/";
 PATCHSET="4"
 PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}"
+PATCHSET_URI_PPC64="https://quickbuild.io/~raptor-engineering-public";
+PATCHSET_NAME_PPC64="chromium_110.0.5481.77-1raptor0~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
+               
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium/chromium-ppc64le-gentoo-patches-1.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 +348,16 @@ 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 "${WORKDIR}/debian/patches/${p}"
+                       fi
+               done
+               PATCHES+=( "${WORKDIR}/ppc64le" )
+       fi
+
        default
 
        mkdir -p third_party/node/linux/node-linux-x64/bin || die

diff --git a/www-client/chromium/chromium-110.0.5481.38.ebuild 
b/www-client/chromium/chromium-110.0.5481.38.ebuild
index 030ad228d824..8aaf2bfec27b 100644
--- a/www-client/chromium/chromium-110.0.5481.38.ebuild
+++ b/www-client/chromium/chromium-110.0.5481.38.ebuild
@@ -19,13 +19,19 @@ DESCRIPTION="Open-source version of Google Chrome web 
browser"
 HOMEPAGE="https://chromium.org/";
 PATCHSET="4"
 PATCHSET_NAME="chromium-$(ver_cut 1)-patchset-${PATCHSET}"
+PATCHSET_URI_PPC64="https://quickbuild.io/~raptor-engineering-public";
+PATCHSET_NAME_PPC64="chromium_110.0.5481.77-1raptor0~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
+               
https://dev.gentoo.org/~sultan/distfiles/www-client/chromium/chromium-ppc64le-gentoo-patches-1.tar.xz
+       )
        pgo? ( 
https://github.com/elkablo/chromium-profiler/releases/download/v0.2/chromium-profiler-0.2.tar
 )"
 
 LICENSE="BSD"
 SLOT="0/beta"
-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 +348,16 @@ 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 "${WORKDIR}/debian/patches/${p}"
+                       fi
+               done
+               PATCHES+=( "${WORKDIR}/ppc64le" )
+       fi
+
        default
 
        mkdir -p third_party/node/linux/node-linux-x64/bin || die

Reply via email to