This project is my experiment to build Firefox web browser on Haiku OS.
Official Build Instruction pulls the (partially-) pre built binaries to build the browser.
But, there is no such a pre-built binaries to use, because Haiku has not been a supported build environment yet.
We should follow the build process one of the tier-3 build targets, here I'll look in the FreeBSD's one.
-
- System preparation
- 1.1 Install Python
- 1.2 Install Mercurial
- Installed, but not used.
- Retrieved tar.xz
-
- Bootstrap a copy of the Firefox source code
Currently, the FreeBSD port targets the 112.0 version of Firefox.
But we'll target the current ESR version(102.9) (or older releases) if there is only old ports of prerequisites.
Build dependencies
- nspr>=4.32 : devel/nspr
- Haiku Depot: 4.34.1-3, nspr, nspr_devel
- Installing nspr_devel also installs nspr
- nss>=3.89 : security/nss
- Haiku Depot: 3.73.1-1, nss, nss_devel
- Older than requirement version 3.89, but maybe buildable because NSS's API doesn't change often.
- Installing nss_devel also installs nss
- icu>=72.1 : devel/icu
- Haiku Depot: 66.1-3, icu66, icu66_devel
- Older than requirement version 72.1, may require packaging newer version, but try using this.
- libevent>=2.1.8 : devel/libevent
- Haiku Depot: 2.1.12-2 libeevent, libevent_devel
Haiku Depot: 2.1.8-5 libevent21(no _devel package)- Haiku Depot: 4.33-1 libev, libev_devel
- FreeBSD uses libevent, but libev may be an option if it doesn't work well.
- harfbuzz>=7.1.0 : print/harfbuzz
- Haiku Depot: 4.0.0-3 harfbuzz, harfbuzz_devel
- Older than requirement version 7.1.0, may require packaging newer version, but try using this.
- graphite2>=1.3.14 : graphics/graphite2
- Haiku Depot: 1.3.14-2 graphite2, graphite2_devel
- png>=1.6.39 : graphics/png
- Haiku Depot: 1.6.38-2 libpng16, libpng16_devel
- Older than requirement version 1.6.39, may require packaging newer version, but try using this.
- dav1d>=1.0.0 : multimedia/dav1d
- Haiku Depot: 1.0.0-1 dav1d, dav1d_devel
- libvpx>=1.13.0 : multimedia/libvpx
- Haiku Depot: 1.11.0-3 libvpx, libvpx_devel
- Older than requirement version 1.13.0, may require packaging newer version, but try using this.
- py39-sqlite3>0 : databases/py-sqlite3@py39
- Haiku Depot: N/A
- Haiku Depot: apsw may be a replacement. But may require build or package ourself.
- v4l_compat>0 : multimedia/v4l_compat
- Haiku Depot: N/A
- Used by: libyuv, mozva
- autoconf2.13 : devel/autoconf2.13
- Haiku Depot: 2.13-3 autoconf213
- nasm : devel/nasm
- Haiku Depot: 2.14.02-2 nasm
- yasm : devel/yasm
- Haiku Depot: 1.3.0-5 yasm
- zip : archivers/zip
- Haiku Depot: 3.0-4 zip
- wasm deps
- libc++abi.a : devel/wasi-libcxx
- Haiku Depot: wasi N/A
- libc.a : devel/wasi-libc
- Haiku Depot: wasi N/A
- libclang_rt.builtins-wasm32.a : devel/wasi-compiler-rt13
- Haiku Depot: wasi N/A
- libc++abi.a : devel/wasi-libcxx
- llvm13>0 : devel/llvm13
- Haiku Depot: 12.0.1-5 llvm12
- Older than requirement version 13, may require packaging newer version, but try using this.
- rust-cbindgen>=0.24.3 : devel/rust-cbindgen
- Install manually from cargo.
Haiku Depot: 0.20.0-1 cbindgen- Older than requirement version 0.24.3, may require packaging newer version, but try using this.
- can't be used. see #4 (comment)
- rust>=1.68.0 : lang/rust
- Haiku Depot: 1.67.0-1 rust-bin
- Older than requirement version 1.68.0, may require packaging newer version, but try using this.
- node : www/node
- Haiku Depot: 16.11.1-1 nodejs16
- libnotify>0 : devel/libnotify
- Haiku Depot: 0.8.1-2 libnotify, libnotify_devel
- Installed with very large dependencies (including gtk3)
- cubeb(used for webrtc) deps
- jack.h : audio/jack
- Haiku Depot: N/A
- Used by: cubeb
- pulseaudio.h : audio/pulseaudio
- Haiku Depot: N/A
- Used by: libwebrtc, cubeb
- sndio.h : audio/sndio
- Haiku Depot: N/A
- Used by: cubeb
- Haiku has OSS ported
- jack.h : audio/jack
- gmake>=4.3 : devel/gmake
- Haiku Depot: 4.1-5 make
- Older than requirement version, may require packaging newer version, but try using this.
- pkgconf>=1.3.0_1 : devel/pkgconf
- Haiku Depot: 1.5.3-1 pkgconf, pkgconf_devel
- python3.9 : lang/python39
- Haiku Depot: 3.9.16 python3.9
- update-desktop-database : devel/desktop-file-utils
- x11 deps
- xorgproto>=0 : x11/xorgproto
- x11.pc : x11/libX11
- xcb.pc : x11/libxcb
- xcomposite.pc : x11/libXcomposite
- xdamage.pc : x11/libXdamage
- xext.pc : x11/libXext
- xfixes.pc : x11/libXfixes
- xrandr.pc : x11/libXrandr
- xrender.pc : x11/libXrender
- xt.pc : x11-toolkits/libXt
- xtst.pc : x11/libXtst
- perl5>=5.32.r0<5.33 : lang/perl5.32
- Haiku Depot: 5.32.1 perl
Runtime dependencies:
- libpci.so : devel/libpci
- Haiku Depot: 3.6.2-1 pciutils, pciutils_devel
- ffmpeg>=0.8,1 : multimedia/ffmpe
- Haiku Depot: 4.2.7 ffmpeg, ffmpeg_devel
- Haiku Depot: 5.1 ffmpeg5, ffmpeg5_devel
- update-desktop-database : devel/desktop-file-utils
- x11 deps
- x11.pc : x11/libX11
- xcb.pc : x11/libxcb
- xcomposite.pc : x11/libXcomposite
- xdamage.pc : x11/libXdamage
- xext.pc : x11/libXext
- xfixes.pc : x11/libXfixes
- xrandr.pc : x11/libXrandr
- xrender.pc : x11/libXrender
- xt.pc : x11-toolkits/libXt
- xtst.pc : x11/libXtst
Library dependencies:
- libdrm.so : graphics/libdrm
- libepoll-shim.so : devel/libepoll-shim
- N/A
- epoll like API not available yet https://discuss.haiku-os.org/t/kqueue-vs-epoll/10820
- libfontconfig.so : x11-fonts/fontconfig
- Haiku Depot: 2.13.96-2 fontconfig, fontconfig_devel
- libfreetype.so : print/freetype2
- Haiku Depot: 2.12.1-3 freetype, freetype_devel
- libaom.so : multimedia/aom
- libdav1d.so : multimedia/dav1d
- Haiku Depot: 1.0.0-1 dav1d, dav1d_devel
- libevent.so : devel/libevent
- Haiku Depot: 2.1.12-2 libeevent, libevent_devel
- libffi.so : devel/libffi
- Haiku Depot: 3.4.2-2 libffi, libffi_devel
- libgraphite2.so : graphics/graphite2
- Haiku Depot: 1.3.14-2 graphite2, graphite2_devel
- libharfbuzz.so : print/harfbuzz
- Haiku Depot: 4.0.0-3 harfbuzz, harfbuzz_devel
- libicui18n.so : devel/icu
- Haiku Depot: 66.1-3, icu66, icu66_devel
- libnspr4.so : devel/nspr
- Haiku Depot: 4.34.1-3, nspr, nspr_devel
- libnss3.so : security/nss
- Haiku Depot: 3.73.1-1, nss, nss_devel
- libpng.so : graphics/png
- Haiku Depot: 1.6.38-2 libpng16, libpng16_devel
- libpixman-1.so : x11/pixman
- Haiku Depot: 0.38.4-2 pixman, pixman_devel
- libvpx.so : multimedia/libvpx
- Haiku Depot: 1.11.0-3 libvpx, libvpx_devel
- libwebp.so : graphics/webp
- Haiku Depot: 1.2.4-2 libwebp, libwebp_devel
- libdbus-1.so : devel/dbus
- Haiku Depot: 1.12.20-5 dbus, dbus_devel
- libdbus-glib-1.so : devel/dbus-glib
- Haiku Depot: 0.110-2 dbus_glib, dbus_glib_devel
- libGL.so : graphics/libglvnd
- libatk-1.0.so : accessibility/at-spi2-core
- Haiku Depot: 2.38.0-2 atk, atk_devel
- libcairo.so : graphics/cairo
- Haiku Depot: 1.16.0-5 cairo, cairo_devel
- libgdk_pixbuf-2.0.so : graphics/gdk-pixbuf2
- Haiku Depot: 2.42.9-4 gdk_pixbuf, gdk_pixbuf_devel
- libglib-2.0.so : devel/glib20
- Haiku Depot: 2.75.1-1 lib2, glib2_devel
- libintl.so : devel/gettext-runtime
- Haiku Depot: 0.21.1-3 gettext_libintl
- libgtk-3.so : x11-toolkits/gtk30
- Haiku Depot: 3.24.36-1 gtk3, gtk3_devel
- libpango-1.0.so : x11-toolkits/pango
- Haiku Depot: 1.50.7-2 pango, pango_devel
- libjpeg.so : graphics/jpeg-turbo
- Haiku Depot: 2.1.4-2 libjpeg_turbo, libjpeg_turbo_devel
~/src/kitsune-be> diff -u rel.txt esr.txt
--- rel.txt 2023-04-05 06:15:35.298844160 +0900
+++ esr.txt 2023-04-05 06:15:02.116129792 +0900
@@ -1,13 +1,13 @@
Build dependencies:
nspr>=4.32 : devel/nspr
-nss>=3.89 : security/nss
-icu>=72.1 : devel/icu
+nss>=3.79.1 : security/nss
+icu>=71.1,1 : devel/icu
libevent>=2.1.8 : devel/libevent
-harfbuzz>=7.1.0 : print/harfbuzz
+harfbuzz>=4.1.0 : print/harfbuzz
graphite2>=1.3.14 : graphics/graphite2
-png>=1.6.39 : graphics/png
+png>=1.6.37 : graphics/png
dav1d>=1.0.0 : multimedia/dav1d
-libvpx>=1.13.0 : multimedia/libvpx
+libvpx>=1.11.0 : multimedia/libvpx
py39-sqlite3>0 : databases/py-sqlite3@py39
v4l_compat>0 : multimedia/v4l_compat
autoconf2.13 : devel/autoconf2.13
- Official Linux Build Instruction
- FreeBSD ports