Source: vile
Version: 9.8y-1
Tags: patch upstream
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

vile used to cross build until 9.8x-1. Now it fails. The reasons are not
entirely clear to me. Here is what I know:

1. It checks for setpgrp and getpgrp and these tests turn out to be
   successful in all cases.
2. When cross compiling, it avoids AC_FUNC_SETPGRP and AC_FUNC_GETPGRP
   even though these macros work fine with cross compiling today.
3. For some reason, SETPGRP_VOID and GETPGRP_VOID end up not getting
   defined during cross compilation. configure isn't very verbose about
   why.
4. If you delete the extra code that tries to support cross building, it
   just works.

As such, I recommend skipping deeper investigation and rather deleting
the evidently broken cross compilation support code. Do note that you
must regenerate configure before upload or enable autoreconf to apply
this change. I'm attaching the bare configure.in patch for your
convenience.

Helmut
--- vile-9.8y.orig/aclocal.m4
+++ vile-9.8y/aclocal.m4
@@ -2932,35 +2932,9 @@
 dnl messes up the messages...
 define([CF_KILLPG],
 [
-if test "$cross_compiling" = yes ; then
-	AC_CHECK_FUNC(setpgrp,[
-	AC_TRY_COMPILE([
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <sys/types.h>
-#include <signal.h>
-],[
-    (void) setpgrp();
-],
-	[AC_DEFINE(SETPGRP_VOID)])])
-else
 	AC_FUNC_SETPGRP
-fi
 
-if test "$cross_compiling" = yes ; then
-	AC_CHECK_FUNC(getpgrp,[
-	AC_TRY_COMPILE([
-#ac_includes_default
-
-#include <signal.h>
-],[
-    (void) getpgrp();
-],
-	[AC_DEFINE(GETPGRP_VOID)])])
-else
 	AC_FUNC_GETPGRP
-fi
 
 AC_CACHE_CHECK(if killpg is needed, cf_cv_need_killpg,[
 AC_TRY_RUN([

Reply via email to