commit: ec73063e84d24d8c5941dacbdfec4af6d0d87387 Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org> AuthorDate: Sun May 29 18:12:33 2022 +0000 Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org> CommitDate: Sun May 29 18:12:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ec73063e
www-client/chromium: add missing || die, re-add arm64 fix Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org> www-client/chromium/chromium-104.0.5083.0.ebuild | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/www-client/chromium/chromium-104.0.5083.0.ebuild b/www-client/chromium/chromium-104.0.5083.0.ebuild index f4c991f52087..a85c25029430 100644 --- a/www-client/chromium/chromium-104.0.5083.0.ebuild +++ b/www-client/chromium/chromium-104.0.5083.0.ebuild @@ -918,6 +918,11 @@ chromium_configure() { myconf_gn+=" ozone_platform=$(usex wayland \"wayland\" \"x11\")" fi + # Results in undefined references in chrome linking, may require CFI to work + if use arm64; then + myconf_gn+=" arm_control_flow_integrity=\"none\"" + fi + # Enable official builds myconf_gn+=" is_official_build=$(usex official true false)" myconf_gn+=" use_thin_lto=$(usex lto true false)" @@ -1016,21 +1021,21 @@ src_compile() { chromium_compile virtx chromium_profile "$profdata" - touch "${WORKDIR}/.pgo-profiled" + touch "${WORKDIR}/.pgo-profiled" || die fi if [[ ! -e "${WORKDIR}/.pgo-phase-2-configured" ]]; then # Remove phase 1 output - rm -rf out/Release + rm -r out/Release || die chromium_configure 2 "$profdata" - touch "${WORKDIR}/.pgo-phase-2-configured" + touch "${WORKDIR}/.pgo-phase-2-configured" || die fi if [[ ! -e "${WORKDIR}/.pgo-phase-2-compiled" ]]; then chromium_compile - touch "${WORKDIR}/.pgo-phase-2-compiled" + touch "${WORKDIR}/.pgo-phase-2-compiled" || die fi else chromium_compile