Source: babel
Version: 1.4.0.dfsg-8.2
Followup-For: Bug #759848

Hello.

The problem above can be solved by adding usage of dh-autoreconf to
debian/rules.
Since it runs in more than one directory it would be also necessary to add
an 'autoreconf' file to debian.
This can be seen on the debdiff attached.

Although dh-autoreconf fixes the particular problem reported in this bug,
the build breaks at another point. Here is the tail of the log:

> libtool: compile:  gfortran -DHAVE_CONFIG_H -I. -I../../../runtime/sidl 
> -I../../../runtime/sidl -g -O2 -c sidl_string_array.f90 -o 
> sidl_string_array.o >/dev/null 2>&1
> rm -f sidl_string_array.f90 sidl_string_array.tmp
> gcc -E -traditional -DHAVE_CONFIG_H -I. -I../../../runtime/sidl   
> -I../../../runtime/sidl  \
>          -P -o sidl_BaseClass.tmp -x c `test -f 'sidl_BaseClass.F90' || echo 
> './'`sidl_BaseClass.F90
> sidl_BaseClass.F90:200:0: error: detected recursion whilst expanding macro 
> "bool"
>      !  out bool retval
>  ^
> sidl_BaseClass.F90:217:0: error: detected recursion whilst expanding macro 
> "bool"
>      !  out bool retval
>  ^
> sidl_BaseClass.F90:352:0: error: detected recursion whilst expanding macro 
> "bool"
>      !  out bool retval
>  ^
> sidl_BaseClass.F90:366:0: error: detected recursion whilst expanding macro 
> "bool"
>      !  out bool retval
>  ^
> sidl_BaseClass.F90:380:0: error: detected recursion whilst expanding macro 
> "bool"
>      !  in bool enable
>  ^
> make[4]: *** [sidl_BaseClass.lo] Error 1
> make[3]: *** [all-recursive] Error 1
> Makefile:1451: recipe for target 'sidl_BaseClass.lo' failed
> make[4]: Leaving directory '/«PKGBUILDDIR»/lib/sidlstubs/F90'
> Makefile:545: recipe for target 'all-recursive' failed
> make[3]: Leaving directory '/«PKGBUILDDIR»/lib/sidlstubs'
> make[2]: *** [all-recursive] Error 1
> Makefile:606: recipe for target 'all-recursive' failed
> make[2]: Leaving directory '/«PKGBUILDDIR»/lib'
> make[1]: *** [all-recursive] Error 1
> make: *** [stamp-build] Error 2
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
> Makefile:604: recipe for target 'all-recursive' failed
> make[1]: Leaving directory '/«PKGBUILDDIR»'
> debian/rules:19: recipe for target 'stamp-build' failed

I do not know what could be causin this.

Regards.

Fernando
diff -Nru babel-1.4.0.dfsg/debian/autoreconf babel-1.4.0.dfsg/debian/autoreconf
--- babel-1.4.0.dfsg/debian/autoreconf	1969-12-31 19:00:00.000000000 -0500
+++ babel-1.4.0.dfsg/debian/autoreconf	2016-02-10 11:56:43.000000000 -0500
@@ -0,0 +1,2 @@
+.
+./runtime
diff -Nru babel-1.4.0.dfsg/debian/changelog babel-1.4.0.dfsg/debian/changelog
--- babel-1.4.0.dfsg/debian/changelog	2013-05-26 15:33:17.000000000 -0400
+++ babel-1.4.0.dfsg/debian/changelog	2016-02-10 11:56:57.000000000 -0500
@@ -1,3 +1,10 @@
+babel (1.4.0.dfsg-8.3) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Replaced various autotools usage by dh-autoreconf 
+
+ -- Fernando Seiti Furusato <ferse...@br.ibm.com>  Wed, 10 Feb 2016 11:56:47 -0500
+
 babel (1.4.0.dfsg-8.2) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru babel-1.4.0.dfsg/debian/control babel-1.4.0.dfsg/debian/control
--- babel-1.4.0.dfsg/debian/control	2013-05-26 15:29:56.000000000 -0400
+++ babel-1.4.0.dfsg/debian/control	2016-02-10 11:56:43.000000000 -0500
@@ -3,8 +3,8 @@
 Priority: extra
 Maintainer: "Adam C. Powell, IV" <hazel...@debian.org>
 Standards-Version: 3.9.1
-Build-Depends: debhelper (>= 5), gfortran, libltdl-dev, libtool,
-  automake, autoconf, libxml2-dev, default-jdk-builddep | java-gcj-compat-dev,
+Build-Depends: debhelper (>= 5), gfortran, libltdl-dev, dh-autoreconf,
+  libxml2-dev, default-jdk-builddep | java-gcj-compat-dev,
   fastjar, gcj-jdk | gjdoc, libxerces2-java, libgetopt-java, libxalan2-java,
   python-all-dev (>= 2.6.6-3~), python-numpy
 Build-Conflicts: libparsifal-dev
diff -Nru babel-1.4.0.dfsg/debian/rules babel-1.4.0.dfsg/debian/rules
--- babel-1.4.0.dfsg/debian/rules	2013-05-26 15:30:28.000000000 -0400
+++ babel-1.4.0.dfsg/debian/rules	2016-02-10 11:56:43.000000000 -0500
@@ -6,14 +6,7 @@
 
 stamp-configure:
 	dh_testdir
-	(cd runtime && libtoolize --force)
-	(cd runtime && aclocal)
-	(cd runtime && automake)
-	(cd runtime && autoconf)
-	libtoolize --force
-	aclocal
-	automake
-	autoconf
+	dh_autoreconf
 	JNI_INCLUDES=-I/usr/lib/jvm/java-gcj/include \
 	  PYTHON=python ./configure --prefix=/usr
 	touch $@
@@ -54,6 +47,7 @@
 # This is left by a quilt push/pop sequence
 	rm -rf .pc
 	rm -f stamp-configure stamp-build*
+	dh_autoreconf_clean
 	dh_clean
 
 install: build $(PYOTHERS:%=install-python%)

Reply via email to