From b8677c649cfda41ad7828f156ae4a072f3ba874b Mon Sep 17 00:00:00 2001 From: ohfp <1813007-ohfp@users.noreply.gitlab.com> Date: Thu, 13 May 2021 14:49:52 +0200 Subject: [PATCH] Generic patches have been moved to the common repo --- arm.patch => deprecated_patches/arm.patch | 0 .../context-menu.patch | 0 .../megabar.patch | 0 .../mozilla-vpn-ad.patch | 0 .../remove_addons.patch | 0 .../unity-menubar.patch | 0 scripts/3_Configure_Source_Code.sh | 78 +++++++++++-------- scripts/5_Configure_Binary_Tarball.sh | 2 +- 8 files changed, 47 insertions(+), 33 deletions(-) rename arm.patch => deprecated_patches/arm.patch (100%) rename context-menu.patch => deprecated_patches/context-menu.patch (100%) rename megabar.patch => deprecated_patches/megabar.patch (100%) rename mozilla-vpn-ad.patch => deprecated_patches/mozilla-vpn-ad.patch (100%) rename remove_addons.patch => deprecated_patches/remove_addons.patch (100%) rename unity-menubar.patch => deprecated_patches/unity-menubar.patch (100%) diff --git a/arm.patch b/deprecated_patches/arm.patch similarity index 100% rename from arm.patch rename to deprecated_patches/arm.patch diff --git a/context-menu.patch b/deprecated_patches/context-menu.patch similarity index 100% rename from context-menu.patch rename to deprecated_patches/context-menu.patch diff --git a/megabar.patch b/deprecated_patches/megabar.patch similarity index 100% rename from megabar.patch rename to deprecated_patches/megabar.patch diff --git a/mozilla-vpn-ad.patch b/deprecated_patches/mozilla-vpn-ad.patch similarity index 100% rename from mozilla-vpn-ad.patch rename to deprecated_patches/mozilla-vpn-ad.patch diff --git a/remove_addons.patch b/deprecated_patches/remove_addons.patch similarity index 100% rename from remove_addons.patch rename to deprecated_patches/remove_addons.patch diff --git a/unity-menubar.patch b/deprecated_patches/unity-menubar.patch similarity index 100% rename from unity-menubar.patch rename to deprecated_patches/unity-menubar.patch diff --git a/scripts/3_Configure_Source_Code.sh b/scripts/3_Configure_Source_Code.sh index 72e0f2a..8003d26 100755 --- a/scripts/3_Configure_Source_Code.sh +++ b/scripts/3_Configure_Source_Code.sh @@ -7,15 +7,20 @@ set -e srcdir=$1; CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(realpath $(dirname $0)/../)} _COMMON_REPO='https://gitlab.com/librewolf-community/browser/common.git'; +_COMMON_COMMIT='5bce5285fa7046e6987ec3e5a8931ac17ca6c7c0' +_COMMON_DIR="${CI_PROJECT_DIR}"/common +_PATCHES_DIR="${_COMMON_DIR}"/patches _MOZBUILD=$srcdir/../mozbuild mkdir -p ${_MOZBUILD} # Copy Source Code Changes to Source Code printf "\nCopying branding and source code changes to firefox source code\n"; -git clone $_COMMON_REPO common; -cp -r common/source_files/* $srcdir/; -rm -rf common; +git clone $_COMMON_REPO ${_COMMON_DIR} +cd ${_COMMON_DIR} +git checkout ${_COMMON_COMMIT} +cd .. +cp -r ${_COMMON_DIR}/source_files/* $srcdir/; cd $srcdir @@ -85,9 +90,9 @@ END export RUSTFLAGS="-Cdebuginfo=0" export LDFLAGS+=" -Wl,--no-keep-memory -Wl" - patch -p1 -i ${CI_PROJECT_DIR}/arm.patch - wget https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/extra/firefox/build-arm-libopus.patch -O ${CI_PROJECT_DIR}/build-arm-libopus.patch - patch -p1 -i ${CI_PROJECT_DIR}/build-arm-libopus.patch + patch -Np1 -i ${_PATCHES_DIR}/arm.patch + wget https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/master/extra/firefox/build-arm-libopus.patch -O ${_PATCHES_DIR}/build-arm-libopus.patch + patch -Np1 -i ${_PATCHES_DIR}/build-arm-libopus.patch else cat >>${CI_PROJECT_DIR}/mozconfig <