Source: openvswitch
Version: 2.1.0+git20140411
Severity: normal
Tags: patch
User: debian-powe...@lists.debian.org
Usertags: ppc64el
User: debian-de...@lists.debian.org
Usertags: autoreconf

Dear Maintainer,

Currently this package FTBFS when compiled in new architectures (as ppc64el)
that is not supported on the outdated package autotools files, mainly because
it fails to understand that the new architectures has support for shared
libraries, as shown below: 

        Checking for _FILE_OFFSET_BITS value needed for large files... no
        ../build-aux/config.guess: unable to guess system type

        This script, last modified 2012-02-10, has failed to recognize
        the operating system you are using. It is advised that you
        download the most up to date version of the config scripts from

          
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
        and
          
http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

        If the version you run (../build-aux/config.guess) is already up to 
date, please
        send the following data and any information you think might be
        pertinent to <config-patc...@gnu.org> in order to provide the needed
        information to handle your system.


The full log could be found at 
ftp://ftp.unicamp.br/pub/ppc64el/debian/buildd-upstream/build_logs/logs/openvswitch_2.1.0+git20140411-3_ppc64el.build

I created this patch that call autoreconf to updates the autotool files during
the build, as suggest by the following wiki:

https://wiki.debian.org/qa.debian.org/FTBFS#A2014-01-21_using_dh-autoreconf_during_the_build

I tested it on ppc64el and it worked.

Thank you,
Breno
Index: openvswitch-2.1.0+git20140411/debian/control
===================================================================
--- openvswitch-2.1.0+git20140411.orig/debian/control
+++ openvswitch-2.1.0+git20140411/debian/control
@@ -5,7 +5,7 @@ Maintainer: Open vSwitch developers <dev
 Uploaders: Ben Pfaff <pfaff...@debian.org>, Simon Horman <ho...@debian.org>
 Build-Depends:
  debhelper (>= 8), autoconf (>= 2.64), automake (>= 1.10) | automake1.10, 
- libssl-dev, bzip2, openssl, graphviz,
+ libssl-dev, bzip2, openssl, graphviz, dh-autoreconf,
  python-all (>= 2.6.6-3~), procps, python-qt4,
  python-zopeinterface, python-twisted-conch, libtool
 Standards-Version: 3.9.3
Index: openvswitch-2.1.0+git20140411/debian/rules
===================================================================
--- openvswitch-2.1.0+git20140411.orig/debian/rules
+++ openvswitch-2.1.0+git20140411/debian/rules
@@ -38,6 +38,7 @@ buildflags := $(shell if dpkg-buildflags
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
+	dh_autoreconf
 	test -e configure || ./boot.sh
 	test -d _debian || mkdir _debian
 	echo $(DEB_BUILD_OPTIONS)
@@ -77,6 +78,7 @@ build-indep-stamp: configure-stamp
 clean:
 	dh_testdir
 	dh_testroot
+	dh_autoreconf_clean
 	rm -f build-arch-stamp build-indep-stamp configure-stamp
 	rm -rf _debian
 	[ ! -f Makefile ] || $(MAKE) distclean

Reply via email to