summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/m4/m4-1.4.20.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/m4/m4-1.4.20.inc')
-rw-r--r--meta/recipes-devtools/m4/m4-1.4.20.inc54
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-devtools/m4/m4-1.4.20.inc b/meta/recipes-devtools/m4/m4-1.4.20.inc
new file mode 100644
index 0000000000..aad57b8b64
--- /dev/null
+++ b/meta/recipes-devtools/m4/m4-1.4.20.inc
@@ -0,0 +1,54 @@
1SUMMARY = "Traditional Unix macro processor"
2HOMEPAGE = "https://www.gnu.org/software/m4/m4.html"
3DESCRIPTION = "GNU m4 is an implementation of the traditional Unix macro processor. It is mostly SVR4 \
4compatible although it has some extensions (for example, handling more than 9 positional parameters to macros). \
5GNU M4 also has built-in functions for including files, running shell commands, doing arithmetic, etc."
6
7inherit autotools texinfo ptest gettext
8
9SRC_URI = "${GNU_MIRROR}/m4/m4-${PV}.tar.gz \
10 file://0001-gettext-h-Avoid-gcc-Wformat-security-warnings-with-d.patch \
11 "
12SRC_URI:append:class-target = " file://run-ptest \
13 file://serial-tests-config.patch \
14 "
15
16SRC_URI[sha256sum] = "6ac4fc31ce440debe63987c2ebbf9d7b6634e67a7c3279257dc7361de8bdb3ef"
17
18LICENSE = "GPL-3.0-only"
19
20LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464\
21 file://examples/COPYING;md5=4031593b2166d6c47cae282d944a7ede"
22
23EXTRA_OECONF += "--without-libsigsegv-prefix"
24
25EXTRA_OEMAKE += "'infodir=${infodir}'"
26
27do_compile_ptest() {
28 cd ${B}/tests
29 sed -i '/^buildtest-TESTS: /c buildtest-TESTS: $(TESTS) $(check_LIBRARIES) $(check_PROGRAMS)' Makefile
30 oe_runmake CPPFLAGS="-DSRCDIR=\\\"${PTEST_PATH}/tests/\\\"" buildtest-TESTS
31}
32
33do_install_ptest() {
34 cp -r ${B}/tests ${D}${PTEST_PATH}
35 cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/
36 cp -r ${S}/build-aux ${D}${PTEST_PATH}/tests/
37 sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile
38 find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {}
39 chmod 0755 ${D}${PTEST_PATH}/tests/test-spawn-pipe-main \
40 ${D}${PTEST_PATH}/tests/test-spawn-pipe-child ${D}${PTEST_PATH}/tests/test-version-etc \
41 ${D}${PTEST_PATH}/tests/test-xalloc-die
42}
43
44do_install_ptest:append:libc-glibc() {
45 sed -i -e "s;LOCALE_FR='fr_FR';LOCALE_FR='fr_FR.iso88591';g" \
46 -e "s;LOCALE_FR_UTF8='none';LOCALE_FR_UTF8='fr_FR.utf8';g" ${D}${PTEST_PATH}/tests/Makefile
47}
48
49RDEPENDS:${PN}-ptest += "make coreutils diffutils bash locale-base-fr-fr"
50
51RDEPENDS:${PN}-ptest:append:libc-glibc = "\
52 locale-base-fr-fr.iso-8859-1 \
53 glibc-gconv-iso8859-1 \
54"