It seems there is already logic in debian/rules to update config.sub/guess and run autoconf.

Unfortunately that logic only applies to the top level program, not to the embedded copy of libatomic_ops which also has a copy of config.sub/guess. The attatched patch fixes that.

Unfortunately when build-testing on arm64 the build went on to fail with the following error:

/bin/bash ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I./include -I./include -D_FORTIFY_SOURCE=2 -fexceptions -g -O2 -Wformat -Werror=format-security -fno-strict-aliasing -DDONT_ADD_BYTE_AT_END -c -o allchblk.lo allchblk.c libtool: compile: gcc -DHAVE_CONFIG_H -I./include -I./include -D_FORTIFY_SOURCE=2 -fexceptions -g -O2 -Wformat -Werror=format-security -fno-strict-aliasing -DDONT_ADD_BYTE_AT_END -c allchblk.c -fPIC -DPIC -o .libs/allchblk.o
In file included from ./include/private/gc_priv.h:94:0,
                from allchblk.c:17:
./include/private/gcconfig.h:514:5: error: #error "The collector has not been ported to this machine/OS combination." # error "The collector has not been ported to this machine/OS combination."
    ^
In file included from ./include/private/gc_priv.h:94:0,
                from allchblk.c:17:
./include/private/gcconfig.h:2415:3: error: #error --> undefined ALIGNMENT
# error --> undefined ALIGNMENT
  ^
Makefile:991: recipe for target 'allchblk.lo' failed
make[3]: *** [allchblk.lo] Error 1
make[3]: Leaving directory '/gauche-0.9.3.3/gc'
Makefile:1326: recipe for target 'all-recursive' failed
diff -Nru gauche-0.9.3.3/debian/changelog gauche-0.9.3.3/debian/changelog
--- gauche-0.9.3.3/debian/changelog     2013-01-15 08:17:51.000000000 +0000
+++ gauche-0.9.3.3/debian/changelog     2014-07-19 19:16:03.000000000 +0000
@@ -1,3 +1,10 @@
+gauche (0.9.3.3-8+autotool) unreleased; urgency=medium
+
+  * Extend updates of config.sub, config.guess and autoconf to cover embedded
+    copy of libatomic_ops.
+
+ -- Peter Michael Green <plugw...@debian.org>  Sat, 19 Jul 2014 19:14:38 +0000
+
 gauche (0.9.3.3-8) unstable; urgency=low
 
   * debian/libgauche-0.9-0.symbols: Updated for alpha, armel and ia64.
diff -Nru gauche-0.9.3.3/debian/rules gauche-0.9.3.3/debian/rules
--- gauche-0.9.3.3/debian/rules 2012-11-29 00:37:08.000000000 +0000
+++ gauche-0.9.3.3/debian/rules 2014-07-19 19:13:49.000000000 +0000
@@ -10,6 +10,7 @@
 override_dh_auto_clean:
        dh_auto_clean
        rm -f configure config.sub config.guess
+       cd gc/libatomic_ops && rm -f configure config.sub config.guess
        rm -f lib/gauche/config.scm
 #      rm -f gc/configure gc/Makefile.in
        find . -name "*.sci" | xargs rm -f
@@ -19,6 +20,9 @@
        ln -sf /usr/share/misc/config.sub .
        ln -sf /usr/share/misc/config.guess .
        autoconf
+       ln -sf /usr/share/misc/config.sub gc/libatomic_ops
+       ln -sf /usr/share/misc/config.guess gc/libatomic_ops
+       cd gc/libatomic_ops && autoconf
 #      (cd gc; autoconf; automake)
 #      dh_auto_configure -v -- --enable-multibyte=utf-8 --enable-ipv6 
--enable-threads=pthreads --with-slib=/usr/share/slib EXTRA_TEST_LIBS=-lpthread
 #

Reply via email to