Package: libdbd-firebird-perl
Version: 0.91-2
Severity: important
Tags: patch

Hi,

as you can see in the buildd logs linked from

http://packages.qa.debian.org/libd/libdbd-firebird-perl.html

the package FTBFS on s390x, ppc64, sparc64 and powerpcspe (some but not all of
them unofficial ports) like this:

/usr/bin/perl -p -e "s/~DRIVER~/Firebird/g" /usr/lib/perl5/auto/DBI/Driver.xst 
> Firebird.xsi
/usr/bin/perl /usr/share/perl/5.14/ExtUtils/xsubpp -noprototypes -typemap 
/usr/share/perl/5.14/ExtUtils/typemap -typemap typemap  Firebird.xs > 
Firebird.xsc && mv Firebird.xsc Firebird.c
cc -c  -I"" -I"/usr/lib/perl5/auto/DBI" -Wall -fno-strict-aliasing -D_REENTRANT 
-D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector 
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 
-maltivec -mabi=altivec -O2 -g   -DVERSION=\"0.91\" -DXS_VERSION=\"0.91\" -fPIC 
"-I/usr/lib/perl/5.14/CORE"   Firebird.c
In file included from Firebird.h:12:0,
                 from Firebird.xs:14:
dbdimp.h:13:67: fatal error: DBIXS.h: No such file or directory
compilation terminated.
make[1]: *** [Firebird.o] Error 1
make[1]: Leaving directory 
`/build/izanami-libdbd-firebird-perl_0.91-2-ppc64-1ef4O_/libdbd-firebird-perl-0.91'
dh_auto_build: make -j1 returned exit code 2
make: *** [build-arch] Error 2

I'm attaching a patch, ported from the upstream discussion and linked fix in
commit c72236e at

https://github.com/mariuz/perl-dbd-firebird/issues/31

that fixes this.

Thanks in advance,

Roland



-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Description: Fix build error from missing DBIXS.h
 This patch fixes the issue described upstream at
 https://github.com/mariuz/perl-dbd-firebird/issues/31
 and as fixed in the included link there under commit c72236e
Author: Roland Stigge <[email protected]>

--- libdbd-firebird-perl-0.91.orig/Makefile.PL
+++ libdbd-firebird-perl-0.91/Makefile.PL
@@ -176,6 +176,9 @@ do {
 my $comp_opts = $Config{q{ccflags}}//'';
 $comp_opts .= " $ENV{CFLAGS}" if $ENV{CFLAGS};
 
+my @inc;
+for ( $FB::INC, $FB::dbi_arch_dir ) { push @inc, qq(-I"$_") if $_ }
+
 my %MakeParams = (
     NAME         => $module_name,
     VERSION_FROM => $EMBEDDED
@@ -185,7 +188,7 @@ my %MakeParams = (
     H => [ 'dbdimp.h', $EMBEDDED ? 'FirebirdEmbedded.h' : 'Firebird.h' ],
     CCFLAGS      => "-Wall -fno-strict-aliasing $comp_opts",
     ( $EMBEDDED ? ( DEFINE => '-DEMBEDDED' ) : () ),
-    INC          => qq(-I"$FB::INC" -I"$FB::dbi_arch_dir"),
+    INC          => join( ' ', @inc ),
     OBJECT => join( ' ',
         $EMBEDDED ? "FirebirdEmbedded.o" : "Firebird.o", "dbdimp.o" ),
     LIBS         => [''],

Reply via email to