On Wed, Jul 09, 2014 at 10:07:12PM +0300, Niko Tyni wrote:
> Package: libapache2-mod-perl2
> Version: 2.0.8+httpd24-r1449661-6
> Severity: serious
> 
> This package fails to build on current sid/amd64:
> 
> waiting 300 seconds for server to start: .[Wed Jul 09 18:34:40.685369 2014] 
> [env:warn] [pid 15490:tid 139848019314560] AH01506: PassEnv variable 
> LD_LIBRARY_PATH was undefined
> [  error] oh dangnabit, server dumped core 

This is a gcc-4.9 regression. The attached patch works around it by
using gcc-4.8 instead.

Interestingly, even gcc-4.9 at -O0 seems to fail, but in different ways.
(The test suite fails loading APR.so because of missing symbols.)

I seem to have problems with building this in cowbuilder, where starting the
test suite just hangs. sbuild works fine, however. Could somebody please try
it out on pbuilder/cowbuilder too?

Not sure how to make a gcc-4.9 bug report out of this.
-- 
Niko Tyni   nt...@debian.org
>From aa515ee381402d5a061f8c9c329612f9bf69ac8f Mon Sep 17 00:00:00 2001
From: Niko Tyni <nt...@debian.org>
Date: Wed, 9 Jul 2014 23:45:54 +0300
Subject: [PATCH] Build with gcc-4.8 for now to work around problems with 4.9.
 (Closes: #754308)

---
 debian/control | 1 +
 debian/rules   | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 7dd05a0..561c5d4 100644
--- a/debian/control
+++ b/debian/control
@@ -23,6 +23,7 @@ Build-Depends: perl,
  libreadonly-perl,
  libwww-perl,
  locales-all,
+ gcc-4.8,
  netbase
 Build-Conflicts: apache2-mpm-event
 
diff --git a/debian/rules b/debian/rules
index 6253c38..5a758b2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,7 +23,7 @@ override_dh_auto_configure:
 		MP_APR_CONFIG=/usr/bin/apr-config
 
 override_dh_auto_build:
-	dh_auto_build --parallel -- MODPERL_OPTIMIZE="$(CFLAGS)" OPTIMIZE="$(CFLAGS)"
+	dh_auto_build --parallel -- MODPERL_OPTIMIZE="$(CFLAGS)" OPTIMIZE="$(CFLAGS)" MODPERL_CC=gcc-4.8
 
 
 override_dh_auto_test:
-- 
2.0.1

Reply via email to