diff --git a/mail/thunderbird-esr/Makefile b/mail/thunderbird-esr/Makefile index db233868a07d..c649be43a364 100644 --- a/mail/thunderbird-esr/Makefile +++ b/mail/thunderbird-esr/Makefile @@ -1,73 +1,74 @@ PORTNAME= thunderbird DISTVERSION= 140.10.2 +PORTREVISION= 1 CATEGORIES= mail news net-im wayland MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \ MOZILLA/${PORTNAME}/candidates/${DISTVERSION}esr-candidates/build2/source PKGNAMESUFFIX= -esr DISTFILES= ${DISTNAME}esr.source${EXTRACT_SUFX} MAINTAINER= gecko@FreeBSD.org COMMENT= Mozilla Thunderbird is standalone mail and news that stands above WWW= https://www.thunderbird.net/ BUILD_DEPENDS= nspr>=4.32:devel/nspr \ nss>=3.112:security/nss \ libevent>=2.1.8:devel/libevent \ harfbuzz>=10.1.0:print/harfbuzz \ graphite2>=1.3.14:graphics/graphite2 \ png>=1.6.45:graphics/png \ dav1d>=1.0.0:multimedia/dav1d \ libvpx>=1.15.0:multimedia/libvpx \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ v4l_compat>0:multimedia/v4l_compat \ nasm:devel/nasm \ yasm:devel/yasm \ zip:archivers/zip \ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc++abi.a:devel/wasi-libcxx${LLVM_VERSION} \ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc.a:devel/wasi-libc@${LLVM_VERSION} \ wasi-compiler-rt${LLVM_VERSION}>0:devel/wasi-compiler-rt${LLVM_VERSION} LIB_DEPENDS= libjson-c.so:devel/json-c USE_GECKO= gecko CPE_PRODUCT= ${PORTNAME}_esr CONFLICTS_INSTALL= thunderbird # cannot use system icu: calendar is completely broken by # https://unicode-org.atlassian.net/browse/ICU-22132 (fix not in 76.1) USE_MOZILLA= -icu -sqlite CFLAGS_powerpc64le= -DSQLITE_BYTEORDER=1234 USES= tar:xz MOZ_OPTIONS= --enable-application=comm/mail --enable-official-branding MOZ_OPTIONS+= --with-system-bz2 --with-system-jsonc MOZ_OPTIONS+= --with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot MOZ_MK_OPTIONS= MOZ_THUNDERBIRD=1 MAIL_PKG_SHARED=1 MOZ_EXPORT= MOZ_THUNDERBIRD=1 MAIL_PKG_SHARED=1 PORTNAME_ICON= ${MOZILLA}.png PORTNAME_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/chrome/icons/default/default48.png SYSTEM_PREFS= ${FAKEDIR}/lib/${PORTNAME}/defaults/pref/${PORTNAME}.js OPTIONS_DEFAULT=CANBERRA .include "${.CURDIR}/../../www/firefox/Makefile.options" post-extract: @${SED} -e 's|@PORTNAME_ICON@|${PORTNAME_ICON:R}|;s|@MOZILLA@|${MOZILLA}|' \ <${FILESDIR}/thunderbird.desktop.in >${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/comm/mail/app/nsMailApp.cpp @${REINPLACE_CMD} -e 's|wasm32-wasi|&p1|' \ ${WRKSRC}/build/moz.configure/toolchain.configure port-pre-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/defaults post-install: ${INSTALL_DATA} ${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop ${STAGEDIR}${PREFIX}/share/applications ${LN} -sf ${PORTNAME_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME_ICON} .include diff --git a/mail/thunderbird-esr/files/patch-dns-resolve-https-rr b/mail/thunderbird-esr/files/patch-dns-resolve-https-rr new file mode 100644 index 000000000000..e00af766c62a --- /dev/null +++ b/mail/thunderbird-esr/files/patch-dns-resolve-https-rr @@ -0,0 +1,34 @@ +commit be323da0618d99573ef61a096fa4ae1b147378d9 +Author: Christoph Moench-Tegeder + + enable resolving HTTPS RRs via the OS's resolver on FreeBSD + + see RFC 9460 https://www.rfc-editor.org/rfc/rfc9460 for details + on HTTPS RRs. + +diff --git netwerk/dns/moz.build netwerk/dns/moz.build +index b2456d23a6df..3785da5d6e87 100644 +--- netwerk/dns/moz.build ++++ netwerk/dns/moz.build +@@ -58,6 +58,8 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows": + elif CONFIG["OS_TARGET"] == "Linux": + SOURCES += ["PlatformDNSUnix.cpp"] + OS_LIBS += ["resolv"] ++elif CONFIG["OS_TARGET"] == "FreeBSD": ++ SOURCES += ["PlatformDNSUnix.cpp"] + elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa": + SOURCES += ["PlatformDNSMac.cpp"] + elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android": +diff --git netwerk/dns/nsHostResolver.cpp netwerk/dns/nsHostResolver.cpp +index b7e3763ffeb5..a36edf32dc76 100644 +--- netwerk/dns/nsHostResolver.cpp ++++ netwerk/dns/nsHostResolver.cpp +@@ -213,7 +213,7 @@ nsresult nsHostResolver::Init() MOZ_NO_THREAD_SAFETY_ANALYSIS { + #elif defined(MOZ_WIDGET_ANDROID) + // android_res_nquery only got added in API level 29 + sNativeHTTPSSupported = jni::GetAPIVersion() >= 29; +-#elif defined(XP_LINUX) || defined(XP_MACOSX) ++#elif defined(XP_LINUX) || defined(XP_MACOSX) || defined(XP_FREEBSD) + sNativeHTTPSSupported = true; + #endif + LOG(("Native HTTPS records supported=%d", bool(sNativeHTTPSSupported))); diff --git a/mail/thunderbird/Makefile b/mail/thunderbird/Makefile index ae47a1600b3e..9ea82d73b668 100644 --- a/mail/thunderbird/Makefile +++ b/mail/thunderbird/Makefile @@ -1,73 +1,74 @@ PORTNAME= thunderbird DISTVERSION= 150.0.2 +PORTREVISION= 1 CATEGORIES= mail news net-im wayland MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}${DISTVERSIONSUFFIX}/source \ MOZILLA/${PORTNAME}/candidates/${DISTVERSION}${DISTVERSIONSUFFIX}-candidates/build1/source DISTFILES= ${DISTNAME}.source${EXTRACT_SUFX} MAINTAINER= gecko@FreeBSD.org COMMENT= Mozilla Thunderbird is standalone mail and news that stands above WWW= https://www.thunderbird.net/ BUILD_DEPENDS= nspr>=4.32:devel/nspr \ nss>=3.122.2:security/nss \ libevent>=2.1.8:devel/libevent \ harfbuzz>=10.1.0:print/harfbuzz \ graphite2>=1.3.14:graphics/graphite2 \ png>=1.6.45:graphics/png \ dav1d>=1.0.0:multimedia/dav1d \ libvpx>=1.15.0:multimedia/libvpx \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ v4l_compat>0:multimedia/v4l_compat \ nasm:devel/nasm \ yasm:devel/yasm \ zip:archivers/zip \ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc++abi.a:devel/wasi-libcxx${LLVM_VERSION} \ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc.a:devel/wasi-libc@${LLVM_VERSION} \ wasi-compiler-rt${LLVM_VERSION}>0:devel/wasi-compiler-rt${LLVM_VERSION} LIB_DEPENDS= libjson-c.so:devel/json-c USE_GECKO= gecko CONFLICTS_INSTALL= thunderbird-esr # cannot use system icu: calendar is completely broken by # https://unicode-org.atlassian.net/browse/ICU-22132 (fix not in 76.1) USE_MOZILLA= -icu -sqlite CFLAGS_powerpc64le= -DSQLITE_BYTEORDER=1234 USES= tar:xz # helpful when testing beta WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} MOZ_OPTIONS= --enable-application=comm/mail --enable-official-branding MOZ_OPTIONS+= --with-system-bz2 --with-system-jsonc MOZ_OPTIONS+= --with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot MOZ_MK_OPTIONS= MOZ_THUNDERBIRD=1 MAIL_PKG_SHARED=1 MOZ_EXPORT= MOZ_THUNDERBIRD=1 MAIL_PKG_SHARED=1 PORTNAME_ICON= ${MOZILLA}.png PORTNAME_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/chrome/icons/default/default48.png SYSTEM_PREFS= ${FAKEDIR}/lib/${PORTNAME}/defaults/pref/${PORTNAME}.js OPTIONS_DEFAULT=CANBERRA .include "${.CURDIR}/../../www/firefox/Makefile.options" post-extract: @${SED} -e 's|@PORTNAME_ICON@|${PORTNAME_ICON:R}|;s|@MOZILLA@|${MOZILLA}|' \ <${FILESDIR}/thunderbird.desktop.in >${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/comm/mail/app/nsMailApp.cpp @${REINPLACE_CMD} -e 's|wasm32-wasi|&p1|' \ ${WRKSRC}/build/moz.configure/toolchain.configure port-pre-install: ${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/defaults post-install: ${INSTALL_DATA} ${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop ${STAGEDIR}${PREFIX}/share/applications ${LN} -sf ${PORTNAME_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME_ICON} .include diff --git a/mail/thunderbird/files/patch-dns-resolve-https-rr b/mail/thunderbird/files/patch-dns-resolve-https-rr new file mode 100644 index 000000000000..b0517900dd0a --- /dev/null +++ b/mail/thunderbird/files/patch-dns-resolve-https-rr @@ -0,0 +1,34 @@ +commit c6452bc491ef6b531ae4e948926bd8d863ad1fc3 +Author: Christoph Moench-Tegeder + + enable resolving HTTPS RRs via the OS's resolver on FreeBSD + + see RFC 9460 https://www.rfc-editor.org/rfc/rfc9460 for details + on HTTPS RRs. + +diff --git netwerk/dns/moz.build netwerk/dns/moz.build +index 2369794f2407..7e3bff4b5092 100644 +--- netwerk/dns/moz.build ++++ netwerk/dns/moz.build +@@ -56,6 +56,8 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows": + elif CONFIG["OS_TARGET"] == "Linux": + SOURCES += ["PlatformDNSUnix.cpp"] + OS_LIBS += ["resolv"] ++elif CONFIG["OS_TARGET"] == "FreeBSD": ++ SOURCES += ["PlatformDNSUnix.cpp"] + elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa": + SOURCES += ["PlatformDNSMac.cpp"] + elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android": +diff --git netwerk/dns/nsHostResolver.cpp netwerk/dns/nsHostResolver.cpp +index 2ef4006a3b17..29c4c7cf5730 100644 +--- netwerk/dns/nsHostResolver.cpp ++++ netwerk/dns/nsHostResolver.cpp +@@ -175,7 +175,7 @@ nsresult nsHostResolver::Init() MOZ_NO_THREAD_SAFETY_ANALYSIS { + #elif defined(MOZ_WIDGET_ANDROID) + // android_res_nquery only got added in API level 29 + sNativeHTTPSSupported = jni::GetAPIVersion() >= 29; +-#elif defined(XP_LINUX) || defined(XP_MACOSX) ++#elif defined(XP_LINUX) || defined(XP_MACOSX) || defined(XP_FREEBSD) + sNativeHTTPSSupported = true; + #endif + LOG(("Native HTTPS records supported=%d", bool(sNativeHTTPSSupported))); diff --git a/www/firefox-esr/Makefile b/www/firefox-esr/Makefile index f5dddf535689..2a00e4fc5a14 100644 --- a/www/firefox-esr/Makefile +++ b/www/firefox-esr/Makefile @@ -1,66 +1,67 @@ PORTNAME= firefox DISTVERSION= 140.10.2 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= www wayland MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}esr/source \ MOZILLA/${PORTNAME}/candidates/${DISTVERSION}esr-candidates/build1/source PKGNAMESUFFIX= -esr DISTFILES= ${DISTNAME}esr.source${EXTRACT_SUFX} MAINTAINER= gecko@FreeBSD.org COMMENT= Web browser based on the browser portion of Mozilla WWW= https://www.firefox.com/ BUILD_DEPENDS= nspr>=4.32:devel/nspr \ nss>=3.112:security/nss \ icu>=76.1,1:devel/icu \ libevent>=2.1.8:devel/libevent \ harfbuzz>=10.1.0:print/harfbuzz \ graphite2>=1.3.14:graphics/graphite2 \ png>=1.6.45:graphics/png \ dav1d>=1.0.0:multimedia/dav1d \ libvpx>=1.14.0:multimedia/libvpx \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ v4l_compat>0:multimedia/v4l_compat \ autoconf2.13:devel/autoconf2.13 \ nasm:devel/nasm \ yasm:devel/yasm \ zip:archivers/zip \ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc++abi.a:devel/wasi-libcxx${LLVM_VERSION} \ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc.a:devel/wasi-libc@${LLVM_VERSION} \ wasi-compiler-rt${LLVM_VERSION}>0:devel/wasi-compiler-rt${LLVM_VERSION} USE_GECKO= gecko CPE_PRODUCT= ${PORTNAME}_esr CONFLICTS_INSTALL= firefox USE_MOZILLA= -sqlite CFLAGS_powerpc64le= -DSQLITE_BYTEORDER=1234 CONFIGURE_ENV+= BINDGEN_CFLAGS="-I${LOCALBASE}/include" USES= tar:xz FIREFOX_ICON= ${MOZILLA}.png FIREFOX_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/browser/chrome/icons/default/default48.png FIREFOX_DESKTOP= ${MOZSRC}/taskcluster/docker/${MOZILLA}-snap/${MOZILLA}.desktop MOZ_OPTIONS= --enable-application=browser \ --enable-official-branding \ --with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot .include "${.CURDIR}/../../www/firefox/Makefile.options" post-extract: @${SED} -e 's|@FIREFOX_ICON@|${FIREFOX_ICON:R}|;s|@MOZILLA@|${MOZILLA}|' \ <${FILESDIR}/firefox.desktop.in >${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/browser/app/nsBrowserApp.cpp @${REINPLACE_CMD} -e 's|wasm32-wasi|&p1|' \ ${WRKSRC}/build/moz.configure/toolchain.configure post-install: ${INSTALL_DATA} ${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop ${STAGEDIR}${PREFIX}/share/applications ${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps ${LN} -sf ${FIREFOX_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${FIREFOX_ICON} .include diff --git a/www/firefox-esr/files/patch-dns-resolve-https-rr b/www/firefox-esr/files/patch-dns-resolve-https-rr new file mode 100644 index 000000000000..e00af766c62a --- /dev/null +++ b/www/firefox-esr/files/patch-dns-resolve-https-rr @@ -0,0 +1,34 @@ +commit be323da0618d99573ef61a096fa4ae1b147378d9 +Author: Christoph Moench-Tegeder + + enable resolving HTTPS RRs via the OS's resolver on FreeBSD + + see RFC 9460 https://www.rfc-editor.org/rfc/rfc9460 for details + on HTTPS RRs. + +diff --git netwerk/dns/moz.build netwerk/dns/moz.build +index b2456d23a6df..3785da5d6e87 100644 +--- netwerk/dns/moz.build ++++ netwerk/dns/moz.build +@@ -58,6 +58,8 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows": + elif CONFIG["OS_TARGET"] == "Linux": + SOURCES += ["PlatformDNSUnix.cpp"] + OS_LIBS += ["resolv"] ++elif CONFIG["OS_TARGET"] == "FreeBSD": ++ SOURCES += ["PlatformDNSUnix.cpp"] + elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa": + SOURCES += ["PlatformDNSMac.cpp"] + elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android": +diff --git netwerk/dns/nsHostResolver.cpp netwerk/dns/nsHostResolver.cpp +index b7e3763ffeb5..a36edf32dc76 100644 +--- netwerk/dns/nsHostResolver.cpp ++++ netwerk/dns/nsHostResolver.cpp +@@ -213,7 +213,7 @@ nsresult nsHostResolver::Init() MOZ_NO_THREAD_SAFETY_ANALYSIS { + #elif defined(MOZ_WIDGET_ANDROID) + // android_res_nquery only got added in API level 29 + sNativeHTTPSSupported = jni::GetAPIVersion() >= 29; +-#elif defined(XP_LINUX) || defined(XP_MACOSX) ++#elif defined(XP_LINUX) || defined(XP_MACOSX) || defined(XP_FREEBSD) + sNativeHTTPSSupported = true; + #endif + LOG(("Native HTTPS records supported=%d", bool(sNativeHTTPSSupported))); diff --git a/www/firefox/Makefile b/www/firefox/Makefile index 3f80f660dc8f..a71856851d55 100644 --- a/www/firefox/Makefile +++ b/www/firefox/Makefile @@ -1,65 +1,65 @@ PORTNAME= firefox DISTVERSION= 150.0.2 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 2 CATEGORIES= www wayland MASTER_SITES= MOZILLA/${PORTNAME}/releases/${DISTVERSION}${DISTVERSIONSUFFIX}/source \ MOZILLA/${PORTNAME}/candidates/${DISTVERSION}${DISTVERSIONSUFFIX}-candidates/build2/source DISTFILES= ${DISTNAME}.source${EXTRACT_SUFX} MAINTAINER= gecko@FreeBSD.org COMMENT= Web browser based on the browser portion of Mozilla WWW= https://www.firefox.com/ BUILD_DEPENDS= nspr>=4.32:devel/nspr \ nss>=3.122.2:security/nss \ libevent>=2.1.8:devel/libevent \ harfbuzz>=10.1.0:print/harfbuzz \ graphite2>=1.3.14:graphics/graphite2 \ png>=1.6.45:graphics/png \ dav1d>=1.0.0:multimedia/dav1d \ libvpx>=1.15.0:multimedia/libvpx \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \ v4l_compat>0:multimedia/v4l_compat \ nasm:devel/nasm \ yasm:devel/yasm \ zip:archivers/zip \ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc++abi.a:devel/wasi-libcxx${LLVM_VERSION} \ ${LOCALBASE}/share/wasi-sysroot/lib/wasm32-wasip1/libc.a:devel/wasi-libc@${LLVM_VERSION} \ wasi-compiler-rt${LLVM_VERSION}>0:devel/wasi-compiler-rt${LLVM_VERSION} USE_GECKO= gecko CONFLICTS_INSTALL= firefox-esr USE_MOZILLA= -sqlite # work around bindgen not finding ICU, e.g. # dist/include/mozilla/intl/ICU4CGlue.h:8:10: fatal error: 'unicode/uenum.h' file not found, err: true CONFIGURE_ENV+= BINDGEN_CFLAGS="-I${LOCALBASE}/include" USES= tar:xz # helpful when testing beta WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} FIREFOX_ICON= ${MOZILLA}.png FIREFOX_ICON_SRC= ${PREFIX}/lib/${MOZILLA}/browser/chrome/icons/default/default48.png MOZ_OPTIONS= --enable-application=browser \ --enable-official-branding \ --with-wasi-sysroot=${LOCALBASE}/share/wasi-sysroot .include "${.CURDIR}/../../www/firefox/Makefile.options" post-extract: @${SED} -e 's|@FIREFOX_ICON@|${FIREFOX_ICON:R}|;s|@MOZILLA@|${MOZILLA}|' \ <${FILESDIR}/firefox.desktop.in >${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop post-patch: @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/browser/app/nsBrowserApp.cpp @${REINPLACE_CMD} -e 's|wasm32-wasi|&p1|' \ ${WRKSRC}/build/moz.configure/toolchain.configure post-install: ${INSTALL_DATA} ${WRKDIR}/${MOZILLA_EXEC_NAME}.desktop ${STAGEDIR}${PREFIX}/share/applications ${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps ${LN} -sf ${FIREFOX_ICON_SRC} ${STAGEDIR}${PREFIX}/share/pixmaps/${FIREFOX_ICON} .include diff --git a/www/firefox/files/patch-dns-resolve-https-rr b/www/firefox/files/patch-dns-resolve-https-rr new file mode 100644 index 000000000000..b0517900dd0a --- /dev/null +++ b/www/firefox/files/patch-dns-resolve-https-rr @@ -0,0 +1,34 @@ +commit c6452bc491ef6b531ae4e948926bd8d863ad1fc3 +Author: Christoph Moench-Tegeder + + enable resolving HTTPS RRs via the OS's resolver on FreeBSD + + see RFC 9460 https://www.rfc-editor.org/rfc/rfc9460 for details + on HTTPS RRs. + +diff --git netwerk/dns/moz.build netwerk/dns/moz.build +index 2369794f2407..7e3bff4b5092 100644 +--- netwerk/dns/moz.build ++++ netwerk/dns/moz.build +@@ -56,6 +56,8 @@ if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows": + elif CONFIG["OS_TARGET"] == "Linux": + SOURCES += ["PlatformDNSUnix.cpp"] + OS_LIBS += ["resolv"] ++elif CONFIG["OS_TARGET"] == "FreeBSD": ++ SOURCES += ["PlatformDNSUnix.cpp"] + elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "cocoa": + SOURCES += ["PlatformDNSMac.cpp"] + elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "android": +diff --git netwerk/dns/nsHostResolver.cpp netwerk/dns/nsHostResolver.cpp +index 2ef4006a3b17..29c4c7cf5730 100644 +--- netwerk/dns/nsHostResolver.cpp ++++ netwerk/dns/nsHostResolver.cpp +@@ -175,7 +175,7 @@ nsresult nsHostResolver::Init() MOZ_NO_THREAD_SAFETY_ANALYSIS { + #elif defined(MOZ_WIDGET_ANDROID) + // android_res_nquery only got added in API level 29 + sNativeHTTPSSupported = jni::GetAPIVersion() >= 29; +-#elif defined(XP_LINUX) || defined(XP_MACOSX) ++#elif defined(XP_LINUX) || defined(XP_MACOSX) || defined(XP_FREEBSD) + sNativeHTTPSSupported = true; + #endif + LOG(("Native HTTPS records supported=%d", bool(sNativeHTTPSSupported)));