Package: ruby1.8 Version: 1.8.3-3 Severity: normal Tags: patch Hi There,
When cross compiling the ruby source to another arch, the autoconf AC_FUNC_SETPGRP fails to work properly. Attached is a patch to fix this. Cheers, Marcus --- ruby-1.8.3/configure.in.orig 2005-11-29 11:18:27.000000000 +0100 +++ ruby-1.8.3/configure.in 2005-11-29 11:19:46.000000000 +0100 @@ -529,7 +529,25 @@ fi AC_FUNC_GETPGRP -AC_FUNC_SETPGRP + +dnl AC_FUNC_SETPGRP does not work if cross compiling +dnl Instead, assume we will have a prototype for setpgrp if cross compiling. +if test "$cross_compiling" = no; then + AC_FUNC_SETPGRP +else + AC_CACHE_CHECK([whether setpgrp takes no argument], ac_cv_func_setpgrp_void, + [AC_TRY_COMPILE([ +#include <unistd.h> +], [ + if (setpgrp(1,1) == -1) + exit (0); + else + exit (1); +], ac_cv_func_setpgrp_void=no, ac_cv_func_setpgrp_void=yes)]) +if test $ac_cv_func_setpgrp_void = yes; then + AC_DEFINE(SETPGRP_VOID, 1) +fi +fi AC_C_BIGENDIAN AC_C_CONST -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (1200, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14n Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US) Versions of packages ruby1.8 depends on: ii libc6 2.3.5-8 GNU C Library: Shared libraries an ii libruby1.8 1.8.3-3 Libraries necessary to run Ruby 1. ruby1.8 recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

