forked from BrowserWorks/Waterfox
-
Notifications
You must be signed in to change notification settings - Fork 0
Building Waterfox Classic on FreeBSD
Graham Perrin edited this page Oct 25, 2019
·
12 revisions
Using poudriere to build non-maintained www/waterfox 56.2.14
As root, with a 13.0-CURRENT jail named head, 2019-09-05 (note, this routine was invalidated by subsequent changes to ports):
cd /usr/local/poudriere/ports/default
rm -r www/waterfox
svn checkout svn://svn.freebsd.org/ports/head/www/waterfox@480899 www/waterfox
echo 'USE_MOZILLA += -vpx' > www/waterfox/Makefile.local
sed -i '' 's/www\/waterfox/#\ www\/waterfox/' MOVED
grep 2018-09-29 MOVED
sed -i '' 's/56\.2\.3/56.2.14/; /PORTREVISION/d' www/waterfox/Makefile
make makesum -C www/waterfox
- note any vulnerability – refer to https://vuxml.freebsd.org/freebsd/pkg-waterfox.html
make DISABLE_VULNERABILITIES=yes makesum -C www/waterfox
mkdir -p www/waterfox/files/setaside/
find www/waterfox/files \( -name "patch-config-baseconfig.mk" -or -name "patch-bug1384121" -or -name "patch-bug1393235" -or -name "patch-bug1395486" -or -name "patch-bug1433747" -or -name "patch-bug1447519" -or -name "patch-bug1453127" -or -name "patch-bug1466606" \) -exec mv {} www/waterfox/files/setaside/ \;
ls -hl www/waterfox/files/setaside/
- note the settting aside of patches
wget --output-document=www/waterfox/files/patch-bug1575876 https://gist.github.com/grahamperrin/b8ac515b57a52a9aaa00d6ecf268fe81/raw/f8393c40d68f86365209ac3bf1eb4d4d802635bc/patch-bug1575876
-
patch
/usr/local/poudriere/ports/default/Mk/bsd.gecko.mk
as shown at https://lists.freebsd.org/pipermail/freebsd-gecko/2019-April/009256.html poudriere bulk -C -j head www/waterfox
patch-bug1575876
patch-config-baseconfig.mk
- https://svnweb.freebsd.org/ports/head/www/waterfox/files/patch-config-baseconfig.mk?view=markup&pathrev=480899
- fails to apply cleanly (56.2.12)
patch-bug1384121
- fails to apply cleanly (56.2.14)
patch-bug1393235
- Mozilla bug 1393235 - Fix improper usages of string functions
- https://svnweb.freebsd.org/ports/head/www/waterfox/files/patch-bug1393235?view=markup&pathrev=480899
- https://github.com/MrAlex94/Waterfox/commit/7ded5ffc4822557e04186eb1fb678fe43e99a53a (committed 2019-08-16)
patch-bug1395486
- Mozilla bug 1395486 - The .txt files are printed wrong
- https://svnweb.freebsd.org/ports/head/www/waterfox/files/patch-bug1395486?view=markup&pathrev=480899
- https://github.com/MrAlex94/Waterfox/pull/777 (merged)
patch-bug1433747
- Mozilla bug 1433747 - --enable-rust-simd fails to build for -C target-cpu with AVX2
- https://svnweb.freebsd.org/ports/head/www/waterfox/files/patch-bug1433747?view=markup&pathrev=480899
- bug 1433747 was mentioned at https://github.com/MrAlex94/Waterfox/pull/508#pullrequestreview-110134810 (2018-04-06)
- fails to apply cleanly (56.2.12) – I can't tell why, maybe https://github.com/MrAlex94/Waterfox/pull/1043 (merged) made this patch redundant.
patch-bug1447519
- Mozilla bug 1447519 - gfx.webrender.all could imply gfx.canvas.azure.accelerated:true on Linux
- https://svnweb.freebsd.org/ports/head/www/waterfox/files/patch-bug1447519?view=markup&pathrev=480899
- fails to apply cleanly
patch-bug1453127
- intended to address vulnerability CVE-2018-5156
- https://svnweb.freebsd.org/ports/head/www/waterfox/files/patch-bug1453127?view=markup&pathrev=480899
- set aside to prevent obscure crashing bug https://github.com/MrAlex94/Waterfox/issues/767
patch-bug1466606
- Mozilla bug 1466606 - Crash in mozilla::Maybe::ref (from TrackBuffersManager::GetNextRandomAccessPoint)
- https://svnweb.freebsd.org/ports/head/www/waterfox/files/patch-bug1466606?view=markup&pathrev=480899
- https://github.com/MrAlex94/Waterfox/commit/530933a750573b3bb2fa2f236b7a0376f0b411d6 and https://github.com/MrAlex94/Waterfox/commit/bc0a41faa1c62cb8daf29a12708a02478dd11330 (committed 2019-06-05)
Under https://github.com/MrAlex94/Waterfox/blob/11a3012d04715ee371a1d1a5909871f6c26e1e69/modules/libpref/init/all.js#L30 there is no #ifdef XP_UNIX
so be prepared to manually create user agent overrides (I use Custom UserAgent String).
Jan Beich, maintainer of www/waterfox (56.0–56.2.3)