firefox-esr 52 patches for wheezy
Mike Hommey
mh at glandium.org
Wed May 10 05:12:17 UTC 2017
On Sat, May 06, 2017 at 12:51:59PM +0200, Emilio Pozuelo Monfort wrote:
> Hi Mike,
>
> Thanks for looking at this.
>
> On 05/05/17 10:03, Mike Hommey wrote:
> > On Wed, Apr 26, 2017 at 07:46:50PM +0200, Emilio Pozuelo Monfort wrote:
> >> From f5cea02f4c19b04de834639cc8e5daec5b9a787b Mon Sep 17 00:00:00 2001
> >> From: Emilio Pozuelo Monfort <pochu at debian.org>
> >> Date: Sat, 22 Apr 2017 13:51:23 +0200
> >> Subject: [PATCH 2/3] Build with -fPIC on wheezy
> >>
> >> ---
> >> debian/changelog | 2 ++
> >> debian/rules | 1 +
> >> 2 files changed, 3 insertions(+)
> >>
> >> diff --git a/debian/changelog b/debian/changelog
> >> index 85fadd30dc3..1d41bfdf9c6 100644
> >> --- a/debian/changelog
> >> +++ b/debian/changelog
> >> @@ -2,6 +2,8 @@ firefox-esr (52.1.0esr-2) UNRELEASED; urgency=medium
> >>
> >> * debian/rules, debian/control.in:
> >> - Switch to gcc-mozilla (GCC 4.8) on wheezy, as required by FF 52.
> >> + * debian/rules:
> >> + - Build with -fPIC on wheezy.
> >>
> >> -- Emilio Pozuelo Monfort <pochu at debian.org> Sat, 22 Apr 2017 13:48:08 +0200
> >>
> >> diff --git a/debian/rules b/debian/rules
> >> index 62c417bd46b..250e4c94935 100755
> >> --- a/debian/rules
> >> +++ b/debian/rules
> >> @@ -35,6 +35,7 @@ $(foreach lib,$(sort $(call uc,$(SYSTEM_LIBS))),$(eval $(call system_lib,$(lib))
> >> ifeq ($(BACKPORT),wheezy)
> >> CC := /usr/lib/gcc-mozilla/bin/gcc
> >> CXX := /usr/lib/gcc-mozilla/bin/g++
> >> +CFLAGS := -fPIC
> >
> > You'll have to detail why you need this, because this shouldn't be
> > needed.
>
> Compilation fails without -fPIC with a compiler error requesting that files be
> compiled with -fPIC. I don't have a build log handy though, shout if you want
> the exact error / full build log.
>
> Note that at least on sid ff is compiled with -fPIC [1], it's just that either
> the compiler or the default dpkg cflags are injecting it, but that's not the
> case in wheezy.
-fPIC is passed by the Firefox build system itself. If it's missing, then
something fishy is going on, and you're only papering over that. Also,
the last version I built packages for wheezy for, 47, didn't have
missing -fPIC problems, and nothing of note has changed between 47 and
49 wrt that.
Mike
More information about the pkg-mozilla-maintainers
mailing list