diff options
Diffstat (limited to 'meta/recipes-extended/gawk')
8 files changed, 349 insertions, 0 deletions
diff --git a/meta/recipes-extended/gawk/gawk-3.1.5/gawk-3.1.5_fix_for_automake-1.12.patch b/meta/recipes-extended/gawk/gawk-3.1.5/gawk-3.1.5_fix_for_automake-1.12.patch new file mode 100644 index 0000000000..b3e7987cef --- /dev/null +++ b/meta/recipes-extended/gawk/gawk-3.1.5/gawk-3.1.5_fix_for_automake-1.12.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | automake 1.12 has depricated automatic de-ANSI-fication support | ||
4 | |||
5 | this patch avoids these kinds of errors: | ||
6 | |||
7 | | configure.ac:127: error: automatic de-ANSI-fication support has been removed | ||
8 | | /srv/home/nitin/builds/build-gcc47/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.12/protos.m4:12: AM_C_PROTOTYPES is expanded from... | ||
9 | | configure.ac:127: the top level | ||
10 | | autom4te: m4 failed with exit status: 1 | ||
11 | ... | ||
12 | | Makefile.am:27: error: automatic de-ANSI-fication support has been removed | ||
13 | |||
14 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
15 | 2012/05/04 | ||
16 | |||
17 | Index: gawk-3.1.5/configure.ac | ||
18 | =================================================================== | ||
19 | --- gawk-3.1.5.orig/configure.ac | ||
20 | +++ gawk-3.1.5/configure.ac | ||
21 | @@ -124,7 +124,6 @@ fi | ||
22 | |||
23 | dnl check for C compiler for automake | ||
24 | AM_PROG_CC_STDC | ||
25 | -AM_C_PROTOTYPES | ||
26 | |||
27 | dnl Cygwin doesn't like to get libs with full paths | ||
28 | dnl since that overrides linking against DLLs. | ||
29 | Index: gawk-3.1.5/Makefile.am | ||
30 | =================================================================== | ||
31 | --- gawk-3.1.5.orig/Makefile.am | ||
32 | +++ gawk-3.1.5/Makefile.am | ||
33 | @@ -24,7 +24,7 @@ | ||
34 | ## process this file with automake to produce Makefile.in | ||
35 | |||
36 | # Automatic de-ANSI-fication if needed, make .bz2 files also. | ||
37 | -AUTOMAKE_OPTIONS = ansi2knr dist-bzip2 | ||
38 | +AUTOMAKE_OPTIONS = dist-bzip2 | ||
39 | |||
40 | # This undocumented variable insures that aclocal runs | ||
41 | # correctly after changing configure.ac | ||
diff --git a/meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch b/meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch new file mode 100644 index 0000000000..b241097571 --- /dev/null +++ b/meta/recipes-extended/gawk/gawk-4.0.2/fflash.sh-awk-variable.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | test/fflush.sh: Remove hardcoded gawk path. | ||
2 | |||
3 | Signed-off-by: Anders Roxell <anders.roxell@enea.com> | ||
4 | Upstream-Status: Pending | ||
5 | --- | ||
6 | --- a/test/fflush.sh 2012-05-03 20:13:57.000000000 +0200 | ||
7 | +++ b/test/fflush.sh 2013-04-08 16:28:00.170796200 +0200 | ||
8 | @@ -1,16 +1,17 @@ | ||
9 | #! /bin/sh | ||
10 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}' | ||
11 | +AWK=${AWK-../gawk} | ||
12 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}' | ||
13 | |||
14 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}'|cat | ||
15 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat"}'|cat | ||
16 | |||
17 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");close("/dev/stdout");print "2nd"|"cat"}'|cat | ||
18 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");close("/dev/stdout");print "2nd"|"cat"}'|cat | ||
19 | |||
20 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
21 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
22 | |||
23 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
24 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
25 | |||
26 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
27 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"cat";close("cat")}'|cat | ||
28 | |||
29 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort"}'|cat | ||
30 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort"}'|cat | ||
31 | |||
32 | -../gawk 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort";close("sort")}'|cat | ||
33 | +$AWK 'BEGIN{print "1st";fflush("/dev/stdout");print "2nd"|"sort";close("sort")}'|cat | ||
diff --git a/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest.awk b/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest.awk new file mode 100644 index 0000000000..6f651d8105 --- /dev/null +++ b/meta/recipes-extended/gawk/gawk-4.0.2/run-ptest.awk | |||
@@ -0,0 +1,32 @@ | |||
1 | # The awk test suite prints test names prior to running the test and shows | ||
2 | # results in the form of "make" errors. | ||
3 | # This script post-processes the output to detect failure and print PASS | ||
4 | # only if there was no subsequent error message for the test. | ||
5 | |||
6 | function print_prev() | ||
7 | { | ||
8 | if (length(testname)) | ||
9 | if (fail == 1) | ||
10 | printf "FAIL: %s\n", testname | ||
11 | else | ||
12 | printf "PASS: %s\n", testname | ||
13 | } | ||
14 | |||
15 | { | ||
16 | print $0 | ||
17 | |||
18 | if (match($0, /^(\w+)$/, result)) { | ||
19 | print_prev() | ||
20 | testname = result[1]; | ||
21 | fail = 0 | ||
22 | } | ||
23 | |||
24 | if (match($0, /^make: \[(.+?)\]/)) { | ||
25 | fail = 1 | ||
26 | } | ||
27 | |||
28 | } | ||
29 | |||
30 | END { | ||
31 | print_prev() | ||
32 | } | ||
diff --git a/meta/recipes-extended/gawk/gawk-4.1.1/Use-DESTDIR-in-extension-Makefile.am-when-removing-..patch b/meta/recipes-extended/gawk/gawk-4.1.1/Use-DESTDIR-in-extension-Makefile.am-when-removing-..patch new file mode 100644 index 0000000000..b8b1fcaea7 --- /dev/null +++ b/meta/recipes-extended/gawk/gawk-4.1.1/Use-DESTDIR-in-extension-Makefile.am-when-removing-..patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From 976f73ab03569bb836aa5c949be1c1cc973b2d2e Mon Sep 17 00:00:00 2001 | ||
2 | From: "Arnold D. Robbins" <arnold@skeeve.com> | ||
3 | Date: Fri, 11 Apr 2014 07:42:16 +0300 | ||
4 | Subject: [PATCH] Use $(DESTDIR) in extension/Makefile.am when removing .la | ||
5 | files. | ||
6 | |||
7 | commit 976f73ab03569bb836aa5c949be1c1cc973b2d2e upstream. | ||
8 | |||
9 | [PG: note there was no Author SOB or long log in original.] | ||
10 | Upstream-Status: Backport [ gawk-4.1.1-3-g976f73ab0356 ] | ||
11 | Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> | ||
12 | --- | ||
13 | |||
14 | diff --git a/extension/ChangeLog b/extension/ChangeLog | ||
15 | index afd64ff764b6..f3a1c7a81e7d 100644 | ||
16 | --- a/extension/ChangeLog | ||
17 | +++ b/extension/ChangeLog | ||
18 | @@ -1,3 +1,9 @@ | ||
19 | +2014-04-11 Arnold D. Robbins <arnold@skeeve.com> | ||
20 | + | ||
21 | + * Makefile.am (install-data-hook): Use $(DESTDIR) when removing | ||
22 | + the .la files. Thanks to Lars Wendler <polynomial-c@gentoo.org> | ||
23 | + for the report and fix. | ||
24 | + | ||
25 | 2014-04-08 Arnold D. Robbins <arnold@skeeve.com> | ||
26 | |||
27 | * 4.1.1: Release tar ball made. | ||
28 | diff --git a/extension/Makefile.am b/extension/Makefile.am | ||
29 | index 9c49bb81abb2..11826e2b315e 100644 | ||
30 | --- a/extension/Makefile.am | ||
31 | +++ b/extension/Makefile.am | ||
32 | @@ -100,7 +100,7 @@ testext_la_LIBADD = $(MY_LIBS) | ||
33 | |||
34 | install-data-hook: | ||
35 | for i in $(pkgextension_LTLIBRARIES) ; do \ | ||
36 | - $(RM) $(pkgextensiondir)/$$i ; \ | ||
37 | + $(RM) $(DESTDIR)$(pkgextensiondir)/$$i ; \ | ||
38 | done | ||
39 | |||
40 | # Keep the uninstall check working: | ||
41 | diff --git a/extension/Makefile.in b/extension/Makefile.in | ||
42 | index 040cdb8f4e23..d81b16960935 100644 | ||
43 | --- a/extension/Makefile.in | ||
44 | +++ b/extension/Makefile.in | ||
45 | @@ -1231,7 +1231,7 @@ uninstall-man: uninstall-man3 | ||
46 | |||
47 | install-data-hook: | ||
48 | for i in $(pkgextension_LTLIBRARIES) ; do \ | ||
49 | - $(RM) $(pkgextensiondir)/$$i ; \ | ||
50 | + $(RM) $(DESTDIR)$(pkgextensiondir)/$$i ; \ | ||
51 | done | ||
52 | |||
53 | # Keep the uninstall check working: | ||
54 | -- | ||
55 | 1.9.1 | ||
56 | |||
diff --git a/meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch b/meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch new file mode 100644 index 0000000000..b402587615 --- /dev/null +++ b/meta/recipes-extended/gawk/gawk-4.1.1/extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch | |||
@@ -0,0 +1,86 @@ | |||
1 | From a9f3bd754e9e269099cf7a2c931c632fcc12bd8a Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Gortmaker <paul.gortmaker@windriver.com> | ||
3 | Date: Fri, 13 Jun 2014 13:42:12 -0400 | ||
4 | Subject: [PATCH] extension: Add $(DESTDIR) prefix to remaining pkgextensiondir | ||
5 | instances | ||
6 | |||
7 | Commit 976f73ab03569bb836aa5c949be1c1cc973b2d2e ["Use $(DESTDIR) in | ||
8 | extension/Makefile.am when removing .la files."] fixed an issue | ||
9 | that manifested itself as follows when cross compiling: | ||
10 | |||
11 | make[4]: Entering directory 'gawk/4.1.1-r0/build/extension' | ||
12 | for i in filefuncs.la fnmatch.la fork.la inplace.la ordchr.la readdir.la readfi | ||
13 | le.la revoutput.la revtwoway.la rwarray.la testext.la time.la ; do \ | ||
14 | rm -f /usr/lib/gawk/$i ; \ | ||
15 | done | ||
16 | rm: cannot remove '/usr/lib/gawk/filefuncs.la': Permission denied | ||
17 | rm: cannot remove '/usr/lib/gawk/fnmatch.la': Permission denied | ||
18 | rm: cannot remove '/usr/lib/gawk/fork.la': Permission denied | ||
19 | rm: cannot remove '/usr/lib/gawk/inplace.la': Permission denied | ||
20 | rm: cannot remove '/usr/lib/gawk/ordchr.la': Permission denied | ||
21 | rm: cannot remove '/usr/lib/gawk/readdir.la': Permission denied | ||
22 | rm: cannot remove '/usr/lib/gawk/readfile.la': Permission denied | ||
23 | rm: cannot remove '/usr/lib/gawk/revoutput.la': Permission denied | ||
24 | rm: cannot remove '/usr/lib/gawk/revtwoway.la': Permission denied | ||
25 | rm: cannot remove '/usr/lib/gawk/rwarray.la': Permission denied | ||
26 | rm: cannot remove '/usr/lib/gawk/testext.la': Permission denied | ||
27 | rm: cannot remove '/usr/lib/gawk/time.la': Permission denied | ||
28 | Makefile:1235: recipe for target 'install-data-hook' failed | ||
29 | |||
30 | The problem only manifests itself on hosts where the above files | ||
31 | are already present; for if they are absent then the rm -f does | ||
32 | not fail with -EPERM. The fix in 976f73ab0356 ensured that DESTDIR | ||
33 | was used for the prefix so that it didn't try to delete host files. | ||
34 | |||
35 | However there still remains less used instances of where it is used | ||
36 | w/o $(DESTDIR) that may still cause similar breakage in the future. | ||
37 | Here we apply the same change to them. | ||
38 | |||
39 | Upstream-Status: Submitted [http://lists.gnu.org/archive/html/bug-gawk/2014-06/index.html] | ||
40 | Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> | ||
41 | --- | ||
42 | |||
43 | diff --git a/extension/ChangeLog b/extension/ChangeLog | ||
44 | index f3a1c7a81e7d..b87ac372edc6 100644 | ||
45 | --- a/extension/ChangeLog | ||
46 | +++ b/extension/ChangeLog | ||
47 | @@ -1,3 +1,10 @@ | ||
48 | +2014-06-13 Paul Gortmaker <paul.gortmaker@windriver.com> | ||
49 | + * Makefile.am (uninstall-so): Came across below bug while cross | ||
50 | + compiling, and changed both install-data-hook and uninstall-so | ||
51 | + to use $(DESTDIR) on v4.1.1 before seeing most of the fix in | ||
52 | + gawk-4.1.1-3-g976f73ab0356; here we ensure uninstall-so also | ||
53 | + uses the $(DESTDIR) prefix on its use of pkgextensiondir. | ||
54 | + | ||
55 | 2014-04-11 Arnold D. Robbins <arnold@skeeve.com> | ||
56 | |||
57 | * Makefile.am (install-data-hook): Use $(DESTDIR) when removing | ||
58 | diff --git a/extension/Makefile.am b/extension/Makefile.am | ||
59 | index 11826e2b315e..b6beaee3fb47 100644 | ||
60 | --- a/extension/Makefile.am | ||
61 | +++ b/extension/Makefile.am | ||
62 | @@ -105,7 +105,7 @@ install-data-hook: | ||
63 | |||
64 | # Keep the uninstall check working: | ||
65 | uninstall-so: | ||
66 | - $(RM) $(pkgextensiondir)/*.so | ||
67 | + $(RM) $(DESTDIR)$(pkgextensiondir)/*.so | ||
68 | |||
69 | uninstall-recursive: uninstall-so | ||
70 | |||
71 | diff --git a/extension/Makefile.in b/extension/Makefile.in | ||
72 | index d81b16960935..294e4f887812 100644 | ||
73 | --- a/extension/Makefile.in | ||
74 | +++ b/extension/Makefile.in | ||
75 | @@ -1236,7 +1236,7 @@ install-data-hook: | ||
76 | |||
77 | # Keep the uninstall check working: | ||
78 | uninstall-so: | ||
79 | - $(RM) $(pkgextensiondir)/*.so | ||
80 | + $(RM) $(DESTDIR)$(pkgextensiondir)/*.so | ||
81 | |||
82 | uninstall-recursive: uninstall-so | ||
83 | |||
84 | -- | ||
85 | 1.9.1 | ||
86 | |||
diff --git a/meta/recipes-extended/gawk/gawk-4.1.1/run-ptest b/meta/recipes-extended/gawk/gawk-4.1.1/run-ptest new file mode 100644 index 0000000000..d23f0bf6d7 --- /dev/null +++ b/meta/recipes-extended/gawk/gawk-4.1.1/run-ptest | |||
@@ -0,0 +1,10 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | cd test | ||
4 | for i in `grep -vE "@|^$|#|Gt-dummy" Maketests |awk -F: '{print $1}'`; \ | ||
5 | do LC_ALL=${GAWKLOCALE:-C} LANG=${GAWKLOCALE:-C} srcdir=`pwd` AWK=gawk CMP=cmp \ | ||
6 | make -f Maketests $i >$i.tmp 2>&1; \ | ||
7 | grep -q "Error" $i.tmp; \ | ||
8 | if [ $? -eq 0 ]; then echo "FAIL: $i"; \ | ||
9 | else echo "PASS: $i"; rm -f $i.tmp; fi; \ | ||
10 | done | ||
diff --git a/meta/recipes-extended/gawk/gawk_3.1.5.bb b/meta/recipes-extended/gawk/gawk_3.1.5.bb new file mode 100644 index 0000000000..c7af4a9b72 --- /dev/null +++ b/meta/recipes-extended/gawk/gawk_3.1.5.bb | |||
@@ -0,0 +1,42 @@ | |||
1 | SUMMARY = "GNU awk text processing utility" | ||
2 | DESCRIPTION = "The GNU version of awk, a text processing utility. \ | ||
3 | Awk interprets a special-purpose programming language to do \ | ||
4 | quick and easy text pattern matching and reformatting jobs." | ||
5 | HOMEPAGE = "www.gnu.org/software/gawk" | ||
6 | BUGTRACKER = "bug-gawk@gnu.org" | ||
7 | SECTION = "console/utils" | ||
8 | |||
9 | # gawk <= 3.1.5: GPLv2 | ||
10 | # gawk >= 3.1.6: GPLv3 | ||
11 | LICENSE = "GPLv2" | ||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" | ||
13 | |||
14 | RDEPENDS_gawk += "gawk-common" | ||
15 | RDEPENDS_pgawk += "gawk-common" | ||
16 | PR = "r2" | ||
17 | |||
18 | SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \ | ||
19 | file://gawk-3.1.5_fix_for_automake-1.12.patch" | ||
20 | |||
21 | SRC_URI[md5sum] = "4760325489479cac17fe0114b8f62f30" | ||
22 | SRC_URI[sha256sum] = "463dcb9d0ca398b1d4f5a332f6cd9cec56441265fca616f2ea1b44d459e9f0f8" | ||
23 | |||
24 | inherit autotools gettext texinfo update-alternatives | ||
25 | |||
26 | PACKAGES += "gawk-common pgawk" | ||
27 | |||
28 | FILES_${PN} = "${bindir}/gawk* ${bindir}/igawk" | ||
29 | FILES_gawk-common += "${datadir}/awk/* ${libdir}/gawk/awk/*" | ||
30 | FILES_pgawk = "${bindir}/pgawk*" | ||
31 | FILES_${PN}-dbg += "${libdir}/gawk/awk/.debug" | ||
32 | |||
33 | ALTERNATIVE_${PN} = "awk" | ||
34 | ALTERNATIVE_TARGET[awk] = "${bindir}/gawk" | ||
35 | ALTERNATIVE_PRIORITY = "100" | ||
36 | |||
37 | CFLAGS += "-D PROTOTYPES" | ||
38 | |||
39 | do_install_append() { | ||
40 | # remove the link since we don't package it | ||
41 | rm ${D}${bindir}/awk | ||
42 | } | ||
diff --git a/meta/recipes-extended/gawk/gawk_4.1.1.bb b/meta/recipes-extended/gawk/gawk_4.1.1.bb new file mode 100644 index 0000000000..3266f58cbd --- /dev/null +++ b/meta/recipes-extended/gawk/gawk_4.1.1.bb | |||
@@ -0,0 +1,49 @@ | |||
1 | SUMMARY = "GNU awk text processing utility" | ||
2 | DESCRIPTION = "The GNU version of awk, a text processing utility. \ | ||
3 | Awk interprets a special-purpose programming language to do \ | ||
4 | quick and easy text pattern matching and reformatting jobs." | ||
5 | HOMEPAGE = "www.gnu.org/software/gawk" | ||
6 | BUGTRACKER = "bug-gawk@gnu.org" | ||
7 | SECTION = "console/utils" | ||
8 | |||
9 | # gawk <= 3.1.5: GPLv2 | ||
10 | # gawk >= 3.1.6: GPLv3 | ||
11 | LICENSE = "GPLv3" | ||
12 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
13 | |||
14 | DEPENDS += "readline" | ||
15 | |||
16 | PACKAGECONFIG[mpfr] = "--with-mpfr,--without-mpfr, mpfr" | ||
17 | |||
18 | SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \ | ||
19 | file://run-ptest \ | ||
20 | file://Use-DESTDIR-in-extension-Makefile.am-when-removing-..patch \ | ||
21 | file://extension-Add-DESTDIR-prefix-to-remaining-pkgextensi.patch \ | ||
22 | " | ||
23 | |||
24 | SRC_URI[md5sum] = "45f5b09aa87b4744c4c53bf274e96ed0" | ||
25 | SRC_URI[sha256sum] = "556464bd2e4bc5a0fad4526b59623e4be40b4c2f4c663dfaaf246af6e2ec1d62" | ||
26 | |||
27 | inherit autotools gettext texinfo update-alternatives | ||
28 | |||
29 | FILES_${PN} += "${datadir}/awk" | ||
30 | FILES_${PN}-dev += "${libdir}/${BPN}/*.la" | ||
31 | FILES_${PN}-dbg += "${libexecdir}/awk/.debug" | ||
32 | |||
33 | ALTERNATIVE_${PN} = "awk" | ||
34 | ALTERNATIVE_TARGET[awk] = "${bindir}/gawk" | ||
35 | ALTERNATIVE_PRIORITY = "100" | ||
36 | |||
37 | do_install_append() { | ||
38 | # remove the link since we don't package it | ||
39 | rm ${D}${bindir}/awk | ||
40 | } | ||
41 | |||
42 | inherit ptest | ||
43 | |||
44 | do_install_ptest() { | ||
45 | mkdir ${D}${PTEST_PATH}/test | ||
46 | for i in `grep -vE "@|^$|#|Gt-dummy" ${S}/test/Maketests |awk -F: '{print $1}'` Maketests; \ | ||
47 | do cp ${S}/test/$i* ${D}${PTEST_PATH}/test; \ | ||
48 | done | ||
49 | } | ||