Package: nauty Version: 2.7r1+ds-2 Severity: normal Tags: patch User: [email protected] Usertags: ftcbfs X-Debbugs-Cc: [email protected], [email protected]
Dear Maintainer, Nauty fails to cross build due to two reasons: 1. It uses AC_RUN_IFELSE testing which cannot heppen during cross build Simply replacing it by AC_LINK_IFELSE does the trick. Please find the patch for this below, and consider applying 2. It uses help2man during build, and the same has also been autotoolised - this isn't allowed during build. It looks like there's particularly no good way to fix it, and probably compiling twice once for build arch, and once for host is un-needed extra work. I'd suggest removing the help2man invocations from autotools, not generate this during build, but simply maintain maintainer manpage, using for example createmanpages script[1] Talking to upstream and asking them to vendor their own manpages from next release can also be a nice option. If it is too much hassle for you, I'm willing to do so myself and even maintain the package [1]: https://salsa.debian.org/med-team/community/helper-scripts/-/blob/master/createmanpages --- a/configure.ac +++ b/configure.ac @@ -295,7 +295,7 @@ dnl --check if popcnt instruction is available and desired AC_MSG_CHECKING(if popcnt instruction is available and requested) -AC_RUN_IFELSE([AC_LANG_PROGRAM([],[[if (__builtin_cpu_supports("popcnt")) return 0; else return 1;]])], +AC_LINK_IFELSE([AC_LANG_PROGRAM([],[[if (__builtin_cpu_supports("popcnt")) return 0; else return 1;]])], popsup=1,popsup=0) AS_IF([test "$allow_popcnt" -eq 1], -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 5.7.0-2-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages nauty depends on: ii libc6 2.31-3 ii libgmp10 2:6.2.0+dfsg-6 pn libnauty2 <none> ii zlib1g 1:1.2.11.dfsg-2 nauty recommends no packages. Versions of packages nauty suggests: ii graphviz 2.42.2-4 pn nauty-doc <none>

