diff --git a/srcpkgs/firefox/patches/mallinfo.patch b/srcpkgs/firefox/patches/mallinfo.patch new file mode 100644 index 00000000000..c9a38d45bdf --- /dev/null +++ b/srcpkgs/firefox/patches/mallinfo.patch @@ -0,0 +1,18 @@ +--- xpcom/base/nsMemoryReporterManager.cpp ++++ xpcom/base/nsMemoryReporterManager.cpp +@@ -153,6 +153,7 @@ ResidentUniqueDistinguishedAmount(int64_t* aN) + return GetProcSelfSmapsPrivate(aN); + } + ++#ifdef __GLIBC__ + #define HAVE_SYSTEM_HEAP_REPORTER 1 + nsresult + SystemHeapSize(int64_t* aSizeOut) +@@ -172,6 +173,7 @@ SystemHeapSize(int64_t* aSizeOut) + *aSizeOut = size_t(info.hblkhd) + size_t(info.uordblks); + return NS_OK; + } ++#endif + + #elif defined(__DragonFly__) || defined(__FreeBSD__) \ + || defined(__NetBSD__) || defined(__OpenBSD__) \ diff --git a/srcpkgs/firefox/patches/patch-xpcom_components_Module.h b/srcpkgs/firefox/patches/patch-xpcom_components_Module.h new file mode 100644 index 00000000000..866c7b4a585 --- /dev/null +++ b/srcpkgs/firefox/patches/patch-xpcom_components_Module.h @@ -0,0 +1,15 @@ +$NetBSD: patch-xpcom_components_Module.h,v 1.1 2016/02/06 22:13:22 ryoon Exp $ + +* Workaround for binutils/GNU ld 2.26 from NetBSD/amd64 7.99.26 + +--- xpcom/components/Module.h.orig 2016-01-23 23:23:51.000000000 +0000 ++++ xpcom/components/Module.h +@@ -125,7 +125,7 @@ struct Module + # define NSMODULE_SECTION __declspec(allocate(".kPStaticModules$M"), dllexport) + # elif defined(__GNUC__) + # if defined(__ELF__) +-# define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), visibility("protected"))) ++# define NSMODULE_SECTION __attribute__((section(".kPStaticModules"), visibility("default"))) + # elif defined(__MACH__) + # define NSMODULE_SECTION __attribute__((section("__DATA, .kPStaticModules"), visibility("default"))) + # elif defined (_WIN32) diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index 1a040536e06..4bf417fdff9 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -1,13 +1,13 @@ # Template build file for 'firefox'. pkgname=firefox -version=43.0.4 +version=44.0 revision=1 short_desc="Lightweight gecko-based web browser" maintainer="Juan RP " homepage="https://www.mozilla.org/firefox/" license="MPL-1.1, GPL-2, LGPL-2.1" distfiles="${MOZILLA_SITE}/${pkgname}/releases/${version}/source/${pkgname}-${version}.source.tar.xz" -checksum=76cfa99285d49dede4097096ab3e7ee4bdedb64084b1fc23f2de216884245a76 +checksum=ea82b0f4840d320aa4fe8046ba28e686bf6dc60f707a0514a9d68c150d0c4c1d nopie=yes lib32disabled=yes @@ -25,6 +25,10 @@ makedepends=" depends="nss>=3.20.1 desktop-file-utils hicolor-icon-theme" conflicts="firefox-esr>=0" +# https://bugzilla.mozilla.org/show_bug.cgi?id=1243724 +#CFLAGS="-DBROTLI_BUILD_PORTABLE" +#CXXFLAGS="-DBROTLI_BUILD_PORTABLE" + pre_configure() { case "$XBPS_TARGET_MACHINE" in *-musl)