Dash:
[t2.git] / package / base / at / crosscompile.patch.uclibc
blob6d4663b3e660dedd3af7ff00fea15162e03080c3
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3
4 # T2 SDE: package/.../at/crosscompile.patch.uclibc
5 # Copyright (C) 2007 - 2016 The T2 SDE Project
6
7 # More information can be found in the files COPYING and README.
8
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 diff -rdup at-3.1.10.orig/Makefile.in at-3.1.10/Makefile.in
18 --- at-3.1.10.orig/Makefile.in  2007-01-22 14:35:41.000000000 +0100
19 +++ at-3.1.10/Makefile.in       2007-01-22 14:41:41.000000000 +0100
20 @@ -62,6 +62,8 @@ MISC =  COPYING  Makefile.in configure a
21  DIST = $(CSRCS) $(HEADERS) $(MISC) $(OTHERS)
22  LIST = Filelist Filelist.asc
24 +IROOT = $(DESTDIR)
26  .PHONY: all install clean dist distclean
28  all: at atd atrun
29 @@ -78,7 +80,7 @@ atd: $(RUNOBJECTS)
30  y.tab.c y.tab.h: parsetime.y
31         $(YACC) -d parsetime.y
33 -lex.yy.c: parsetime.l
34 +lex.yy.c: parsetime.l y.tab.h
35         $(LEX) -i parsetime.l
37  atrun: atrun.in
38 diff -rdup at-3.1.10.orig/config.h.in at-3.1.10/config.h.in
39 --- ./config.h.in.orig  1997-05-13 14:41:28.000000000 +0200
40 +++ ./config.h.in       2007-04-03 18:27:23.000000000 +0200
41 @@ -184,3 +184,5 @@
42  #undef DEFAULT_BATCH_QUEUE
44  #undef HAVE_ATTRIBUTE_NORETURN
46 +#undef NEED_YYWRAP
47 diff -rdup at-3.1.10.orig/configure at-3.1.10/configure
48 --- at-3.1.10.orig/configure    2007-01-22 14:35:41.000000000 +0100
49 +++ at-3.1.10/configure 2007-01-22 14:35:35.000000000 +0100
50 @@ -1037,7 +1037,7 @@ esac
51  echo $ac_n "checking Trying to compile a trivial ANSI C program""... $ac_c" 1>&6
52  echo "configure:1039: checking Trying to compile a trivial ANSI C program" >&5
53  if test "$cross_compiling" = yes; then
54 -  { echo "configure: error: Could not compile and run even a trivial ANSI C program - check CC." 1>&2; exit 1; }
55 +  echo "$ac_t""assuming it works" 1>&6
56  else
57    cat > conftest.$ac_ext <<EOF
58  #line 1044 "configure"
59 --- at-3.1.10.orig/parsetime.h  2005-08-05 05:16:01.000000000 +0200
60 +++ at-3.1.10/parsetime.h       2007-01-22 14:45:41.000000000 +0100
61 @@ -17,6 +17,7 @@
62   *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
63   */
65 +#include "panic.h"
66  time_t parsetime(int argc, char **argv);
68  extern char *last_token;
69 diff -rdup at-3.1.10.orig/parsetime.l at-3.1.10/parsetime.l
70 --- at-3.1.10.orig/parsetime.l  2007-01-22 14:35:41.000000000 +0100
71 +++ at-3.1.10/parsetime.l       2007-01-22 14:35:35.000000000 +0100
72 @@ -1,5 +1,6 @@
73  %{
75 +#include "config.h"
76  #include <string.h>
77  #include <time.h>
78  #include "y.tab.h"