Skip to content

Firefox_esr: New revision #2343

Merged
merged 1 commit into from
Sep 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 45 additions & 48 deletions firefox_esr.be0
Original file line number Diff line number Diff line change
@@ -1,74 +1,64 @@
#!/bin/env beesh

# BEE_VERSION firefox_esr-91.1.0-0
# BEE_VERSION firefox_esr-78.9.0-2

# https://www.linuxfromscratch.org/blfs/view/svn/xsoft/firefox.html
#export BEE_TMP_TMPDIR=/dev/shm BEE_TMP_BUILDROOT=/dev/shm/bee-root BEE_MAKEFLAGS='-j80'

#SRCURL[0]="https://ftp.mozilla.org/pub/firefox/releases/${PKGVERSION}${PKGEXTRANAME}/source/firefox-${PKGVERSION}${PKGEXTRANAME}.source.tar.xz"
SRCURL[0]="https://beehive.molgen.mpg.de/61350e551a90d199ca4a1f93e69092ee/firefox-91.1.0esr.source.tar.xz"

# PATCHURL+=('https://www.linuxfromscratch.org/patches/blfs/svn/firefox-91.1.0esr-disable_rust_test-1.patch')
PATCHURL+=("https://beehive.molgen.mpg.de/5a35bd2578dc20e1d9b9152a96c5ef1c/firefox-91.1.0esr-disable_rust_test-1.patch")
SRCURL[0]="https://beehive.molgen.mpg.de/10529ea05d2a1b46eb239330a3ae5471/firefox-78.9.0esr.source.tar.xz"

mee_configure() {


. /pkg/node-14.17.1-0/profile
. /pkg/rustc-1.52.1-0/profile

cat > ${S}/mozconfig <<EOF
ac_add_options --prefix=/usr/local
ac_add_options --enable-application=browser
ac_add_options --disable-necko-wifi
ac_add_options --enable-official-branding
ac_add_options --enable-system-pixman
ac_add_options --without-system-icu
ac_add_options --without-system-nspr
ac_add_options --disable-tests
ac_add_options --enable-optimize
ac_add_options --disable-crashreporter
ac_add_options --disable-updater
mk_add_options MOZ_MAKE_FLAGS="${BEE_MAKEFLAGS}"
mk_add_options MOZ_OBJDIR=$B
unset MOZ_TELEMETRY_REPORTING
EOF
# ac_add_options --disable-elf-hack
export MOZBUILD_STATE_PATH=${B}/mozbuild
export CARGO_HOME=$B/.cargo
export MACH_USE_SYSTEM_PYTHON=1
. /usr/local/package/lib/node.profile
. /pkg/rustc-1.50.0-0/profile

cat > ${S}/mozconfig <<-EOF
ac_add_options --enable-application=browser
ac_add_options --disable-necko-wifi
ac_add_options --enable-official-branding
ac_add_options --without-system-icu
ac_add_options --without-system-nspr
ac_add_options --disable-elf-hack
ac_add_options --disable-updater
ac_add_options --disable-crashreporter
ac_add_options --disable-tests
ac_add_options --enable-optimize
mk_add_options MOZ_MAKE_FLAGS="${BEE_MAKEFLAGS}"
mk_add_options MOZ_OBJDIR=$B
unset MOZ_TELEMETRY_REPORTING
EOF
${S}/mach configure
}

mee_build() {
export MOZBUILD_STATE_PATH=${B}/mozbuild
export CARGO_HOME=$B/.cargo
export MACH_USE_SYSTEM_PYTHON=1
sh -vx ${S}/mach build --verbose
export CC=gcc CXX=g++
export MOZBUILD_STATE_PATH=${B}/mozbuild
${S}/mach build
}

mee_build_post() {

# create menu entry

cat >${B}/firefoxesr.desktop <<EOF
[Desktop Entry]
Version=1.0
Name=Firefox-ESR-${PKGVERSION[1]}
GenericName=Web Browser
Comment=Surf the World Wide Web
Exec=firefoxesr${PKGVERSION[1]} -ProfileManager %u
Icon=firefox
Terminal=false
Type=Application
StartupNotify=true
Categories=Network;WebBrowser;
EOF
cat >${B}/firefoxesr.desktop <<-EOF
[Desktop Entry]
Version=1.0
Name=Firefox-ESR-${PKGVERSION[1]}
GenericName=Web Browser
Comment=Surf the World Wide Web
Exec=firefoxesr${PKGVERSION[1]} -ProfileManager %u
Icon=firefox
Terminal=false
Type=Application
StartupNotify=true
Categories=Network;WebBrowser;
EOF
}

mee_install() {
MACH_USE_SYSTEM_PYTHON=1 \
DESTDIR=$D \
${S}/mach install
DESTDIR=$D ${S}/mach install
}

mee_install_post() {
Expand Down Expand Up @@ -274,5 +264,12 @@ defaultPref("extensions.legacy.enabled",true);

//disable firefox refresh request
defaultPref("browser.disableResetPrompt",true);

//disable firefox hardware acceleration
defaultPref("layers.acceleration.disabled",true);

//enable gfx, boost for X11 forwarding
defaultPref("gfx.xrender.enabled",true);

EOF
}