No
The patches are useful too (disables annoying features), but i'll make a small cleanup as soon as 61 reaches b1
Git Clone URL: | https://aur.archlinux.org/firefox-beta.git (read-only, click to copy) |
---|---|
Package Base: | firefox-beta |
Description: | Standalone web browser from mozilla.org - Beta |
Upstream URL: | https://www.mozilla.org/en-US/firefox/channel/#beta |
Keywords: | beta browser firefox web |
Licenses: | |
Conflicts: | |
Provides: | |
Submitter: | argymeg |
Maintainer: | Anthony25 (bittin, symen) |
Last Packager: | Anthony25 |
Votes: | 15 |
Popularity: | 0.37 |
First Submitted: | 2015-10-05 23:34 |
Last Updated: | 2021-03-07 20:02 |
No
The patches are useful too (disables annoying features), but i'll make a small cleanup as soon as 61 reaches b1
Seems only PKGBUILD is necessary? Mind removing other files?
I've only tried on nightly with rustup, so I'm not sure about 1.24.1.
@robsmith11
works with rust-1:1.24.1-1?
It's building fine again with current Rust nightly.
FYI, this doesn't build anymore on rust 1.24.0 due to this fix landing in said version. I use rustup, so I prefixed the make commands with rustup run 1.23.0 -- ./mach ...
Thanks, it's working now.
You may want to delete some of the unused files in the git tree like mozconfig. Another possible change is to use more system libraries. I'm running it with:
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
ac_add_options --with-system-png
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
ac_add_options --with-system-icu
ac_add_options --enable-system-hunspell
ac_add_options --enable-system-sqlite
ac_add_options --enable-system-ffi
ac_add_options --enable-system-pixman
Note that there is a linking bug when using new versions of nss
, so the following patch is also required:
--- a/old-configure.in 2017-05-12 22:21:13.000000000 +0200
+++ b/old-configure.in 2017-06-14 00:21:17.128183411 +0200
@@ -2127,7 +2127,7 @@
fi
if test -n "$MOZ_SYSTEM_NSS"; then
- NSS_LIBS="$NSS_LIBS -lcrmf"
+ NSS_LIBS="$NSS_LIBS"
else
NSS_CFLAGS="-I${DIST}/include/nss"
fi
fixed
Anyone else get this error:
16:43.20 In file included from /tmp/firefox-beta/src/mozilla-unified/obj-x86_64-pc-linux-gnu/dom/bindings/UnifiedBindings21.cpp:38:0:
16:43.20 /tmp/firefox-beta/src/mozilla-unified/obj-x86_64-pc-linux-gnu/dom/bindings/WorkerGlobalScopeBinding.cpp:1560:34: error: ‘mozilla::dom::DOMPrefs’ has not been declared
16:43.20 true, false, 0, &mozilla::dom::DOMPrefs::DOMCachesEnabled
16:43.20 ^~~~~~~~
16:46.64 make[4]: *** [/tmp/firefox-beta/src/mozilla-unified/config/rules.mk:1049: UnifiedBindings21.o] Error 1
16:46.64 make[3]: *** [/tmp/firefox-beta/src/mozilla-unified/config/recurse.mk:73: dom/bindings/target] Error 2
16:46.64 make[3]: *** Waiting for unfinished jobs....
16:51.48 libdom_geolocation.a.desc
16:51.81 libdom_gamepad.a.desc
16:53.04 libdom_file.a.desc
17:16.65 Compiling geckoservo v0.0.1 (file:///tmp/firefox-beta/src/mozilla-unified/servo/ports/geckolib)
18:02.17 Compiling gkrust-shared v0.1.0 (file:///tmp/firefox-beta/src/mozilla-unified/toolkit/library/rust/shared)
18:03.04 Compiling gkrust v0.1.0 (file:///tmp/firefox-beta/src/mozilla-unified/toolkit/library/rust)
18:48.86 Finished release [optimized] target(s) in 990.0 secs
18:48.87 make[2]: *** [/tmp/firefox-beta/src/mozilla-unified/config/recurse.mk:33: compile] Error 2
18:48.87 make[1]: *** [/tmp/firefox-beta/src/mozilla-unified/config/rules.mk:434: default] Error 2
18:48.87 make: *** [client.mk:168: build] Error 2
Is there any alternative to downloading the entire hg repo? It's rather large..
Pinned Comments
Anthony25 commented on 2020-05-10 01:04
I enabled LTO and PGO (using a profile generated by running the test suite). They are also used by Mozilla to compile the official firefox-beta binaries they provide, as they allow some performance boost, therefore it is synced in this package.
It is possible to keep the compilation options of the old versions of this package, by setting the options at the top the PKGBUILD (they are documented) to
enable_pgo=n
andenable_lto=n
, or by building it with:env enable_pgo=n enable_lto=n makepkg
However, if running out of memory is an issue, before disabling LTO, try:
env enable_no_keep_memory=y makepkg
It should tell LD to be less aggressive on the cache utilization during the compilation. It does not change anything on the generated binary, it should slow down a bit the compilation, but at least you can still enjoy a compilation with LTO.