From c6fa71b0780041e0fde361e15ed4e8b980ffcb88 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 11 Mar 2019 16:47:55 +0100 Subject: [PATCH 1/2] add chromium version 72 --- chromium-72.0.3626.121-0.build.sh | 107 ++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100755 chromium-72.0.3626.121-0.build.sh diff --git a/chromium-72.0.3626.121-0.build.sh b/chromium-72.0.3626.121-0.build.sh new file mode 100755 index 0000000..da694cd --- /dev/null +++ b/chromium-72.0.3626.121-0.build.sh @@ -0,0 +1,107 @@ +#! /bin/bash + +PKG=chromium +VERSION=72.0.3626.121 +BUILD=0 + +PREFIX=/pkg/$PKG-$VERSION-$BUILD +if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi + +set -xe +umask 022 + +BUILD_TMPDIR=/dev/shm/$PKG-$VERSION-$BUILD.build.tmp +test -d $BUILD_TMPDIR && rm -rf $BUILD_TMPDIR +mkdir -p $BUILD_TMPDIR/home +export TMPDIR=$BUILD_TMPDIR +export HOME=$BUILD_TMPDIR/home + +exec $PREFIX/profile <<-EOF + PATH=$PREFIX/bin:\$PATH + if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:\$LD_LIBRARY_PATH} ; fi +EOF +. $PREFIX/profile + +export MAKEFLAGS="-j $(nproc)" + +BUILDDIR=$PREFIX/build + +mkdir -p $BUILDDIR +cd $BUILDDIR + +test -d depot_tools || git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git + +PATH=$PREFIX/build/depot_tools:$PATH + +test -e chromium-72.0.3626.121.tar.xz || wget https://commondatastorage.googleapis.com/${PKG}-browser-official/chromium-72.0.3626.121.tar.xz +test -d chromium-72.0.3626.121 || tar xvf chromium-72.0.3626.121.tar.xz + +cd chromium-72.0.3626.121 + +patch -p1 < /src/mariux/patches/chrome-72-disable-API-warning.patch +patch -p0 < /src/mariux/patches/chromium-72-webrtc-missingheader.patch +patch -p1 < /src/mariux/patches/chromium-72-as-needed.patch +patch -p1 < /src/mariux/patches/chromium-72-unused-typedefs.patch +patch -p1 < /src/mariux/patches/chromium-72-parallel.patch + +#Create Directories for Build and Install +test -d $PREFIX/bin || mkdir $PREFIX/bin +test -d out || mkdir out + +python2 build/util/lastchange.py \ + --version-macro=GPU_LISTS_VERSION \ + --revision-id-only \ + --header=gpu/config/gpu_lists_version.h + +mkdir -p third_party/node/linux/node-linux-x64/bin +if [ ! -e third_party/node/linux/node-linux-x64/bin/node ]; then + ln -s /pkg/node-8.11.4-0/bin/node third_party/node/linux/node-linux-x64/bin/ +fi +# Download the NaCL toolchains: +python2 build/download_nacl_toolchains.py --packages nacl_x86_newlib,pnacl_newlib,pnacl_translator sync --extract +# Do not make the build fail, see Chromium issue #386097: +python2 third_party/libaddressinput/chromium/tools/update-strings.py + +# Fix for: ERROR at //build/config/sysroot.gni:57:5: Assertion failed +python2 build/linux/sysroot_scripts/install-sysroot.py --arch=amd64 + +# Generate the ninja build files: +python2 tools/gn/bootstrap/bootstrap.py + +python2 tools/clang/scripts/update.py \ + --force-local-build \ + --skip-checkout \ + --gcc-toolchain=/usr \ + --use-system-cmake \ + --if-needed \ + --without-android \ + --without-fuchsia + +#Ensure that only this clang version is used +export PATH=${BUILDDIR}/${PKG}-${VERSION}/third_party/llvm-build/Release+Asserts/bin:$PATH + +_chromium_conf=( + 'is_debug=false' + 'remove_webcore_debug_symbols=true' + 'use_gnome_keyring=true' + 'treat_warnings_as_errors=false' + 'enable_nacl=true' + 'use_sysroot=true' + 'is_official_build=true' + 'fatal_linker_warnings=false' +) + +out/Release/gn gen out/Release --args="${_chromium_conf[*]}" + +#ninja -C out/Release pdf chrome chromedriver chrome_sandbox +ninja -C out/Release chrome + +cp -a out/Release/* $PREFIX/bin/ +strip $PREFIX/bin/chrome +strip $PREFIX/bin/*.so +rm $PREFIX/bin/*.TOC + +exit From 9c819d76465e7642ea50dd1700190858459f62f9 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 14 Mar 2019 14:39:54 +0100 Subject: [PATCH 2/2] fix allign --- chromium-72.0.3626.121-0.build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromium-72.0.3626.121-0.build.sh b/chromium-72.0.3626.121-0.build.sh index da694cd..4f3e57f 100755 --- a/chromium-72.0.3626.121-0.build.sh +++ b/chromium-72.0.3626.121-0.build.sh @@ -86,7 +86,7 @@ export PATH=${BUILDDIR}/${PKG}-${VERSION}/third_party/llvm-build/Release+Asserts _chromium_conf=( 'is_debug=false' 'remove_webcore_debug_symbols=true' - 'use_gnome_keyring=true' + 'use_gnome_keyring=true' 'treat_warnings_as_errors=false' 'enable_nacl=true' 'use_sysroot=true'