at-crosscompile.patch 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. diff -rdup at-3.1.10.orig/Makefile.in at-3.1.10/Makefile.in
  2. --- at-3.1.10.orig/Makefile.in 2007-01-22 14:35:41.000000000 +0100
  3. +++ at-3.1.10/Makefile.in 2007-01-22 14:41:41.000000000 +0100
  4. @@ -62,6 +62,8 @@ MISC = COPYING Makefile.in configure a
  5. DIST = $(CSRCS) $(HEADERS) $(MISC) $(OTHERS)
  6. LIST = Filelist Filelist.asc
  7. +IROOT = $(DESTDIR)
  8. +
  9. .PHONY: all install clean dist distclean
  10. all: at atd atrun
  11. @@ -78,7 +80,7 @@ atd: $(RUNOBJECTS)
  12. y.tab.c y.tab.h: parsetime.y
  13. $(YACC) -d parsetime.y
  14. -lex.yy.c: parsetime.l
  15. +lex.yy.c: parsetime.l y.tab.h
  16. $(LEX) -i parsetime.l
  17. atrun: atrun.in
  18. diff -rdup at-3.1.10.orig/config.h.in at-3.1.10/config.h.in
  19. --- at-3.1.10.orig/config.h.in 2007-01-22 14:35:41.000000000 +0100
  20. +++ at-3.1.10/config.h.in 2007-01-22 14:35:35.000000000 +0100
  21. @@ -181,3 +181,6 @@
  22. #undef HAVE_ATTRIBUTE_NORETURN
  23. #undef HAVE_PAM
  24. +
  25. +#undef NEED_YYWRAP
  26. +
  27. diff -rdup at-3.1.10.orig/configure at-3.1.10/configure
  28. --- at-3.1.10.orig/configure 2007-01-22 14:35:41.000000000 +0100
  29. +++ at-3.1.10/configure 2007-01-22 14:35:35.000000000 +0100
  30. @@ -1037,7 +1037,7 @@ esac
  31. echo $ac_n "checking Trying to compile a trivial ANSI C program""... $ac_c" 1>&6
  32. echo "configure:1039: checking Trying to compile a trivial ANSI C program" >&5
  33. if test "$cross_compiling" = yes; then
  34. - { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; }
  35. + echo "$ac_t""assuming it works" 1>&6
  36. else
  37. cat > conftest.$ac_ext <<EOF
  38. #line 1044 "configure"
  39. diff -rdup at-3.1.10.orig/getloadavg.c at-3.1.10/getloadavg.c
  40. --- at-3.1.10.orig/getloadavg.c 2007-01-22 14:35:41.000000000 +0100
  41. +++ at-3.1.10/getloadavg.c 2007-01-22 14:35:35.000000000 +0100
  42. @@ -66,11 +66,12 @@ Boston, MA 02110-1301 USA */
  43. /* This should always be first. */
  44. #ifdef HAVE_CONFIG_H
  45. -#include <config.h>
  46. +#include "config.h"
  47. #endif
  48. -#include "lisp.h"
  49. -#include "sysfile.h" /* for encapsulated open, close, read, write */
  50. +#include <sys/types.h>
  51. +#include <sys/stat.h>
  52. +#include <fcntl.h>
  53. #ifndef HAVE_GETLOADAVG
  54. diff -rdup at-3.1.10.orig/parsetime.h at-3.1.10/parsetime.h
  55. --- at-3.1.10.orig/parsetime.h 2005-08-05 05:16:01.000000000 +0200
  56. +++ at-3.1.10/parsetime.h 2007-01-22 14:45:41.000000000 +0100
  57. @@ -17,6 +17,7 @@
  58. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  59. */
  60. +#include "panic.h"
  61. time_t parsetime(int argc, char **argv);
  62. extern char *last_token;
  63. diff -rdup at-3.1.10.orig/parsetime.l at-3.1.10/parsetime.l
  64. --- at-3.1.10.orig/parsetime.l 2007-01-22 14:35:41.000000000 +0100
  65. +++ at-3.1.10/parsetime.l 2007-01-22 14:35:35.000000000 +0100
  66. @@ -1,5 +1,6 @@
  67. %{
  68. +#include "config.h"
  69. #include <string.h>
  70. #include <time.h>
  71. #include "y.tab.h"