Source: scrollz Version: 2.2.3-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
scrollz fails to cross build from source, because it configures for the build architecture. While it does use dh_auto_configure and thus passes --host, the ./configure is too old to understand that flag and needs a CC environment variable. The attached rules.patch fixes that. Then it determines that getaddrinfo is buggy even though it isn't. The relevant check is pessimistic and assumes that during cross compilation, getaddrinfo will never work effectively breaking cross compilation. The check cannot be run during cross, so the only reasonable way out is to assume that a cross builder uses a sane libc and thus assume getaddrinfo to work. Therefore, cross.patch flips the fallback value. After applying it, you'll have to autoreconf the package as it does not build from source by default. Helmut
--- scrollz-2.2.3/debian/rules +++ scrollz-2.2.3/debian/rules @@ -1,5 +1,8 @@ #!/usr/bin/make -f +-include /usr/share/dpkg/buildtools.mk +export CC + MAKE_FLAGS = IRCLIB=\$${prefix}/share/scrollz INSTALL_IRCIO=\$${prefix}/lib/scrollz/bin/ircio INSTALL_IRCFLUSH=\$${prefix}/lib/scrollz/bin/ircflush INSTALL_WSERV=\$${prefix}/lib/scrollz/bin/wserv mandir=\$${prefix}/share/man/man1 override_dh_auto_configure:
--- scrollz-2.2.3.orig/configure.in +++ scrollz-2.2.3/configure.in @@ -1236,8 +1236,8 @@ buggygetaddrinfo=no, AC_MSG_RESULT(buggy) buggygetaddrinfo=yes, -AC_MSG_RESULT(buggy) -buggygetaddrinfo=yes) +AC_MSG_RESULT(assuming good (cross)) +buggygetaddrinfo=no) fi if test "x$buggygetaddrinfo" = "xyes"; then