Skip to content

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):

  1. cd /usr/local/poudriere/ports/default
  2. rm -r www/waterfox
  3. svn checkout svn://svn.freebsd.org/ports/head/www/waterfox@480899 www/waterfox
  4. echo 'USE_MOZILLA += -vpx' > www/waterfox/Makefile.local
  5. sed -i '' 's/www\/waterfox/#\ www\/waterfox/' MOVED
  6. grep 2018-09-29 MOVED
  7. sed -i '' 's/56\.2\.3/56.2.14/; /PORTREVISION/d' www/waterfox/Makefile
  8. make makesum -C www/waterfox
  9. note any vulnerability – refer to https://vuxml.freebsd.org/freebsd/pkg-waterfox.html
  10. make DISABLE_VULNERABILITIES=yes makesum -C www/waterfox
  11. mkdir -p www/waterfox/files/setaside/
  12. 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/ \;
  13. ls -hl www/waterfox/files/setaside/
  14. note the settting aside of patches
  15. wget --output-document=www/waterfox/files/patch-bug1575876 https://gist.github.com/grahamperrin/b8ac515b57a52a9aaa00d6ecf268fe81/raw/f8393c40d68f86365209ac3bf1eb4d4d802635bc/patch-bug1575876
  16. patch /usr/local/poudriere/ports/default/Mk/bsd.gecko.mk as shown at https://lists.freebsd.org/pipermail/freebsd-gecko/2019-April/009256.html
  17. poudriere bulk -C -j head www/waterfox

Additional patch

patch-bug1575876

Patches set aside

patch-config-baseconfig.mk

patch-bug1384121

  • fails to apply cleanly (56.2.14)

patch-bug1393235

patch-bug1395486

patch-bug1433747

patch-bug1447519

patch-bug1453127

patch-bug1466606

After installing

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).

Special thanks

Jan Beich, maintainer of www/waterfox (56.0–56.2.3)