From 6ebba651257f0e201c88a6ea52d25a488ebda8b5 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Tue, 20 Sep 2016 21:18:28 +0200 Subject: [PATCH] firefox: update to 49.0. --- srcpkgs/firefox/patches/fix-tools.patch | 14 -------------- srcpkgs/firefox/patches/musl-pthread-setname.patch | 14 ++++++++++++++ srcpkgs/firefox/template | 8 ++++---- 3 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 srcpkgs/firefox/patches/musl-pthread-setname.patch diff --git a/srcpkgs/firefox/patches/fix-tools.patch b/srcpkgs/firefox/patches/fix-tools.patch index 604524ddee4..1f6df6d9214 100644 --- a/srcpkgs/firefox/patches/fix-tools.patch +++ b/srcpkgs/firefox/patches/fix-tools.patch @@ -42,17 +42,3 @@ } void OS::SleepMicro(int microseconds) ---- media/libav/config_unix.h.orig 2015-11-04 18:38:46.660289503 +0100 -+++ media/libav/config_unix.h 2015-11-04 18:39:38.620814879 +0100 -@@ -223,7 +223,11 @@ - #define HAVE_STRERROR_R 1 - #define HAVE_STRPTIME 1 - #define HAVE_SYSCONF 1 -+#if !defined(__linux__) || defined(__GLIBC__) - #define HAVE_SYSCTL 1 -+#else -+#define HAVE_SYSCTL 0 -+#endif - #define HAVE_USLEEP 1 - #define HAVE_VIRTUALALLOC 0 - #define HAVE_PTHREADS 0 diff --git a/srcpkgs/firefox/patches/musl-pthread-setname.patch b/srcpkgs/firefox/patches/musl-pthread-setname.patch new file mode 100644 index 00000000000..1f803364fb3 --- /dev/null +++ b/srcpkgs/firefox/patches/musl-pthread-setname.patch @@ -0,0 +1,14 @@ +--- js/src/threading/posix/Thread.cpp.orig 2016-09-20 22:19:46.368622126 +0200 ++++ js/src/threading/posix/Thread.cpp 2016-09-20 22:23:35.495823534 +0200 +@@ -153,8 +153,10 @@ + rv = 0; + #elif defined(__NetBSD__) + rv = pthread_setname_np(pthread_self(), "%s", (void*)name); +-#else ++#elif defined(__GLIBC__) + rv = pthread_setname_np(pthread_self(), name); ++$else ++ rv = 0; + #endif + MOZ_RELEASE_ASSERT(!rv); + } diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index 37a304df39b..d47cb1786f3 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -1,13 +1,13 @@ # Template build file for 'firefox'. pkgname=firefox -version=48.0.2 -revision=5 +version=49.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=6efbe0cc8dd120f16ff6d9394d96ea1b13bf6b4163d3b25d4210e06d23ea44b3 +checksum=6f7069fa94688f9fb5aa3bbb2ffa78456825067dd984afa714d74b3f0c6eaf63 only_for_archs="i686 i686-musl x86_64 x86_64-musl" nopie=yes @@ -113,7 +113,7 @@ do_configure() { --with-pthreads --enable-official-branding --enable-safe-browsing \ --disable-debug --disable-gconf --disable-crashreporter --disable-updater \ --disable-tests --disable-elf-hack --with-system-icu --enable-pulseaudio \ - --disable-crashreporter --with-nspr-prefix=${XBPS_CROSS_BASE}/usr \ + --with-nspr-prefix=${XBPS_CROSS_BASE}/usr \ --with-nss-prefix=${XBPS_CROSS_BASE}/usr \ --with-google-api-keyfile="${wrksrc}/google-api-key" \ --enable-optimize="$CFLAGS" --disable-strip --disable-install-strip \