Commit 8d28634a authored by Chaoting Liu's avatar Chaoting Liu

firefox: 64.0

parent f2b5cd75
Pipeline #2012 failed with stages
in 3 minutes and 52 seconds
From: Jory A. Pratt <anarchy@gentoo.org>
CFLAGS must contain -fPIC when checking the linker
diff --git a/build/autoconf/compiler-opts.m4 b/build/autoconf/compiler-opts.m4
--- a/build/autoconf/compiler-opts.m4
+++ b/build/autoconf/compiler-opts.m4
@@ -216,23 +216,26 @@ fi
MOZ_ARG_ENABLE_BOOL(pie,
[ --enable-pie Enable Position Independent Executables],
MOZ_PIE=1,
MOZ_PIE= )
if test "$GNU_CC$CLANG_CC" -a -n "$MOZ_PIE"; then
AC_MSG_CHECKING([for PIE support])
+ _SAVE_CFLAGS=$CFLAGS
+ CFLAGS="$CFLAGS -fPIC"
_SAVE_LDFLAGS=$LDFLAGS
LDFLAGS="$LDFLAGS $DSO_PIC_CFLAGS -pie"
AC_TRY_LINK(,,AC_MSG_RESULT([yes])
[MOZ_PROGRAM_LDFLAGS="$MOZ_PROGRAM_LDFLAGS -pie"],
AC_MSG_RESULT([no])
AC_MSG_ERROR([--enable-pie requires PIE support from the linker.]))
LDFLAGS=$_SAVE_LDFLAGS
+ CFLAGS=$_SAVE_CFLAGS
fi
AC_SUBST(MOZ_PROGRAM_LDFLAGS)
dnl ASan assumes no symbols are being interposed, and when that happens,
dnl it's not happy with it. Unconveniently, since Firefox is exporting
dnl libffi symbols and Gtk+3 pulls system libffi via libwayland-client,
dnl system libffi interposes libffi symbols that ASan assumes are in
pkgname=firefox-kde
pkgver=63.0.3
pkgver=64.0
pkgrel=1
pkgdesc="Standalone web browser from mozilla.org with OpenSUSE patch, integrate better with KDE"
arch=('x86_64')
......@@ -34,7 +34,7 @@ replaces=('kmozillahelper')
#
# Usually, we also port non-openSUSE specific patch together.
#
_patchrev=4b99400f6d17
_patchrev=821cfbe8efcc
_kmozillahelper_commit=2ca28e0 #v5.0.2
_patchurl=http://www.rosenauer.org/hg/mozilla/raw-file/$_patchrev
source=("https://releases.mozilla.org/pub/firefox/releases/${pkgver}/source/${pkgname%%-kde}-${pkgver}.source.tar.xz"
......@@ -52,7 +52,6 @@ source=("https://releases.mozilla.org/pub/firefox/releases/${pkgver}/source/${pk
"$_patchurl/mozilla-openaes-decl.patch"
# Gentoo patch
1002_fix_pie_detection.patch
1003_foritify_sources_properly.patch
2000_system_harfbuzz_support.patch
2001_system_graphite2_support.patch
......@@ -71,21 +70,20 @@ source=("https://releases.mozilla.org/pub/firefox/releases/${pkgver}/source/${pk
#"$_patchurl/mozilla-prefer_plugin_pref.patch" removed from opensuse. reason: dropped mozilla-prefer_plugin_pref.patch as this feature is likely not worth maintaining further
#"$_patchurl/mozilla-shared-nss-db.patch" shared by default now
)
sha256sums=('48a834daa9c5773272a30933936ea8a78b217494355749ee68996639451d0931'
sha256sums=('da40f2f8f1cbf0ddb3454aa9f65bb1a2b2043ca9b1724aecd016337be77d537f'
'SKIP'
'6c2ea431c36afef67710547ae67e81975254309e9e1c82d8312f765caa950fe5'
'1190f251471305f4c96a313b32aa66ee1549125300d7ce385356f45bd8ebcb3d'
'7c3b3079e587fb5c7fd8725b4677efb270355c03c8d16513bbe619903038381e'
'd6b7a81c9e11740480cedda791974bdfa2c44fd93a22db38ad020d78d2afb73e'
'933fbd3e32b68d5096a2b516f190eba7ec718bb57a089ef8b057404369efba63'
'29acfc63f366510f471e395cc7a3815108072abda5851c48b64fdb894550408c'
'ef0f90c9134ef05b950f06a3ffbd699c2e5a5f99a4cdf9868e799534d68c204f'
'de50ebcc6b0fd59e970cf1e19dab09f7c7b2b7c75724fd2ac1fa367c1cd79c20'
'52e6ad9d35efb3a1487f511bfe69dc0a60edc682bd5aeb1e74ee615270670273'
'be7aa94f682dcb0feec3dd7c277d5d19e3c56fe3d4940203c942bbbefad6ed70'
'2b679a3cb082d73bec085b8529a56030a990106408f4d9e73915ec51f4c3259e'
'e5d8f0410ecd05119119e2d44a88fb5f1eb67a5b1035fd0a66b8cf167fb81c5d'
'e72782d0fc5a4b1ef5d9bdaaad4631b686e4b6a89f6b511327c48cb4096d1e08'
'4c75f71ba636934ded24eecb3a81f5ba6583e88db2dd9025c842aefc9c8ef216'
'722324ef522f3e2452f49924e47a2e8a3a547e18aef32d7c1252113eb839451f')
'18d37f79d6919d26c7f581f4c0025b556ced05362749be29af118da05f3cfb51')
# Google API keys (see http://www.chromium.org/developers/how-tos/api-keys)
......@@ -136,6 +134,8 @@ ac_add_options --enable-pie
ac_add_options --enable-gold
ac_add_options --enable-optimize="-O2"
ac_add_options --enable-rust-simd
ac_add_options --enable-lto
ac_add_options --enable-hardening
# Release branding
ac_add_options --enable-application=browser
......@@ -143,9 +143,14 @@ ac_add_options --enable-official-branding
ac_add_options --enable-update-channel=release
ac_add_options --with-distribution-id=org.chakralinux
ac_add_options --enable-default-toolkit=cairo-gtk3
export CC=clang
export CXX=clang++
export MOZILLA_OFFICIAL=1
export MOZ_TELEMETRY_REPORTING=1
export MOZ_REQUIRE_SIGNING=1
export AR=llvm-ar
export NM=llvm-nm
export RANLIB=llvm-ranlib
# Keys
ac_add_options --with-google-api-keyfile=${PWD@Q}/google-api-key
......@@ -190,7 +195,6 @@ END
patch -Np0 -i "$srcdir/pgo-fix-missing-kdejs.patch"
msg "Gentoo Patchset"
patch -Np1 -i $srcdir/1002_fix_pie_detection.patch
patch -Np1 -i $srcdir/1003_foritify_sources_properly.patch
patch -Np1 -i $srcdir/2000_system_harfbuzz_support.patch
patch -Np1 -i $srcdir/2001_system_graphite2_support.patch
......@@ -219,15 +223,9 @@ build_kmozillahelper() {
build_firefox() {
cd $srcdir/${pkgname%%-kde}-${pkgver}
# _FORTIFY_SOURCE causes configure failures
CPPFLAGS+=" -O2"
export PATH="$srcdir/path:$PATH"
export SHELL=/bin/bash
export CC=clang
export CXX=clang++
# Do PGO
xvfb-run -a -n 95 -s "-extension GLX -screen 0 1280x1024x24" \
./mach build
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment