Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Emerging chromium-74.0.3729.169 on arm64 (patch, ebuild)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
Sakaki
Apprentice
Apprentice


Joined: 21 May 2014
Posts: 283

PostPosted: Tue Jun 11, 2019 12:52 pm    Post subject: Emerging chromium-74.0.3729.169 on arm64 (patch, ebuild) Reply with quote

Hello,

I've been looking at getting www-client/chromium-74.0.3729.169 to build on arm64 over the last few days. Had to patch the main tree ebuild and source a little bit to get it working; here are the details in case it is of use to anyone else.

I had to modify the ebuild (bumped it to -r1 in the overlay used by the gentoo-on-rpi3-64bit project), because:
  • I set CHROMIUM_FORCE_CLANG=yes (have had problems building chromium under gcc in the past, this may be cargo-culting now);
  • as before I needed to omit the unconditional media-libs/openh264 DEPEND (as that package has RESTRICT="bindist", and I need everything to get pushed up to a binhost); so, added a USE flag to control this;
  • per Khumarahn's comment here, I added an additional patch to address Gentoo bug 686982.

Here's a diff between the main-tree and the modified r1 ebuild, showing these changes:
Code:
--- chromium-74.0.3729.169.ebuild
+++ chromium-74.0.3729.169-r1.ebuild
@@ -19,8 +19,8 @@
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="amd64 ~x86"
-IUSE="+closure-compile component-build cups gnome-keyring +hangouts jumbo-build kerberos neon pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-icu +system-libvpx +tcmalloc widevine"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="+closure-compile component-build cups gnome-keyring +hangouts jumbo-build kerberos neon +openh264 pic +proprietary-codecs pulseaudio selinux +suid +system-ffmpeg +system-icu +system-libvpx +tcmalloc widevine"
 RESTRICT="!system-ffmpeg? ( proprietary-codecs? ( bindist ) )"
 REQUIRED_USE="component-build? ( !suid )"
 
@@ -45,7 +45,7 @@
    media-libs/libjpeg-turbo:=
    media-libs/libpng:=
    system-libvpx? ( media-libs/libvpx:=[postproc,svc] )
-   >=media-libs/openh264-1.6.0:=
+   openh264? ( >=media-libs/openh264-1.6.0:= )
    pulseaudio? ( media-sound/pulseaudio:= )
    system-ffmpeg? (
       >=media-video/ffmpeg-4:=
@@ -112,7 +112,8 @@
    virtual/pkgconfig
 "
 
-: ${CHROMIUM_FORCE_CLANG=no}
+# arm64 has several build failures under gcc
+: ${CHROMIUM_FORCE_CLANG=yes}
 
 if [[ ${CHROMIUM_FORCE_CLANG} == yes ]]; then
    BDEPEND+=" >=sys-devel/clang-5"
@@ -154,6 +155,7 @@
    "${DISTDIR}"/chromium-74-2f28731.patch
    "${FILESDIR}"/chromium-74-7685422.patch
    "${FILESDIR}"/quiche-00f47df.patch
+   "${FILESDIR}"/chromium-non-const-deltas.patch
 )
 
 pre_build_checks() {
@@ -455,12 +457,14 @@
       libwebp
       libxml
       libxslt
-      openh264
       re2
       snappy
       yasm
       zlib
    )
+   if use openh264; then
+      gn_system_libraries+=( openh264 )
+   fi
    if use system-ffmpeg; then
       gn_system_libraries+=( ffmpeg opus )
    fi
@@ -483,6 +487,7 @@
    myconf_gn+=" use_gnome_keyring=$(usex gnome-keyring true false)"
    myconf_gn+=" use_kerberos=$(usex kerberos true false)"
    myconf_gn+=" use_pulseaudio=$(usex pulseaudio true false)"
+   myconf_gn+=" use_openh264=$(usex openh264 true false)"
 
    # TODO: link_pulseaudio=true for GN.
 

(NB the rpi3-overlay repo where this ebuild lives is only for use with the arm64 RPi3; some of the above changes should probably be keyword-specific, were the ebuild to be used more generally)

The r1 ebuild itself is available here, and the chromium-non-const-deltas.patch here. The resulting binary package is available from the isshoni.org binhost, here. Seems to work OK in basic testing on an RPi3B+.

Users of (a reasonably up-to-date version of) the gentoo-on-rpi3-64bit image may get this simply by issuing:
Code:
demouser@pi64 ~ $ sudo emaint sync --repo rpi3
demouser@pi64 ~ $ sudo emerge -avu www-client/chromium

(Incidentally, a new release of the bootable image, including inter alia chromium-74, is in testing and should be available shortly; I'll announce in the sticky when it lands).

Thanks again to Khumarahn for the pointer.
_________________
Regards,

sakaki
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum