From 37c4ad4c612e0cfe40ec21eda244203dc662e684 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 9 Jun 2014 08:24:44 +0200 Subject: [PATCH] ngircd: fixed cross build. --- srcpkgs/ngircd/patches/cross.patch | 11 +++++++++++ srcpkgs/ngircd/template | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 srcpkgs/ngircd/patches/cross.patch diff --git a/srcpkgs/ngircd/patches/cross.patch b/srcpkgs/ngircd/patches/cross.patch new file mode 100644 index 00000000000..dec943f3db5 --- /dev/null +++ b/srcpkgs/ngircd/patches/cross.patch @@ -0,0 +1,11 @@ +--- configure.orig 2014-06-09 08:20:00.584285131 +0200 ++++ configure 2014-06-09 08:20:14.000360141 +0200 +@@ -6019,7 +6019,7 @@ _ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getaddrinfo() works" >&5 + $as_echo_n "checking whether getaddrinfo() works... " >&6; } +- if test "$cross_compiling" = yes; then : ++ if false; then : + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 + $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + as_fn_error $? "cannot run test program while cross compiling diff --git a/srcpkgs/ngircd/template b/srcpkgs/ngircd/template index 795c3dff800..2e47f21cd73 100644 --- a/srcpkgs/ngircd/template +++ b/srcpkgs/ngircd/template @@ -28,6 +28,9 @@ else configure_args+=" --without-openssl" fi +post_configure() { + echo "#define HAVE_WORKING_GETADDRINFO 1" >>src/config.h +} post_install() { vinstall ${FILESDIR}/${pkgname}.service 644 usr/lib/systemd/system }