mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-12 18:13:50 +02:00
firefox-esr: apply build fixes from srcpkgs/firefox.
This commit is contained in:
parent
ceee0d3d69
commit
57e66f3d0d
2 changed files with 20 additions and 4 deletions
15
srcpkgs/firefox-esr/patches/patch-xpcom_components_Module.h
Normal file
15
srcpkgs/firefox-esr/patches/patch-xpcom_components_Module.h
Normal file
|
@ -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)
|
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'firefox-esr'.
|
# Template build file for 'firefox-esr'.
|
||||||
pkgname=firefox-esr
|
pkgname=firefox-esr
|
||||||
version=38.6.0
|
version=38.6.0
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="mozilla-esr${version%%.*}"
|
wrksrc="mozilla-esr${version%%.*}"
|
||||||
short_desc="Lightweight gecko-based web browser"
|
short_desc="Lightweight gecko-based web browser"
|
||||||
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
||||||
|
@ -10,6 +10,7 @@ license="MPL-1.1, GPL-2, LGPL-2.1"
|
||||||
distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.bz2"
|
distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.bz2"
|
||||||
checksum=56244705572d25c5bdca111e814a6021bfe8eaefe3773646720e6e467e59e1d1
|
checksum=56244705572d25c5bdca111e814a6021bfe8eaefe3773646720e6e467e59e1d1
|
||||||
|
|
||||||
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
||||||
nopie=yes
|
nopie=yes
|
||||||
lib32disabled=yes
|
lib32disabled=yes
|
||||||
|
|
||||||
|
@ -23,9 +24,9 @@ makedepends="nss-devel libjpeg-turbo-devel libpng-devel
|
||||||
depends="nss>=3.17 desktop-file-utils hicolor-icon-theme"
|
depends="nss>=3.17 desktop-file-utils hicolor-icon-theme"
|
||||||
conflicts="firefox>=0"
|
conflicts="firefox>=0"
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
# https://bugzilla.mozilla.org/show_bug.cgi?id=1243724
|
||||||
x86_64-musl) broken="http://build.voidlinux.eu/builders/x86_64-musl_builder/builds/8766/steps/shell_3/logs/stdio";;
|
CFLAGS="-DBROTLI_BUILD_PORTABLE"
|
||||||
esac
|
CXXFLAGS="-DBROTLI_BUILD_PORTABLE"
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
# Make config/system_wrappers/alsa/alsalib.h and pulse/pulse.h find
|
# Make config/system_wrappers/alsa/alsalib.h and pulse/pulse.h find
|
||||||
|
|
Loading…
Add table
Reference in a new issue