diff options
author | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-09-30 14:04:18 +0200 |
---|---|---|
committer | ohfp <1813007-ohfp@users.noreply.gitlab.com> | 2020-09-30 14:52:19 +0200 |
commit | 42d221db4971342edd7ebe75152be53741bb0a7b (patch) | |
tree | fb23761477f3f759ba7327845e271227a7a629e3 /binary_tarball | |
parent | v80.0.1-1 (diff) | |
download | librewolf-linux-42d221db4971342edd7ebe75152be53741bb0a7b.tar.gz librewolf-linux-42d221db4971342edd7ebe75152be53741bb0a7b.tar.bz2 librewolf-linux-42d221db4971342edd7ebe75152be53741bb0a7b.zip |
v81.0-2
Diffstat (limited to 'binary_tarball')
-rwxr-xr-x | binary_tarball/scripts/1_Install_Dependencies.sh | 4 | ||||
-rwxr-xr-x | binary_tarball/scripts/3_Configure_Source_Code.sh | 22 | ||||
-rwxr-xr-x | binary_tarball/scripts/4_Build_Binary_Tarball.sh | 1 |
3 files changed, 20 insertions, 7 deletions
diff --git a/binary_tarball/scripts/1_Install_Dependencies.sh b/binary_tarball/scripts/1_Install_Dependencies.sh index 9ff101a..6d88bbb 100755 --- a/binary_tarball/scripts/1_Install_Dependencies.sh +++ b/binary_tarball/scripts/1_Install_Dependencies.sh @@ -53,10 +53,10 @@ apt-get -y -qq install $_DEPENDENCIES; if [[ $CARCH == 'x86_64' ]];then # Installs (non-ancient) clang apt install -y software-properties-common apt-transport-https ca-certificates - apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-9 main" + apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-11 main" wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add apt-get update - apt-get -y install clang-9 libclang-9-dev + apt-get -y install clang-11 libclang-11-dev else apt-get -y install clang-8 libclang-8-dev fi diff --git a/binary_tarball/scripts/3_Configure_Source_Code.sh b/binary_tarball/scripts/3_Configure_Source_Code.sh index ba6879a..dc04fb0 100755 --- a/binary_tarball/scripts/3_Configure_Source_Code.sh +++ b/binary_tarball/scripts/3_Configure_Source_Code.sh @@ -99,11 +99,11 @@ else # ubuntu seems to recommend this ac_add_options --disable-elf-hack -export CC='clang-9' -export CXX='clang++-9' -export AR=llvm-ar-9 -export NM=llvm-nm-9 -export RANLIB=llvm-ranlib-9 +export CC='clang-11' +export CXX='clang++-11' +export AR=llvm-ar-11 +export NM=llvm-nm-11 +export RANLIB=llvm-ranlib-11 # probably not needed, enabled by default? ac_add_options --enable-optimize @@ -111,6 +111,16 @@ END fi +# some patches used by Arch upstream +# https://bugs.archlinux.org/task/67978 +# https://bugzilla.mozilla.org/show_bug.cgi?id=1660901 +_arch_svn=https://git.archlinux.org/svntogit/packages.git/plain/trunk +wget "${_arch_svn}/0002-Bug-1660901-Support-the-fstat-like-subset-of-fstatat.patch?h=packages/firefox" -O 0002-Bug-1660901-Support-the-fstat-like-subset-of-fstatat.patch +wget "${_arch_svn}/0003-Bug-1660901-ignore-AT_NO_AUTOMOUNT-in-fstatat-system.patch?h=packages/firefox" -O 0003-Bug-1660901-ignore-AT_NO_AUTOMOUNT-in-fstatat-system.patch + +patch -Np1 -i ./0002-Bug-1660901-Support-the-fstat-like-subset-of-fstatat.patch +patch -Np1 -i ./0003-Bug-1660901-ignore-AT_NO_AUTOMOUNT-in-fstatat-system.patch + # hopefully the magic sauce that makes things build on 16.04 and later on work "everywhere": patch -p1 -i "${CI_PROJECT_DIR}/deb_patches/lower-python3-requirement.patch" patch -p1 -i "${CI_PROJECT_DIR}/deb_patches/armhf-reduce-linker-memory-use.patch" @@ -118,6 +128,8 @@ patch -p1 -i "${CI_PROJECT_DIR}/deb_patches/build-with-libstdc++-7.patch" patch -p1 -i "${CI_PROJECT_DIR}/deb_patches/fix-armhf-webrtc-build.patch" patch -p1 -i "${CI_PROJECT_DIR}/deb_patches/webrtc-fix-compiler-flags-for-armhf.patch" patch -p1 -i "${CI_PROJECT_DIR}/deb_patches/python3-remove-variable-annotations.patch" +patch -p1 -i "${CI_PROJECT_DIR}/deb_patches/python3-remove-fstrings.patch" +patch -p1 -i "${CI_PROJECT_DIR}/deb_patches/python3-remove-pep487.patch" # Remove some pre-installed addons that might be questionable patch -p1 -i ${CI_PROJECT_DIR}/remove_addons.patch diff --git a/binary_tarball/scripts/4_Build_Binary_Tarball.sh b/binary_tarball/scripts/4_Build_Binary_Tarball.sh index 23c2ca2..89a3d96 100755 --- a/binary_tarball/scripts/4_Build_Binary_Tarball.sh +++ b/binary_tarball/scripts/4_Build_Binary_Tarball.sh @@ -33,6 +33,7 @@ fi export MOZ_NOSPAM=1 export MOZBUILD_STATE_PATH="${_MOZBUILD}" +export MACH_USE_SYSTEM_PYTHON=1 if [[ $CARCH == 'aarch64' ]]; then export MOZ_DEBUG_FLAGS=" " |