2de984092b
Pkgsrc changes: * Checksum changes. * Minor adjustment to patches. Upstream changes: 102.8.0: New: - Added option to build RNP library with OpenSSL backend (use "--with-librnp-backend=openssl" configure option) Changes: - Thunderbird now warns user that OpenPGP is disabled if RNP library is outdated or missing Fixes: - "Get Messages" did not retrieve messages from Gmail accounts using a local folder as a deferred inbox - Various visual and UX improvements Security fixes: CVE-2023-0616: User Interface lockup with messages combining S/MIME and OpenPGP CVE-2023-25728: Content security policy leak in violation reports using iframes CVE-2023-25730: Screen hijack via browser fullscreen mode CVE-2023-0767: Arbitrary memory write via PKCS 12 in NSS CVE-2023-25735: Potential use-after-free from compartment mismatch in SpiderMonkey CVE-2023-25737: Invalid downcast in SVGUtils::SetupStrokeGeometry CVE-2023-25738: Printing on Windows could potentially crash Thunderbird with some device drivers CVE-2023-25739: Use-after-free in mozilla::dom::ScriptLoadContext::~ScriptLoadContext CVE-2023-25729: Extensions could have opened external schemes withotu user knowledge CVE-2023-25732: Out of bounds memory write from EncodeInputStream CVE-2023-25734: Opening local.url files could cause unexpected network loads CVE-2023-25742: Web Crypto ImportKey crashes tab CVE-2023-25746: Memory safety bugs fixed in Thunderbird 102.8 102.7.2: Fixes: - Various crash fixes 102.7.1: Fixes: - Microsoft Office 365 accounts were unable to authenticate - Switching identities caused remote images in HTML signatures to not be shown - Thunderbird failed to import vCards that contained "\r\r\n" line endings - Contribution button for add-ons opened Contribution page in a Thunderbird tab, instead of the external browser - XMPP did not respond to unrecognized IQ queries, causing some servers to close the connection - Window titlebar buttons (minimize/maximize/close) were not displayed in Windows 10 "Dark" color mode Security fixes: CVE-2023-0430: Revocations tatus of S/Mime signature certificates was not checked 102.7.0: New: - Enterprise policies now support Thunderbird-specific preferences. Fixes: - Localized builds and langpacks now use "comm-l10n" repository; downstream builds using official langpacks should not need to make changes - Having too many folders open at startup caused loss of MSF files - Copying an email from one local folder to another local folder sometimes caused "Another Operation is using the folder" error on Windows 7 - Email address pill allowed for incorrectly formatted email addresses - Creating security exceptions for messages sent using a self-signed certificate failed if hostname contained uppercase letters - S/MIME certificate verification was prohibitively slow - OpenPGP key import failed for key blocks with comments that contain Unicode characters - Chat conversation sidebar was too wide under certain circumstances, making scrollbar unusable - On Mac, deleting events from Today Pane with "Backspace" key deleted selected messages instead Security fixes: CVE-2022-46871: libusrsctp library out of date CVE-2023-23598: Arbitrary file read from GTK drag and drop on Linux CVE-2023-23599: Malicious command could be hidden in devtools output on Windows CVE-2023-23601: URL being dragged from cross-origin iframe into same tab triggers navigation CVE-2023-23602: Content Security Policy wasn't being correctly applied to WebSockets in WebWorkers CVE-2022-46877: Fullscreen notification bypass CVE-2023-23603: Calls to console.log allowed bypassing Content Security Policy via format directive CVE-2023-23605: Memory safety bugs fixed in Thunderbird 102.7 Known issues: - OAuth2 authentication not working for Microsoft 365 Enterprise accounts. See the Blog post (https://blog.thunderbird.net/2023/01/important-message-for-microsoft-office-365-enterprise-users/) for additional information. Bug 1810760
116 lines
4.1 KiB
Makefile
116 lines
4.1 KiB
Makefile
# $NetBSD: Makefile,v 1.293 2023/02/16 18:11:40 he Exp $
|
|
|
|
DISTNAME= thunderbird-${TB_VER}.source
|
|
PKGNAME= thunderbird-${TB_VER}
|
|
TB_VER= 102.8.0
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA:=thunderbird/releases/${TB_VER}/source/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.thunderbird.net/en-US/
|
|
COMMENT= Organize, secure and customize your mail
|
|
LICENSE= mpl-1.1
|
|
|
|
USE_TOOLS+= unzip pax
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/.source//}
|
|
MOZILLA_DIR= # empty
|
|
PLIST_SRC+= ${PLIST_SRC_DFLT}
|
|
|
|
DEPENDS+= libotr-[0-9]*:../../chat/libotr
|
|
|
|
ALL_ENV+= MOZ_APP_NAME=${MOZILLA_NAME}
|
|
|
|
CONFIG_GUESS_OVERRIDE+= comm/ldap/sdks/c-sdk/config/autoconf/config.guess
|
|
CONFIG_SUB_OVERRIDE+= comm/ldap/sdks/c-sdk/config/autoconf/config.sub
|
|
|
|
CONFIGURE_ARGS+= --enable-application=comm/mail
|
|
# Disable WebRTC support for Thunderbird unconditionally.
|
|
CONFIGURE_ARGS+= --disable-webrtc
|
|
CONFIGURE_ARGS+= --with-app-name=${MOZILLA_NAME}
|
|
|
|
NOT_PAX_MPROTECT_SAFE+= lib/${MOZILLA_NAME}/${MOZILLA_NAME}
|
|
NOT_PAX_MPROTECT_SAFE+= lib/${MOZILLA_NAME}/${MOZILLA_NAME}-bin
|
|
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/${MOZILLA_NAME}
|
|
|
|
# Workaround for https://bugs.llvm.org/show_bug.cgi?id=46366
|
|
BUILDLINK_TRANSFORM.NetBSD+= rm:-fexperimental-new-pass-manager
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
CHECK_WRKREF_SKIP+= lib/${MOZILLA_NAME}/chrome/toolkit/content/global/buildconfig.html
|
|
CHECK_WRKREF_SKIP+= lib/${MOZILLA_NAME}/chrome/messenger/content/messenger/buildconfig.html
|
|
|
|
#
|
|
# Generate list of subst entries for various .cargo-checksum.json files. These
|
|
# are all handled together in one big substitution to simplify things rather
|
|
# than one substitution entry per file, but are kept separate below to ease
|
|
# updating and verification.
|
|
#
|
|
|
|
CKSUM_CRATES+= third_party/rust/libc
|
|
|
|
# patch-third__party_rust_libc_src_unix_bsd_netbsdlike_netbsd_mod.rs
|
|
CKSUMS+= cb1560bf8ffcc7b2726a27b433efac90e726292960626f3064bd2c6b7f861a55
|
|
CKSUMS+= 1159c20556ff4f50b7140ef4e7f5ac63e3098d9117784794c944228fa7460efb
|
|
|
|
#CKSUM_CRATES+= third_party/rust/getrandom
|
|
|
|
# patch-third__party_rust_getrandom_src_lib.rs
|
|
#CKSUMS+= 0e52f6bde42d7bb05c297ce1c25b9879d61b28caba98f6226a152bff538db6c2
|
|
#CKSUMS+= 394425b4ba03c21c494e64d993678f7014575b1e3d590b9ee452b5c2d83ec4ac
|
|
|
|
SUBST_CLASSES+= cksum
|
|
SUBST_STAGE.cksum= pre-configure
|
|
.for crate in ${CKSUM_CRATES}
|
|
SUBST_FILES.cksum+= ${crate}/.cargo-checksum.json
|
|
.endfor
|
|
.for from to in ${CKSUMS}
|
|
SUBST_SED.cksum+= -e 's,${from},${to},g'
|
|
.endfor
|
|
|
|
SUBST_CLASSES+= netbsdtag
|
|
SUBST_STAGE.netbsdtag= pre-configure
|
|
SUBST_FILES.netbsdtag= comm/third_party/rnp/src/librekey/key_store_pgp.cpp
|
|
SUBST_SED.netbsdtag= -e 's/__NetBSD__/__NEVER__/'
|
|
|
|
post-extract:
|
|
${CP} ${FILESDIR}/cubeb_sun.c ${WRKSRC}/media/libcubeb/src/cubeb_sun.c
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && mkdir ${OBJDIR}
|
|
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} autoconf-2.13
|
|
cd ${WRKSRC}${MOZILLA_DIR} && ${SETENV} ${CONFIGURE_ENV} autoconf-2.13
|
|
cd ${WRKSRC}${MOZILLA_DIR}/js/src && ${SETENV} ${CONFIGURE_ENV} autoconf-2.13
|
|
touch ${WRKSRC}/.mozconfig
|
|
|
|
do-build:
|
|
# XXX for some reason it doesn't work unless -j is explicitly specified
|
|
${_ULIMIT_CMD} cd ${WRKSRC}/${OBJDIR} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} -j${_MAKE_JOBS_N:U1}
|
|
|
|
MOZILLA= thunderbird
|
|
MOZILLA_NAME= ${PKGBASE}
|
|
post-build:
|
|
${SED} -e 's|@MOZILLA@|${MOZILLA}|g' \
|
|
-e 's|@MOZILLA_NAME@|${MOZILLA_NAME}|g' \
|
|
-e 's|@MOZILLA_ICON@|${MOZILLA_NAME}.png|g' \
|
|
< ${FILESDIR}/desktop.in \
|
|
> ${WRKDIR}/desktop
|
|
|
|
INSTALLATION_DIRS+= lib/${MOZILLA_NAME}/extensions
|
|
INSTALLATION_DIRS+= share/applications share/pixmaps
|
|
post-install:
|
|
${ECHO} '#! /bin/sh' > ${DESTDIR}${PREFIX}/bin/${MOZILLA_NAME}
|
|
${ECHO} '${PREFIX}/lib/${MOZILLA_NAME}/${MOZILLA_NAME} "$$@"' >> \
|
|
${DESTDIR}${PREFIX}/bin/${MOZILLA_NAME}
|
|
${CHMOD} 755 ${DESTDIR}${PREFIX}/bin/${MOZILLA_NAME}
|
|
${INSTALL_DATA} ${WRKDIR}/desktop \
|
|
${DESTDIR}${PREFIX}/share/applications/${MOZILLA_NAME}.desktop
|
|
${INSTALL_DATA} ${WRKSRC}/${OBJDIR}/dist/${MOZILLA_NAME}/chrome/icons/default/default48.png \
|
|
${DESTDIR}${PREFIX}/share/pixmaps/${MOZILLA_NAME}.png
|
|
|
|
.include "mozilla-common.mk"
|
|
.include "options.mk"
|
|
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|